You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UI - Remove Reg Id from Query Param + Modals #31002
@dimak1 we never got a chance to get an estimate on this - if it's a straightforward effort then I think it makes sense to remove a potential vector for a bad actor - thanks!
The modal should show up when navigating away from the page in any way, except when they click save and resume later. If they click that button there should be no warning modal (since they saving their edits and there is no risk of losing changes made).
When I resume a draft, make changes and navigate away from the form, the warning modal doesn't show up anymore. It just kicks you out of the form with no warning.
Same goes for the browser re-load page warning, it doesn't show up when resuming a draft and reloading the page. Which is should.
@saragunnarsson how about a scenario when the user hits "Save" first, and after it's saved user clicks on "Cancel" ?
Would that be part of the condition where the modal is not displayed?
Also, when I hit Refresh, the modal is displayed at the top with this layout:
differently from the one displayed when I click on "Cancel" at the bottom:
We do not track if application was saved to dynamically show/hide confirm modal. We only have few scenarios where we can skip confirm modal (eg Save and Resume). So if they click Save, and then Cancel, the modal would show
There are two confirm modals: Browser's default (triggered when using browser's buttons) and app's custom modal. That's why you see different styles, because they are different modals.
I can make an update and skip the confirm modal on session timeout
@moraesfm as always, great feedback! but functionality is limited so yea, we won't be checking for a save right before canceling and there are 2 different modals being loaded depending on what triggers it. Great catching the 2 modals on time out though! And thanks Dima for fixing that:)
Passed BAA - Attempting to navigate away on an unsaved page of the draft will cause either the app's modal dialogue box or browser's modal dialogue box to activate.
Activity
dimak1 commentedon Oct 16, 2025
@arlentees this ticket is to address some of the potential security implications. Should I pull into sprint? It is related to Renewals.
arlentees commentedon Oct 16, 2025
@dimak1 we never got a chance to get an estimate on this - if it's a straightforward effort then I think it makes sense to remove a potential vector for a bad actor - thanks!
dimak1 commentedon Oct 16, 2025
@arlentees it looks like a straightforward effort, dev team discussed and we all agreed that this should be addressed. Thanks!
dimak1 commentedon Oct 21, 2025
Ready for UXA in Dev. Reg App Oct 21-1 H044533695 is expired. @saragunnarsson
saragunnarsson commentedon Oct 21, 2025
@dimak1 Just a couple notes below:
[-]UI - Remove Reg Id from Query Param[/-][+]UI - Remove Reg Id from Query Param + Modals[/+]dimak1 commentedon Oct 22, 2025
@saragunnarsson ready for UXA with fixes https://strr-hosts-dev--pr-895-uojhj3v5.web.app/
saragunnarsson commentedon Oct 23, 2025
This looks good @dimak1 ! It can go to qa
moraesfm commentedon Oct 29, 2025
@saragunnarsson how about a scenario when the user hits "Save" first, and after it's saved user clicks on "Cancel" ?
Would that be part of the condition where the modal is not displayed?
moraesfm commentedon Oct 29, 2025
Also, when I hit Refresh, the modal is displayed at the top with this layout:


differently from the one displayed when I click on "Cancel" at the bottom:
Can you please confirm if that's expected?
moraesfm commentedon Oct 29, 2025
When window remains too long without activity, both modals are popped-up

dimak1 commentedon Oct 29, 2025
@moraesfm
moraesfm commentedon Oct 29, 2025
Ok. Moving this back to in progress to be fixed
saragunnarsson commentedon Oct 29, 2025
Thanks for jumping in and clarifying @dimak1
@moraesfm as always, great feedback! but functionality is limited so yea, we won't be checking for a save right before canceling and there are 2 different modals being loaded depending on what triggers it. Great catching the 2 modals on time out though! And thanks Dima for fixing that:)
dimak1 commentedon Oct 30, 2025
Fix in under code review. Will update here once ready for re-test.
dimak1 commentedon Nov 11, 2025
Host UI is deployed to Test env.
moraesfm commentedon Nov 12, 2025
It is now working as expected
victorc-bcgov commentedon Nov 17, 2025
Passed BAA - Attempting to navigate away on an unsaved page of the draft will cause either the app's modal dialogue box or browser's modal dialogue box to activate.