-
Notifications
You must be signed in to change notification settings - Fork 154
[PM-42025] fix: Show a toast after a vault item is saved #2993
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
Open
andrebispo5
wants to merge
5
commits into
pm-41957-new-folder-added-snackbar
from
pm-42025-license-saved-snackbar
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
989307b
[PM-42025] feat: Add per-type saved toast titles for vault items
andrebispo5 b54aa70
[PM-42025] fix: Notify the delegate when a vault item is saved
andrebispo5 b9907d1
[PM-42025] fix: Show a toast after a vault item is saved
andrebispo5 dd3743b
[PM-42025] fix: Stop cipher updates from clearing the item view toast
andrebispo5 8b84dcb
[PM-42025] fix: Use the per-type saved toast when collections change
andrebispo5 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
β QUESTION: Was the more-options "Edit" path intentionally left without a toast?
Details
The vault list and group list reach the editor by two routes. Tapping a row goes through
ViewItemProcessor, which now shows the toast. But the row's ellipsis β Edit goes throughDefaultVaultItemMoreOptionsHelper:VaultCoordinatorresolves that context withcontext as? CipherItemOperationDelegate(VaultCoordinator.swift:232), andDefaultVaultItemMoreOptionsHelperdoes not conform to that protocol, soAddEditItemProcessor.delegateisnilanditemSaved(type:)never fires.Net effect after this change: adding an item from the vault list shows a toast, editing via row β view β edit shows a toast, but editing via row β ellipsis β Edit β Save shows nothing. Before this PR all three were silent, so the inconsistency is new.
The helper already has a
handleDisplayToastchannel it uses for copy/archive/unarchive, so wiring the save confirmation through it is one option β happy to defer if this path is planned as follow-up work.