gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit03bbfba303bbfba3Log: AP56c causemre03bbfba3/components/movies.hl

1.8 KB

  1. // components/movies.hl — `/movies`, `/movies/page/:page` (tracker.worldapi.org#13): EVERY movie, newest release first
  2. // (catalog.hl, built once at start), 24 per page, poster + title (+ year), each a link to its show page. The creator: "there
  3. // you can paginate through all sorted by release date desc poster/title only".
  4. // THE PAGE IN THE ADDRESS is a path segment, not `?page=N`: a page component cannot read the query string (hybriel#11,
  5. // its query half still open) and the browser's Back drops the query (hl:web client.hl `popstate` → `show(location.pathname)`).
  6. // The grid and the pagination: components/tilelist.hl (shared with /series and /shows). The heading is the type word in its
  7. // colour (tracker.worldapi.org#20).
  8. parent './main.hl'
  9. import TileList from './tilelist.hl'
  10. import { appTitle } from '../lib/app.hl'
  11. import { moviesPage, catalogCounts } from '../lib/catalog.hl'
  12. import { warmReady, warmText } from '../lib/warm.hl'
  13. page = null
  14. listing = moviesPage(&page)
  15. tiles = listing.tiles
  16. pageNo = listing.page
  17. pageCount = listing.pages
  18. countText = catalogCounts().movies + ' movies, newest first · page ' + pageNo + ' of ' + pageCount
  19. basePath = '/movies'
  20. __title = pageNo > 1 ? 'Movies, page ' + pageNo + ' — ' + appTitle : 'Movies — ' + appTitle
  21. // mission T17 (boot time): the server listens while bootscan.hl still builds the lists / slug maps / search index (lib/warm.hl); until the 'catalog'
  22. // stage is there this page says so instead of showing half a map
  23. warming = !warmReady('catalog')
  24. warmNote = warming ? warmText() : ''
  25. View {
  26. listPage { id = "movies-list"
  27. if (warming) { p { id = "warming" class = "message banner" warmNote } }
  28. h1 { class = "typed" typeWord { class = "type-word type-movie" "Movies" } }
  29. p { class = "muted list-count" countText }
  30. TileList { tiles = tiles page = pageNo pages = pageCount basePath = basePath }
  31. }
  32. }

Branches

Latest commits

  • 03bbfba3Log: AP56c causemre
  • 24845fe3Log: AP56b result, AP56cmre
  • 6a6d71eaLog: gitoria membershipmre
  • 8b842dc8Log + CONDUCTOR: gitoria PR switch-onmre
  • 6bb7c20estatus: window 2026-11-09mre
  • 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
  • e84586a7Mission AP56bmre
  • 15917f03Record PR workflow rule (gitoria#50)mre
  • 942ac995status: paused workers statemre
  • 44b934e5log: respawn cleanupmre
  • 03a80097Log: Anton GC A/Bmre
  • c7cdef62Log: Apollo STOP, workers pausedmre
  • d0c083fbLog: usage stopmre
  • c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
  • 1eb6f1a1Missions AP56, BS1mre
  • 4871f8adLog: AP52 live on day52, browser gate greenmre
  • d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
  • c4a60ef2Log: RT52 retest passed, AP52 startedmre
  • 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre
  • 6e951d91AP52: show-page rows are keyed records; closing a season is one upsert and removes (tracker#56, hybriel#331)mre