Compare commits

...

4 Commits

Author SHA1 Message Date
36bb47f9c6 fix(glossaire): préserver les parcours intelligents explicites
All checks were successful
SMOKE / smoke (push) Successful in 8s
CI / build-and-anchors (push) Successful in 40s
CI / build-and-anchors (pull_request) Successful in 42s
2026-04-26 21:50:08 +02:00
b2ca1f17a4 Merge pull request 'refactor(glossaire): stabiliser le moteur de navigation intelligente' (#330) from feat/glossary-navigation-engine-step24 into main
All checks were successful
CI / build-and-anchors (push) Successful in 38s
Proposer Apply (Queue) / apply-proposer (push) Successful in 35s
SMOKE / smoke (push) Successful in 15s
Deploy staging+live (annotations) / deploy (push) Successful in 8m55s
Reviewed-on: #330
2026-04-26 19:34:28 +00:00
ad545b52af refactor(glossaire): stabiliser le moteur de navigation intelligente
All checks were successful
SMOKE / smoke (push) Successful in 11s
CI / build-and-anchors (push) Successful in 35s
CI / build-and-anchors (pull_request) Successful in 41s
2026-04-26 21:32:07 +02:00
467c07232e Merge pull request 'feat(glossaire): enrichir navigation typologique des archicrations' (#329) from feat/glossary-navigation-typology-step23 into main
All checks were successful
CI / build-and-anchors (push) Successful in 36s
Proposer Apply (Queue) / apply-proposer (push) Successful in 25s
SMOKE / smoke (push) Successful in 7s
Deploy staging+live (annotations) / deploy (push) Successful in 9m1s
Reviewed-on: #329
2026-04-26 18:55:41 +00:00

View File

@@ -510,13 +510,24 @@ export function getGlossarySmartNavigation(
): GlossarySmartNavigation {
const currentSlug = slugOfGlossaryEntry(currentEntry);
const rawNavigation = currentEntry.data.navigation;
const defaultNavigation = GLOSSARY_NAV_DEFAULTS[familyOf(currentEntry)];
const defaultNavigation = GLOSSARY_NAV_DEFAULTS[familyOf(currentEntry)] ?? {};
const navigationSource = rawNavigation ?? {
primaryNext: undefined,
primaryReason: undefined,
paths: defaultNavigation ?? {},
flows: {},
const withDefaultPath = (
explicit: string[] | undefined,
fallback: string[] | undefined,
): string[] => (explicit && explicit.length > 0 ? explicit : fallback ?? []);
const navigationSource = {
primaryNext: rawNavigation?.primaryNext,
primaryReason: rawNavigation?.primaryReason,
paths: {
understand: withDefaultPath(rawNavigation?.paths?.understand, defaultNavigation.understand),
deepen: withDefaultPath(rawNavigation?.paths?.deepen, defaultNavigation.deepen),
compare: withDefaultPath(rawNavigation?.paths?.compare, defaultNavigation.compare),
apply: withDefaultPath(rawNavigation?.paths?.apply, defaultNavigation.apply),
},
flows: rawNavigation?.flows ?? {},
relationWeights: rawNavigation?.relationWeights ?? {},
};
const primaryNext = resolveGlossaryEntriesInSourceOrder(