gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit81f10e4e81f10e4eident 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)mre81f10e4e/missions/016-comments-block.md

2.0 KB

  1. # tickets mission 016 — the ticket page's comments use the Comments block (layouts#2, "first used by tickets")
  2. Ticket: https://tickets.worldapi.org/layouts.worldapi.org/2 — "In tickets: the history stays as it is; only the comments in it use this component."
  3. Block: components.hybriel.worldapi.org 9db927d, components/comments/ (README: data in, the four functions onPost/onEdit/onDelete/onLike, rights checked
  4. again on the server). Copy comments/ + md-editor/ (readonly, mission 006 or later) BYTE-VERBATIM like layouts does (tools/sync-components.sh is
  5. the model; a SOURCE file with the commit). Live demo: https://components.hybriel.worldapi.org/comments, https://layouts.worldapi.org/components/comments.
  6. 1. Server (lib/tickets.hl, one topic per file per code-order): comments get edit (author only; earlier versions kept = history, "edited"),
  7. delete (author only; asks first in the block; decide and write down whether a deleted comment leaves a "comment deleted" line in the history —
  8. the history must stay readable), like (one per user, toggle; count + liked). The JSON API + the events stream (lib/events.hl) must stay
  9. compatible: existing clients and the gate's exchange checks unchanged; new event kinds only if needed, documented in README + antcolony
  10. tickets-for-sessions doc is NOT yours (tell Atlas what changed for API users).
  11. 2. Page (components/ticket.hl): in the history, the comment entries render through the block (in place, in order, between state changes etc.);
  12. the "write a comment" form = the block's form. Everything else of the history unchanged. Signed out / non-member: read only (user '').
  13. 3. Gates: tests/browser.mjs + events.mjs old vs new numbers; new checks with real clicks/keys: post (Ctrl+Enter), edit (history folds out),
  14. delete (asks), like toggle, other user's comment has no Edit/Delete, a non-member cannot (server refuses too — test the face directly).
  15. Real data: copy of the newest backup (az5b2 session), the creator's real tickets with long histories render; old vs new pages compared.
  16. Report: reports/016-comments-block.md (+ what API users must know).

Branches

Latest commits

  • 81f10e4eident 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
  • f51029abMerge branch 'sy-sync'mre
  • eae6e8c7sync components.hybriel 4922f9c: comments like / Edit / Delete / 'edited' are 44 px targets; gate: 'edited' hit-area padding, thread targets check (SY)mre
  • 0de4750btheme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
  • 4eeb7bfeST2 report wordingmre
  • 2558f56cst2-sec: keep the hlsid session cookie name (no one is signed out), Secure flag only; gate: a cookie issued by main stays signed in; ident stub serves selector.js; security.mjs in deploy GATESmre
  • ea2e440esecurity audit (ST): JSON body cap, relation rights, login session rotation, __Host- Secure cookie, API security headers, CSP+referrer meta, /connect cap, one-line subjects, tests/security.mjs, reportmre
  • 7c8c2282sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • b6277497report MT-mobile, LOGmre
  • 6709398blist paging: the newest rows come first (the sorted array was not used); filter rows hide their scrollbar; gate checks the ordermre
  • 31736a80gate: member-name check fails on the old row layout toomre
  • e03ae537gate: the phone checks run on without the Show more button (so old code reports every failed check)mre
  • adf7f132gate: 390 px checks for the mobile audit fixes (row number, filters, field widths, Edit, member names, relation taps, paging)mre
  • 28e9c938ticket list: draw the newest 50 rows and a Show more button (500 rows were a 2-4 s first paint, 740 KB, a 90 000 px phone page)mre
  • ccebb0c7mobile: ticket number stays on one line, filter chips one scrolling row, fields full width under their caption, Edit/action buttons, member names whole, 44 px relation linksmre
  • f2dc7741gate: the phone toolbar is two even rows (E2)mre
  • 20f7c33async components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre
  • d74a5482sync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
  • 9d02c540sync components.hybriel 6b0936a: the 'edited' foldable drops the theme's border and marginmre
  • 22751914sync components.hybriel 8d79ff7: bubble hugs its content, quiet 'edited' label; gate checksmre