gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbc3bdecebc3bdecerecords: day38b live, #94 purgedmrebc3bdece/missions/017-image-attachments.md

1.9 KB

  1. # tickets mission 017 — tickets#27: image (and file) attachments in ticket comments + API
  2. Ticket: https://tickets.worldapi.org/tickets.worldapi.org/27 (read it). MOBILE FIRST (standing rule): 390 px, touch, targets ≥ 44 px, then desktop.
  3. Use the shared FilesUpload pick mode (components.hybriel 13389d6, components/files-upload/, README: mode="pick", files, onChange, maxSize,
  4. accept; host sends with its own face) — copied BYTE-VERBATIM into tickets with a SOURCE commit, like the Comments block (mission 016).
  5. The comment form is the Comments block's form (components/comments/ in components.hybriel): if the block needs a slot/prop to carry
  6. attachments (form area + attachment list in each comment: thumbnails that open full size, file rows), extend the block IN components.hybriel
  7. (second worktree, branch w27c; its gate green, demo updated) and copy that verbatim too. Keep both blocks generic (no tickets data in them).
  8. Server: attachments stored in the app's own storage (under storage/ so deploy backups include them), a size limit per file and per comment,
  9. image types checked by content (not only the name), served with the right Content-Type, only to who may read the ticket. Edit/delete of a
  10. comment (mission 016) keep or drop its attachments consistently. API: POST a comment with attachments (multipart or JSON base64 — decide,
  11. document in README with a curl example a conductor can use for screenshots); GET returns the attachment list with URLs. Existing clients unchanged.
  12. Gates: browser.mjs + events.mjs old vs new; new checks with REAL input: choose 2 images + paste 1 (Ctrl+V) into the comment, send, thumbnails
  13. appear for a second user, open full size, a too-big file refused, a non-member cannot fetch an attachment URL, API post with a PNG via curl/fetch,
  14. 390 px checks. Real data: copy of the newest backup (az5b2), old tickets unchanged. Screenshots 390 + 1280.
  15. Report: reports/017-image-attachments.md (+ the curl example; + what changed for API users).

Branches

Latest commits

  • bc3bdecerecords: day38b live, #94 purgedmre
  • f6c5aa0dMerge main (records)mre
  • e23d42acconnect gate: wait for hydration before clicking Disconnectmre
  • a5d45d00records: D38 cause, GOmre
  • 19eeb938records: D38 gates, two day38b failuresmre
  • f8e42a85Re-vendor tickets to Hybriel set day38b (1e554d7)mre
  • 51645016Merge purge-94 (#94, identity rule)mre
  • 94d6ca2arecords: D38 startedmre
  • 9df09aacmission 029: day38b re-vendor + deploymre
  • d2834f65records: #94 backup planmre
  • 4467d8cbrecords: #94 purge readymre
  • aa2d124eREADME: the #94 purge gatemre
  • e843ff7cOne-time purge of miserit-anthar#94 (#94, identity rule): idempotent step in lib/migrate.hl, fixture gate tests/purge94.mjsmre
  • 506a4efdmission 028: #94, identity rulemre
  • 78c7f48eRefine mpackdb holdmre
  • 3d7d89c8Record mpackdb hold until day38mre
  • f1bf7195#51 done; my subscription idmre
  • 9870b945status: #51 proof greenmre
  • e92173c6log: #51 live push proofmre
  • 72d87041log: Hermes push livemre