feat(editor): header history, save line and Abandonner les modifications
Header Annuler/Retablir on every tab (aria-disabled, commit on pointerdown, refused blur commit skips the undo). Save line: unsaved count selector (savedDistance), saveLineState forms, server save time via readSaveTime (lastSave in the store, never the browser clock). Discard relabelled and names the stored copy. Tool column pair removed, glyphs in EditorGlyph. Rewritten or removed assertions (R-24): - editor-route.test: Revision 3 / unsaved text / Annuler les modifications -> save-line testid, Abandonner label, copy sentence in the dialog - editor-route-conflict, editor-route-recovery: Revision n and copy_cap/ copy_quota text queries -> save-line testid - editor-no-loss: discard button label - editor-annotations-tab: tool column undo/redo test -> no pair left (behaviour moved to editor-history-buttons.test) - e2e journey/annotations/recovery/structures/support saveDraft/lan: undo/redo and revision/unsaved text -> historyButton, saveLine helpers; structures toHaveCount(0) on old text -> exact Revision n line - editor-shell clickability: header Annuler/Retablir added
This commit is contained in:
1 parent
ab51ea764d
commit
99b669bf8f
29 files changed
+1397
-248
No files matched your search
@@ -55,3 +55,18 @@ Reused: `editor.annotations.list` (« Annotations de la vue », card title and l
|
||||
| `editor.references.no_match` | Aucune référence ne correspond. | No reference matches. | Panel, search or filter without result | proposal |
|
||||
| `editor.references.cited_one` / `_other` | citée {count} fois | cited {count} time / times | Each reference card | board text |
|
||||
| `editor.findings.references_open_one` / `_other` | {count} référence / {count} références | {count} reference / references | Finding detail, Citations block, opens the panel filtered | plan wording |
|
||||
|
||||
## Lot E (header history, save line, Abandonner)
|
||||
|
||||
| Key | FR | EN | Where | Status |
|
||||
|---|---|---|---|---|
|
||||
| `editor.history.undo` / `undo_title` | Annuler / Annuler la dernière modification | Undo / Undo the last change | Header button (visible label from 640 px; name and title) | T15 |
|
||||
| `editor.history.redo` / `redo_title` | Rétablir / Rétablir la dernière modification annulée | Redo / Redo the last undone change | Header button | proposal |
|
||||
| `editor.draft.discard` (relabelled) | Abandonner les modifications | Discard changes | Header button, dialog title; `discard_confirm` unchanged | C11 amended |
|
||||
| `editor.draft.discard_copy` | La copie locale temporaire de ces modifications sera aussi supprimée. | The temporary local copy of these changes will be deleted too. | Discard confirmation, when a copy is stored | precision 9 |
|
||||
| `editor.draft.status.unsaved` (reworded) | Modifications non enregistrées | Unsaved changes | Save line when the count is out of reach; status region | plan wording |
|
||||
| `editor.draft.status.unsaved_count_one` / `_other` | {count} modification non enregistrée / {count} modifications non enregistrées | {count} unsaved change / changes | Save line | plan wording |
|
||||
| `editor.draft.status.saved_at` | Enregistré à {time} · révision {revision} | Saved at {time} · revision {revision} | Save line, server time known | plan wording |
|
||||
| `editor.draft.status.saved` | Enregistré · révision {revision} | Saved · revision {revision} | Save line, server time unknown or unreadable | owner wording |
|
||||
|
||||
Removed keys: `editor.annotations.undo`, `editor.annotations.redo` (the tool column's pair moved to the header).
|
||||
Reference in new issue
Block a user