-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: replace browser alert/confirm with generic withConfirm wrapper in Questionary and StepView #806
Merged
Junjiequan
merged 12 commits into
develop
from
SWAP-3346-uo-in-proposal-review-trigger-back-button-shows-u
Oct 17, 2024
Merged
fix: replace browser alert/confirm with generic withConfirm wrapper in Questionary and StepView #806
Junjiequan
merged 12 commits into
develop
from
SWAP-3346-uo-in-proposal-review-trigger-back-button-shows-u
Oct 17, 2024
Conversation
This file contains 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
Junjiequan
requested review from
mehta-pooja123
and removed request for
a team
October 7, 2024 11:55
Junjiequan
force-pushed
the
SWAP-3346-uo-in-proposal-review-trigger-back-button-shows-u
branch
from
October 7, 2024 13:10
79ade84
to
2ba2519
Compare
…ws-u' of https://github.com/UserOfficeProject/user-office-core into SWAP-3346-uo-in-proposal-review-trigger-back-button-shows-u
yoganandaness
approved these changes
Oct 8, 2024
Scott-James-Hurley
requested review from
Scott-James-Hurley
and removed request for
mehta-pooja123
October 9, 2024 19:29
…ack-button-shows-u
…ack-button-shows-u
…ack-button-shows-u
Scott-James-Hurley
approved these changes
Oct 15, 2024
…ack-button-shows-u
Junjiequan
deleted the
SWAP-3346-uo-in-proposal-review-trigger-back-button-shows-u
branch
October 17, 2024 09:40
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
This PR replaces the browser alert/confirm with a generic
withConfirm
wrapper inQuestionary
andStepView
components.Motivation and Context
The change is required to ensure a unified user experience across the application and to replace the default browser alert/confirm components, which are not user-friendly, with a custom-styled confirmation dialog.
Changes
Questionary.tsx
andQuestionaryStepView.tsx
, thewindow.confirm
has been replaced with thewithConfirm
wrapper.QuestionarySubmissionState.ts
anduseEventHandlers.ts
files have been updated to handle the newconfirm
prop passed to theBACK_CLICKED
,RESET_CLICKED
, andGO_TO_STEP_CLICKED
actions.Questionary
andQuestionaryStepView
components are now wrapped withwithConfirm
at export.This change ensures that all confirmations within the
Questionary
andStepView
components are handled in a consistent and user-friendly manner.How Has This Been Tested?
Fixes Jira Issue
https://jira.esss.lu.se/browse/SWAP-3346
Depends On
Tests included/Docs Updated?