tickets
All repositories: gitoria
3.0 KB
# Mission 009 (old 024) — Markdown editor component (ticket tickets.worldapi.org#12)One-shot worker. The architect verifies your report and deploys; you do NOT deploy or touch Byrodin.## Read first1. Ticket #12 and the accepted concept (question ticket #14, confirmed by the creator):`GET https://tickets.worldapi.org/api/projects/tickets.worldapi.org/tickets/12` and `/14` (send a `user-agent`).Accepted: a **framework-independent web component `<md-editor>`** (shadow DOM, restylable via `--md-*` variables),usable in Hybriel apps and anywhere else; **exactly the Markdown subset tickets renders**, the stored value staysplain Markdown; its **own small project** vendored into apps (like `plugins/`); a **toolbar** for the basics (also onphones) and keyboard shortcuts on desktop. "Consider reusability also in other projects."2. `loreana:/media/STORAGE/projects/tickets.worldapi.org/` `CONCEPT.md`, `README.md`, `STATUS.md`, `markdown.hl`(the renderer — the subset), the ident selector as the model of a shadow-DOM component (`ident.worldapi.org/selector.js`).3. `/CONTAINERS/projects/antcolony/README.md` — conventions, lessons ("Build what was described").## Hybriel (standard block)Read `/CONTAINERS/projects/antcolony/docs/hybriel-for-app-workers.md` first (keep both webex LOCAL PATCHES). Report newHybriel findings under "Hybriel issues"; do not edit that guide.## Scope1. New project folder `loreana:/media/STORAGE/projects/worldapi-components/` with `md-editor.js` (plain JS, no buildstep), README (how to embed, attributes/events, restyling), its own browser test page + test.2. Editing is visual (formatted while typing), the value in/out is plain Markdown of exactly tickets' subset; round-tripMarkdown → editor → Markdown is lossless for that subset. Paste of rich text is reduced to the subset. Safe: no rawHTML reaches the DOM.3. Replace every Markdown-capable text field in tickets (new ticket summary, edit summary, comment, state note) with it,vendored into tickets (keep the forms working with and without JS as today, or say why not).4. Phone (390px) and desktop.## Rules- Develop tickets changes in `.scratch/dev-m024`, copy back when green. **Ports 8800–8849 only.** Own ident instance.- No git. No `.env`. Don't touch Byrodin. Don't POST to live tickets. Only kill your own PIDs. Clean up Chromes. Scratchonly in the apps' / project's `.scratch/` on Loreana.- If any action is refused by the permission system, don't retry; report it.- Tickets gate stays green; add editor checks (typing, toolbar, round-trip, paste, XSS). Screenshots 390/1280.- Update READMEs/STATUS. Do NOT edit `CONCEPT.md`. Questions go into the report — the architect files them.- **If the described design is impossible, stop and say why instead of delivering something else.**## Report (final answer, this structure)```## Done## Verified (each: command run + observed output)## Not verified / open## Hybriel issues (repro, observed, expected)## Questions for the creator## Running (URL, PID, log path)```
Branches
Latest commits
- f04afc43tickets: MdEditor from components 59704ce (a file manager copy still attaches, pipe rows, tickets#49)mre
- 06599fa0tickets: MdEditor from components b0f1ec2 (a clipboard with text always pastes the text, tickets#49); real Ctrl+V gatemre
- 2e1b116ftickets: re-vendor Hybriel master acaceaf3 (framework ec8d6c1d): plugins/web patch queue while a page is built, anonymous session cookies refresh; gate waits for the comment editors to draw (W174) and clicks the form editor when it stands still; security gate: main's code runs on its own binary, lazy-session cookie checksmre
- 361bc0fetickets: re-vendor Hybriel 7a684920 (WIP, not deployed); on Error exits 1 at startup; migrate passes its log by reference; gate checks follow lazy sessions and the 413 refusalmre
- 8a69999cident#28: /login/callback never signs out the session it finds; a valid code puts the user on the same sessionmre
- 337e9b21tickets#37: a comment's files are open to everyone who can read the commentmre
- 1800600ftickets: write the standby service out in full so the boot gate can read the main servicemre
- 8179d287tickets: standby service on its port plus 10 and a deploy that hands over through it without a gapmre
- 0398145ctickets: the table grid rule is marked functional for check-thememre
- 40fddc20tickets takes components e54f83a: tables get thin grey lines from the theme, desktop toolbar stays one row with the Table button, F4 check counts 11 buttonsmre
- c1b77d61tickets#35: text typed before the editor is built is taken in once by the build (the input handler no longer writes it to the field first, which doubled the first letters); the gate failure shows the surfacemre
- 32bf1873tickets#35: the gate types right after the load with the CPU slowed, no waitingmre
- 64ea9ca2tickets#35: text typed into the reply editor before the page has finished starting is kept; the gate types right after loadmre
- ccd3a327tickets: the security gate expects frame-src to be exactly the ident address (the sign-in frame), still no wildcard or selfmre
- 4348dbabident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
- 66ef3005Merge branch 'iw-ident-widget'mre
- bc0ad663tickets: a gap between your name and Log out in the phone header (they touched); gate checks itmre
- 2f818d46UX2: report, LOG line, e2e fixes, gate pause after loadmre
- af3ef7c4gate: the legacy state line says progressmre
- 62480a00tickets#33: a state change with a note is a comment card in the feed (same framework rendering, can be liked, edited, deleted), its state line stands alone; gate checks for a new comment with and without a state change, at once and after a reloadmre