fix: editing tag alignment and post-save redirect for budget lines tab - #6160
fix: editing tag alignment and post-save redirect for budget lines tab#6160Santi-3rd wants to merge 9 commits into
Conversation
There was a problem hiding this comment.
Found and resolved 2 issues:
Finding 1 — handleFinancialSnapshotChanges redirect not updated (line 586)
The showSuccessMessage redirect was correctly updated to /budget-lines, but handleFinancialSnapshotChanges at line 586 still uses the old path:
redirectUrl: `/agreements/${selectedAgreement?.id}` // missing /budget-linesThis is masked in the normal save flow because showSuccessMessage runs afterward and overwrites the alert. But on the suppressSuccessAlert=true path (batch/saveTrigger save), showSuccessMessage is skipped and this stale redirect fires, sending the user to the Agreement Details tab instead of Budget Lines.
|
Below is what my AI review found. I will start fixing these myself, starting from issue 1 but feel free to mention if you want to take any others.
|
|
Follow-up fixes from a code review of PR #6160, covering two areas: Budget lines redirect bug
Duplicated "Editing…" indicator
Self-reviewRan two adversarial reviews against these changes. Caught and fixed one real regression (a |
What changed
Three related UI/UX fixes for the Grants & Budget Lines and SCs & Budget Lines tabs on the agreement detail page.
DetailsTabs.jsxAgreementBudgetLinesHeader.jsxmargin-top-6to the budget lines header container for consistent vertical spacing.GrantNumberForm.jsx/ServicesComponentForm.jsxflex-align-center) relative to the fullFormHeaderblock (heading + details text), causing it to float below the heading. Changed toflex-align-startso the tag aligns with the heading row instead. Added small bottom padding so the tag doesn't crowd the content below.CreateBLIsAndSCs.hooks.js/agreements/${id}(Agreement Details tab). Changed both redirect paths to/agreements/${id}/budget-linesso the user lands back on the tab they were editing. Blocker-modal navigation (savedViaModal) is unchanged.Issue
#6013
How to test
ServicesComponentForm.Frontend unit tests:
A11y impact
A11Y-SUPPRESSIONmetadata (owner, expires, rationale)Storybook
Screenshots
Screenshots should be added by the author to show the before/after of the "Editing…" tag alignment and the post-save redirect destination.
Definition of Done Checklist
Links
N/A