flarum-ext-search/js
Bart van Bragt c5643bed31 fix: default search sort to latest and keep dropdown label in sync
- Search with no explicit sort now defaults to latest (updated_at desc)
  on both backend and frontend, matching the forum UX expectation.
- "All discussions" link from the search box routes to /?q=...&sort=latest
  so the sort dropdown shows "Latest" immediately after submission.
- extendDiscussionState injects sort=-lastPostedAt into API params when
  no sort is present, keeping direct-URL navigation (?q=anan) consistent
  with the backend default.
- Backend guard changed from phpSortField===null to empty($sorts), which
  is the correct sentinel since $sorts is the authoritative ES sort list.
2026-04-15 17:21:10 +02:00
..
dist fix: default search sort to latest and keep dropdown label in sync 2026-04-15 17:21:10 +02:00
src fix: default search sort to latest and keep dropdown label in sync 2026-04-15 17:21:10 +02:00
admin.ts wip 2021-10-27 08:02:07 +02:00
forum.ts chore: migrate FE fully to TS 2021-10-13 20:16:14 +01:00
package-lock.json chore: fix prettier formatting and npm audit vulnerabilities 2026-04-10 11:47:38 +02:00
package.json fix: incorrect JS package name 2022-11-21 15:32:22 +00:00
tsconfig.json chore: add JS boilerplate code from Flarum CLI 2021-10-13 19:28:14 +01:00
webpack.config.js wip 2021-10-12 23:15:47 +02:00