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.")}

- )}