-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add confirm dialog to "Convert to static list" #2392
Conversation
…make the list empty.
I didn't see this until just now. Nice work tackling this age old issue! The issues describes two alternative solutions, to change the label in the menu and/or to add a confirmation dialog. To me, changing the label would have been the simpler option, although to be fair I'm not entirely sure what a better label would be. I'm curious, if you don't mind, to hear why you preferred the confirmation dialog over changing the label (or both). |
I tried to come up with a reasonable label that would convey that the Smart Search would be removed and the list become empty as a result of that, and I could not figure it out. |
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.
Can we make a small change to the message so that it's not wrong in this one sense?
makeStatic: m('Convert to static list'), | ||
makeStatic: { | ||
confirmDialogInfo: m( | ||
'If you convert this list to a static list the Smart Search will be removed and the list will be empty, as all the people the Smart Search returned will no longer be there.' |
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.
The part about the "empty" list is not 100% correct. If there are statically added rows from before, those rows will still be there. Try doing this:
- Create a list
- Add a person
- Use ellipsis menu to convert to Smart Search list
- Configure Smart Search and save
- Use ellipsis menu again to convert to static list
- Read the message
- Confirm
- Contemplate message vs result 😊
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.
This looks good to me! 💯
Description
This PR adds a confirm dialog with some info that highlights that converting from a dynamic to a static list will delete the Smart Search, which means the list will be emptied of people
Screenshots
Changes
Notes to reviewer
no specific ones
Related issues
Resolves #532