AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] My page disappear when a delete the first view

Open henri9813 opened this issue 1 year ago • 2 comments

Bug Description

When I create a grid, and then I create another view, I want to delete the first view which is the grid view.

But when I do this, the page disappear from the sidebar, but the view remains it visible in my current window.

How to Reproduce

  • Create a grid
  • Add another view
  • Delete grid view

Expected Behavior

The page remains present in the sidebar and the view is deleted.

Operating System

MacOS

AppFlowy Version(s)

0.6.8

Screenshots

https://github.com/user-attachments/assets/3fd4b072-b125-49b0-b24d-5d0e9f3955a4

Additional Context

No response

henri9813 avatar Sep 08 '24 21:09 henri9813

If the first view is deleted, the page will be deleted. This is by design as the page is associated with the first view. We'll need to improve the message to warn the user before deleting and handle the behavior of the deleted database page.

annieappflowy avatar Oct 02 '24 06:10 annieappflowy

Hello @annieappflowy ,

Why don't fallback to the other view instead of deleting the page ?

The page should be deleted if no view remaining no ?

henri9813 avatar Oct 03 '24 08:10 henri9813