Open-Assistant
Open-Assistant copied to clipboard
feature: Sorting & finding by username (ID) admin interface
Feature changes for https://github.com/LAION-AI/Open-Assistant/issues/1615
- Auto-focuses on filter tab
- Able to sort / filter by username (ID)
https://user-images.githubusercontent.com/43126781/220240282-5ed28ca1-1514-4008-addd-96ea6b8a443d.mov
:x: pre-commit failed.
Please run pre-commit run --all-files
locally and commit the changes.
Find more information in the repository's CONTRIBUTING.md
:x: pre-commit failed.
Please run pre-commit run --all-files
locally and commit the changes.
Find more information in the repository's CONTRIBUTING.md
Ah you need to update the handleFilterValuesChange
, some thing like might work (please test it)
const handleFilterValuesChange = (values: FilterItem[]) => {
const last = values.pop()
if (last) {
setFilterValues([last])
}
resetCursor();
}