gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit59095c5959095c59tests/mobile.mjs: the phone gate (390 px touch, tap targets, /franchises paging)mre59095c59/tests/seed-mobile.hl

1.9 KB

  1. // tests/seed-mobile.hl — GATE FIXTURE for the mobile audit (mission MK, tests/mobile.mjs): written into the gate's storage AFTER
  2. // tests/seed-show.hl (it uses its 'Pager Movie NN' titles), before the server starts.
  3. // franchise 'Mobile Franchise' with one timeline 'Mobile Timeline Alpha' (Pager Movie 01, 02, 03) → a movie page's widget with the franchise link
  4. // 100 timelines WITHOUT a franchise 'Mobile Collection 001' … '100' (one Pager Movie each) → /franchises: 40 per page = 3 pages
  5. // Self-assigned ids, one put() each (never update(), see seed-show.hl).
  6. import { MPackDB } from 'hl:mpackdb'
  7. import { env } from 'hl:proc'
  8. storageDir = env('TRACKER_STORAGE')
  9. if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }
  10. franchisesTable = new MPackDB(file = storageDir + '/franchises.db', primaryKey = '@id', indexes = ['!slug'])
  11. timelinesTable = new MPackDB(file = storageDir + '/timelines.db', primaryKey = '@id', indexes = ['!slug'])
  12. franchisesTable.put({ id = 'mb0000000000fr01' name = 'Mobile Franchise' slug = 'mobile-franchise' shortId = null summary = 'A franchise for the phone gate.' created = 1 })
  13. timelinesTable.put({ id = 'mb0000000000tl00' name = 'Mobile Timeline Alpha' slug = 'mobile-timeline-alpha' franchise = 'mb0000000000fr01'
  14. order = ['mv00000000000m01', 'mv00000000000m02', 'mv00000000000m03'] source = 'editor' tmdbCollection = null orderKind = 'in-universe' supersededBy = null created = 2 })
  15. let i = 1
  16. while (i <= 100) {
  17. let nn = i < 10 ? '00' + i : (i < 100 ? '0' + i : '' + i)
  18. let mv = 10 + (i % 20)
  19. timelinesTable.put({ id = 'mb0000000000t' + nn name = 'Mobile Collection ' + nn slug = 'mobile-collection-' + nn franchise = null
  20. order = ['mv00000000000m' + mv] source = 'tmdb' tmdbCollection = 7000 + i orderKind = null supersededBy = null created = 10 + i })
  21. i = i + 1
  22. }
  23. franchisesTable.persist()
  24. timelinesTable.persist()
  25. console.log('seed-mobile: 1 franchise + 1 timeline + 100 loose timelines')

Branches

Latest commits

  • 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
  • c87149e8tests/warmstart.mjs: the progressive start proven over HTTP (note in the window, 503 short id, after: everything); bootBeginmre
  • 593a6350boot: resumable start-up scan, the server listens first (T17)mre
  • be4890a0reports: H2 hydration audit (no test change needed)mre
  • 1f9c8bf4re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre