@ai-matrx/records-ui 0.81.0 → 0.82.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/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.82.0
4
+
5
+ **A link can open a table's Forms, Notifications, Portals or Share — and the thing inside
6
+ it.** (lane HUB-FIX, VERIFIER-14 item 2.)
7
+
8
+ The organization hub lists every form, digest, portal and outside share an organization has,
9
+ and every one of those rows opened the table's GRID: `TablePage` could be addressed down to
10
+ its layout (`?view=`) and no further, because its rails were component state with no prop
11
+ and no spelling in the address. A person clicking "Spring drain-cleaning intake" on the hub
12
+ landed on four hundred jobs and had to find the Forms button, then the form.
13
+
14
+ * `TablePage` takes `activeRail` (the raw `?rail=` word: `forms`, `bookings`, `checklists`,
15
+ `notifications`/`digests`, `portals`, `settings`, `import`, `inbox`, `share`) and
16
+ `activeItemId` (the thing inside it). A later link moves the page, like `?view=`. A record
17
+ still outranks a rail. `share` opens the share dialog over the page.
18
+ * The rail opens ON the item: `FormsPanel` gains `activeFormId` (marked, scrolled to, and its
19
+ builder open for somebody who may build); `PortalsPanel` gains `activePortalId` (its card
20
+ open); `SubscriptionsPanel` gains `activeRuleId` (marked and scrolled to); `ShareControl`
21
+ gains `initiallyOpen`.
22
+ * NOTHING IS SILENT. A rail word this page has no rail for says `unknownRailLine`; an item a
23
+ rail does not hold says `FORM_NOT_HERE_LINE` / `PORTAL_NOT_HERE_LINE` /
24
+ `RULE_NOT_HERE_LINE` — never the first row in its place; a share link for somebody who may
25
+ not share says `SHARE_NOT_YOURS_LINE` (or the no-port reason) instead of landing on a grid.
26
+ * New exports: `railFromParam`, `unknownRailLine`, `SHARE_NOT_YOURS_LINE`, `LinkRail`,
27
+ `FORM_NOT_HERE_LINE`, `PORTAL_NOT_HERE_LINE`, `RULE_NOT_HERE_LINE`. `openingRail` takes an
28
+ optional second argument; its one-argument meaning is unchanged.
29
+ * Test: `src/rail-deep-link.test.tsx` (7 cases).
30
+
31
+ **Consumer action (matrx-frontend):** in `app/(core)/data-v2/[tableId]/page.tsx` read
32
+ `searchParams.get("rail")` and `searchParams.get("item")` and pass them as `activeRail` /
33
+ `activeItemId`; in `features/unified-data/hub/capabilities.ts` point the Forms, Digests,
34
+ Portals and Shared-outside rows at `/data-v2/<table>?rail=forms&item=<form_id>`,
35
+ `?rail=notifications&item=<rule_id>`, `?rail=portals&item=<portal_id>` and `?rail=share`.
36
+
3
37
  ## 0.81.0
4
38
 
5
39
  **The relation picker stops cutting a customer's name in half, and a grid mount stops