-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Delete a note/task from side panel #7069
Comments
@Bonapara, what if we allow the user to delete the notes directly from the card itself for ease of functionality ? And for tasks we can add the delete in the side panel as mentioned |
@Bonapara we need to think of this in the context of all objects not just notes/tasks because it's the same panel. For example in your desired behavior, could you please provide additional guidance that would apply to every object? Should we remove the object type in the header for all objects? |
We synced with Félix. For V1 this should be hardcoded on every record side panel which means:
CleanShot.2024-09-17.at.18.58.33.mp4In V2, we will display all the actions a user can take on a record. |
@Bonapara can I work on this If no one is assigned yet? |
Sure Nitin! Thanks |
@Bonapara |
@ehconitin the goal here is for this side panel to be a small version of the record show page with as little duplicated code as possible but shared code instead, so we wouldn't want to introduce new behavior. Introducing a confirmation modal on the show page had been discussed in #6559 but was not prioritized by @Bonapara so far I think (we instead bet on soft delete / be able to recover records easily). Maybe @Bonapara would decide to reopen a similar issue but I think it's better to invest time here in doing things as cleanly as we can. In an ideal world, the list of actions displayed would come from a single source of truth Restore button on show page mobile view / in sidebar: The actions that will be displayed are the same that you have with "..." on the showpage. We will just have special attributes to indicate which one is "pinned" and which one is the "cta". For the mobile/sidebar view we only display one action, the CTA in blue if there's a CTA, then the first pinned action if there isn't any (in grey like the delete button in the screenshot). Not sure if it's clear, @Bonapara might explain it best 😅 |
Oh, thanks for the insights, @FelixMalfait! |
💯
Anytime! |
@ehconitin The restore banner should already be there, it's just the show page that's embedded into the panel already. |
@FelixMalfait Yup you are correct, but the banner does not appear till 2024-09-24.13-05-29.mp4 |
fixes #7069 @Bonapara https://github.com/user-attachments/assets/b1b57070-1ef4-4cc3-9907-028219245558 --------- Co-authored-by: Félix Malfait <[email protected]>
fixes twentyhq#7069 @Bonapara https://github.com/user-attachments/assets/b1b57070-1ef4-4cc3-9907-028219245558 --------- Co-authored-by: Félix Malfait <[email protected]>
Current Behavior
You can't delete a note/task without navigating to it or accessing the
Notes
object list.CleanShot.2024-09-16.at.18.27.22.mp4
Desired Behavior
Add an action button that allows deletion of the note/task directly from the side panel.
The text was updated successfully, but these errors were encountered: