gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf3d61711f3d61711mission 022 WIP: tickets on the layouts theme (dbe3de7): AppHeader/MainMenu/UserMenu/Sidebar/ContentFirst shell, styles reduced to the app's own, check-theme in the gates, 390 audit + real-Chrome walk scriptmref3d61711/theme/shell/main-menu.hl

2.1 KB

  1. // main-menu.hl — THE MAIN MENU: the app's top-level links, `Series | Shows | Movies` (docs/layouts/main-menu.md).
  2. // Write it twice from ONE list: in the header (shown from 60rem) and in the sidebar (shown on the phone, where the
  3. // header has no room). The link whose href is `current` (or a page below it) is marked: class `current` and
  4. // aria-current="page".
  5. //
  6. // static menu = [ { label = 'Series' href = '/series' } { label = 'Movies' href = '/movies' } ]
  7. // AppHeader { MainMenu { items = menu current = "/series" } }
  8. // Sidebar { desktop = "false" MainMenu { items = menu current = "/series" } }
  9. Hybrid items = []
  10. String current = ''
  11. String label = 'Main menu'
  12. Hybrid rows = build(items, current)
  13. // one row per link: the current one (the page itself or a page below it) is marked
  14. build(list, at) {
  15. out = []
  16. for (it of list) {
  17. let here = at == it.href || (it.href != '/' && at.startsWith(it.href + '/'))
  18. out.push({ label = it.label href = it.href cls = here ? 'current' : '' aria = here ? 'page' : 'false' })
  19. }
  20. return out
  21. }
  22. Style {
  23. 'main-menu' { display = 'block' }
  24. 'main-menu a' { display = 'flex' alignItems = 'center' minHeight = 'var(--layout-tap)' padding = '.55rem .75rem' fontWeight = '600' color = 'var(--color-text)' borderRadius = 'var(--radius-small)' }
  25. 'main-menu a:hover' { textDecoration = 'none' color = 'var(--color-text-strong)' background = 'var(--color-surface)' }
  26. 'main-menu a.current' { color = 'var(--color-accent)' }
  27. // in the header: only from 60rem, the links in a row
  28. 'application-header main-menu' { display = 'none' }
  29. // in the sidebar: only on the phone, the links stacked
  30. 'app-sidebar main-menu' { marginBottom = '1rem' }
  31. '@media (min-width: 60rem)' {
  32. 'application-header main-menu' { display = 'block' marginLeft = 'auto' }
  33. 'application-header main-menu nav' { display = 'flex' gap = '.15rem' }
  34. 'application-header main-menu a' { minHeight = '2.25rem' padding = '.45rem .7rem' }
  35. 'app-sidebar main-menu' { display = 'none' }
  36. }
  37. }
  38. View {
  39. mainMenu {
  40. nav { 'aria-label' = label
  41. for (r of rows) { a { href = r.href class = r.cls 'aria-current' = r.aria r.label } }
  42. }
  43. }
  44. }

Branches

Latest commits

  • f3d61711mission 022 WIP: tickets on the layouts theme (dbe3de7): AppHeader/MainMenu/UserMenu/Sidebar/ContentFirst shell, styles reduced to the app's own, check-theme in the gates, 390 audit + real-Chrome walk scriptmre
  • 31cabfccmission 021: E2E script, report, LOG, STATUSmre
  • 6aea8683editor look: .empty rule only for p.empty, files off where tickets has no upload, state note one line, events test scrolls the editor into view; synced md-editor (components d702d76+6f27ad3); gate 377/0, events 52/0mre
  • dce6ffa6Merge branch 'w28-deflake'mre
  • 536092a1tickets (mission 019): de-flake the m016 comment clicks (B: unliked) — calmClick waits until the button stops moving; test only, no app changemre
  • 9c5fd42amission 020: attachments E2E proof (lisbeth Chrome, real-data copy), reportmre
  • 1206404fREADME attachments, report 018, LOG/STATUSmre
  • 3d9e7f3ctests: m017 gate fixes (list count, waits before delete clicks); gate 373/0mre
  • dd41d5bcre-sync components 15be2ac; mission 018mre
  • 420ad1bbtickets (mission 017 WIP, tickets#27): comment attachments — lib/attachments.hl (storage/attachments, limits, type by content, members-only GET /api/attachments/:id, delete drops, edit keeps), multipart POST …/comments (lib/multipart.hl), Respond block in FilesUpload (blocks verbatim from components w27c 1f8d79d), gate m017 checks written (not yet run); report, LOG, STATUSmre
  • a7a1380dmission brief 017mre
  • f83d9c0dtickets (mission 016): report reports/016-comments-block.md, LOG, STATUS, README gate countmre
  • eef80f55tickets (mission 016): comments through the shared Comments block (layouts#2) — edit (author, earlier versions kept), delete (author, asks; leaves one line in the history), like (members, toggle) on the server (lib/comments.hl, append-only tables), faces + API …/comments/:comment/{edit,delete,like}, push commentChanged; every run of comments is a block in place in the history; Markdown fields on the Hybriel MdEditor (shared/md-editor.js retired: it took over the block's <md-editor>); blocks copied verbatim from components.hybriel 9db927d (tools/sync-components.sh); gates browser 351/0 (old 326/0), events 52/0 (old 52/0)mre
  • eb7aeeb9mission brief 016mre
  • e4c34759paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • 26efb23freport w6-events (events test)mre
  • c6bfab04mission 015: re-vendor Hybriel 0f396652 (static build), reportmre
  • b7ec5981mission brief 015mre
  • 5dc68731docker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
  • 8a460b16mission 014: Apollo's 'stream opened right after the start gets no live events' is not a tickets bug — events.mjs checks early streamsmre