gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit8d3b0f208d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre8d3b0f20/tests/realdata-m035-radii.mjs

2.0 KB

  1. // tests/realdata-m035-radii.mjs — mission 035, NOT the gate: every element's computed corner radii on 8 pages at 390/1280 against a server
  2. // from tests/realdata-m028.sh (port 8731, its copy's sid in W/copy35/sid) must be 0, 5px, 10px or 50%; prints the offenders per page.
  3. import { readFileSync } from 'node:fs';
  4. import { launchBrowser } from '/media/STORAGE/projects/WorldAPI/tracker.worldapi.org/tests/cdp.mjs';
  5. process.env.HL_CHROME ||= '/opt/google/chrome/chrome';
  6. const REAL = 'http://127.0.0.1:' + (process.env.REAL_PORT || 8731);
  7. const W = '/media/STORAGE/projects/WorldAPI/tracker.worldapi.org/.scratch/w089';
  8. const b = await launchBrowser({ debugPortRange: [Number(process.env.REAL_CHROME || 8729), Number(process.env.REAL_CHROME || 8729)] });
  9. try {
  10. const p = await b.newPage();
  11. await p.send('Network.setCookie', { name: 'trackersid', value: readFileSync(`${W}/copy35/sid`, 'utf8').trim(), url: REAL });
  12. for (const w of [390, 1280]) {
  13. await p.send('Emulation.setDeviceMetricsOverride', { width: w, height: 900, deviceScaleFactor: 1, mobile: w === 390 });
  14. for (const path of ['/', '/series/Star-Trek-Picard', '/movies/Star-Trek-First-Contact', '/people', '/franchises', '/search/star%20trek', '/my/series', '/genres']) {
  15. await p.goto(REAL + path, { timeout: 120000 });
  16. await p.waitFor('!!window.__hl && window.__hl.socket && window.__hl.socket.readyState === 1', { timeout: 120000 });
  17. const r = JSON.parse(await p.evaluate(`JSON.stringify((() => { const seen = {}; for (const el of document.querySelectorAll('*')) { const s = getComputedStyle(el);
  18. for (const c of ['borderTopLeftRadius','borderTopRightRadius','borderBottomLeftRadius','borderBottomRightRadius']) { const v = s[c]; if (!['0px','5px','10px','50%'].includes(v)) { const k = el.tagName.toLowerCase() + (el.className && typeof el.className === 'string' ? '.' + el.className.split(' ')[0] : '') + ' ' + v; seen[k] = (seen[k] || 0) + 1; } } } return seen; })())`));
  19. console.log(w, path, Object.keys(r).length ? JSON.stringify(r) : 'all radii in {0, 5px, 10px, 50%}');
  20. }
  21. }
  22. } finally { await b.close(); }

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