gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit31cabfcc31cabfccmission 021: E2E script, report, LOG, STATUSmre31cabfcc/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

  • 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
  • 6309ca81mission brief 014mre