gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit8d3b0f208d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre8d3b0f20/tests/seed-pager.hl

2.8 KB

  1. // tests/seed-pager.hl — GATE FIXTURE for tracker.worldapi.org#38 (mission 033, tests/pager.mjs): every paginated list with 11
  2. // pages of 24, so the pagination shows "…" and its list changes length from click to click (what tracker#38 needed to show):
  3. // 250 movies 'Pg Movie 001'…'250' (released 1801…2050, genre Pagerg) → /movies, /genres/Pagerg (newest first: 250 … 001)
  4. // 250 series 'Pg Series 001'…'250' (kind series, released 1801…2050) → /series (newest first)
  5. // 250 shows 'Pg Show 001'…'250' (kind show, genre Talk, 1801…2050) → /shows (newest first)
  6. // 250 people 'Pgperson 001'…'250' (updatedAt 1001…1250) → /people (last updated first: 250 … 001)
  7. // Written into the gate's own empty storage before the server starts; self-assigned ids, one put() each.
  8. import { MPackDB } from 'hl:mpackdb'
  9. import { env } from 'hl:proc'
  10. storageDir = env('TRACKER_STORAGE')
  11. if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }
  12. genresTable = new MPackDB(file = storageDir + '/genres.db', primaryKey = '@id', indexes = ['!oldId'])
  13. personsTable = new MPackDB(file = storageDir + '/persons.db', primaryKey = '@id', indexes = ['!oldId'])
  14. showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])
  15. genreId = 'pg00000000000gp1'
  16. talkId = 'pg00000000000gt1'
  17. genresTable.put({ id = genreId name = 'Pagerg' urlSegment = 'Pagerg' tmdbId = 99001 oldId = 'pg-pagerg' })
  18. genresTable.put({ id = talkId name = 'Talk' urlSegment = 'Talk' tmdbId = 10767 oldId = 'pg-talk' })
  19. title = (id, name, type, kind, year, slug, genres) => {
  20. showsTable.put({
  21. adult = false id = id title = name summary = null tmdbSummary = null tmdbId = null kind = kind
  22. language = 'en' type = type release = year + '-01-01' year = year image = null urlSegment = slug
  23. episodesCount = null homepage = null imdbId = null seasonsCount = null status = null tagline = null
  24. tvdbId = null tvmzId = null genres = genres cast = [] seasons = [] oldId = id
  25. })
  26. return true
  27. }
  28. let i = 1
  29. while (i <= 250) {
  30. let nnn = i < 10 ? '00' + i : (i < 100 ? '0' + i : '' + i)
  31. let y = 1800 + i
  32. title('pgm00000000' + nnn, 'Pg Movie ' + nnn, 'movie', null, y, 'pg-movie-' + nnn, [genreId])
  33. title('pgs00000000' + nnn, 'Pg Series ' + nnn, 'series', 'series', y, 'pg-series-' + nnn, [])
  34. title('pgt00000000' + nnn, 'Pg Show ' + nnn, 'series', 'show', y, 'pg-show-' + nnn, [talkId])
  35. personsTable.put({ id = 'pgp00000000' + nnn name = 'Pgperson ' + nnn urlSegment = 'Pgperson-' + nnn updatedAt = 1000 + i tmdbId = null shows = [] oldId = 'pgp' + nnn })
  36. i = i + 1
  37. }
  38. genresTable.persist()
  39. showsTable.persist()
  40. personsTable.persist()
  41. console.log('seed-pager: 250 movies, 250 series, 250 shows, 250 people')

Branches

Latest commits

  • 8d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre
  • 1d98dcfdbrowser gate: the badges' size check reads the padding box (the 44 px tap area is transparent border)mre
  • 2f9e29ffreports/MK-mobile.md, deploy.sh GATES: tests/mobile.mjs, theme check markermre
  • 7cfc8ab5a season of more than 150 episodes starts closed on its title page; the phone gate checks itmre
  • 59095c59tests/mobile.mjs: the phone gate (390 px touch, tap targets, /franchises paging)mre
  • 105309detap targets: every row link, the TMDB/IMDb badges, the widget links, the franchise names and the login-failed link are 44 px high on a phonemre
  • f0b86c8efranchises: 40 loose timelines per page (/franchises/page/N) and a merge sort for the names (1,546 timelines: 20 s and 54,000 px before)mre
  • b9e841a7Merge branch 'sy-sync'mre
  • d1ae2701sync components.hybriel 4922f9c: modal and pagination 44 px targets (vendored copies, verbatim) (SY)mre
  • 043624b2theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
  • 05d89fd0deploy: security gate (tests/security.mjs)mre
  • 2ae8a47bMerge branch 'sk-sec'mre
  • 8fee5d52sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 944ad51eSK: report reports/SK-sec.md, LOGsk
  • 415487c1SK: import budget per user + id type check, gate checkssk
  • 7b8a4f74security audit SK: nosniff + image sandbox headers, face id checks, adult follow, login budget + new session at login, guest-link budget, tests/security.mjssk
  • f0f26c5areports: T18 section (gates, boot-gate, 3x3 table, search + short-id compare)mre
  • 2a8682a1deploy.sh GATES: tests/warmstart.mjsmre
  • 3761338breports/T17-boot.md: handoff (phase table, fix, numbers so far, open proof)mre
  • 52e09eb2boot: sync window 1000 ms (the gates ask for a complete start), README boot-time sectionmre