Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add sort capabilities to ChatFlow and AgentFlow tables #2609

Merged

Conversation

danieldabate
Copy link
Contributor

As requested by someone in Discord, this PR adds sorting capabilities to the ChatFlow and AgentFlow tables.

Description:

  • TableSortLabel used for the view applied to the header row
  • Allow the user to sort by Name and Last modified date, descending and ascending
  • Default behavior is sorted by Last modified date descending
  • When user changes the sort configuration, it is stored in local storage
  • Configuration for ChatFlow and AgentFlow is independent

Copy link
Contributor

@HenryHengZJ HenryHengZJ left a comment

Choose a reason for hiding this comment

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

looks good thanks @danieldabate !

@HenryHengZJ
Copy link
Contributor

One future thought, we can perhaps refractor the local storage to be 2 main objects: chatflowStyle and agentflowStyle.
And this will contains the configuration like order: desc, orderBy: updatedDate, displayStyle: list

@danieldabate
Copy link
Contributor Author

Sounds like a good idea! I'll make the changes whenever I have some free time.

@HenryHengZJ HenryHengZJ merged commit 76c5e6a into FlowiseAI:main Jun 12, 2024
2 checks passed
@danieldabate danieldabate deleted the feature/sort-chatflow-tables branch June 12, 2024 21:16
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