mirror of
https://github.com/langgenius/dify.git
synced 2026-02-24 18:05:11 +00:00
Replace hand-written URL parse/serialize logic in useDocumentListQueryState with nuqs useQueryStates, reducing boilerplate and fixing the keyword double-encoding bug. The detail page now reads search params via useSearchParams() instead of window.location.search, and interactive elements use semantic <button> with Tailwind icon classes. - Replace parseParams/updateSearchParams with nuqs createParser parsers - Stabilise updateQuery callback deps (setQuery only, no query/router) - Add parseAsKeyword with backward-compat decodeURIComponent for legacy double-encoded URLs - Replace RiArrowLeftLine/RiLayoutLeft2Line with Tailwind CSS icon spans - Use data-testid selectors in detail tests instead of fragile DOM walks - Rewrite query state tests to use NuqsTestingAdapter