@factorialco/rjsf-f0 3.2.1 → 3.3.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
@@ -10,7 +10,7 @@ Use it inside an app that already runs f0 (the Factorial Code dashboard, the Fac
10
10
  pnpm add @factorialco/rjsf-f0
11
11
  ```
12
12
 
13
- Peers you must already have: `react`, `react-dom`, `@rjsf/core` 6, `@rjsf/utils` 6 and `@factorialco/f0-react` 11.3.1 or later, up to 14 (the pairing table needs f0's `F0FormEditableTable`).
13
+ Peers you must already have: `react`, `react-dom`, `@rjsf/core` 6, `@rjsf/utils` 6 and `@factorialco/f0-react` 11.3.1 or later, up to 15.
14
14
 
15
15
  ## Usage
16
16
 
@@ -62,7 +62,7 @@ The host app must render f0's `F0Provider` above the form and import `@factorial
62
62
  | `file` / `data-url` | f0-styled dropzone + file chips (see below) |
63
63
  | submit, add/move/copy/remove | `F0Button` |
64
64
  | `oauth` connect control | `F0Button` (see below) |
65
- | `pairing` table | `F0FormEditableTable` (see below) |
65
+ | `pairing` table | a table of `F0Select`, `F0TagStatus` (see below) |
66
66
  | `launch-one` button | `F0Button` with the `Ai` icon (see below) |
67
67
  | error summary | `F0Alert` |
68
68
  | section title | `F0Heading` |
@@ -203,10 +203,10 @@ The Forms SDK's `"ui:widget": "oauth"` field opens the provider in a popup and r
203
203
  The Forms SDK's `"ui:field": "pairing"` turns an object whose properties pair Factorial records with another system's (accounts, tax codes, wage types…) into one reviewable table. The rows, their suggestions, the in-use filter and the submitted values are all handled in `@factorialco/fcode-react-forms`. This theme contributes only the drawing, as `Theme.pairing.Table`, which `FcodeJsonSchemaForm` finds through `rjsfTheme.pairing`. The table has:
204
204
 
205
205
  - a header with the counts, an **Accept N suggestions** `F0Button` shown while any suggestion is pending, and the **Needs a choice (N)** filter (an `F0Button`, outlined while off and filled while on);
206
- - an `F0FormEditableTable` with three columns: the Factorial record, a searchable select of the other system's records (a suggested row shows the suggestion as its value, marked by a blue lightbulb hint carrying the app's reason, or by the `Ai` icon when One suggested it; clearing it dismisses the suggestion), and a status tag: _Confirmed_, _Suggested_ or _Suggested by One_ (the reason as its tooltip), _No longer available_ or _Needs a choice_. A confirmed row One would pair differently stays _Confirmed_, with "One suggests X" as its hint and tooltip and a **Use** action that takes it. An explicit "not mapped" (`""` in the form) is a real option in the select. A free-text row (`freeText`: a row with no choices in a section with `ui:options.freeText: true`) gets a text cell instead of the select, showing a pending suggestion the same way; blanking it clears the row. The record and status columns have fixed widths so the select keeps the rest. Each suggested row also gets an **Accept** action, and a row's validation error marks its select;
206
+ - a table with three columns: the Factorial record, a searchable `F0Select` of the other system's records (a suggested row shows the suggestion as its value, marked by a blue lightbulb hint carrying the app's reason, or by the `Ai` icon when One suggested it; clearing it dismisses the suggestion), and the status: an `F0TagStatus` reading _Confirmed_, _Suggested_ or _Suggested by One_ (the reason as its tooltip), _No longer available_ or _Needs a choice_. A suggested row has its **Accept** button right beside that tag, in the status column: the action only exists for those rows, so there is no actions column. A confirmed row One would pair differently stays _Confirmed_, with "One suggests X" as its hint and tooltip and a **Use** button in the same place. An explicit "not mapped" (`""` in the form) is a real option in the select. A free-text row (`freeText`: a row with no choices in a section with `ui:options.freeText: true`) gets an `F0TextInput` instead of the select, showing a pending suggestion the same way; blanking it clears the row. Each select is named after its row's record, and a row's validation error shows under its select. The table takes the width it is given: the record's name wraps instead of being cut, the select keeps at least 14rem, and when one row shows a hint every row keeps that room so the selects line up. Below 40rem it scrolls sideways inside its border;
207
207
  - a footer with an `F0Select` to add rows the in-use list left out, beside the app's in-use note.
208
208
 
209
- f0's editable table re-renders every row on each edit. With a few hundred rows listed, an edit takes about a third of a second, so keep the default list short by marking the rows in use.
209
+ Every row re-renders on each edit, so keep the default list short by marking the rows in use.
210
210
 
211
211
  ### Set up with One
212
212