Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Sort pages section based on changeStatus option #588

Open
hdodov opened this issue Jul 30, 2020 · 3 comments
Open

Sort pages section based on changeStatus option #588

hdodov opened this issue Jul 30, 2020 · 3 comments

Comments

@hdodov
Copy link

hdodov commented Jul 30, 2020

Currently, pages with a locked status (like error) are sorted alphabetically with other pages of the same status:

image

This is a bit confusing in terms of UI - the error page has a different behavior (signaled by the icon), yet it's in the middle of other unlisted pages. I think pages with changeStatus set to false should be ordered after ones that have it set to true. Like this:

  1. Listed
  2. Listed (locked status)
  3. Unlisted
  4. Unlisted (locked status)
  5. Draft
  6. Draft (locked status)

image

@distantnative
Copy link
Member

  1. Listed
  2. Listed (locked status)

Listed ones are sorted, ordered. It would be very irritating for me if this order is torn apart.

@hdodov
Copy link
Author

hdodov commented Jul 31, 2020

@distantnative hm, you're right. Well, then I guess it makes sense just for unlisted pages and drafts. I don't know what's the use case for a locked draft status, though... But only listed pages can be sorted, so it makes sense to only leave them out?

@distantnative
Copy link
Member

The use case for a disabled status switch on drafts is that you might not want all users to be able to publish drafts for example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants