@apotech-os/support-kit 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,8 @@ returns. 4.0.0 removed three of them — `pipeline`, `escalations` and
21
21
  **These are NOT produced by this package's own build.** The kit's `tsup`
22
22
  build emits a single barrel, `dist/ui/index.js`, exporting `DashboardPage`,
23
23
  `TicketsPage`, `AgentsPage`, `CategoriesPage`, `SettingsPage`,
24
- `GraphCanvasPage`, `SharedPromptsPage`, `TestPage`, `QualityPage` (see
24
+ `ReglagesPage`, `GraphCanvasPage`, `SharedPromptsPage`, `TestPage`,
25
+ `QualityPage` (see
25
26
  `src/ui/index.ts`) — there is no `dist/ui/tickets.js` et al. inside this
26
27
  package, on purpose (T26/T25's own "kit exports pages, not bundles"
27
28
  boundary).
@@ -33,7 +34,7 @@ silently skipped (`UI_BUNDLE_MISSING` at publish time, via
33
34
  `ArtifactValidatorService`); a missing `settingsPage` source fails the CLI
34
35
  build outright.
35
36
 
36
- **A consuming app must therefore author nine one-line re-export shims**,
37
+ **A consuming app must therefore author ten one-line re-export shims**,
37
38
  following `docs/app-template/src/ui/dashboard.tsx`'s own doc-comment
38
39
  convention:
39
40
 
@@ -47,8 +48,16 @@ src/ui/shared-prompts.tsx export { SharedPromptsPage as default } from '@apotec
47
48
  src/ui/test.tsx export { TestPage as default } from '@apotech-os/support-kit/ui';
48
49
  src/ui/quality.tsx export { QualityPage as default } from '@apotech-os/support-kit/ui';
49
50
  src/ui/settings.tsx export { SettingsPage as default } from '@apotech-os/support-kit/ui';
51
+ src/ui/reglages.tsx export { ReglagesPage as default } from '@apotech-os/support-kit/ui';
50
52
  ```
51
53
 
54
+ `reglages.tsx` mounts the SAME component as `settings.tsx`. The duplication is
55
+ deliberate and lives in the platform, not here: `settingsPage` is reachable
56
+ only under Paramètres › Espaces — `getAvailableTargets()` never offers it, so
57
+ no Space can hold it — while a `pages[]` entry can be placed in whichever Space
58
+ an admin picks. Both write the app's single `AppSetting` row, so the two
59
+ surfaces stay in sync with nothing to reconcile.
60
+
52
61
  An app upgrading to 4.0.0 deletes `src/ui/pipeline.tsx`,
53
62
  `src/ui/escalations.tsx` and `src/ui/corrections.tsx`, and removes the
54
63
  `pipeline-page`, `escalations-page`, `corrections-page` and
@@ -64,7 +73,7 @@ see `dashboard.tsx`'s own header for the full contract: react/react-dom/
64
73
  `src/ui-bundle-parity.spec.ts` (this package) pins the OTHER half of this
65
74
  contract: the set of basenames `pipeline.ts` commits to in `pages[].entry`/
66
75
  `settingsPage.entry` always has a matching `<PathPascalCase>Page` export in
67
- `src/ui/index.ts`. It cannot verify the consuming app authored its nine
76
+ `src/ui/index.ts`. It cannot verify the consuming app authored its ten
68
77
  shims — that step is documented here, not testable from inside this
69
78
  package — but it does mean a new page (or a renamed one) surfaces as a red
70
79
  test in THIS package's own CI, not as a confusing publish failure downstream
package/dist/index.cjs CHANGED
@@ -5889,7 +5889,21 @@ var KIT_PAGES = [
5889
5889
  icon: "library"
5890
5890
  },
5891
5891
  { key: "test-page", path: "test", title: "Banc de test", icon: "flask-conical" },
5892
- { key: "quality-page", path: "quality", title: "Qualit\xE9", icon: "flask-conical" }
5892
+ { key: "quality-page", path: "quality", title: "Qualit\xE9", icon: "flask-conical" },
5893
+ // The SAME screen as `settingsPage`, declared a second time as an app page.
5894
+ // Not a gratuitous duplicate: `getAvailableTargets()`
5895
+ // (`apps/api/src/platform-data/spaces.service.ts`) enumerates only
5896
+ // views/pages/records, so a `settingsPage` can be mounted in NO Space — by
5897
+ // construction (docs/app-platform/app-settings-page-spec.md §2). A `pages[]`
5898
+ // entry can. Both surfaces mount the same component, which reads and writes
5899
+ // through `useAppSettings()`; that store is keyed by the app slug, so there
5900
+ // is ONE `AppSetting` row behind the two, never two copies to reconcile.
5901
+ //
5902
+ // The path cannot be 'settings': the CLI would derive `dist/ui/settings.js`
5903
+ // from it — the entry `settingsPage` already claims — and the manifest would
5904
+ // be rejected (app-kit `contracts.ts`, "collides with the bundle the CLI
5905
+ // emits for a pages[] path").
5906
+ { key: "reglages-page", path: "reglages", title: "R\xE9glages", icon: "settings" }
5893
5907
  ];
5894
5908
  function buildPages(config) {
5895
5909
  return KIT_PAGES.map(({ key, path, title, icon }) => ({