gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit24e401b824e401b8Tracker: TR7 watch cleanmre24e401b8/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

  • 24e401b8Tracker: TR7 watch cleanmre
  • b0412957Tracker: RV28b handed overmre
  • 456940c8Tracker: RULINGS pathmre
  • b87a8fdcTracker: worldapi-conductor paths backmre
  • 641f3b54Tracker: Apollo answermre
  • 8b3cbddaTracker: status, TR7 fix livemre
  • ec30162aTracker: TR7 fix livemre
  • 54cbec80compose: ignore SIGPIPE (TR7 crash loop, exit 141)mre
  • 3e164b63Tracker: status after CL1mre
  • 9d686bb3Tracker: CL1 reviewedmre
  • b8bba562CL1: crash loop report (SIGPIPE confirmed, trap wrapper option)mre
  • 298785f2Tracker: CL1 startedmre
  • 36b22710Tracker: port slot, CL1 briefmre
  • a401190fTracker: GO for the crash loopmre
  • e195d372Tracker: token pathsmre
  • 7f541d11Tracker conductor: CONDUCTOR.md, short STATUS.md, old status + decisions archive to archive/2026-10-31mre
  • 8dd423f7README: login.js stays by caramboleyo's explicit rulemre
  • d8df1493tracker: standby service on port 45018 and a gap-free hand-over in deploy.sh step 4mre
  • 36dd1686ident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
  • ff9b838etracker: the Ended status pill uses the same red as layouts (pill danger); gate updatedmre