@tristan2828/ui-foundation 4.66.0 → 4.67.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.
@@ -3,24 +3,25 @@
3
3
  <!-- index: written by `npm run docs:index` in the package from the headings below; never edit it by hand -->
4
4
  ## Index
5
5
 
6
- - [The reference files](#the-reference-files) · lines 39–61
7
- - [Before anything: the entity plan](#before-anything-the-entity-plan) · lines 63–748
8
- - Step 1: Add `<Entity>` to `openapi.yaml` · lines 105–112
9
- - Step 2: `npm run gen:api` · lines 113–114
10
- - Step 3: Add gateway tests in `tests/gateway/<entity>.test.ts`, derived from the spec · lines 115–126
11
- - Step 4: Add MSW handlers in `src/mocks/<entity>.ts` · lines 127–136
12
- - Step 5: Add a gateway module in `src/api/gateway/<entity>.ts` · lines 137–141
13
- - Step 6: Copy the reference files, one for one, not just the two screens · lines 142–637
14
- - Step 7: Register routes · lines 638–651
15
- - Step 8: Add Playwright specs for all three screens · lines 652–730
16
- - Step 9: Register the nav entry and route names · lines 731–745
17
- - Step 10: `npm run verify`. · lines 746–748
18
- - [How a list opens a record](#how-a-list-opens-a-record) · lines 750–853
19
- - [The record view](#the-record-view) · lines 828–853
20
- - [What not to copy](#what-not-to-copy) · lines 855–881
21
- - [After a commit, in the backend](#after-a-commit-in-the-backend) · lines 883–900
22
- - [Deleting](#deleting) · lines 902–931
23
- - [Fields only a script writes](#fields-only-a-script-writes) · lines 933–954
6
+ - [The reference files](#the-reference-files) · lines 40–62
7
+ - [Before anything: the entity plan](#before-anything-the-entity-plan) · lines 64–749
8
+ - Step 1: Add `<Entity>` to `openapi.yaml` · lines 106–113
9
+ - Step 2: `npm run gen:api` · lines 114–115
10
+ - Step 3: Add gateway tests in `tests/gateway/<entity>.test.ts`, derived from the spec · lines 116–127
11
+ - Step 4: Add MSW handlers in `src/mocks/<entity>.ts` · lines 128–137
12
+ - Step 5: Add a gateway module in `src/api/gateway/<entity>.ts` · lines 138–142
13
+ - Step 6: Copy the reference files, one for one, not just the two screens · lines 143–638
14
+ - Step 7: Register routes · lines 639–652
15
+ - Step 8: Add Playwright specs for all three screens · lines 653–731
16
+ - Step 9: Register the nav entry and route names · lines 732–746
17
+ - Step 10: `npm run verify`. · lines 747–749
18
+ - [How a list opens a record](#how-a-list-opens-a-record) · lines 751–854
19
+ - [The record view](#the-record-view) · lines 829–854
20
+ - [What not to copy](#what-not-to-copy) · lines 856–882
21
+ - [After a commit, in the backend](#after-a-commit-in-the-backend) · lines 884–901
22
+ - [Deleting](#deleting) · lines 903–932
23
+ - [Fields only a script writes](#fields-only-a-script-writes) · lines 934–955
24
+ - [Searching one part of the app](#searching-one-part-of-the-app) · lines 957–966
24
25
 
25
26
  <!-- /index -->
26
27
 
@@ -952,3 +953,14 @@ the next run would create the record a second time.
952
953
  - Don't use it for a field the server works out itself (`computed`) or
953
954
  one that's never on the request: those aren't in the create or update
954
955
  schema to begin with.
956
+
957
+ ## Searching one part of the app
958
+
959
+ An app built of parts (modules, areas) gives each entity's `McpEntity` a
960
+ `group`, the part's name in lowercase words joined by -
961
+ (`group="health"`). `search` then takes an optional `group` and looks only
962
+ in that group's entities, so a chat that searches "band" for a health
963
+ question isn't handed purchases and comics too. The tool's description
964
+ lists each group's entities, and `group` is offered only when some entity
965
+ has one; an unknown group is a refusal naming the ones there are. An
966
+ entity with no group is searched only when no group is given.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tristan2828/ui-foundation",
3
- "version": "4.66.0",
3
+ "version": "4.67.0",
4
4
  "description": "Shared UI foundation for contract-first, database-backed React apps: shadcn primitives, DataTable/EntityForm composites, auth, the gateway error seam, design tokens, lint rules and the AI playbook.",
5
5
  "license": "MIT",
6
6
  "repository": {