Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heather's fix for outcome button accessibility #420

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

nickoneill
Copy link
Member

Implemented @heathermh's fix for outcome button accessibility, simplified the outcome nav per @cselin's request in #414, and fixed the off-by-one that was preventing the last contact from showing its IssueContactDetail.

Replaces #414, Fixes #413

Copy link
Collaborator

@cselin cselin left a comment

Choose a reason for hiding this comment

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

Very productive PR!

@@ -74,7 +74,7 @@ class Store: ObservableObject {
state.issueRouter.selectedIssue = nil
state.issueRouter.path = NavigationPath()
case let .GoToNext(issue, nextContacts):
if nextContacts.count > 1 {
if nextContacts.count >= 1 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like I introduced this in my refactor and then verified it with newly added test 🤦🏻‍♂️, let's update the test to reflect the correct behavior.

})
}
}
OutcomesView(outcomes: issue.outcomeModels, report: { outcome in
Copy link
Collaborator

Choose a reason for hiding this comment

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

super nit: I wonder if this whole closure can be replaced by a single action dispatch within OutcomesView that then dispatches all applicable other actions within middleware?

@nickoneill
Copy link
Member Author

Updated the test to ensure correctness in the contact flow, agreed on the dispatch change but we can make it in a future PR when changes are closer to the middleware section

@nickoneill nickoneill merged commit 3ff0d24 into main Jan 10, 2024
1 check passed
@nickoneill nickoneill deleted the nickoneill/outcome-fix branch January 10, 2024 16:02
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.

Outcome buttons are a single VoiceOver element
2 participants