Diff overlay: margin cards, popover and transactional accept
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- frontend
Direzione di ricerca
Start in src/lib/segment-diff.ts, where applySegment is the fallback to keep, and read how the diff marks from the linked issue are drawn in the editor. Build the card and popover UI, then wire "take theirs" and "keep mine" as ProseMirror transactions on the mapped range. Done when one undo restores the prior text, the caret holds when an earlier change is applied, and next/previous shortcuts cycle and wrap in both layouts. This depends on the marks issue being finished first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Follow-up to the diff marks issue. Once marks are drawn on the live editor, each change needs actions that do not leave the text.
Scope
- Margin cards at 960px and wider, anchored to the decoration through CSS
anchor-name; a popover below that width. The popover must bemanualso typing does not dismiss it, with a close button andEsc. - "Take theirs" and "keep mine" apply through a ProseMirror transaction on the range, not
setContent, so undo history and the caret survive. KeepapplySegmentinsrc/lib/segment-diff.tsas the fallback when a range cannot be mapped. - Keyboard: a shortcut jumps to the next or previous mark and opens its card.
Acceptance criteria
- Accepting a change keeps the undo stack: one undo restores the previous text.
- The caret does not jump when a change is applied above it.
- Next and previous mark shortcuts cycle through all marks and wrap.
- Works with both the card layout (wide) and the popover (narrow).
Depends on the diff marks issue. Estimate: about 4 hours.
- Lingua principale
- HTML
- Stelle
- 0
- Fork
- 0
- Merge medio
- 1m
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mrgnw/cfcms
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
sipeed/NanoKVM-Go#36 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
paperclipai/paperclip#21503 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] List: the reorder hint's Move up stays enabled on the first row, and Move down on the lastAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
-
.Needs Triage .Team/Graphy Priority:P3 Type:Bug
Difficoltà 2/5 1-2 giorni Idoneità per principianti 65/100
metabase/metabase#87126 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NangoHQ/nango#8304 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno