tracker
All repositories: gitoria
2.8 KB
// tests/seed-pager.hl — GATE FIXTURE for tracker.worldapi.org#38 (mission 033, tests/pager.mjs): every paginated list with 11// pages of 24, so the pagination shows "…" and its list changes length from click to click (what tracker#38 needed to show):// 250 movies 'Pg Movie 001'…'250' (released 1801…2050, genre Pagerg) → /movies, /genres/Pagerg (newest first: 250 … 001)// 250 series 'Pg Series 001'…'250' (kind series, released 1801…2050) → /series (newest first)// 250 shows 'Pg Show 001'…'250' (kind show, genre Talk, 1801…2050) → /shows (newest first)// 250 people 'Pgperson 001'…'250' (updatedAt 1001…1250) → /people (last updated first: 250 … 001)// Written into the gate's own empty storage before the server starts; self-assigned ids, one put() each.import { MPackDB } from 'hl:mpackdb'import { env } from 'hl:proc'storageDir = env('TRACKER_STORAGE')if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }genresTable = new MPackDB(file = storageDir + '/genres.db', primaryKey = '@id', indexes = ['!oldId'])personsTable = new MPackDB(file = storageDir + '/persons.db', primaryKey = '@id', indexes = ['!oldId'])showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])genreId = 'pg00000000000gp1'talkId = 'pg00000000000gt1'genresTable.put({ id = genreId name = 'Pagerg' urlSegment = 'Pagerg' tmdbId = 99001 oldId = 'pg-pagerg' })genresTable.put({ id = talkId name = 'Talk' urlSegment = 'Talk' tmdbId = 10767 oldId = 'pg-talk' })title = (id, name, type, kind, year, slug, genres) => {showsTable.put({adult = false id = id title = name summary = null tmdbSummary = null tmdbId = null kind = kindlanguage = 'en' type = type release = year + '-01-01' year = year image = null urlSegment = slugepisodesCount = null homepage = null imdbId = null seasonsCount = null status = null tagline = nulltvdbId = null tvmzId = null genres = genres cast = [] seasons = [] oldId = id})return true}let i = 1while (i <= 250) {let nnn = i < 10 ? '00' + i : (i < 100 ? '0' + i : '' + i)let y = 1800 + ititle('pgm00000000' + nnn, 'Pg Movie ' + nnn, 'movie', null, y, 'pg-movie-' + nnn, [genreId])title('pgs00000000' + nnn, 'Pg Series ' + nnn, 'series', 'series', y, 'pg-series-' + nnn, [])title('pgt00000000' + nnn, 'Pg Show ' + nnn, 'series', 'show', y, 'pg-show-' + nnn, [talkId])personsTable.put({ id = 'pgp00000000' + nnn name = 'Pgperson ' + nnn urlSegment = 'Pgperson-' + nnn updatedAt = 1000 + i tmdbId = null shows = [] oldId = 'pgp' + nnn })i = i + 1}genresTable.persist()showsTable.persist()personsTable.persist()console.log('seed-pager: 250 movies, 250 series, 250 shows, 250 people')
Branches
Latest commits
- 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
- 40d9719eTP2: LOG line and report for the tracker pillsmre
- ab3f2ba5tracker: status, genres, TMDB/IMDb/TVDB/TVmaze links and list kinds use the theme's pill; dense season list with the season check centred on its title line; gates for bothmre
- 521061d6tracker header on phones: signed in, the brand fits whole at 360 and 390 px (tighter gaps and side paddings, slightly smaller brand, narrow screens and signed in only); mobile gate checks itmre
- 18114a53tracker: franchises gate waits for the signed-out selector instead of the removed Log in buttonmre
- 08561d73ident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
- 59ef1e4atests/browser: repair 'done' check counts the 404 titles the first run already finished (race: failed=1 when Bulk Film 79 ran before the restart)mre
- 5925fc4dreports/MK-mobile.md: rebase update, gate countsmre
- 6adbc7f0extlink badges: background-clip after the background shorthand (it reset the clip: the pills were 44 px tall); gates check the lookmre
- 8d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre