gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc98e2043c98e2043log: T36A rollbackmrec98e2043/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 '../project.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

  • c98e2043log: T36A rollbackmre
  • ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
  • 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
  • 55257852log: #53 live, #56 mergedmre
  • 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre
  • 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
  • 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre
  • 6da612fclog: T36A tool defectmre
  • d56ee0daT36A: report unsafe TMDB apply revalidation and stop before livemre
  • 08e55255log: HM56 done, T36A startedmre
  • 91bcdf0eAvoid per-row list copies and reproduce keyed-row blockersmre
  • 5fd2ac75status: #36 GOmre
  • 0d253b45mission: T36Amre
  • 2aa22d23log: #36 GOmre
  • 833aee2flog: #50 closed, HM56 startedmre
  • ac58c1e5mission: HM56mre
  • 58979c0clog: HM54 held for decision, DP65 startedmre
  • bb2ebc67log: #64 live, #53 mergedmre
  • 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
  • 2156cc7flog: HM54 reviewmre