From 79df032f1030f242f0891fc24443767c441c029b Mon Sep 17 00:00:00 2001
From: IliesAllali
Date: Sat, 7 Nov 2026 01:54:19 +0100
Subject: [PATCH] Revert "Merge pull request #220 from
IliesAllali/feat/reglages-arbre-onglets"
This reverts commit 97966054ac339c466e76a61509a8e078dd3dbbcc, reversing
changes made to 4544edde6f97ab169e48c3305826bf425bf97bbf.
---
frontend/src/App.jsx | 8 +-
frontend/src/components/AdminPanel.jsx | 8 +-
frontend/src/components/Galaxy.css | 8 +-
frontend/src/components/Galaxy.jsx | 83 ++++---
frontend/src/components/SettingsPanels.css | 2 -
frontend/src/components/galaxy/blockLayout.js | 206 ++++++++++++++++--
.../components/galaxy/dessinComplet.test.js | 60 -----
frontend/src/components/galaxy/elkLayout.js | 2 +-
frontend/src/components/galaxy/renderers.js | 24 ++
.../galaxy/useGalaxyInteractions.js | 13 +-
frontend/src/i18n/en/arbre.js | 3 +-
11 files changed, 284 insertions(+), 133 deletions(-)
delete mode 100644 frontend/src/components/galaxy/dessinComplet.test.js
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index b1ecb97..2f315c6 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -570,7 +570,7 @@ function App() {
})
const [adminPanelVisible, setAdminPanelVisible] = useState(false)
- // Onglet de famille ouvert : l'adresse de la page le porte (?famille=), et le lien à envoyer à la
+ // Onglet de famille ouvert : l'adresse de la page le porte (?famille=), et le lien à envoyer à la
// famille aussi, pour qu'il ouvre l'arbre sur cette famille
const [initialFamilyKey] = useState(() => new URLSearchParams(window.location.search).get('famille'))
const [openFamily, setOpenFamily] = useState(null)
@@ -588,9 +588,6 @@ function App() {
// Onglets par nom : nombre de porteurs d'un nom à partir duquel il a son onglet (8 par défaut, Patch, 07/11)
const [tabMinCount, setTabMinCountState] = useState(() => { try { const v = Number(localStorage.getItem('parenthese.tabMinCount')); return v >= 2 && v <= 30 ? v : 8 } catch { return 8 } })
const setTabMinCount = useCallback((n) => { setTabMinCountState(n); try { localStorage.setItem('parenthese.tabMinCount', String(n)) } catch { /* navigateur sans stockage */ } }, [])
- // Onglet « Tout l'arbre » en tête de la barre : coupé par défaut (Patch, 07/11)
- const [showAllTab, setShowAllTabState] = useState(() => { try { return localStorage.getItem('parenthese.showAllTab') === 'on' } catch { return false } })
- const setShowAllTab = useCallback((on) => { setShowAllTabState(on); try { localStorage.setItem('parenthese.showAllTab', on ? 'on' : 'off') } catch { /* navigateur sans stockage */ } }, [])
const [fullNames, setFullNamesState] = useState(() => { try { return localStorage.getItem('parenthese.fullNames') === 'on' } catch { return false } })
const setFullNames = useCallback((on) => { setFullNamesState(on); try { localStorage.setItem('parenthese.fullNames', on ? 'on' : 'off') } catch { /* navigateur sans stockage */ } }, [])
// Premiers visages : fenêtre ouverte après un import GEDCOM, ou depuis les paramètres de l'arbre
@@ -3578,7 +3575,6 @@ function App() {
onReorderSiblings={handleReorderSiblings}
familyTabs={familyTabs}
tabMinCount={tabMinCount}
- showAllTab={showAllTab}
fullNames={fullNames}
annotationViewRef={annotationViewRef}
onAnnotationsAnchored={persistAnnotationAnchors}
@@ -3762,8 +3758,6 @@ function App() {
onFamilyTabsChange={setFamilyTabs}
tabMinCount={tabMinCount}
onTabMinCountChange={setTabMinCount}
- showAllTab={showAllTab}
- onShowAllTabChange={setShowAllTab}
fullNames={fullNames}
onFullNamesChange={setFullNames}
/>
diff --git a/frontend/src/components/AdminPanel.jsx b/frontend/src/components/AdminPanel.jsx
index ed3ba6d..fa0ece3 100644
--- a/frontend/src/components/AdminPanel.jsx
+++ b/frontend/src/components/AdminPanel.jsx
@@ -44,8 +44,6 @@ const AdminPanel = ({
onFamilyTabsChange = null,
tabMinCount = 8,
onTabMinCountChange = null,
- showAllTab = false,
- onShowAllTabChange = null,
fullNames = false,
onFullNamesChange = null,
visible,
@@ -560,7 +558,7 @@ const AdminPanel = ({
/>
{t('Un onglet par nom de famille')}
- {t('Chaque nom porté par assez de personnes reliées entre elles a son onglet, avec les conjoints.')}
+ {t("Chaque nom porté par assez de personnes reliées entre elles a son onglet, avec les conjoints. Le premier onglet montre tout l'arbre.")}
{familyTabs && (
@@ -580,10 +578,6 @@ const AdminPanel = ({
? tabPreview.map((tb) => {tb.label} {tb.count})
: t("Aucun onglet à ce seuil : tout l'arbre sur une seule page.")}
-
)}