feat(editor): four tabs, Annotations sections, references from the header
U1 Lot B1. Four tabs (Général, Annotations, Constats, Vérification); views,
categories and regions become full-width Annotations sections opened from the
overview panel; references move to a header-toggled panel (minimal, Lot D
completes it); « Aller à » goes through EditorTarget and the navigation hook.
EditorWorkspace owns the navigation; DraftHeader split in HeaderActions and
SaveLine; EditorTabs split in TabList and MoreTabs.
R-24, assertions removed or rewritten (file: old -> new):
unit
- editor-route.test: seven tab names -> four; « Plus » at 800 px with
Références clicked -> no « Plus »; below 640 px five others -> Général,
Constats, and Constats opens the findings tab; + references panel cases
- editor-route-recovery.test: tab Références + editor-tab-references label ->
header button + editor-references-panel labelled by its heading
- editor-mode.test: small tier `more` of five -> [general, findings]
- editor-focus-request.test: {key,serial} -> {target,serial}; ReferencesTab and
VertebraeTab -> ReferencesPanel and RegionsSection; issueTarget tab/key ->
target place/section/key (vertebrae tab -> annotations/regions); consumed
context (serial) -> (serial, outcome); annotation case adds heading focus
- editor-verification.test: onGoTo('annotations', key) -> navigate(targetOfKey
(key), opener); props onSelectTab/onGoTo -> navigate
- editor-annotations-tab.test: props onSelectTab -> navigate + section props;
no_category text « (onglet Général) » -> « (Annotations, section
Catégories) »
- editor-tabs-general.test: categories cases render GeneralTab ->
CategoriesSection(doc); + Général holds no categories editor
- editor-tabs-lists.test: tab imports -> panel and section; read-only
references « no button » -> only « Fermer les références »
- editor-tabs-views, editor-drawing-upload, editor-repair.test: ViewsTab ->
ViewsSection import, assertions kept; editor-findings.test: navigate prop
e2e
- support/editor selectTab: exact name -> pattern (error badge in the name);
+ place, openSection, showDrawing, backToDrawing, openReferences, TABS
- support/warm-up: seven tabs -> four + sections + references panel
- editor-access: seven-tab axe loops -> four tabs + three sections + panel
(edit and read-only); narrow widths add panel overflow and axe
- editor-drawings: tab Vues -> openSection views; tab Annotations ->
showDrawing
- editor-structures: tab Général (categories) -> openSection categories, axe
label « general tab » -> « categories section »; tab Références ->
openReferences/closeReferences; tab Vertèbres -> openSection regions; tab
Annotations -> showDrawing
- editor-geometry: three tab Vues -> openSection views
- editor-equine: tab Général (categories add) -> openSection categories; five
tabs loop -> two tabs + sections + panel; tab Annotations -> showDrawing
- editor-journey: tab Vues, tab Général (category), tab Annotations ->
openSection views/categories, showDrawing; frozen axe scrolls to the header
- lan/trial-lan (not run): tab Vues -> Annotations tab + views entry
Verified: typecheck, lint, vitest 107 files / 1125 tests, whole shell suite on
the sandbox 151 passed, 49 skipped, 0 failed.
This commit is contained in:
1 parent
95b1b7e461
commit
bc2dba7c14
56 files changed
+2419
-699
No files matched your search
+32
-9
@@ -1184,7 +1184,7 @@ export const en: Dict = {
|
||||
'admin.overview.open_draft': 'Open the draft',
|
||||
'admin.overview.view_draft': 'View the draft',
|
||||
'admin.failure.round.open': 'A review is already under way on this draft: it cannot be submitted again.',
|
||||
'admin.failure.view.asset.unknown': "A drawing of the draft is not registered for this sheet: choose it again in the Views and drawings tab.",
|
||||
'admin.failure.view.asset.unknown': "A drawing of the draft is not registered for this sheet: choose it again in Annotations, Views section.",
|
||||
'admin.failure.draft.frozen': 'A review is under way on this draft: it can no longer be edited.',
|
||||
'admin.failure.draft.not_a_draft': 'This version is no longer a draft.',
|
||||
'admin.failure.sheet.inactive': 'This sheet is archived: its draft can no longer be edited.',
|
||||
@@ -1192,13 +1192,37 @@ export const en: Dict = {
|
||||
'admin.failure.sheet.historical_read_only': 'The historical sheet cannot be edited: create a working copy.',
|
||||
'editor.tab.list': 'Draft sections',
|
||||
'editor.tab.general': 'General',
|
||||
'editor.tab.views': 'Views and drawings',
|
||||
'editor.tab.annotations': 'Annotations',
|
||||
'editor.tab.findings': 'Findings',
|
||||
'editor.tab.references': 'References',
|
||||
'editor.tab.vertebrae': 'Vertebrae',
|
||||
'editor.tab.verification': 'Verification',
|
||||
'editor.tab.more': 'More',
|
||||
'editor.tab.errors_one': '{count} error',
|
||||
'editor.tab.errors_other': '{count} errors',
|
||||
'editor.place.drawing': 'Drawing',
|
||||
'editor.place.views': 'Views',
|
||||
'editor.place.categories': 'Categories',
|
||||
'editor.place.regions': 'Vertebral regions',
|
||||
'editor.place.references': 'References',
|
||||
'editor.section.back': 'Back to the drawing',
|
||||
'editor.live.creation_kept': "A creation is in progress: finish or abandon it to reach this annotation.",
|
||||
'editor.live.tracing_kept': "A tracing is in progress: finish or cancel it to reach this annotation.",
|
||||
'editor.live.references_closed': 'References closed',
|
||||
'editor.overview.label': 'Sheet overview',
|
||||
'editor.overview.views': 'Views',
|
||||
'editor.overview.view_main': 'Main view',
|
||||
'editor.overview.view_detail': 'Detail view',
|
||||
'editor.overview.annotations_one': '{count} annotation',
|
||||
'editor.overview.annotations_other': '{count} annotations',
|
||||
'editor.overview.manage_views': 'Manage views',
|
||||
'editor.overview.see_views': 'See the views',
|
||||
'editor.overview.categories': 'Categories',
|
||||
'editor.overview.categories_empty': 'No category yet.',
|
||||
'editor.overview.edit_categories': 'Edit categories',
|
||||
'editor.overview.see_categories': 'See the categories',
|
||||
'editor.overview.regions_one': 'Vertebral regions ({count} region)',
|
||||
'editor.overview.regions_other': 'Vertebral regions ({count} regions)',
|
||||
'editor.references.open': 'References',
|
||||
'editor.references.close': 'Close the references',
|
||||
'editor.draft.loading': 'Loading the draft…',
|
||||
'editor.draft.none': 'This sheet has no draft.',
|
||||
'editor.draft.overview_link': 'View the sheet',
|
||||
@@ -1386,7 +1410,7 @@ export const en: Dict = {
|
||||
'editor.views.new_hint': 'Fill in the crop for a cropped view; leave it empty for a view that will have its own drawing (chosen once the view is added).',
|
||||
'editor.views.add': 'Add the view',
|
||||
'editor.views.required': 'Fill in the French and English names of the view.',
|
||||
'editor.views.frame.newly_invalid': 'This frame change would put the geometry of these elements in error: {names}. Move them first (Annotations tab).',
|
||||
'editor.views.frame.newly_invalid': 'This frame change would put the geometry of these elements in error: {names}. Move them first (Annotations, drawing).',
|
||||
'editor.views.frame.view_unmeasured': 'This change would make a view that holds annotations unmeasurable: {names}.',
|
||||
'editor.views.frame.kept': 'The drawing stays uploaded; the view keeps its previous drawing.',
|
||||
'editor.views.frame.newly_invalid_repairable': 'These elements fall outside the new frame: {names}. Choose the drawing again to repair them as you attach it.',
|
||||
@@ -1476,13 +1500,13 @@ export const en: Dict = {
|
||||
'editor.annotations.tool_hint.zone': 'Tool: zone · click to place the vertices; Enter or « Close the tracing » finishes, Esc cancels.',
|
||||
'editor.annotations.tool_hint.link': 'Tool: link to a detail view · trace the outline that opens the view; Enter finishes, Esc cancels.',
|
||||
'editor.annotations.views': 'Views',
|
||||
'editor.annotations.unmeasured.hint': 'This drawing cannot be measured: add or fix its illustration (tab Views and drawings) before placing or moving elements.',
|
||||
'editor.annotations.unmeasured.hint': 'This drawing cannot be measured: add or fix its illustration (Annotations, Views section) before placing or moving elements.',
|
||||
'editor.annotations.outside': 'Click inside the drawing.',
|
||||
'editor.annotations.correction': 'The point does not fit where you clicked. Corrected position proposed: x = {x}, y = {y}.',
|
||||
'editor.annotations.correction_use': 'Use this position',
|
||||
'editor.annotations.correction_cancel': 'Cancel',
|
||||
'editor.annotations.no_category': 'Create an annotation category first (tab General).',
|
||||
'editor.annotations.no_child_view': 'No detail view opens from this view: create one in the Views and drawings tab.',
|
||||
'editor.annotations.no_category': 'Create an annotation category first (Annotations, Categories section).',
|
||||
'editor.annotations.no_child_view': 'No detail view opens from this view: create one in Annotations, Views section.',
|
||||
'editor.annotations.add.point': 'Add a point',
|
||||
'editor.annotations.add.zone': 'Add a zone',
|
||||
'editor.annotations.add.detail_trigger': 'Add a link',
|
||||
@@ -1518,7 +1542,6 @@ export const en: Dict = {
|
||||
'editor.annotations.list': 'Annotations of the view',
|
||||
'editor.annotations.list_empty': 'No annotation in this view.',
|
||||
'editor.annotations.selection': 'Selection: {kind} « {name} »',
|
||||
'editor.annotations.select_hint': 'Select an annotation on the drawing or in the list to see its properties.',
|
||||
'editor.annotations.properties': 'Annotation properties',
|
||||
'editor.annotations.tracing_one': '{count} vertex placed.',
|
||||
'editor.annotations.tracing_other': '{count} vertices placed.',
|
||||
|
||||
+32
-9
@@ -1215,7 +1215,7 @@ export const fr: Dict = {
|
||||
'admin.overview.open_draft': 'Ouvrir le brouillon',
|
||||
'admin.overview.view_draft': 'Consulter le brouillon',
|
||||
'admin.failure.round.open': "Une revue est déjà en cours sur ce brouillon : il ne peut pas être soumis de nouveau.",
|
||||
'admin.failure.view.asset.unknown': "Une illustration du brouillon n'est pas enregistrée pour cette fiche : choisissez-la de nouveau dans l'onglet Vues et illustrations.",
|
||||
'admin.failure.view.asset.unknown': "Une illustration du brouillon n'est pas enregistrée pour cette fiche : choisissez-la de nouveau dans Annotations, section Vues.",
|
||||
'admin.failure.draft.frozen': 'Une revue est en cours sur ce brouillon : il ne peut plus être modifié.',
|
||||
'admin.failure.draft.not_a_draft': "Cette version n'est plus un brouillon.",
|
||||
'admin.failure.sheet.inactive': 'Cette fiche est archivée : son brouillon ne peut plus être modifié.',
|
||||
@@ -1223,13 +1223,37 @@ export const fr: Dict = {
|
||||
'admin.failure.sheet.historical_read_only': 'La fiche historique ne se modifie pas : créez une copie de travail.',
|
||||
'editor.tab.list': 'Sections du brouillon',
|
||||
'editor.tab.general': 'Général',
|
||||
'editor.tab.views': 'Vues et illustrations',
|
||||
'editor.tab.annotations': 'Annotations',
|
||||
'editor.tab.findings': 'Constats',
|
||||
'editor.tab.references': 'Références',
|
||||
'editor.tab.vertebrae': 'Vertèbres',
|
||||
'editor.tab.verification': 'Vérification',
|
||||
'editor.tab.more': 'Plus',
|
||||
'editor.tab.errors_one': '{count} erreur',
|
||||
'editor.tab.errors_other': '{count} erreurs',
|
||||
'editor.place.drawing': 'Dessin',
|
||||
'editor.place.views': 'Vues',
|
||||
'editor.place.categories': 'Catégories',
|
||||
'editor.place.regions': 'Régions vertébrales',
|
||||
'editor.place.references': 'Références',
|
||||
'editor.section.back': 'Retour au dessin',
|
||||
'editor.live.creation_kept': "Une création est en cours : terminez-la ou abandonnez-la pour atteindre cette annotation.",
|
||||
'editor.live.tracing_kept': "Un tracé est en cours : terminez-le ou annulez-le pour atteindre cette annotation.",
|
||||
'editor.live.references_closed': 'Références fermées',
|
||||
'editor.overview.label': 'Aperçu de la fiche',
|
||||
'editor.overview.views': 'Vues',
|
||||
'editor.overview.view_main': 'Vue principale',
|
||||
'editor.overview.view_detail': 'Vue détaillée',
|
||||
'editor.overview.annotations_one': '{count} annotation',
|
||||
'editor.overview.annotations_other': '{count} annotations',
|
||||
'editor.overview.manage_views': 'Gérer les vues',
|
||||
'editor.overview.see_views': 'Voir les vues',
|
||||
'editor.overview.categories': 'Catégories',
|
||||
'editor.overview.categories_empty': 'Aucune catégorie pour l\'instant.',
|
||||
'editor.overview.edit_categories': 'Modifier les catégories',
|
||||
'editor.overview.see_categories': 'Voir les catégories',
|
||||
'editor.overview.regions_one': 'Régions vertébrales ({count} région)',
|
||||
'editor.overview.regions_other': 'Régions vertébrales ({count} régions)',
|
||||
'editor.references.open': 'Références',
|
||||
'editor.references.close': 'Fermer les références',
|
||||
'editor.draft.loading': 'Chargement du brouillon…',
|
||||
'editor.draft.none': "Cette fiche n'a pas de brouillon.",
|
||||
'editor.draft.overview_link': 'Voir la fiche',
|
||||
@@ -1417,7 +1441,7 @@ export const fr: Dict = {
|
||||
'editor.views.new_hint': 'Saisissez le recadrage pour une vue recadrée ; laissez-le vide pour une vue qui aura sa propre illustration (à choisir une fois la vue ajoutée).',
|
||||
'editor.views.add': 'Ajouter la vue',
|
||||
'editor.views.required': 'Renseignez les noms français et anglais de la vue.',
|
||||
'editor.views.frame.newly_invalid': "Ce changement de cadre mettrait en erreur la géométrie de : {names}. Déplacez d'abord ces éléments (onglet Annotations).",
|
||||
'editor.views.frame.newly_invalid': "Ce changement de cadre mettrait en erreur la géométrie de : {names}. Déplacez d'abord ces éléments (Annotations, dessin).",
|
||||
'editor.views.frame.view_unmeasured': 'Ce changement rendrait non mesurable une vue qui porte des annotations : {names}.',
|
||||
'editor.views.frame.kept': "L'illustration reste téléversée ; la vue garde son illustration précédente.",
|
||||
'editor.views.frame.newly_invalid_repairable': "Ces éléments sortent du nouveau cadre : {names}. Choisissez de nouveau l'illustration pour les réparer en l'attachant.",
|
||||
@@ -1507,13 +1531,13 @@ export const fr: Dict = {
|
||||
'editor.annotations.tool_hint.zone': 'Outil : zone · cliquez pour poser les sommets ; Entrée ou « Fermer le tracé » termine, Échap annule.',
|
||||
'editor.annotations.tool_hint.link': 'Outil : accès à une vue détaillée · tracez le contour qui ouvre la vue ; Entrée termine, Échap annule.',
|
||||
'editor.annotations.views': 'Vues',
|
||||
'editor.annotations.unmeasured.hint': "Ce dessin n'est pas mesurable : ajoutez ou corrigez son illustration (onglet Vues et illustrations) avant de placer ou de déplacer des éléments.",
|
||||
'editor.annotations.unmeasured.hint': "Ce dessin n'est pas mesurable : ajoutez ou corrigez son illustration (Annotations, section Vues) avant de placer ou de déplacer des éléments.",
|
||||
'editor.annotations.outside': "Cliquez à l'intérieur du dessin.",
|
||||
'editor.annotations.correction': "Le point ne tient pas à l'endroit choisi. Position corrigée proposée : x = {x}, y = {y}.",
|
||||
'editor.annotations.correction_use': 'Utiliser cette position',
|
||||
'editor.annotations.correction_cancel': 'Annuler',
|
||||
'editor.annotations.no_category': "Créez d'abord une catégorie d'annotation (onglet Général).",
|
||||
'editor.annotations.no_child_view': "Aucune vue détaillée ne s'ouvre depuis cette vue : créez-en une dans l'onglet Vues et illustrations.",
|
||||
'editor.annotations.no_category': "Créez d'abord une catégorie d'annotation (Annotations, section Catégories).",
|
||||
'editor.annotations.no_child_view': "Aucune vue détaillée ne s'ouvre depuis cette vue : créez-en une dans Annotations, section Vues.",
|
||||
'editor.annotations.add.point': 'Ajouter un point',
|
||||
'editor.annotations.add.zone': 'Ajouter une zone',
|
||||
'editor.annotations.add.detail_trigger': 'Ajouter un accès',
|
||||
@@ -1549,7 +1573,6 @@ export const fr: Dict = {
|
||||
'editor.annotations.list': 'Annotations de la vue',
|
||||
'editor.annotations.list_empty': 'Aucune annotation dans cette vue.',
|
||||
'editor.annotations.selection': 'Sélection : {kind} « {name} »',
|
||||
'editor.annotations.select_hint': 'Sélectionnez une annotation sur le dessin ou dans la liste pour voir ses propriétés.',
|
||||
'editor.annotations.properties': "Propriétés de l'annotation",
|
||||
'editor.annotations.tracing_one': '{count} sommet posé.',
|
||||
'editor.annotations.tracing_other': '{count} sommets posés.',
|
||||
|
||||
Reference in new issue
Block a user