[GH-ISSUE #1678] [FR] Make behavior of deleting currently-viewed page consistent #644

Open
opened 2026-03-23 20:39:10 +00:00 by mirror · 9 comments
Owner

Originally created by @richardshiue on GitHub (Jan 7, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1678

Originally assigned to: @mak2002 on GitHub.

Description

When the currently-viewed page is deleted, there are two possible behaviors. For documents, a banner appears at the top of the page indicating that the document has been moved to the trash. For database-related views, (i.e. table-view and kanban board), the current page closes and replaced by last previously opened page. It would be better if we chose one and roll with it for all views.

Impact

All users

Additional Context

No response

Originally created by @richardshiue on GitHub (Jan 7, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1678 Originally assigned to: @mak2002 on GitHub. ### Description When the currently-viewed page is deleted, there are two possible behaviors. For documents, a banner appears at the top of the page indicating that the document has been moved to the trash. For database-related views, (i.e. table-view and kanban board), the current page closes and replaced by last previously opened page. It would be better if we chose one and roll with it for all views. ### Impact All users ### Additional Context _No response_
Author
Owner

@annieappflowy commented on GitHub (Jan 8, 2023):

v0.1 will integrate database views into the editor so let's check the consistency once it's released

<!-- gh-comment-id:1374705483 --> @annieappflowy commented on GitHub (Jan 8, 2023): v0.1 will integrate database views into the editor so let's check the consistency once it's released
Author
Owner

@bijaykumarpun commented on GitHub (Mar 20, 2023):

@annieappflowy The behaviour is inconsistent even in v1.0.0.

Btw what's the expected behaviour here? Do we expect the same dialog like in the Document to appear for Grid and Board as well?

Recording

https://user-images.githubusercontent.com/13991373/226326205-565ab6b3-ae10-4e05-a998-90993e1b054e.mov


Thanks!

<!-- gh-comment-id:1476059122 --> @bijaykumarpun commented on GitHub (Mar 20, 2023): @annieappflowy The behaviour is inconsistent even in v1.0.0. Btw what's the expected behaviour here? Do we expect the same dialog like in the `Document` to appear for `Grid` and `Board` as well? > Recording https://user-images.githubusercontent.com/13991373/226326205-565ab6b3-ae10-4e05-a998-90993e1b054e.mov <br> Thanks!
Author
Owner

@annieappflowy commented on GitHub (Mar 20, 2023):

Expected behavior: After deleting a document, the current page closes and is replaced by last previously opened page

<!-- gh-comment-id:1476106391 --> @annieappflowy commented on GitHub (Mar 20, 2023): Expected behavior: After deleting a document, the current page closes and is replaced by last previously opened page
Author
Owner

@bijaykumarpun commented on GitHub (Mar 20, 2023):

@annieappflowy Does this behaviour apply to all page types ? Or for Grid and Board only (?), since Document already has the dialog implemented.

<!-- gh-comment-id:1476139988 --> @bijaykumarpun commented on GitHub (Mar 20, 2023): @annieappflowy Does this behaviour apply to all page types ? Or for `Grid` and `Board` only (?), since `Document` already has the dialog implemented.
Author
Owner

@annieappflowy commented on GitHub (Jul 11, 2023):

Sorry for missing your comment. Would you like to continue to work on it?
Expected:
after the deletion, a banner shows up at the top for a few seconds then the deleted page should be replaced by last previously opened page. This applies to all types (Grid, Board, and Document)

<!-- gh-comment-id:1630821163 --> @annieappflowy commented on GitHub (Jul 11, 2023): Sorry for missing your comment. Would you like to continue to work on it? Expected: after the deletion, a banner shows up at the top for a few seconds then the deleted page should be replaced by last previously opened page. This applies to all types (Grid, Board, and Document)
Author
Owner

@mak2002 commented on GitHub (Dec 9, 2023):

Hey there, I would love to fix this issue!

<!-- gh-comment-id:1848357071 --> @mak2002 commented on GitHub (Dec 9, 2023): Hey there, I would love to fix this issue!
Author
Owner

@annieappflowy commented on GitHub (Dec 16, 2023):

Hi @mak2002 , thanks for the help! You can ask @richardshiue or @Xazin for help

<!-- gh-comment-id:1858701613 --> @annieappflowy commented on GitHub (Dec 16, 2023): Hi @mak2002 , thanks for the help! You can ask @richardshiue or @Xazin for help
Author
Owner

@mak2002 commented on GitHub (Dec 24, 2023):

Hey there @Xazin , I am a new contributor in AppFlowy 😄

As of now after we delete a document, it loads the last document instead of previously opened page. We are emitting an event for this here: deletion event. I'm curious if we store the ID of the previously opened page somewhere in our code. Could you provide some pointers on how to address this issue?

Thank you!

<!-- gh-comment-id:1868554596 --> @mak2002 commented on GitHub (Dec 24, 2023): Hey there @Xazin , I am a new contributor in AppFlowy 😄 As of now after we delete a document, it loads the last document instead of previously opened page. We are emitting an event for this here: [deletion event](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/appflowy_flutter/lib/plugins/document/application/doc_bloc.dart#L99-L103). I'm curious if we store the ID of the previously opened page somewhere in our code. Could you provide some pointers on how to address this issue? Thank you!
Author
Owner

@rileyhawk1417 commented on GitHub (Jan 23, 2025):

As of 0.8.1 when deleting a grid/kanban the delete banner does not show, it only shows up in the document. Instead the pages are still visible but the user is just moved to the trash section.

https://github.com/user-attachments/assets/b0b1277a-2e2d-474b-9657-d27d91d105b0

<!-- gh-comment-id:2609429790 --> @rileyhawk1417 commented on GitHub (Jan 23, 2025): As of 0.8.1 when deleting a grid/kanban the delete banner does not show, it only shows up in the document. Instead the pages are still visible but the user is just moved to the trash section. https://github.com/user-attachments/assets/b0b1277a-2e2d-474b-9657-d27d91d105b0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#644
No description provided.