Skip to content

FSHSP-107 docs: correct the import paths left stale by the category reorg - #32

Merged
LBU4SH merged 1 commit into
mainfrom
chore/fshsp-107-fix-agents-doc
Aug 13, 2026
Merged

FSHSP-107 docs: correct the import paths left stale by the category reorg#32
LBU4SH merged 1 commit into
mainfrom
chore/fshsp-107-fix-agents-doc

Conversation

@LBU4SH

@LBU4SH LBU4SH commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Correctif de suivi de #31. Ce PR-là a déplacé les 53 composants sous un dossier de catégorie — ce qui renomme leur chemin npm — mais plusieurs fichiers de doc décrivaient encore la structure à plat. Dont le pire : le README du package, livré dans le tarball et affiché sur npmjs.

Ce qui était faux

Fichier Affirmait Réalité
projects/ui-kit/README{,.fr}.md ⚠️ import { UiButton } from '@4sh/ui-kit/ui-button' chemin qui ne résout plus — sur la page que lit un consommateur en premier
AGENTS.md ⚠️ « No change to the npm entry points » l'inverse exact de ce que #31 a livré — texte écrit avant que la contrainte ng-packagr ne se révèle, jamais relu
AGENTS.md 53 composants (×3 endroits) 53 entry points mais 54 composants — j'avais changé 54 → 53 à tort
AGENTS.md ConfigTable en ../../../ les 49 .mdx utilisent ../../../../
README.md, NpmPackage.mdx, ui-icon.mdx specifiers sans catégorie idem

La ligne AGENTS.md est la plus gênante en pratique : c'est le premier fichier que lit un agent IA sur ce repo, et il y trouvait l'affirmation opposée au code — de quoi écrire des imports faux en toute confiance.

Au passage

La famille « Misc » / « Divers » est renommée « Base » dans les tables des deux README : maintenant que le texte annonce que la famille est le segment de chemin, « Misc » aurait désigné un dossier misc/ inexistant (c'est base/).

Vérifié

  • Les 6 chemins d'import documentés résolvent vers un vrai ng-package.json sur le disque (vérifié un par un, pas à l'œil).
  • components.check.mjs valide toujours les tables de familles contre le disque après le renommage.

Pas touché volontairement

  • CHANGELOG.md : l'entrée [Unreleased] de FSHSP-107 dit déjà que chaque import change, et rien n'est encore publié — aucun consommateur n'a vu les mauvais chemins. Une entrée « on a corrigé la doc qui décrivait mal le changement du dessus » serait du bruit.
  • Les entrées historiques du CHANGELOG (FSHSP-83) qui citent @4sh/ui-kit/ui-icon : elles décrivent l'état de l'époque, l'historique ne se réécrit pas.

…eorg

Follow-up to #31, which moved every ui-* component under a category folder and
thereby renamed its npm sub-path — but left several docs describing the old flat
layout, including the package README that ships in the tarball and renders on
npmjs.

- projects/ui-kit/README{,.fr}.md: every import example was still
  @4sh/ui-kit/ui-button — i.e. a path that no longer resolves, on the page a
  consumer reads first. The 'Available entry points' intro now states the
  <family>/<component> shape, and the family column is the literal path segment
  — so the Misc/Divers family is renamed Base, matching the base/ folder it
  had never mapped to.
- AGENTS.md claimed the exact opposite of what #31 shipped ('No change to the
  npm entry points'): text written before the ng-packagr constraint surfaced and
  never revisited. It now states that the category IS part of the import path,
  with the reason and the consequence (moving a component across categories is
  breaking, not cosmetic).
- AGENTS.md also carried three counts I had wrongly changed 54 -> 53: there are
  53 entry points but 54 components, ui-file-upload-list having its own .scss
  (its own Sass compilation unit) inside ui-file-upload's entry point.
- Remaining stale specifiers in the root README, storybook/docs/NpmPackage.mdx,
  and ui-icon.mdx, plus AGENTS.md's ConfigTable depth (../../../ -> ../../../../).

CHANGELOG untouched on purpose: the [Unreleased] FSHSP-107 entry already states
that every import changes, and nothing here has been released yet — a consumer
never saw the wrong paths.

Verified: all 6 documented import paths resolve to a real ng-package.json on
disk, and components.check.mjs still validates the family tables against it.
@LBU4SH
LBU4SH merged commit 0b5c0c9 into main Aug 13, 2026
2 of 3 checks passed
@LBU4SH
LBU4SH deleted the chore/fshsp-107-fix-agents-doc branch August 14, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant