#338 A much better timeline browser: in-place search and sort, no reloads, better cards
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#338
- issue
- state:closed
**Priority: high.** Browsing and searching is the primary thing visitors do here, and today it works against them: pressing **Search** or changing **Sort by** submits the form and loads a whole new page, which lands at the top instead of the section you were in (Explore timelines is below Your timelines, Your favorites and Browser drafts), so you lose your place on every search, sort, tag or page change. The whole system needs a major upgrade, not polish. Requirements on top of the list below: - **No redirect or full page load** when searching, sorting, filtering by tag or changing page: results update in place (client-side fetch), and the address is updated with `history.replaceState`/`pushState` so results stay linkable and Back works. - **You stay where you were**: the scroll position and focus stay on the list you're using; nothing jumps to the top. Where a link must load a page (no JavaScript), it carries a fragment (`#explore`, `#mine`, …) so the browser returns to that section. - **Interactive controls**: Sort by, tag and filters apply as soon as they change; search as you type (debounced) with an explicit Search button still working; a visible loading state that doesn't move the layout. Upgrade the dashboard's and profiles' timeline lists (`components/timeline-list.jsx`, `timeline-search.jsx`, `browser-drafts.jsx`) so browsing timelines is more pleasant: - Cards with a clearer hierarchy: title, owner, description excerpt, tags, star count, size (moments, span of time) and when it was last changed; a small preview of the timeline's shape (its span and density) where it's cheap. - A grid on wide screens and a single column on phones; a list/grid toggle remembered per visitor. - Search as you type (debounced) without a full page load, keeping the address in sync so results stay linkable; tag chips that filter on click; sort and filter controls that apply immediately. - Hover and focus states, keyboard navigation through results, skeletons while loading, and friendly empty states. - Accessibility: proper landmarks, labels and focus order; works without JavaScript as today (server-rendered pages and links stay the fallback). Builds on the searchable lists issue and the timeline image issue (the image shows on the card). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/issues/338
Related
- #360 Index moments and durations individually: entity sitemaps and structured data (#335)
- #361 Every timeline list on the dashboard and profiles searches, sorts and pages (#337)
- #362 A timeline's own image: settings, cards, previews and oEmbed (#339)
- #363 The timeline browser searches in place, with better cards (#338)
- #459 Search every timeline, moment and duration from Explore
- Merge pull request #363 from openchronology/feature/338-timeline-browser
- The timeline browser searches in place, with better cards