fix: DAH-4293 Fix housing counselor access granted / revoked toasts - #3035
Open
cliu02 wants to merge 2 commits into
Open
fix: DAH-4293 Fix housing counselor access granted / revoked toasts #3035cliu02 wants to merge 2 commits into
cliu02 wants to merge 2 commits into
Conversation
cliu02
marked this pull request as ready for review
August 18, 2026 20:36
alulabeshue-sfgov
temporarily deployed
to
dahlia-webap-dah-4293-h-keqw3v
August 18, 2026 20:36
Inactive
cliu02
requested review from
a team,
jimlin-sfgov and
jtcaovan
and removed request for
a team
August 18, 2026 20:37
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes the housing counselor “access granted” vs “access revoked” success-toast behavior on the Account Settings page by separating the share vs revoke flows/state so the correct toast is shown for each action.
Changes:
- Split the prior combined submit handler into
onShare(form submit) andonRevoke(button click), with separategrantToast/revokeToaststate. - Updated the revoke button behavior to avoid form submission when already shared (
type="button"+onClick={onRevoke}). - Added test cases asserting the granted/revoked toast messages.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| app/javascript/pages/account/settings.tsx | Separates share vs revoke flows and toast state in the Housing Counselor section. |
| app/javascript/tests/pages/account/settings.test.tsx | Adds tests around the housing counselor access success toasts. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Separate useStates for access granted toast and access revoked toast on account settings page.
Jira ticket
https://sfgovdt.jira.com/browse/DAH-4293
Before requesting eng review
Version Control
angularif it contains updates to Angular codetype: TICKET-NUMBER Descriptionformat, useDAH-000if it does not need a ticketurgent: Descriptionformat if it is urgent and does not need a ticketCode quality
Code conventions
.scssstylesheets andui-seedstokens, rather than inline styles or TailwindReview instructions
Request eng review
needs reviewlabelHousing Enggroup to automatically assign reviewers, and/or assign specific engineersBefore merging
Request product acceptance (PA) testing
needs product acceptancelabel)