Skip to content

Add missing success messages in JWT views#3674

Merged
stveit merged 2 commits intomasterfrom
add-missing-success-messages-jwt
Dec 12, 2025
Merged

Add missing success messages in JWT views#3674
stveit merged 2 commits intomasterfrom
add-missing-success-messages-jwt

Conversation

@stveit
Copy link
Copy Markdown
Contributor

@stveit stveit commented Dec 10, 2025

Scope and purpose

Saw that the Edit and Create views for JWT tokens are missing success messages. All views for legacy tokens have them and the other JWT views have them so I consider this to be somewhat of a bug.

By success message I mean this green box that shows up:

image

Also adds test for editing JWT token since that was missing and codecov failed since this PR makes changes to the edit view

Contributor Checklist

Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to NAV can be found in the
Hacker's guide to NAV.

  • Added a changelog fragment for towncrier
  • Added/amended tests for new/changed code
  • Added/changed documentation
  • Linted/formatted the code with ruff, easiest by using pre-commit
  • Wrote the commit message so that the first line continues the sentence "If applied, this commit will ...", starts with a capital letter, does not end with punctuation and is 50 characters or less long. See https://cbea.ms/git-commit/
  • Based this pull request on the correct upstream branch: For a patch/bugfix affecting the latest stable version, it should be based on that version's branch (<major>.<minor>.x). For a new feature or other additions, it should be based on master.
  • If applicable: Created new issues if this PR does not fix the issue completely/there is further work to be done
  • If it's not obvious from a linked issue, described how to interact with NAV in order for a reviewer to observe the effects of this change first-hand (commands, URLs, UI interactions)
  • [] If this results in changes in the UI: Added screenshots of the before and after
  • If this adds a new Python source code file: Added the boilerplate header to that file

@stveit stveit self-assigned this Dec 10, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 10, 2025

Test results

    27 files      27 suites   46m 13s ⏱️
 2 724 tests  2 724 ✅ 0 💤 0 ❌
20 182 runs  20 182 ✅ 0 💤 0 ❌

Results for commit 5bbdb24.

♻️ This comment has been updated with latest results.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.04%. Comparing base (5db2915) to head (5bbdb24).
⚠️ Report is 403 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3674      +/-   ##
==========================================
+ Coverage   63.01%   63.04%   +0.02%     
==========================================
  Files         612      612              
  Lines       45213    45230      +17     
  Branches       43       43              
==========================================
+ Hits        28492    28516      +24     
+ Misses      16711    16704       -7     
  Partials       10       10              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stveit stveit force-pushed the add-missing-success-messages-jwt branch from 80e2f6c to c5e8f34 Compare December 10, 2025 12:51
@stveit stveit force-pushed the add-missing-success-messages-jwt branch from c5e8f34 to 7b05136 Compare December 10, 2025 13:10
@stveit stveit mentioned this pull request Dec 10, 2025
10 tasks
Copy link
Copy Markdown
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johannaengland's nitpick is on point. I have nothing else to add :)

@stveit stveit force-pushed the add-missing-success-messages-jwt branch from 7b05136 to 5bbdb24 Compare December 11, 2025 15:30
@sonarqubecloud
Copy link
Copy Markdown

@stveit stveit merged commit ce83801 into master Dec 12, 2025
20 checks passed
@stveit stveit deleted the add-missing-success-messages-jwt branch December 12, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants