Skip to content

feat(GAT-8821): Correct DAR dialog & save draft logic - #1578

Merged
philreekshdr merged 3 commits into
devfrom
feat/GAT-8821
Jul 20, 2026
Merged

feat(GAT-8821): Correct DAR dialog & save draft logic#1578
philreekshdr merged 3 commits into
devfrom
feat/GAT-8821

Conversation

@philreekshdr

@philreekshdr philreekshdr commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

AI disclaimer - Root-cause investigation and implementation were done by CLAUDE

Screenshots / videos (if relevant)

Describe your changes

DAR submission previously fired the answers-save and the status-change as two concurrent requests, which raced on the server and intermittently failed to show a confirmation — occasionally dropping the applicant's final edits while still marking the application submitted. Submission is now a single request that saves answers and flips the status to SUBMITTED in one call, with a success toast + redirect on success, and clear error toasts on failure or when required fields are missing.

The custodian "Change application status" dialog now surfaces success/error toasts and reliably navigates back to the applications list — the cache revalidation is awaited so its router refresh no longer clobbers the redirect (previously the first "set to Draft" often stayed on the page).

Finally, the "Save draft" button is now hidden when an application is no longer editable (submitted/in review, or already decided) rather than offering an action the API rejects.

Also - a sometimes failing Cohort test was improved.

Issue ticket link

https://hdruk.atlassian.net/browse/GAT-8821

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have added appropriate unit tests / e2e tests (where relevant)
  • I have created mocks for api endpoints (where appropriate)
  • The interface is responsive (where ticket is relevant)
  • The interface is at least AA (where ticket is relevant)
  • Commits are described as "(chore|fix|feature|test|maintenance): description"

@gh-actions-pipelines-app

Copy link
Copy Markdown

🎉 Great job! Your PR title follows the correct format. 🚀

@philreekshdr philreekshdr changed the title feat(GAT-8821): Correct dialog logic feat(GAT-8821): Correct DAR dialog & save draft logic Jul 20, 2026
@philreekshdr
philreekshdr merged commit 04eace6 into dev Jul 20, 2026
5 of 6 checks passed
@philreekshdr
philreekshdr deleted the feat/GAT-8821 branch July 20, 2026 14:10
gh-actions-pipelines-app Bot pushed a commit that referenced this pull request Jul 24, 2026
## [2.40.0](v2.39.0...v2.40.0) (2026-07-24)

### ✨ Features

* **GAT-7563:** Data Custodian Network = Split owned/associated content (#1569) ([7e462ff](7e462ff)), closes [GAT-7563](undefinedGAT-7563)
* **GAT-7564:** Data custodian associated resources (#1567) ([45e9c1d](45e9c1d)), closes [GAT-7564](undefinedGAT-7564)
* **GAT-7604:** Data custodian display tweaks (#1562) ([82b222c](82b222c)), closes [GAT-7604](undefinedGAT-7604)
* **GAT-8094:** Display dataset aliases (#1566) ([65e819a](65e819a)), closes [GAT-8094](undefinedGAT-8094)
* **GAT-8131:** Widget test harness (#1573) ([ac6fda3](ac6fda3)), closes [GAT-8131](undefinedGAT-8131)
* **GAT-8478:** Add support link (#1571) ([c51fa80](c51fa80)), closes [GAT-8478](undefinedGAT-8478)
* **GAT-8709:** Fix confusing naming for running a fedaration test. ([6aedd84](6aedd84))
* **GAT-8724:** Update dataset filter order (#1576) ([71843f9](71843f9)), closes [GAT-8724](undefinedGAT-8724)
* **GAT-8798:** Added run now button for integrations ([f944277](f944277)), closes [GAT-8798](undefinedGAT-8798)
* **GAT-8821:** Correct DAR dialog & save draft logic (#1578) ([04eace6](04eace6)), closes [GAT-8821](undefinedGAT-8821)
* **GAT-9193:** Update sign-in modal design (#1581) ([ee76b95](ee76b95)), closes [GAT-9193](undefinedGAT-9193)
* **GAT-9193:** Update wording (#1582) ([68ae7bb](68ae7bb)), closes [GAT-9193](undefinedGAT-9193)

### 🐛 Bug Fixes

* **GAT-8754:** Fix empty widget preview state (#1577) ([a827c08](a827c08))
* **GAT-9237:** bug in the onboarding form for tools (#1579) ([2071ecb](2071ecb)), closes [GAT-9237](undefinedGAT-9237)
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