gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6aea86836aea8683editor 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/0mre6aea8683/reports/020-attachments-e2e.md

4.5 KB

  1. # Report — tickets mission 020 (tickets#27 final proof) — worker J3 — PASS, no app bug found; nothing changed in the app
  2. Branch w27 (app code 1206404 unchanged; components w27c 15be2ac unchanged). Only tests/ + docs added. Not deployed, pushed, merged.
  3. ## 1. Real data — old vs new byte-identical
  4. * Newest backup: /media/STORAGE/deploy-backups/tickets.worldapi.org/tickets.worldapi.org-20261020-1224.tgz → extracted twice (J3/old, J3/new, `storage/`);
  5. originals never opened. An az5b2 (users @id 0mufikk6hj1u) session file was written inside each copy by tests/e2e-start-app.sh. OLD = old-tickets (f83d9c0) on :8700,
  6. NEW = w27 (1206404) on :8701, each on its own copy (TICKETS_STORAGE / SESSIONS / ATTACHMENTS inside the copy).
  7. * **All 409 tickets**: GET /api/projects/<slug>/tickets/<n> signed in AND signed out → 818 responses, **818 byte-identical, 0 different** (max 36 events: antcolony#20,
  8. calendar.worldapi.org#3 (28), components.hybriel.worldapi.org#2 (27)). /api/tickets (524 295 bytes), /api/projects, /api/inbox also byte-identical.
  9. (Before any write; the E2E below then wrote comments to the NEW copy only.)
  10. ## 2. E2E in lisbeth's Chrome (CDP), ticket /antcolony/20 of the copy — tests/e2e-attachments.mjs
  11. * Tunnels (from loreana): `ssh -f -N -L 9223:127.0.0.1:9223 lisbeth` (9223 was not forwarded yet; an unrelated 9323 tunnel of someone else exists, untouched) and
  12. `ssh -f -N -R 8700:127.0.0.1:8700 -R 8701:127.0.0.1:8701 lisbeth` (Chrome on lisbeth opens http://127.0.0.1:8701/…). Session cookie hlsid set with Network.setCookie.
  13. Test files copied to lisbeth /tmp/j3-files (DOM.setFileInputFiles paths are on the browser's machine) and removed again.
  14. * ONE tab reused (an about:blank tab of the test Chrome, navigated; a page of someone else at 192.168.178.75:8100 left alone; the tab ends on about:blank).
  15. Slip: I called /json/new once by mistake (a stray about:blank tab) and closed that tab again right away.
  16. * Real mouse clicks (Input.dispatchMouseEvent), real typing (Input.insertText), real Ctrl+Enter, file chooser via setFileInputFiles; device metrics override 390×844 @2 mobile / 1280×900.
  17. * **OLD** (2/2): form measured: 390 → scrollWidth 390, editor font 16 px, only a "Comment" button 92×32 (no file control).
  18. * **NEW 17/17 pass** (both widths): 2 chosen pictures → 2 drawn thumbnails (390, 1280 px natural); paste → 3rd thumbnail "image.png" (160); ✕ removes one (2 left);
  19. 11 MB huge.bin → row "Too big — at most 10.0 MB", the 2 pictures stay; send (390: real click on Comment, 1280: Ctrl+Enter) → comment with 2 thumbnails drawn (96×96), form empty;
  20. tap on a thumbnail → full picture opens in a new tab `http://127.0.0.1:8701/api/attachments/<id>` (target _blank; I closed that tab).
  21. **390 measures**: scrollWidth 390 and no element beyond 390 (empty form, with picked + refused rows, after send); 15 tap targets (thumbnails 96×96, ✕ 44×44, Choose files 110×44,
  22. Comment 104×44) all ≥ 44 px; the visible editor font 16 px (≥ 16; the md-editor's hidden textarea is display:none, not an input the user sees).
  23. 1280: scrollWidth 1265 = the scrollbar, nothing beyond.
  24. * **Paste caveat**: CDP could not fill lisbeth's system clipboard (navigator.clipboard.write returned ok but the clipboard stayed the user's old text; a real Ctrl+V
  25. pasted that text). I therefore did NOT press a real Ctrl+V (it would paste private text into the form) and dispatched a `paste` ClipboardEvent carrying a PNG File on
  26. the focused editor — the real handler ran; the real keypress itself is the one unproved piece (tests/browser.mjs m017 does a real Ctrl+V in headless Chrome, green).
  27. * Screenshots (PNG, I cannot view them; sizes > 50 KB; measurements above count) in /media/STORAGE/claude-scratch/atlas/J3/shots/:
  28. old-390-form-before, old-1280-form-before (BEFORE, old code);
  29. new-390-form-before, new-390-form-3thumbs, new-390-form-refused, new-390-comment-sent, new-1280-form-before, new-1280-form-3thumbs, new-1280-form-refused, new-1280-comment-sent (AFTER).
  30. (My first two runs failed only in my own script — a wrong hidden-textarea check and the real Ctrl+V — each fixed in the script; they left 4 extra comments on the NEW copy.)
  31. ## 3. Bugs
  32. None in the app. Gates not rerun (no app code changed).
  33. ## Cleanup
  34. Servers (:8700, :8701) stopped (my pids), my two ssh tunnels killed, /tmp/j3-files removed, my tab on about:blank; `ss` shows nothing of mine listening.
  35. ## Files / commits
  36. tests/e2e-attachments.mjs, tests/e2e-start-app.sh, missions/020-attachments-e2e.md, this report; one commit on w27. Data copies + shots stay in J3/.

Branches

Latest commits

  • 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
  • c1161469mission 013: GitHub pipe tables on ticket pages (lib/markdown.hl + View + CSS) and re-vendor hybriel master a832f73bmre