-
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
[CP Staging][CRITICAL] Implement <WorkspaceWorkflowsApprovalsEditPage /> for Editing Workflow #47249
Merged
rlinoz
merged 35 commits into
Expensify:main
from
software-mansion-labs:approval-workflows/edit-screen
Aug 14, 2024
Merged
[CP Staging][CRITICAL] Implement <WorkspaceWorkflowsApprovalsEditPage /> for Editing Workflow #47249
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
d51a8da
Start working on edit screen
blazejkustra 2438780
Merge branch 'approval-workflows/create-edit-screen' into approval-wo…
blazejkustra 3ed8226
Bring back old canUseAllBetas
blazejkustra 25d6df7
Improve edit logic
blazejkustra 546a644
Merge branch 'approval-workflows/create-edit-screen' into approval-wo…
blazejkustra 4501ced
Merge branch 'approval-workflows/create-edit-screen' into approval-wo…
blazejkustra aca6ce4
Rename flow to action
blazejkustra 92ddb88
Add missing translations
blazejkustra dc013da
Fix the logic behind updating employees
blazejkustra bd6e8c0
Use new names for variables
blazejkustra 7439819
Start testing removal flow
blazejkustra 8b71e1a
Merge branch 'approval-workflows/create-edit-screen' into approval-wo…
blazejkustra 1ef7ad2
Change what validation function returns
blazejkustra 368109e
Parse email param
blazejkustra 90a83e2
Clean the logic for opening edit screen
blazejkustra db71a31
Hide header on edit screens
blazejkustra 2560c8e
Attach the update and remove commands to edit screen
blazejkustra 2588c7c
Adjust the logic on create screen for better clarity
blazejkustra 6a85197
Adjust tests to newer convertApprovalWorkflowToPolicyEmployees logic
blazejkustra b3f6d4c
Fix navigation bug when going back from after removal
blazejkustra 669e3c0
Merge branch 'approval-workflows/create-edit-screen' into approval-wo…
blazejkustra 7cc82a4
Fix opening edit page with an url
blazejkustra f5e26de
Fix crash on ios
blazejkustra 04a1f3d
Fix removing members
blazejkustra d0e1875
Merge branch 'main' into approval-workflows/edit-screen
blazejkustra 48f2ac8
Improve the comment
blazejkustra bdbe28a
Add new parameter to UpdateWorkspaceApproval command - defaultApprover
blazejkustra 5328303
Fix a bug that approvalWorkflow wasn't updated in some cases
blazejkustra 00868ec
Show not found page instead of going back
blazejkustra 99938ed
Remove unused import
blazejkustra 2c2b20e
Merge branch 'main' into approval-workflows/edit-screen
blazejkustra f76850a
Fix Not found page when removing the first approver
blazejkustra d4d225d
Uncomment changing the default approver
blazejkustra 30b99d2
Enable button when offline
blazejkustra d18d2f0
Update default approver in optimisticData
blazejkustra 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
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
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
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
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
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
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
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.
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.
@blazejkustra Why do you make this change? I think
onPress
function could be handled in ApprovalWorkflowSection.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.
I prefer this section to be controlled by the parent, so no business logic is built into it