ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Sort pages section based on changeStatus option

Open hdodov opened this issue 5 years ago • 3 comments

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

hdodov avatar Jul 30 '20 14:07 hdodov

  1. Listed
  2. Listed (locked status)

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

distantnative avatar Jul 30 '20 15:07 distantnative

@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?

hdodov avatar Jul 31 '20 04:07 hdodov

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.

distantnative avatar Jul 31 '20 06:07 distantnative