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

feat: Reposition change button, add dialog on change #2774

Merged
merged 4 commits into from
Feb 12, 2024

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Feb 9, 2024

What does this PR do?

  • Moves "change" button back to per-question, not per-section
  • Adds a MUI dialog to warn user of changes - please see here for context
  • Basic test coverage for confirm modal behaviour
Screen.Recording.2024-02-09.at.17.09.43.mov

Copy link

github-actions bot commented Feb 9, 2024

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr marked this pull request as draft February 11, 2024 21:28
@DafyddLlyr DafyddLlyr force-pushed the dp/reposition-change-button-again branch from ae2dc6a to 36f2b60 Compare February 12, 2024 08:25
@DafyddLlyr DafyddLlyr force-pushed the dp/reposition-change-button-again branch from 36f2b60 to 0486c1f Compare February 12, 2024 08:34
@DafyddLlyr DafyddLlyr requested a review from a team February 12, 2024 09:08
@DafyddLlyr DafyddLlyr marked this pull request as ready for review February 12, 2024 09:08
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Works for me!

cancelText="No"
>
<Typography>
If you change this answer, you’ll need confirm all the other answers
Copy link
Member

Choose a reason for hiding this comment

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

typo: ...you'll need _to_ confirm...

also personal preference: i'd keep it very short & simple & delete the second "because" sentence !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy/pasted content from Trello - didn't check for typos 🤦

Agreed that for me the shorter version is clearer / more meaningful. As this is content from Nomensa I'll pass it forward as is (with typo fixed!) but raise this at PO testing 👍

<Button onClick={onCancel}>{cancelText}</Button>
<Button onClick={onConfirm}>{confirmText}</Button>
</DialogActions>
</Dialog>
Copy link
Member

Choose a reason for hiding this comment

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

Nice to see the proper MUI component here! Would be great to replace the native window alert on "restart application" with this component too 🔖

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have this planned as a follow up! Should have made a comment in the description 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PR here - #2777

@DafyddLlyr DafyddLlyr merged commit 32a46ad into main Feb 12, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/reposition-change-button-again branch February 12, 2024 11:55
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.

2 participants