Skip to content

Commit 1031fb1

Browse files
committed
Clarify ConfigrPane onChange values
1 parent b53d389 commit 1031fb1

7 files changed

Lines changed: 657 additions & 312 deletions

File tree

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"cSpell.words": ["Configr", "Formik"]
2+
"cSpell.words": ["Configr", "Formik"],
3+
"workbench.colorCustomizations": {
4+
"statusBar.background": "#dd0531",
5+
"statusBar.foreground": "#e7e7e7",
6+
"statusBarItem.hoverBackground": "#fa1b49",
7+
"statusBarItem.remoteBackground": "#dd0531",
8+
"statusBarItem.remoteForeground": "#e7e7e7"
9+
},
10+
"peacock.color": "#dd0531"
311
}

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,16 @@ yarn dev
2828
```
2929
npm install @sillsdev/config-r
3030
```
31+
32+
## Migration from v1.0.0-alpha.15 to v1.0.0-alpha18
33+
34+
Use [src/stories/bloom.stories.tsx](src/stories/bloom.stories.tsx) as the canonical reference for alpha18 API usage. The current codebase enforces several structural rules and new props; the fastest path is to align your code with those patterns.
35+
36+
- `ConfigrPane` children must be `ConfigrPage` or `ConfigrArea` elements only. Wrap groups of pages in `ConfigrArea` to get the left-nav section headings.
37+
- `ConfigrPage` now requires `pageKey` and throws if it is missing. Keep these keys stable and unique within a pane.
38+
- `ConfigrPage` children are restricted to `ConfigrGroup`, `ConfigrForEach`, or `ConfigrStatic`. Move any custom layout into `ConfigrGroup` or wrap text/UI-only blocks in `ConfigrStatic`.
39+
- `ConfigrForEach` now uses a render signature of `(pathPrefix, index) => ReactNode`; build full Formik paths from the prefix (see the languages loop in the story).
40+
- `ConfigrSelect` options accept numbers or `{ label, value, description }` objects; descriptions become tooltips.
41+
- Override/locking behavior is standardized: most controls accept `overrideValue` + `overrideDescription`; `ConfigrBoolean` adds `locked` and `immediateEffect`.
42+
- Custom inputs use `ConfigrCustomStringInput`, `ConfigrCustomNumberInput`, or `ConfigrCustomObjectInput` with a `control` component that receives `value`, `onChange`, and `disabled`.
43+
- `ConfigrPane` adds UI props like `showAppBar`, `showSearch`, `showJson`, `themeOverrides`, and `initiallySelectedTopLevelPageIndex`.

0 commit comments

Comments
 (0)