tickets
All repositories: gitoria
2.0 KB
# tickets mission 016 — the ticket page's comments use the Comments block (layouts#2, "first used by tickets")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."Block: components.hybriel.worldapi.org 9db927d, components/comments/ (README: data in, the four functions onPost/onEdit/onDelete/onLike, rights checkedagain on the server). Copy comments/ + md-editor/ (readonly, mission 006 or later) BYTE-VERBATIM like layouts does (tools/sync-components.sh isthe model; a SOURCE file with the commit). Live demo: https://components.hybriel.worldapi.org/comments, https://layouts.worldapi.org/components/comments.1. Server (lib/tickets.hl, one topic per file per code-order): comments get edit (author only; earlier versions kept = history, "edited"),delete (author only; asks first in the block; decide and write down whether a deleted comment leaves a "comment deleted" line in the history —the history must stay readable), like (one per user, toggle; count + liked). The JSON API + the events stream (lib/events.hl) must staycompatible: existing clients and the gate's exchange checks unchanged; new event kinds only if needed, documented in README + antcolonytickets-for-sessions doc is NOT yours (tell Atlas what changed for API users).2. Page (components/ticket.hl): in the history, the comment entries render through the block (in place, in order, between state changes etc.);the "write a comment" form = the block's form. Everything else of the history unchanged. Signed out / non-member: read only (user '').3. Gates: tests/browser.mjs + events.mjs old vs new numbers; new checks with real clicks/keys: post (Ctrl+Enter), edit (history folds out),delete (asks), like toggle, other user's comment has no Edit/Delete, a non-member cannot (server refuses too — test the face directly).Real data: copy of the newest backup (az5b2 session), the creator's real tickets with long histories render; old vs new pages compared.Report: reports/016-comments-block.md (+ what API users must know).
Branches
Latest commits
- 5d144817Merge branch 'records-t40' into mainTickets
- 44ee6f06|||PR records: #43 #45 livemre
- b8fdeee9Merge branch 'p39-routes' into mainTickets
- a0187a0a|||PR Remove redundant route-order loopmre
- 369e4b9cMerge branch 'k40-lists' into mainTickets
- 9af8e780|||PR Use keyed list mutations for live ticket updatesmre
- 610d8e8aMerge branch 'records-t39' into mainTickets
- 32bcdf24|||PR records: GO P39 K40mre
- 4123c6d1Merge branch 'records-t38' into mainTickets
- cd3641a1|||PR records: day72 deploy live, tickets closedmre
- 7d44d852Merge branch 'records-t37' into mainTickets
- 926f7061|||PR records: merges, D36 deploymre
- bf58534eMerge branch 'l33-final' into mainTickets
- 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
- 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
- 5822cb3aMerge branch 'o34-clean' into mainTickets
- 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
- 14cf96b4Merge branch 'records-t36' into mainTickets
- 07749fa1|||PR records: day72 + #40 mergedmre
- ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre