Update CollectionSuggestions and GroupSuggestions to default to collapsed state; enhance GenresPanel with pagination and sorting improvements
ci / build-backend (push) Failing after 33s
ci / build-frontend (push) Successful in 1m3s
ci / tests (push) Skipped
ci / sonar (push) Skipped

Modified CollectionSuggestions and GroupSuggestions components to start in a collapsed state for better UI experience. Enhanced GenresPanel by implementing pagination and updating sorting functionality to ensure a more manageable display of genre data, improving overall usability.
This commit is contained in:
Leonid Pershin
2026-07-27 12:16:42 +03:00
parent ef3328ec6f
commit 986cf02b0d
3 changed files with 33 additions and 7 deletions
@@ -23,7 +23,9 @@ export function GroupSuggestions() {
const { t } = useTranslation()
const queryClient = useQueryClient()
const onError = useApiError()
const [collapsed, setCollapsed] = useState(false)
// Свёрнуто по умолчанию: предложения — подсказка, а не главное на экране, и развёрнутый
// список из десятка строк отодвигал бы сам справочник за нижний край.
const [collapsed, setCollapsed] = useState(true)
const [showExisting, setShowExisting] = useState(false)
const { data, isLoading } = useQuery({