-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Wave Collect] [Workflows] Display meaningful message when currency is not available for Direct Reimbursement #38318
Merged
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
16cae1b
handle errors
lakchote cff3658
add translations for workflows errors
lakchote 47c3c74
handle workflows errors
lakchote e515c8e
add errors for failure data
lakchote a280421
create method to check valid currency for reimbursement
lakchote ef1d156
handle errors for workspace name and description
lakchote 3aa3925
make method more specific
lakchote a7d48f2
show currency modal switcher if vbba not set and fix default reimburs…
lakchote b3d9939
fix style
lakchote 20af98e
remove unneeded translation key
lakchote be8fd34
remove old logic for edge case when default reimbursement choice was …
lakchote e053abc
Merge branch 'main' into lucien/fix-worklows-error-messages
lakchote c1c65f6
fix typo
lakchote f385e85
add consts for policy collection fields
lakchote 7cc1c1a
add generic method to clear policy error fields
lakchote 9f0a1fe
use const for policy collection fields
lakchote 7343b48
remove currency not available as direct reimbursement
lakchote b7b2a07
improved logic for hasValidCurrencyForDirectReimbursement()
lakchote 84a1c83
improved naming
lakchote 7c95b21
Merge branch 'main' into lucien/fix-worklows-error-messages
lakchote a2a788e
rename method and filter EUR currency for direct reimbursement as it'…
lakchote 428bbe6
fix reimbursement choice
lakchote 39f9161
fix lint
lakchote cf6a4bd
fix style
lakchote c2a82ca
fix edge case
lakchote 14a7018
Merge branch 'main' into lucien/fix-worklows-error-messages
lakchote 801c6ae
fix currency supported
lakchote 086c310
Merge branch 'main' into lucien/fix-worklows-error-messages
lakchote fc71b6d
improved naming
lakchote 45c7923
use new naming for const collection keys
lakchote c1d1aa6
fix toggle logic
lakchote 172c8b3
improved toggle logic
lakchote 1140772
Merge branch 'main' into lucien/fix-worklows-error-messages
lakchote a932d16
fix style
lakchote 256049f
Merge branch 'main' into lucien/fix-worklows-error-messages
lakchote adb5d5e
fix toggle logic
lakchote File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there! If I revert the change I commented on here, I can't toggle off, because we now never set
REIMBURSEMENT_NO
. The way I see it, we need to check if we are enabling the toggle (reimbursementChoice === REIMBURSEMENT_NO
), then switch betweenREIMBURSEMENT_YES
andREIMBURSEMENT_MANUAL
based onshouldUseDirectReimbursement
, otherwise we are turning the toggle off so should set toREIMBURSEMENT_NO
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @jjcoffee, I've pushed up a new commit here, let me know what you think!