gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitcd3641a1cd3641a1|||PR records: day72 deploy live, tickets closedmrecd3641a1/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

  • 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
  • 6dea1c60Merge branch 'r35-day72' into mainTickets
  • 7bcfdc22|||PR drop worker edits to conductor recordsmre
  • 2617b6ee|||PR dialogs: host flag cleared on close, dialog gate (tickets#40)mre
  • 6e701371|||PR record partial day72 dialog validationmre
  • b9fb9a91|||PR bind ticket dialog visibility to member flagsmre
  • 0788e65f|||PR re-vendor Hybriel day72mre
  • e2a6bdcfMerge branch 'records-t35' into mainTickets
  • d8d54df1|||PR records: R35 day72 + #40mre
  • 8a7f475aMerge branch 'records-t33' into mainTickets