Repository navigation
Conversation
mdmohsin7
left a comment
There was a problem hiding this comment.
Lgtm! Can we have the confirmation dialog with a do not ask me again checkbox or something similar? There's a confirmation dialog widget already which you can use
|
Okay. Thank you i will add it |
|
This is the updated video: Screen.Recording.2025-02-10.at.2.45.03.AM.mp4 |
|
1/ why do we need both, a confirmation and an undo toast ? |
|
|
Okay i will look into it |
|
@mdmohsin7 Can you test again now |
no rush, good thing take time. but please be noticed that i will clean the PR weekly, ofc, you can reopen it anytime. |
|
I'd addressed the issue by introducing a settings option where users can enable or disable the undo snackbar. Additionally, I'd also proposed a 'Recently Deleted' section/page, where deleted conversations can be restored within 7-14 days |
|
@mdmohsin7 this is a simple task and i trust your ability. feel free to merge when you feel that meets our standard. |
|
Hi @cscoderr, any update on the feedback @beastoin mentioned? When memories are deleted one by one continuously, the snackbar becomes too annoying Perhaps the easiest way is to just not show the snackbar repeatedly if a user is deleting multiple memories? Because they already have a confirmation dialog before |
|
Hello @mdmohsin7, @beastoin asked for the best way to solve the problem, and I provided some suggestions, but I haven't received a response from him yet. The issue is that batch deletion (deleting multiple conversations at once, like 10) isn't available for conversations, which would have made things easier. However, an alternative approach is to detect deletions within a specified timeframe. If another conversation is deleted within that timeframe, the timer is extended, preventing the snackbar from appearing unless a deletion occurs outside the specified period. |
|
Can you pls implement the best possible solution you think is without resulting in any UX issues @cscoderr? And share a video of it |
|
I am a daily user of Omi, and have been facing this accidental delete issue everyday, please merge and release this feature soon @beastoin ! |
|
@mdmohsin7 I have completely removed the undo snackbar. I think it would be better if there were a settings page where the user could toggle its visibility along with other visibility settings. |
|
lgtm @cscoderr, be prepared to fix issues (if any arises) in future related to this functionality |
|
Also pls make sure to set line length to 120 in your editor settings for future PRs |
|
Okay thank you |
This PR resolve BasedHardware#1714 # Key Features: 1. Confirmation Dialog – Users now see a confirmation dialog when swiping to delete a conversation. 2. Undo Deletion – A success Snackbar with an Undo button allows users to restore deleted conversations within 3 seconds. Video Demo: https://github.com/user-attachments/assets/a7ec7e22-4015-4ce8-9298-4cc472a219ce
This PR resolve #1714
Key Features:
Video Demo:
Screen.Recording.2025-02-07.at.4.28.35.AM.mp4