fix(ui): tag counts, j/k nav, stream layout, search alignment

- Tag rail counts now reflect cards-only when in cards view
  (ListTags accepts cardsOnly filter, JS passes it per view)
- j/k navigation scoped to visible (intent/search filtered) list
- scrollSelectedIntoView works in both stream and cards view
- Entity items wrap title/desc/preview in .entity-content flex
  container so tags/pills align right consistently
- Title no longer eaten by description/body (flex-shrink + min-width)
- Search bar centered in header with margin auto
- switchView awaits loadEntities+loadTags to fix stale intent counts
This commit is contained in:
2026-05-16 17:51:04 -04:00
parent ab07f631a7
commit 8bfa9b15ed
5 changed files with 92 additions and 18 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ type TagResponse struct {
func listTags(store *db.Store) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
tags, err := store.ListTags()
cardsOnly := r.URL.Query().Get("cards_only") == "true"
tags, err := store.ListTags(cardsOnly)
if err != nil {
writeInternalError(w, err)
return