gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit5965963a5965963adeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre5965963a/components/people.hl

1.3 KB

  1. // components/people.hl — `/people`, `/people/page/<n>` (tracker#37, mission 032: the main menu's People). Creator: "/people just
  2. // lists persons by last one updated with poster name and pagination": everyone, the one updated last first, photo + name tiles
  3. // (the name in the person colour), 24 per page, each a link to the person's page (components/person.hl). The list: lib/people.hl
  4. // peoplePage (a view built once at boot — no scan per load). The grid and the pagination: components/tilelist.hl, like /movies.
  5. parent './main.hl'
  6. import TileList from './tilelist.hl'
  7. import { appTitle } from '../project.hl'
  8. import { peoplePage, peopleCount } from '../lib/people.hl'
  9. page = null
  10. listing = peoplePage(page)
  11. tiles = listing.tiles
  12. pageNo = listing.page
  13. pageCount = listing.pages
  14. total = peopleCount()
  15. countText = total + (total == 1 ? ' person' : ' people') + ', last updated first · page ' + pageNo + ' of ' + pageCount
  16. basePath = '/people'
  17. __title = pageNo > 1 ? 'People, page ' + pageNo + ' — ' + appTitle : 'People — ' + appTitle
  18. View {
  19. listPage { id = "people-list"
  20. h1 { class = "typed" typeWord { class = "type-word type-person" "People" } }
  21. p { class = "muted list-count" countText }
  22. TileList { tiles = tiles page = pageNo pages = pageCount basePath = basePath tileClass = "tile person-tile" }
  23. }
  24. }

Branches

Latest commits

  • 5965963adeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • 9b3828aemission 046a: report, LOGmre
  • 4b37356emission 046: franchise seed supersedeCollections reads the curated timelines once (10 s one-tick block at the end of boot)mre
  • ac6268e3mission 046a: re-vendor Hybriel 528bc89f (integration 6): plugins mpackdb/time/web (bin/ git-ignored)mre
  • 322b3293mission 046: photoQueue guard for non-row fetch results (damaged persons index)mre
  • e5b99aecmission 046: photoQueue in slices (people.hl photoQueueStart/Step, jobs.hl photoTick), tests/photoqueue.hlmre
  • 31dcf2admission 045: report, LOGmre
  • 9c3971d0tests/persons-skip-count.hlmre
  • 4d72e365mission 045mre
  • b9cae4c9slices: skip and count non-row values from range(); merge persons pass falls back to iterate; guard testmre
  • 3db7dc31merge w44-jobs-slices into w43-trkmemmre
  • 593dab6fmission 043: report, LOGmre
  • 1a5a4818boot scans back to iterate (slices measured slower: titles 114 s, episodes 141 s, persons failed); lambda per rowmre
  • 03d29893boot scans read primary-key slices (lib/slices.hl from mission 044): iterate is eager too; people view log line back; allShows/allEpisodes stay for toolsmre
  • 23375c58mission 044: report, LOG, STATUSmre
  • c6fd928emission 044: 4096 slices for tables over 200 K rows, 15 ms budget, TRACKER_SLICE_DEPTH for testsmre
  • fb057680mission 044: jobs.hl imports mergeLeft (gate found it), mission file, slices benchmre
  • 0d6293ebmission 043: mission filemre
  • d25bd14amission 044: sliced merge prepare + sliced collections prepare; jobs-dump old/new check + bulk fixturemre
  • 633ee210mission 044: sliced table scans (slices.hl, pk-range slices) for the adult/kind/status/art/credits/details-repair queuesmre