Skip to content

Conversation

yoshiokatsuneo
Copy link
Contributor

@yoshiokatsuneo yoshiokatsuneo commented Feb 26, 2025

What type of PR is this?

  • Feature

Description

Before this PR, favorite dashboards and queries are ordered by "created_at".
So, older dashboards/queries is always at the bottom of the list that is difficult to reach out.

This PR changes the sorting order by "starred at" (the time when user favorited). If the user want to put specific dashboard on the top of the list, the user can do it by just re-favorite it.

How is this tested?

  • Manually

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

image image

@yoshiokatsuneo yoshiokatsuneo force-pushed the feat/favorites_order_by_starred_at branch 2 times, most recently from 9e612e6 to 0ed92e3 Compare February 26, 2025 17:52
@yoshiokatsuneo yoshiokatsuneo marked this pull request as ready for review February 26, 2025 17:53
@yoshiokatsuneo yoshiokatsuneo force-pushed the feat/favorites_order_by_starred_at branch 4 times, most recently from da4775e to ed90a19 Compare March 3, 2025 05:23
@yoshiokatsuneo yoshiokatsuneo force-pushed the feat/favorites_order_by_starred_at branch from ea3df2f to 1dee9b6 Compare September 6, 2025 17:49
@yoshiokatsuneo
Copy link
Contributor Author

@eradman

Can you review it if possible ?

I feel ordering Favorite queries/dashboards by "created_at" does not make much sense as it is not related to how much user favor it.
This PR solve the issue by ordering by the time user starred so that users can change the order of Favorites.

Copy link
Collaborator

@eradman eradman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds a new "Starred At" column when viewing Favorites. The sorting does not change without refreshing the view so it's not obvious that unchecking and checking the star will change the ordering. The new default sorting is useful, so +1

@yoshiokatsuneo
Copy link
Contributor Author

@eradman

Thank you for the comment !

It is right that the feature is not so intuitive.
But, at the same time, I'm also not sure whether it is good idea to reordering items just after checking, because "checking item" normally does not move around items. And, this is the same behavior as Confluence does.
(And, probably, it is not so good idea to remove item just after checking star in this use case.)

The better solution is to make favorite list sortable, but it will require a bit more change...
I don't have strong opinion about what is the better solution for now.

Do you have any idea ?...

@eradman
Copy link
Collaborator

eradman commented Sep 15, 2025

Ordering favorites by name would be easy to understand, but is also odd because that's not similar to what All Queries/All Dashboards does.

Perhaps it would be an improvement to show "Starred At" instead of "Created At" since queries already have two timestamp fields

@yoshiokatsuneo yoshiokatsuneo merged commit b8ebf49 into getredash:master Sep 16, 2025
11 checks passed
@yoshiokatsuneo
Copy link
Contributor Author

yoshiokatsuneo commented Sep 16, 2025

@eradman

Thank you for your comment !
Actually, I remember that DataSource list is ordered by name.

For now, I merge the PR, as I think it is better than now.
As there are some options, I think we can make it better later referring the feedbacks.

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

Successfully merging this pull request may close these issues.

2 participants