From f034adf7610e716ec360c0db3e269105fbb3ed71 Mon Sep 17 00:00:00 2001 From: IliesAllali Date: Sun, 25 Oct 2026 22:32:35 +0100 Subject: [PATCH] =?UTF-8?q?Famille=20:=20la=20fen=C3=AAtre=20d'envoi=20ne?= =?UTF-8?q?=20s'ouvre=20plus=20apr=C3=A8s=20chaque=20ajout,=20la=20personn?= =?UTF-8?q?e=20est=20sur=20l'arbre=20en=20brouillon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + frontend/src/App.jsx | 10 ++++------ frontend/src/i18n/en/app.js | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99d15db..e2247da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Notable changes to Parenthèse. Dates are in YYYY-MM-DD format. - A suggestion waiting for review now shows on the tree, where it will go: a suggested person is drawn faded, with a dotted circle and a "Suggested" tag, and their links are dotted. Words, drawings and photos placed on the tree show see-through. A person with a suggested change gets a small dot. - Whoever manages the tree opens a suggested person to see who suggested it and what else the suggestion holds, and accepts or rejects it right there. A person with a suggested change shows the fields in their profile, with the same buttons. "See details" opens the review panel to sort change by change. - The family sees what they are adding as a "Draft" before sending it, then as "Waiting" until it is reviewed. This is kept in their browser only, and cleared once the suggestion is reviewed. +- After adding a person, the send window no longer opens by itself. The family can add several people, then send once with Send. ### Photos placed on the tree by the family diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 50dcc22..836260c 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1283,13 +1283,11 @@ function App() { ] editMode.updateDraft({ addedPersons }) trackAppEvent('person_added', { via: addPersonViaRef.current, role: 'family', relations: (formData.relations || []).length, tree_id: opaqueTreeId }) - // La personne apparaît en fantôme « Brouillon » ; on passe tout de suite à l'envoi - // (prénom, un mot), la famille n'a pas à chercher le bouton + // La personne apparaît en fantôme « Brouillon » : la famille peut en ajouter d'autres, puis envoyer une + // fois avec le bouton « Envoyer » de la barre (Patch, 25/10). Avant, la fenêtre d'envoi s'ouvrait d'office, + // seule façon de montrer qu'un ajout invisible comptait. setAddPersonPanelVisible(false) - setDraftNotice(t('{name} est dans vos modifications. Envoyez-les quand vous avez fini.', { name: [formData.firstName, formData.lastName].filter(Boolean).join(' ') || t('Nouvelle personne') })) - setContribSubmitError('') - setContribChanges(buildContribChangesList(editMode.restoreDraft())) - setShowContribModal(true) + setDraftNotice(t("{name} est sur l'arbre, en brouillon. Envoyez quand vous avez fini.", { name: [formData.firstName, formData.lastName].filter(Boolean).join(' ') || t('Nouvelle personne') })) return } diff --git a/frontend/src/i18n/en/app.js b/frontend/src/i18n/en/app.js index d90aa15..6c4f783 100644 --- a/frontend/src/i18n/en/app.js +++ b/frontend/src/i18n/en/app.js @@ -14,7 +14,7 @@ export default { // App.jsx : ajout de personnes et contributions "Ajoutez d'abord un parent à {name} pour pouvoir lui rattacher un frère ou une sœur.": 'Add a parent to {name} first, so you can link a sibling to them.', "Ajoutez d'abord un parent à cette personne pour pouvoir lui rattacher un frère ou une sœur.": 'Add a parent to this person first, so you can link a sibling to them.', - '{name} est dans vos modifications. Envoyez-les quand vous avez fini.': '{name} is in your changes. Send them when you are done.', + "{name} est sur l'arbre, en brouillon. Envoyez quand vous avez fini.": "{name} is on the tree as a draft. Send when you're done.", "Erreur lors de l'ajout de la personne": 'Could not add this person', 'Aucune modification à soumettre.': 'No changes to send.', 'Contribution de {name} · {date}': 'Contribution from {name} · {date}',