mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #1678] [FR] Make behavior of deleting currently-viewed page consistent #644
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#644
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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
@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
Documentto appear forGridandBoardas well?https://user-images.githubusercontent.com/13991373/226326205-565ab6b3-ae10-4e05-a998-90993e1b054e.mov
Thanks!
@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
@bijaykumarpun commented on GitHub (Mar 20, 2023):
@annieappflowy Does this behaviour apply to all page types ? Or for
GridandBoardonly (?), sinceDocumentalready has the dialog implemented.@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)
@mak2002 commented on GitHub (Dec 9, 2023):
Hey there, I would love to fix this issue!
@annieappflowy commented on GitHub (Dec 16, 2023):
Hi @mak2002 , thanks for the help! You can ask @richardshiue or @Xazin for help
@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!
@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