Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

feature: Sorting & finding by username (ID) admin interface

Open owenduncansnobel opened this issue 2 years ago • 3 comments

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

owenduncansnobel avatar Feb 21 '23 03:02 owenduncansnobel

: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

github-actions[bot] avatar Feb 21 '23 15:02 github-actions[bot]

: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

github-actions[bot] avatar Feb 21 '23 16:02 github-actions[bot]

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();
}

notmd avatar Feb 21 '23 16:02 notmd