wenay-react2 1.0.46 → 1.0.48

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.
Files changed (50) hide show
  1. package/README.md +17 -15
  2. package/doc/EXAMPLE_USAGE.md +969 -969
  3. package/doc/PROJECT_FUNCTIONALITY.md +403 -403
  4. package/doc/PROJECT_RULES.md +27 -27
  5. package/doc/WENAY_REACT2_RENAMES.md +170 -170
  6. package/doc/changes/v1.0.35.md +18 -18
  7. package/doc/changes/v1.0.38.md +37 -37
  8. package/doc/changes/v1.0.39.md +23 -23
  9. package/doc/changes/v1.0.40.md +14 -14
  10. package/doc/changes/v1.0.41.md +35 -35
  11. package/doc/changes/v1.0.42.md +26 -26
  12. package/doc/changes/v1.0.43.md +10 -10
  13. package/doc/changes/v1.0.44.md +14 -14
  14. package/doc/changes/v1.0.45.md +8 -8
  15. package/doc/changes/v1.0.46.md +11 -11
  16. package/doc/changes/v1.0.47.md +9 -0
  17. package/doc/changes/v1.0.48.md +8 -0
  18. package/doc/examples/README.md +4 -4
  19. package/doc/examples/peer-call-media.tsx +7 -7
  20. package/doc/examples/stand.tsx +5 -5
  21. package/doc/native.md +37 -0
  22. package/doc/progress/README.md +13 -13
  23. package/doc/progress/architecture-fix-queue.md +74 -74
  24. package/doc/progress/column-state-present-gate.md +28 -28
  25. package/doc/progress/common2-adoption-1.0.73.md +28 -28
  26. package/doc/progress/common2-adoption-1.0.74.md +24 -24
  27. package/doc/progress/hook-controller-opportunities.md +363 -363
  28. package/doc/progress/hook-extraction-audit.md +195 -195
  29. package/doc/progress/public-surface-normalization.md +351 -351
  30. package/doc/progress/qa-stand-walkthrough-2026-07-12.md +62 -0
  31. package/doc/progress/stand-as-examples-audit.md +20 -20
  32. package/doc/progress/style-system-normalization.md +121 -121
  33. package/doc/target/README.md +32 -32
  34. package/doc/target/my.md +122 -122
  35. package/doc/wenay-react2-rare.md +807 -807
  36. package/doc/wenay-react2.md +541 -541
  37. package/lib/common/demo/peerMedia.js +6 -1
  38. package/lib/common/src/logs/logsController.js +2 -2
  39. package/lib/common/testUseReact/qa.js +3 -3
  40. package/lib/native/columnDots.d.ts +41 -0
  41. package/lib/native/columnDots.js +104 -0
  42. package/lib/native/columnState.d.ts +69 -0
  43. package/lib/native/columnState.js +209 -0
  44. package/lib/native/index.d.ts +3 -0
  45. package/lib/native/index.js +3 -0
  46. package/lib/style/menuRight.css +19 -19
  47. package/lib/style/style.css +23 -23
  48. package/lib/style/tokens.css +184 -184
  49. package/package.json +2 -1
  50. package/doc/wenay-react2-1.0.8.tgz +0 -0
@@ -1,15 +1,15 @@
1
- # v1.0.40
2
-
3
- Date: 2026-07-09
4
-
5
- - Changed: Added FLIP-style item movement animation to the standard `createToolbar().Bar`, matching the card 30 behavior for horizontal toolbar menus.
6
- - Changed: QA cards 25 and 31 now receive toolbar item glide animation through the shared `Toolbar.Bar`; card 30 remains the stand-only visual reference.
7
- - Changed: Added `useFloatingWindowController` plus public geometry/controller types as the first controller layer for `FloatingWindow` saved geometry, z-index stack, drag state, resize callbacks, and viewport clamp.
8
- - Changed: Added controller-first layers for MiniLogs, RightMenu, ParamsEditor, Logs, SettingsDialog, and context logger UI wrappers while keeping compatibility components.
9
- - Changed: Added explicit `MenuItemStrict.actionKey` and action-level `contextMenu.stats` counters.
10
- - Changed: Moved log tables and context log table to shared `AgGridTable` primitives where behavior was safe to preserve.
11
- - Changed: Updated QA card 25 toolbar subscription to use `useListenEffect(tb.api.onChange, ...)` instead of a manual `useEffect(() => listen.on(...))` cleanup.
12
- - Fixed: `SettingsDialog` search history closes when focus leaves the search box.
13
- - Skipped: `FResizableReact` hook, `memoryStore` core rewrite, broad `DragBox` rewrite, `PageVisibilityProvider` adoption, and `logsContext` persistence migration until a real consumer/test scenario exists.
14
- - Note: The QA stand mounts log tables in card 9; top-right log notification layers exist in the library but are not mounted globally in the stand.
1
+ # v1.0.40
2
+
3
+ Date: 2026-07-09
4
+
5
+ - Changed: Added FLIP-style item movement animation to the standard `createToolbar().Bar`, matching the card 30 behavior for horizontal toolbar menus.
6
+ - Changed: QA cards 25 and 31 now receive toolbar item glide animation through the shared `Toolbar.Bar`; card 30 remains the stand-only visual reference.
7
+ - Changed: Added `useFloatingWindowController` plus public geometry/controller types as the first controller layer for `FloatingWindow` saved geometry, z-index stack, drag state, resize callbacks, and viewport clamp.
8
+ - Changed: Added controller-first layers for MiniLogs, RightMenu, ParamsEditor, Logs, SettingsDialog, and context logger UI wrappers while keeping compatibility components.
9
+ - Changed: Added explicit `MenuItemStrict.actionKey` and action-level `contextMenu.stats` counters.
10
+ - Changed: Moved log tables and context log table to shared `AgGridTable` primitives where behavior was safe to preserve.
11
+ - Changed: Updated QA card 25 toolbar subscription to use `useListenEffect(tb.api.onChange, ...)` instead of a manual `useEffect(() => listen.on(...))` cleanup.
12
+ - Fixed: `SettingsDialog` search history closes when focus leaves the search box.
13
+ - Skipped: `FResizableReact` hook, `memoryStore` core rewrite, broad `DragBox` rewrite, `PageVisibilityProvider` adoption, and `logsContext` persistence migration until a real consumer/test scenario exists.
14
+ - Note: The QA stand mounts log tables in card 9; top-right log notification layers exist in the library but are not mounted globally in the stand.
15
15
  - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand`; `npm run build`; `git diff --check`.
@@ -1,36 +1,36 @@
1
- # v1.0.41
2
-
3
- Date: 2026-07-09
4
-
5
- Status: released.
6
-
7
- - Changed: Split global log notifications into `useMessageEventLogsController`, `MessageEventLogsView`, and `MessageEventLogCard`; `MessageEventLogs` and `logsApi.React.Message` remain compatibility wrappers.
8
- - Changed: QA card 9 now mounts the global log notification layer, so the corner popups can be checked from the stand with the existing `add log` button.
9
- - Changed: Added usage docs for the hook/controller notification layer and recorded follow-up hook/controller split candidates with effectiveness/simplicity estimates.
10
- - Fixed: npm package assembly now copies `doc/` into `dist` and allows `doc/**/*` in package `files`; pack verification confirms `doc/changes/v1.0.41.md`, `doc/wenay-react2.md`, and `doc/wenay-react2-rare.md` are included.
11
- - Fixed: Restored opaque dark default styling for mouse/right-click menus; hover is white with dark text, active stays dark, and pressed state has a separate contrast token.
12
- - Changed: Polished the log notification toggle in card 9 / `MessageEventLogsView` from a large text `X` into a compact close button.
13
- - Added: `createColumnGrid` / `useColumnGrid`, a high-level column kit that infers `ColumnMeta` from ag-grid `columnDefs`, accepts optional default `data`/`getId`, and returns ready table, menu, dots, cards, toolbar, settings, and view surfaces.
14
- - Changed: Added QA card 32 for the default grid-menu wrapper, including the built-in dots overlay driving both table and card representations.
15
- - Changed: `createColumnGrid.View` now defaults `controls="auto"` to the dots overlay; `Dots` defaults to all columns, default toolbar items toggle column visibility, and `autoSizeOnColumnCountChange` optionally fits only when visible column count changes.
16
- - Changed: Updated `wenay-common2` from `^1.0.65` to `^1.0.70`.
17
- - Reason: common2 1.0.66 adds the `Media` namespace (browser mic/camera capture as binary `Listen` sources, fixed-header media frames via `encodeMediaFrame`/`decodeMediaFrame`, `replay:true` media mode in `createRpcServerAuto`, `wenay-common2/media` export). Media lines are ordinary Listen/replay lines, so existing `useListen*`/`useReplay*` hooks consume them without new React surface; the brief/rare replay docs now record this instead of adding hooks.
18
- - Reason: common2 1.0.67 adds `Replay.createRouteCoordinator` (policy-gated relay<->direct routing over pure `RouteConnector` transports; data continuity via `replayRouteSubscribe`). Coordinator `link.subscribe` returns the same handle shape as our route hooks (`ready, seq(), label(), active()`); a React adapter for coordinator links is recorded as a target goal, existing route hooks stay the manual `switchRoute` surface.
19
- - Reason: common2 1.0.68 completes the direct path: `Replay.createSignalHub` (WebRTC signaling over the existing socket/RPC control channel), `Replay.createWebRtcConnector` (the direct `RouteConnector`; `rtc` is an injected runtime factory — in the browser `() => new RTCPeerConnection(cfg)`, which is exactly this library's environment), `acceptWebRtcDirect`, and `serveReplayChannel`/`channelReplayRemote` (replay wire over any ordered channel). Together 1.0.66-1.0.68 form the media -> replay line -> policy-routed relay/direct stack; React-side adoption goals are recorded in `doc/target/my.md`.
20
- - Reason: common2 1.0.69 adds the `Peer` namespace (`wenay-common2/peer`) — the one-call SDK over rpc + store + replay + route coordinator (`createPeerHost` / `createPeerClient` / `createPatchRelayJournal`; per-peer mirrored stores survive relay<->direct hand-offs in one seq space) and fixes real-browser ICE candidate serialization. This reframes our coordinator-adapter target goal: the React surface should sit on `Peer` (peer store mirror + route control), not on raw coordinator links. 1.0.70 ships oracle suites and the demo stand inside the npm package as living examples.
21
- - Added: `useCacheMapPersistence(cache, delay?)` in `utils/cache.ts` (+ exported `CacheMap` type) - the documented load + onDirty->saveDebounced app contract as one hook returning `{isDirty, flush, save, reload}`; the three duplicated effects in QA cards 20/21/25 now use it.
22
- - Added: `useResizeObserver(onResize)` / `useElementSize()` in `components/MyResizeObserver.tsx` - hook-shaped entry over the existing `CResizeObserver` singleton (callback ref, cb through a ref, rounded equality-guarded width/height state + live `getSize()`); `setResizeableElement` path untouched; QA card 19 migrated off its manual `ResizeObserver`+rAF wiring.
23
- - Added: `useLogsPageTable()` -> `LogsPageTableController` in `logs/logs.tsx` - the full-page logs table moved to the controller pattern (mount-time row snapshot, `applyTransactionAsync` appends, importance filter deduplicated into one `applyImportanceFilter` method); `PageLogs` is now a thin wrapper over `table.gridProps`.
24
- - Reason: the three do-now candidates from the hook-extraction audit (`doc/progress/hook-extraction-audit.md`): each removes real imperative duplication and has a live QA consumer; old names stay compatibility wrappers, public API unchanged.
25
- - Changed: Architecture audit (2026-07-09, 4 subsystem readers + core reading) recorded: fix queue in `doc/target/my.md` (A1-A10: memoryStore layering inversion, getLogsApi shared state, dead menuR, columnState barrel pulling ag-grid runtime, quadruplicated pinFixed idiom, updateBy resubscribe/ordering, drag primitive x4, undisposed onChange subscriptions, triple modal systems, naming/SSR pack); dead/suspicious surfaces added to the rare-doc Cleanup Inventory. No code changed by the audit itself.
26
- - Changed (A1): persisted maps (`floatingWindowMap`, `mapResiReact`, `mapRightMenu`) moved to the new utils leaf `utils/persistedMaps.ts`; FloatingWindow/Resizable/RightMenuStore now import and re-export them (public surface unchanged), `memoryStore` no longer imports the component layer - the utils->components backward edge is gone; `api.tsx` layer comments corrected.
27
- - Changed (A4): `columnState/index.ts` barrel is ag-grid-free again - `createColumnGrid` (AgGridTable + createToolbar runtime) is exported from the root api via its own module, grid-less consumers can import the columnState barrel directly.
28
- - Changed (A2): `getLogsApi<T>()` builds fresh per-call state (own map/mini/settings; optional `settingsKey` in `LogsApiOptions` persists instance settings); the global `logsApi` explicitly injects the legacy shared module state, so all existing consumers and QA card 9 are behavior-identical; React views bound per instance via optional state props defaulting to the legacy state.
29
- - Changed (A5): the quadruplicated `filter(!fixed)`+pinFixed idiom (columnState.normalize, ColumnsMenu.movedOrder, Toolbar.normalize, Toolbar.Settings.movedOrder) now shares `utils/fixedOrder.ts` (`pinFixedOrder`, `movedOrderWithFixed`), exported from the utils barrel; dead `renderBy`/`updateBy` imports dropped from columnState.
30
- - Changed (A6): `updateBy` - imperative `f` goes through a ref (inline callbacks no longer resubscribe every render); React notifiers and imperative callbacks live in separate sets, so `renderByLast`/`renderByRevers` affect ONLY React subscribers while `f` callbacks always run in subscription order (before React notifiers), matching the documented contract; reentrant `renderBy` on the same object coalesces (bounded passes).
31
- - Changed (A8): `createToolbar().api.dispose()` and `createColumnGrid().dispose()` release factory-lifetime subscriptions (external-source onChange, config onChange, pending fit RAF) - repeated factories over one key no longer accumulate permanent listeners; `createColumnGrid` re-seeds `visibleCount` on grid re-attach so the auto-fit is not mis-skipped after a remount.
32
- - Changed (A10, safe part): `searchHistory.items`/`use()` no longer mutate persisted state on read (normalization moved to the write path); `window` reads guarded in `RightMenu` render clamp, `LeftModal.useViewport`, and `ApiLeftMenu`'s import-time default element (SSR/tests).
33
- - Verification (architecture pass): `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (45/45); `npm run build`; QA stand 3010 fresh load with zero console errors; spot checks - card 21 place persisted across reload (persistedMaps path), card 25 toolbar click updates last action (fixedOrder + updateBy path), card 32 table/cards switch + dots overlay, card 9 add-log appends rows (isolated getLogsApi, global path).
34
- - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (45/45); `npm run build`; QA stand 3010: card 21 place switch survives F5 (hook persistence), card 19 fixed-parent 150->240px updates select 92->180px and container 150x51->240x51 via `useElementSize`, card 9 add-log appends rows through the controller.
35
- - Verification: `npx tsc --noEmit`; `npm run build`; QA stand `http://127.0.0.1:3010/` and `/src/testReact.tsx` return HTTP 200.
1
+ # v1.0.41
2
+
3
+ Date: 2026-07-09
4
+
5
+ Status: released.
6
+
7
+ - Changed: Split global log notifications into `useMessageEventLogsController`, `MessageEventLogsView`, and `MessageEventLogCard`; `MessageEventLogs` and `logsApi.React.Message` remain compatibility wrappers.
8
+ - Changed: QA card 9 now mounts the global log notification layer, so the corner popups can be checked from the stand with the existing `add log` button.
9
+ - Changed: Added usage docs for the hook/controller notification layer and recorded follow-up hook/controller split candidates with effectiveness/simplicity estimates.
10
+ - Fixed: npm package assembly now copies `doc/` into `dist` and allows `doc/**/*` in package `files`; pack verification confirms `doc/changes/v1.0.41.md`, `doc/wenay-react2.md`, and `doc/wenay-react2-rare.md` are included.
11
+ - Fixed: Restored opaque dark default styling for mouse/right-click menus; hover is white with dark text, active stays dark, and pressed state has a separate contrast token.
12
+ - Changed: Polished the log notification toggle in card 9 / `MessageEventLogsView` from a large text `X` into a compact close button.
13
+ - Added: `createColumnGrid` / `useColumnGrid`, a high-level column kit that infers `ColumnMeta` from ag-grid `columnDefs`, accepts optional default `data`/`getId`, and returns ready table, menu, dots, cards, toolbar, settings, and view surfaces.
14
+ - Changed: Added QA card 32 for the default grid-menu wrapper, including the built-in dots overlay driving both table and card representations.
15
+ - Changed: `createColumnGrid.View` now defaults `controls="auto"` to the dots overlay; `Dots` defaults to all columns, default toolbar items toggle column visibility, and `autoSizeOnColumnCountChange` optionally fits only when visible column count changes.
16
+ - Changed: Updated `wenay-common2` from `^1.0.65` to `^1.0.70`.
17
+ - Reason: common2 1.0.66 adds the `Media` namespace (browser mic/camera capture as binary `Listen` sources, fixed-header media frames via `encodeMediaFrame`/`decodeMediaFrame`, `replay:true` media mode in `createRpcServerAuto`, `wenay-common2/media` export). Media lines are ordinary Listen/replay lines, so existing `useListen*`/`useReplay*` hooks consume them without new React surface; the brief/rare replay docs now record this instead of adding hooks.
18
+ - Reason: common2 1.0.67 adds `Replay.createRouteCoordinator` (policy-gated relay<->direct routing over pure `RouteConnector` transports; data continuity via `replayRouteSubscribe`). Coordinator `link.subscribe` returns the same handle shape as our route hooks (`ready, seq(), label(), active()`); a React adapter for coordinator links is recorded as a target goal, existing route hooks stay the manual `switchRoute` surface.
19
+ - Reason: common2 1.0.68 completes the direct path: `Replay.createSignalHub` (WebRTC signaling over the existing socket/RPC control channel), `Replay.createWebRtcConnector` (the direct `RouteConnector`; `rtc` is an injected runtime factory — in the browser `() => new RTCPeerConnection(cfg)`, which is exactly this library's environment), `acceptWebRtcDirect`, and `serveReplayChannel`/`channelReplayRemote` (replay wire over any ordered channel). Together 1.0.66-1.0.68 form the media -> replay line -> policy-routed relay/direct stack; React-side adoption goals are recorded in `doc/target/my.md`.
20
+ - Reason: common2 1.0.69 adds the `Peer` namespace (`wenay-common2/peer`) — the one-call SDK over rpc + store + replay + route coordinator (`createPeerHost` / `createPeerClient` / `createPatchRelayJournal`; per-peer mirrored stores survive relay<->direct hand-offs in one seq space) and fixes real-browser ICE candidate serialization. This reframes our coordinator-adapter target goal: the React surface should sit on `Peer` (peer store mirror + route control), not on raw coordinator links. 1.0.70 ships oracle suites and the demo stand inside the npm package as living examples.
21
+ - Added: `useCacheMapPersistence(cache, delay?)` in `utils/cache.ts` (+ exported `CacheMap` type) - the documented load + onDirty->saveDebounced app contract as one hook returning `{isDirty, flush, save, reload}`; the three duplicated effects in QA cards 20/21/25 now use it.
22
+ - Added: `useResizeObserver(onResize)` / `useElementSize()` in `components/MyResizeObserver.tsx` - hook-shaped entry over the existing `CResizeObserver` singleton (callback ref, cb through a ref, rounded equality-guarded width/height state + live `getSize()`); `setResizeableElement` path untouched; QA card 19 migrated off its manual `ResizeObserver`+rAF wiring.
23
+ - Added: `useLogsPageTable()` -> `LogsPageTableController` in `logs/logs.tsx` - the full-page logs table moved to the controller pattern (mount-time row snapshot, `applyTransactionAsync` appends, importance filter deduplicated into one `applyImportanceFilter` method); `PageLogs` is now a thin wrapper over `table.gridProps`.
24
+ - Reason: the three do-now candidates from the hook-extraction audit (`doc/progress/hook-extraction-audit.md`): each removes real imperative duplication and has a live QA consumer; old names stay compatibility wrappers, public API unchanged.
25
+ - Changed: Architecture audit (2026-07-09, 4 subsystem readers + core reading) recorded: fix queue in `doc/target/my.md` (A1-A10: memoryStore layering inversion, getLogsApi shared state, dead menuR, columnState barrel pulling ag-grid runtime, quadruplicated pinFixed idiom, updateBy resubscribe/ordering, drag primitive x4, undisposed onChange subscriptions, triple modal systems, naming/SSR pack); dead/suspicious surfaces added to the rare-doc Cleanup Inventory. No code changed by the audit itself.
26
+ - Changed (A1): persisted maps (`floatingWindowMap`, `mapResiReact`, `mapRightMenu`) moved to the new utils leaf `utils/persistedMaps.ts`; FloatingWindow/Resizable/RightMenuStore now import and re-export them (public surface unchanged), `memoryStore` no longer imports the component layer - the utils->components backward edge is gone; `api.tsx` layer comments corrected.
27
+ - Changed (A4): `columnState/index.ts` barrel is ag-grid-free again - `createColumnGrid` (AgGridTable + createToolbar runtime) is exported from the root api via its own module, grid-less consumers can import the columnState barrel directly.
28
+ - Changed (A2): `getLogsApi<T>()` builds fresh per-call state (own map/mini/settings; optional `settingsKey` in `LogsApiOptions` persists instance settings); the global `logsApi` explicitly injects the legacy shared module state, so all existing consumers and QA card 9 are behavior-identical; React views bound per instance via optional state props defaulting to the legacy state.
29
+ - Changed (A5): the quadruplicated `filter(!fixed)`+pinFixed idiom (columnState.normalize, ColumnsMenu.movedOrder, Toolbar.normalize, Toolbar.Settings.movedOrder) now shares `utils/fixedOrder.ts` (`pinFixedOrder`, `movedOrderWithFixed`), exported from the utils barrel; dead `renderBy`/`updateBy` imports dropped from columnState.
30
+ - Changed (A6): `updateBy` - imperative `f` goes through a ref (inline callbacks no longer resubscribe every render); React notifiers and imperative callbacks live in separate sets, so `renderByLast`/`renderByRevers` affect ONLY React subscribers while `f` callbacks always run in subscription order (before React notifiers), matching the documented contract; reentrant `renderBy` on the same object coalesces (bounded passes).
31
+ - Changed (A8): `createToolbar().api.dispose()` and `createColumnGrid().dispose()` release factory-lifetime subscriptions (external-source onChange, config onChange, pending fit RAF) - repeated factories over one key no longer accumulate permanent listeners; `createColumnGrid` re-seeds `visibleCount` on grid re-attach so the auto-fit is not mis-skipped after a remount.
32
+ - Changed (A10, safe part): `searchHistory.items`/`use()` no longer mutate persisted state on read (normalization moved to the write path); `window` reads guarded in `RightMenu` render clamp, `LeftModal.useViewport`, and `ApiLeftMenu`'s import-time default element (SSR/tests).
33
+ - Verification (architecture pass): `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (45/45); `npm run build`; QA stand 3010 fresh load with zero console errors; spot checks - card 21 place persisted across reload (persistedMaps path), card 25 toolbar click updates last action (fixedOrder + updateBy path), card 32 table/cards switch + dots overlay, card 9 add-log appends rows (isolated getLogsApi, global path).
34
+ - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (45/45); `npm run build`; QA stand 3010: card 21 place switch survives F5 (hook persistence), card 19 fixed-parent 150->240px updates select 92->180px and container 150x51->240x51 via `useElementSize`, card 9 add-log appends rows through the controller.
35
+ - Verification: `npx tsc --noEmit`; `npm run build`; QA stand `http://127.0.0.1:3010/` and `/src/testReact.tsx` return HTTP 200.
36
36
  - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand`; `npm run build`; `npm pack .\dist --json` confirmed `doc/changes/v1.0.41.md`, `doc/wenay-react2.md`, `doc/wenay-react2-rare.md`, `doc/EXAMPLE_USAGE.md`, and `doc/target/my.md`.
@@ -1,26 +1,26 @@
1
- # v1.0.42
2
-
3
- Date: 2026-07-10
4
-
5
- Status: released.
6
-
7
- - Added: `onClickClose` prop on `FloatingWindow`/`FloatingWindowBase`; the historical `onCLickClose` typo prop stays as a deprecated compatibility alias (`onClickClose` wins when both are set). Internal `SettingsDialog` usage migrated. (A10)
8
- - Added: `keyForSave` prop on `useOutside`'s `Button` (same persist-key naming as `FloatingWindow`/`Resizable`/`RightMenu`); the old `keySave` stays as a deprecated compatibility alias. Factory-option `key` names (`createToolbar`, `staticGetAdd`, `createUiSlot`) are not React props and stay as is. (A10)
9
- - Fixed: duplicate QA card numbering - Replay per-key feed and route hand-off cards renumbered 25→33 and 26→34; card 25 (createToolbar) and 26 (useReorder) keep their numbers. (A10)
10
- - Added: `__test/tokens.test.ts` - permanent jest guarantee that `tokens.ts` mirrors `tokens.css` in both directions (CSS `var()` references resolved before compare). Chosen instead of codegen so the build pipeline stays untouched. (A10)
11
- - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (47/47).
12
- - Added: `structEqual` in `utils/structEqual.ts` (exported from the utils barrel) - structural deep equality with the `JSON.stringify` idiom's tolerances (undefined props absent, NaN==NaN) but without its key-order sensitivity. (A10)
13
- - Changed: `columnState.readFromGrid` change/loop guards use `structEqual` instead of `JSON.stringify` - the grid's `getFilterModel()` key order no longer counts as a change (false-positive commits gone). The order-SENSITIVE `sameMap` presence guard is intentionally untouched: its order sensitivity re-imposes the stored order when columnDefs reset the grid's order. (A10)
14
- - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (53/53, incl. new `structEqual` suite).
15
- - Added (A7): `useDraggableApi` options `onMove` (imperative per-move-tick callback through a ref; not fired on setPosition/reset/cancel or release) and `trackState: false` (position lives only in `positionRef`/`onMove`, no re-render per move tick; start/end re-renders remain). Both additive, defaults unchanged.
16
- - Changed (A7): `DragBox` is now a thin adapter over `useDraggableApi` (holdMs 0, trackState false, onMove) instead of its own document-listener loop. Contract preserved and pinned by the new permanent `__test/dragBox.test.tsx`: immediate start, per-tick imperative `onX`/`onY` with the delta from the press point, mouse `preventDefault` / touch none, touch identifier tracking, no re-render per move tick, `onStop` (no args) only after a real gesture, `last` ref shares the live position object, per-gesture delta reset. The unused `dragging` prop stays accepted.
17
- - Changed (A7): `DragArea` marked `@deprecated` (no consumers; unique semantics - `document.body` listeners, `stopPropagation` per move tick, ABSOLUTE coords, no preventDefault - re-basing would change observable behavior). Removal only in a deliberate breaking version.
18
- - Decided (A7): `useFloatingWindowController`'s header loop and `StickerMenu` stay on their own loops - their unique behavior is load-bearing (viewport clamp + `e.buttons===1` release recovery + persist/z-stack; mount-lifetime listeners + click-vs-drag suppression respectively).
19
- - Changed: QA card 35 added - DragBox delta drag with starts/stops/renders counters (renders must NOT grow per move pixel).
20
- - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (58/58); stand 3010 fresh load zero console errors, card 35 two consecutive drags (commit without jump-back, renders 1+2 per gesture), card 26 reorder drag commits once (`B C A D E F G H`, commits 1).
21
- - Added (A9): internal `components/Overlay.tsx` - the one portal+scrim+outside-click+Escape composition for scrim-based modal systems. Deliberately NOT exported from public barrels; outside-click delegates to `OutsideClickArea` (mousedown+touchstart semantics preserved); the Escape listener attaches only when `onEscape` is passed; callbacks go through refs. Also the DOM seam for a future react-native view layer.
22
- - Changed (A9): `ModalProvider` composes `Overlay` (inline token scrim + flex centering, `tokens.zIndex.modal`, Escape gated by `closeOnEscape`, outside by `closeOnOutsideClick`) - public API and observable behavior unchanged; pinned by new permanent `__test/modalProvider.test.tsx`.
23
- - Changed (A9): `SettingsDialog` composes `Overlay` (`wenayDlgScrim`/`wenayDlgOutside` classes, window zIndex 10000 over the 9999 scrim); NO `onEscape` - the controller keeps its two-stage Escape (clear search, then close).
24
- - Decided (A9): `createModalElementStore` (render-slot store, not chrome), `LeftModal`/`Modal2` drawer (gesture-driven, scrim-less), and `ModalWrapper`/Input helpers (backdrop-less by design, hosted inside another modal slot) are NOT overlays and stay separate.
25
- - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (62/62); stand 3010 fresh load zero console errors; card 13 - open, Escape, outside click, close button (scrim dims, token z-index); card 20 - open, two-stage Escape (clear -> close), outside click, window x.
26
- - Changed: docs updated for the whole pass - `wenay-react2.md` (useDraggableApi `onMove`/`trackState`, `onClickClose` in the FloatingWindow example, `Button` `keyForSave`), `wenay-react2-rare.md` (internal Overlay note in Modal Low Level, A7 drag-primitives outcome in Drag/Resize Low Level, `structEqual` in utilities, Cleanup Inventory refreshed: getLogsApi/onCLickClose marked fixed/aliased, DragArea and keySave added as deprecated); session note in `doc/progress/architecture-fix-queue.md`.
1
+ # v1.0.42
2
+
3
+ Date: 2026-07-10
4
+
5
+ Status: released.
6
+
7
+ - Added: `onClickClose` prop on `FloatingWindow`/`FloatingWindowBase`; the historical `onCLickClose` typo prop stays as a deprecated compatibility alias (`onClickClose` wins when both are set). Internal `SettingsDialog` usage migrated. (A10)
8
+ - Added: `keyForSave` prop on `useOutside`'s `Button` (same persist-key naming as `FloatingWindow`/`Resizable`/`RightMenu`); the old `keySave` stays as a deprecated compatibility alias. Factory-option `key` names (`createToolbar`, `staticGetAdd`, `createUiSlot`) are not React props and stay as is. (A10)
9
+ - Fixed: duplicate QA card numbering - Replay per-key feed and route hand-off cards renumbered 25→33 and 26→34; card 25 (createToolbar) and 26 (useReorder) keep their numbers. (A10)
10
+ - Added: `__test/tokens.test.ts` - permanent jest guarantee that `tokens.ts` mirrors `tokens.css` in both directions (CSS `var()` references resolved before compare). Chosen instead of codegen so the build pipeline stays untouched. (A10)
11
+ - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (47/47).
12
+ - Added: `structEqual` in `utils/structEqual.ts` (exported from the utils barrel) - structural deep equality with the `JSON.stringify` idiom's tolerances (undefined props absent, NaN==NaN) but without its key-order sensitivity. (A10)
13
+ - Changed: `columnState.readFromGrid` change/loop guards use `structEqual` instead of `JSON.stringify` - the grid's `getFilterModel()` key order no longer counts as a change (false-positive commits gone). The order-SENSITIVE `sameMap` presence guard is intentionally untouched: its order sensitivity re-imposes the stored order when columnDefs reset the grid's order. (A10)
14
+ - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (53/53, incl. new `structEqual` suite).
15
+ - Added (A7): `useDraggableApi` options `onMove` (imperative per-move-tick callback through a ref; not fired on setPosition/reset/cancel or release) and `trackState: false` (position lives only in `positionRef`/`onMove`, no re-render per move tick; start/end re-renders remain). Both additive, defaults unchanged.
16
+ - Changed (A7): `DragBox` is now a thin adapter over `useDraggableApi` (holdMs 0, trackState false, onMove) instead of its own document-listener loop. Contract preserved and pinned by the new permanent `__test/dragBox.test.tsx`: immediate start, per-tick imperative `onX`/`onY` with the delta from the press point, mouse `preventDefault` / touch none, touch identifier tracking, no re-render per move tick, `onStop` (no args) only after a real gesture, `last` ref shares the live position object, per-gesture delta reset. The unused `dragging` prop stays accepted.
17
+ - Changed (A7): `DragArea` marked `@deprecated` (no consumers; unique semantics - `document.body` listeners, `stopPropagation` per move tick, ABSOLUTE coords, no preventDefault - re-basing would change observable behavior). Removal only in a deliberate breaking version.
18
+ - Decided (A7): `useFloatingWindowController`'s header loop and `StickerMenu` stay on their own loops - their unique behavior is load-bearing (viewport clamp + `e.buttons===1` release recovery + persist/z-stack; mount-lifetime listeners + click-vs-drag suppression respectively).
19
+ - Changed: QA card 35 added - DragBox delta drag with starts/stops/renders counters (renders must NOT grow per move pixel).
20
+ - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (58/58); stand 3010 fresh load zero console errors, card 35 two consecutive drags (commit without jump-back, renders 1+2 per gesture), card 26 reorder drag commits once (`B C A D E F G H`, commits 1).
21
+ - Added (A9): internal `components/Overlay.tsx` - the one portal+scrim+outside-click+Escape composition for scrim-based modal systems. Deliberately NOT exported from public barrels; outside-click delegates to `OutsideClickArea` (mousedown+touchstart semantics preserved); the Escape listener attaches only when `onEscape` is passed; callbacks go through refs. Also the DOM seam for a future react-native view layer.
22
+ - Changed (A9): `ModalProvider` composes `Overlay` (inline token scrim + flex centering, `tokens.zIndex.modal`, Escape gated by `closeOnEscape`, outside by `closeOnOutsideClick`) - public API and observable behavior unchanged; pinned by new permanent `__test/modalProvider.test.tsx`.
23
+ - Changed (A9): `SettingsDialog` composes `Overlay` (`wenayDlgScrim`/`wenayDlgOutside` classes, window zIndex 10000 over the 9999 scrim); NO `onEscape` - the controller keeps its two-stage Escape (clear search, then close).
24
+ - Decided (A9): `createModalElementStore` (render-slot store, not chrome), `LeftModal`/`Modal2` drawer (gesture-driven, scrim-less), and `ModalWrapper`/Input helpers (backdrop-less by design, hosted inside another modal slot) are NOT overlays and stay separate.
25
+ - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (62/62); stand 3010 fresh load zero console errors; card 13 - open, Escape, outside click, close button (scrim dims, token z-index); card 20 - open, two-stage Escape (clear -> close), outside click, window x.
26
+ - Changed: docs updated for the whole pass - `wenay-react2.md` (useDraggableApi `onMove`/`trackState`, `onClickClose` in the FloatingWindow example, `Button` `keyForSave`), `wenay-react2-rare.md` (internal Overlay note in Modal Low Level, A7 drag-primitives outcome in Drag/Resize Low Level, `structEqual` in utilities, Cleanup Inventory refreshed: getLogsApi/onCLickClose marked fixed/aliased, DragArea and keySave added as deprecated); session note in `doc/progress/architecture-fix-queue.md`.
@@ -1,10 +1,10 @@
1
- # v1.0.43
2
-
3
- Date: 2026-07-10
4
-
5
- Status: released.
6
-
7
- - Changed: `ColumnDots` drag is LIVE (user request from the stand, card 32: "отображать и выключать надо по мере движения — я так буду искать нужный мне столбик"): every EMPTY mark the dot crosses swaps the shown column immediately - the grid/cards follow the finger during the drag; the drop no longer commits a swap (it only settles selection and the tear-off). Occupied marks are passed over; a fixed dot still never swaps; the vertical tear-off flick hides the CURRENTLY shown column of the gesture.
8
- - Added: a small label above the dragged dot (`.wenayColDotsDragLabel`, tokens `--cols-dots-drag-label-bg/color/font-size` + TS mirror) naming the currently shown column - sized for a finger on a phone.
9
- - Changed: QA cards 29 and 32 do/expect texts updated to the live semantics.
10
- - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (62/62, incl. the two-way tokens sync test); stand 3010 card 32 - dragging the NOTE dot left across QTY to PRICE leaves the table showing NAME+PRICE with the dot settled on the PRICE mark (the drop path commits nothing, so the end state proves the live path), zero console errors.
1
+ # v1.0.43
2
+
3
+ Date: 2026-07-10
4
+
5
+ Status: released.
6
+
7
+ - Changed: `ColumnDots` drag is LIVE (user request from the stand, card 32: "отображать и выключать надо по мере движения — я так буду искать нужный мне столбик"): every EMPTY mark the dot crosses swaps the shown column immediately - the grid/cards follow the finger during the drag; the drop no longer commits a swap (it only settles selection and the tear-off). Occupied marks are passed over; a fixed dot still never swaps; the vertical tear-off flick hides the CURRENTLY shown column of the gesture.
8
+ - Added: a small label above the dragged dot (`.wenayColDotsDragLabel`, tokens `--cols-dots-drag-label-bg/color/font-size` + TS mirror) naming the currently shown column - sized for a finger on a phone.
9
+ - Changed: QA cards 29 and 32 do/expect texts updated to the live semantics.
10
+ - Verification: `npx tsc -p tsconfig.qa-check.json --noEmit`; `npm run testjest -- --runInBand` (62/62, incl. the two-way tokens sync test); stand 3010 card 32 - dragging the NOTE dot left across QTY to PRICE leaves the table showing NAME+PRICE with the dot settled on the PRICE mark (the drop path commits nothing, so the end state proves the live path), zero console errors.
@@ -1,14 +1,14 @@
1
- # v1.0.44
2
-
3
- Date: 2026-07-10
4
-
5
- Status: released.
6
-
7
- - Fixed: `createColumnState` no longer persists `visible=false` for a column
8
- hidden solely by runtime `presentGate` when another grid interaction is read
9
- back. Opening the gate restores the user's saved visibility as intended.
10
- - Added: regression coverage for gated-column readback and normal user
11
- visibility changes while the gate is open.
12
- - Verification: repro first failed on v1.0.43 (`visible.b` became `false` after
13
- an unrelated resize); targeted Jest 3/3; full Jest 64/64; `tsc -p
14
- tsconfig.qa-check.json --noEmit`; `pnpm run build`.
1
+ # v1.0.44
2
+
3
+ Date: 2026-07-10
4
+
5
+ Status: released.
6
+
7
+ - Fixed: `createColumnState` no longer persists `visible=false` for a column
8
+ hidden solely by runtime `presentGate` when another grid interaction is read
9
+ back. Opening the gate restores the user's saved visibility as intended.
10
+ - Added: regression coverage for gated-column readback and normal user
11
+ visibility changes while the gate is open.
12
+ - Verification: repro first failed on v1.0.43 (`visible.b` became `false` after
13
+ an unrelated resize); targeted Jest 3/3; full Jest 64/64; `tsc -p
14
+ tsconfig.qa-check.json --noEmit`; `pnpm run build`.
@@ -1,9 +1,9 @@
1
- # v1.0.45 — Media and Peer React adapters
2
-
3
- Status: ready for publication.
4
-
5
- - Updated `wenay-common2` to `^1.0.73`.
6
- - Added `useMediaSource` for capture lifecycle only; video/audio frames stay outside React state.
7
- - Added `usePeer` as a thin Peer SDK adapter with mirrored store, route/status and explicit resync controls.
8
- - Added QA stand cards 38–40 and focused hook tests.
1
+ # v1.0.45 — Media and Peer React adapters
2
+
3
+ Status: ready for publication.
4
+
5
+ - Updated `wenay-common2` to `^1.0.73`.
6
+ - Added `useMediaSource` for capture lifecycle only; video/audio frames stay outside React state.
7
+ - Added `usePeer` as a thin Peer SDK adapter with mirrored store, route/status and explicit resync controls.
8
+ - Added QA stand cards 38–40 and focused hook tests.
9
9
  - Verified with qa-check TypeScript, full Jest, package build, diff-check and the live stand; manual stand verification was confirmed by the user.
@@ -1,16 +1,16 @@
1
- # v1.0.46 — common2 Calls, presence and media relay adoption
2
-
3
- Status: ready for publication.
4
-
5
- - Updated the declared `wenay-common2` dependency to `^1.0.74`.
6
- - Added `usePeerCalls` over the common2 call manager; React renders call lifecycle but does not own signaling, busy/glare, timeout or closure policy.
7
- - Added `usePeerPresence` for the host presence snapshot and edge stream.
8
- - Added QA cards 41–44 and in-process tests for call lifecycle, presence edges and ACL revocation; card 43 carries a real camera frame through Media → relay → policy-filtered canvas.
1
+ # v1.0.46 — common2 Calls, presence and media relay adoption
2
+
3
+ Status: ready for publication.
4
+
5
+ - Updated the declared `wenay-common2` dependency to `^1.0.74`.
6
+ - Added `usePeerCalls` over the common2 call manager; React renders call lifecycle but does not own signaling, busy/glare, timeout or closure policy.
7
+ - Added `usePeerPresence` for the host presence snapshot and edge stream.
8
+ - Added QA cards 41–44 and in-process tests for call lifecycle, presence edges and ACL revocation; card 43 carries a real camera frame through Media → relay → policy-filtered canvas.
9
9
  - Verified with qa-check TypeScript, Jest, package build and the QA stand.
10
10
  - Ships doc/examples/peer-call-media.tsx: a consumer template for calls, presence, camera/microphone relay and server-owned ACL.
11
11
 
12
12
  - Ships the entire QA stand as wenay-react2/demo/stand; Active cards are canonical examples, Archive cards are regression/compat context.
13
-
14
- - Added runtime-only live drag-preview across `useReorder`, Toolbar, ColumnsMenu, columnState and attached grid; persistence still happens only on drop.
15
- - Added optional `CardList layout="compact"` for dense mobile key/value cards; the stacked layout remains default.
13
+
14
+ - Added runtime-only live drag-preview across `useReorder`, Toolbar, ColumnsMenu, columnState and attached grid; persistence still happens only on drop.
15
+ - Added optional `CardList layout="compact"` for dense mobile key/value cards; the stacked layout remains default.
16
16
  - Rebuilt QA card 27 controls on one CSS-grid track system so remove/insert actions cannot drift from their columns.
@@ -0,0 +1,9 @@
1
+ # 1.0.47
2
+
3
+ - Added the platform-neutral `wenay-react2/native` entrypoint.
4
+ - Added `createNativeColumnState`: an AsyncStorage-compatible controller for order, visibility, width, sorting, filters and groups without DOM, CSS, React DOM or ag-grid dependencies.
5
+ - Added `createNativeColumnDots`: a renderer-independent gesture model with live replacement, reorder, visibility, sorting and tear-off behavior.
6
+ - Added focused hydration, persistence, gesture and dependency-boundary tests.
7
+ - Fixed the shipped examples list formatting in README.
8
+
9
+ Verification: Jest, TypeScript build, package archive inspection and runtime import of `wenay-react2/native` from the packed artifact.
@@ -0,0 +1,8 @@
1
+ # 1.0.48
2
+
3
+ - Fixed swapped display labels of the logs settings: `minVarLogs` is the log-table importance filter, `minVarMessage` gates notifications (keys and behavior unchanged).
4
+ - Peer call demo (`demo/peer-media`, QA card 45): the audio enable intent is remembered and applied to the player created after accept, so the documented order (enable -> call -> accept) produces sound without a second click.
5
+ - QA stand: stale card texts corrected (14 reset label, 29 unreachable "Max 4 dots", 38 phantom "requesting" state, card 2 note); card 2 switched off the deprecated `onCLickClose` typo alias to `onClickClose`.
6
+ - `typescript ^5` is pinned in devDependencies (the build used to rely on a global install; TS 7 is incompatible with ts-jest and `moduleResolution: node10`).
7
+
8
+ Verification: tsc qa-check, Jest 23/78 green, library build, and a full automated walkthrough of all 43 QA stand cards with zero console errors (`doc/progress/qa-stand-walkthrough-2026-07-12.md`; manual-device checks listed there).
@@ -1,6 +1,6 @@
1
- # Runnable consumer examples
2
-
3
- - [`peer-call-media.tsx`](peer-call-media.tsx) — re-exports the interactive Peer/Media demos used by QA cards 41–44. Install the package and import from `wenay-react2/demo/peer-media`.
4
-
1
+ # Runnable consumer examples
2
+
3
+ - [`peer-call-media.tsx`](peer-call-media.tsx) — re-exports the interactive Peer/Media demos used by QA cards 41–44. Install the package and import from `wenay-react2/demo/peer-media`.
4
+
5
5
  The component uses an in-process `Peer.createPeerHost`, so calls, presence, camera and microphone relay work without server credentials. For production, expose `publishOf(account)` and `watchOf(account)` from the RPC server and keep `canWatch` plus call authorization on that server.
6
6
  - [stand.tsx](stand.tsx) — exports the entire interactive stand from wenay-react2/demo/stand. Active cards teach canonical APIs; Archive cards remain visible regression/compat examples.
@@ -1,8 +1,8 @@
1
- /**
2
- * This is the same interactive component used by the QA stand cards 41–44.
3
- * It is shipped as a supported demo entrypoint, not a private test helper.
4
- *
5
- * import {PeerCallDemo, PeerPresenceDemo, MediaRelayAclDemo, MediaRelayAudioDemo}
6
- * from "wenay-react2/demo/peer-media"
7
- */
1
+ /**
2
+ * This is the same interactive component used by the QA stand cards 41–44.
3
+ * It is shipped as a supported demo entrypoint, not a private test helper.
4
+ *
5
+ * import {PeerCallDemo, PeerPresenceDemo, MediaRelayAclDemo, MediaRelayAudioDemo}
6
+ * from "wenay-react2/demo/peer-media"
7
+ */
8
8
  export {PeerCallDemo, PeerPresenceDemo, MediaRelayAclDemo, MediaRelayAudioDemo} from "wenay-react2/demo/peer-media";
@@ -1,6 +1,6 @@
1
- /** The complete interactive wenay-react2 stand, shipped in the package. */
2
- export {QABoard} from "wenay-react2/demo/stand";
3
-
4
- // import {createRoot} from "react-dom/client";
5
- // import {QABoard} from "wenay-react2/demo/stand";
1
+ /** The complete interactive wenay-react2 stand, shipped in the package. */
2
+ export {QABoard} from "wenay-react2/demo/stand";
3
+
4
+ // import {createRoot} from "react-dom/client";
5
+ // import {QABoard} from "wenay-react2/demo/stand";
6
6
  // createRoot(document.getElementById("root")!).render(<QABoard />);
package/doc/native.md ADDED
@@ -0,0 +1,37 @@
1
+ # React Native entrypoint
2
+
3
+ Import the renderer-neutral API from `wenay-react2/native`. It has no React DOM,
4
+ CSS, browser-global or ag-grid dependency.
5
+
6
+ ```ts
7
+ import AsyncStorage from '@react-native-async-storage/async-storage'
8
+ import {createNativeColumnDots, createNativeColumnState} from 'wenay-react2/native'
9
+
10
+ const columns = createNativeColumnState({
11
+ key: 'super-admin.columns',
12
+ columns: [
13
+ {key: 'server', title: 'Server', fixed: true},
14
+ {key: 'status', title: 'Status'},
15
+ {key: 'panic', title: 'Panic'},
16
+ ],
17
+ storage: AsyncStorage,
18
+ })
19
+ await columns.ready
20
+
21
+ const dots = createNativeColumnDots({state: columns, max: 8})
22
+ dots.begin('status', 40, 0)
23
+ dots.move(120, 0, {start: 0, length: 240})
24
+ dots.end()
25
+ ```
26
+
27
+ The persisted `v/order/visible/width/sort/filter/groups` shape matches the web
28
+ `ColumnsConfig`. Writes are serialized and local edits made while hydration is
29
+ pending win over stale storage.
30
+
31
+ `createNativeColumnDots` is a view-independent interaction model. Connect its
32
+ `begin/move/end` coordinates to PanResponder or Gesture Handler. Set `removeDirection` to `up`, `down` or `either` (the renderer-neutral default). It supports
33
+ live field replacement along the slider, explicit reorder and toggle, sticky
34
+ `asc -> desc -> off` sorting, and upward tear-off.
35
+
36
+ Call `dots.dispose()` and `columns.dispose()` with the owning screen. Use
37
+ `columns.api.flush()` when the latest AsyncStorage write must be awaited.
@@ -1,14 +1,14 @@
1
- # Task progress
2
-
3
- This directory is for short-lived checkpoint files during active non-trivial tasks.
4
-
5
- Rules:
6
- - create one file per task, named `doc/progress/<task>.md`;
7
- - keep it short: goal, checkpoints, decisions, blockers, and verification;
8
- - update it when checkpoints are completed or before switching context;
9
- - delete it when the task is finished;
10
- - keep durable history elsewhere: changelog/release notes for publishable changes,
11
- roadmap/recommendations/target docs for long-lived project direction,
12
- and the commit message or final response for the immediate summary.
13
-
1
+ # Task progress
2
+
3
+ This directory is for short-lived checkpoint files during active non-trivial tasks.
4
+
5
+ Rules:
6
+ - create one file per task, named `doc/progress/<task>.md`;
7
+ - keep it short: goal, checkpoints, decisions, blockers, and verification;
8
+ - update it when checkpoints are completed or before switching context;
9
+ - delete it when the task is finished;
10
+ - keep durable history elsewhere: changelog/release notes for publishable changes,
11
+ roadmap/recommendations/target docs for long-lived project direction,
12
+ and the commit message or final response for the immediate summary.
13
+
14
14
  Progress files are working notes, not API docs, release notes, or the durable target queue. When a task comes from `doc/target/my.md`, update that file before deleting the progress file: move completed work to `Verify` until checks pass, or remove it only after verification is recorded.
@@ -1,74 +1,74 @@
1
- # Architecture fix queue (A1-A10) — progress
2
-
3
- Status: in progress (session 2026-07-10). Queue source: `doc/target/my.md` (audit 2026-07-09).
4
- Durable per-change record: `doc/changes/v1.0.41.md` (shipped part), `doc/changes/v1.0.42.md` (current).
5
-
6
- ## Session 2026-07-10 — recovery + tail of the queue
7
-
8
- Context: the machine rebooted; recovered from docs. Discovered and fixed first:
9
- the 1.0.41 release commit did NOT contain `columnGrid.tsx`, `fixedOrder.ts`,
10
- `persistedMaps.ts` and the whole architecture pass (npm had them, git did not —
11
- same failure mode as the earlier eb4e9b3 fix). Also `.npmrc` with a live npm
12
- auth token was sitting untracked — now gitignored (`/.npmrc`, `.vite-*.log`);
13
- the token itself should probably be rotated since it was on disk in the repo dir.
14
-
15
- Commits this session (chronological):
16
-
17
- 1. **Post-release commit of the 1.0.41 working tree** — createColumnGrid sources,
18
- A1/A2/A4/A5/A6/A8/A10-safe, hook-extraction do-now trio, common2 ^1.0.70,
19
- changelog/docs; .gitignore hardening.
20
- 2. **A10 safe part 2** — `onClickClose` alias (+deprecated `onCLickClose`),
21
- `keyForSave` alias on `Button` (+deprecated `keySave`), QA card dup fix
22
- (Replay 25→33, 26→34), `__test/tokens.test.ts` (two-way tokens.ts↔tokens.css).
23
- Verify: tsc qa-check, jest 47/47.
24
- 3. **A10 loop-guard** — `utils/structEqual.ts` (+barrel export, permanent test);
25
- `columnState.readFromGrid` guards off `JSON.stringify`; order-sensitive
26
- `sameMap` deliberately untouched (its sensitivity re-imposes stored order on
27
- columnDefs reset). Verify: tsc, jest 53/53.
28
- 4. **A7** — `DragBox` → thin adapter over `useDraggableApi` (+additive
29
- `onMove`/`trackState:false` on the hook); `DragArea` @deprecated as-is;
30
- `useFloatingWindowController`/`StickerMenu` deliberately stay bespoke
31
- (recon: clamp, `buttons===1` recovery, persist, z-stack / mount-lifetime
32
- listeners, click-suppression are load-bearing). `__test/dragBox.test.tsx`,
33
- QA card 35. Verify: tsc, jest 58/58, stand: card 35 two drags commit without
34
- jump-back (renders 1+2/gesture), card 26 reorder commits once, zero console
35
- errors on fresh load.
36
-
37
- ## A9 — DONE (committed 2026-07-10, 5th commit of the session; build OK)
38
-
39
- Done:
40
-
41
- - `components/Overlay.tsx` — INTERNAL (not exported) portal+scrim+outside+Escape
42
- composition; outside-click delegates to `OutsideClickArea`; Escape listener only
43
- when `onEscape` given; callbacks through refs. Doubles as the DOM seam for the
44
- future react-native view layer (headless state stays in hosts).
45
- - `ModalProvider` → Overlay (inline token scrim + flex centering, Escape gated by
46
- `closeOnEscape`, outside by `closeOnOutsideClick`) — public API untouched.
47
- - `SettingsDialog` → Overlay (`wenayDlgScrim`/`wenayDlgOutside` classes,
48
- NO onEscape — the controller keeps the two-stage Escape: clear search, then close).
49
- - New permanent `__test/modalProvider.test.tsx` (portal/scrim/Escape/outside gates).
50
-
51
- Verified so far: tsc qa-check OK; jest 62/62; stand card 13 — open, Escape,
52
- outside click, close button all work (scrim dims, token z-index); card 20 —
53
- open, two-stage Escape (clear → close), outside click, window x. Console clean
54
- on fresh load (the ReferenceError seen mid-session was a vite HMR intermediate
55
- between two sequential edits, gone after reload).
56
-
57
- Deliberately NOT overlaid (recorded in changelog): `createModalElementStore`
58
- (render-slot store, not chrome), `LeftModal`/`Modal2` drawer (gesture-driven,
59
- no scrim), `ModalWrapper`/Input helpers (backdrop-less by design, hosted inside
60
- another modal slot).
61
-
62
- Close-out complete: fresh-page card-13/20 spot checks passed, changelog +
63
- my.md updated, `npm run build` OK, committed.
64
-
65
- ## Queue after this session
66
-
67
- - **A3 (BREAKING)** dead `menuR.tsx` removal — only in a deliberate breaking version.
68
- - **A10 breaking leftovers** — raw `ListenApi` narrowing; removal of deprecated
69
- `onCLickClose`/`keySave`/`DragArea`.
70
- - Then Ready queue: common2 1.0.66-1.0.70 adoption (useMediaSource, Peer SDK
71
- adapter, WebRTC recipe), context-menu controller split, chart canvas wrapper.
72
- - New Inbox item 2026-07-10: React Native / mobile version of the library's
73
- functionality (see `doc/target/my.md` Inbox + verbatim dictation) — A9 Overlay
74
- was already shaped with that in mind (DOM isolated in one leaf).
1
+ # Architecture fix queue (A1-A10) — progress
2
+
3
+ Status: in progress (session 2026-07-10). Queue source: `doc/target/my.md` (audit 2026-07-09).
4
+ Durable per-change record: `doc/changes/v1.0.41.md` (shipped part), `doc/changes/v1.0.42.md` (current).
5
+
6
+ ## Session 2026-07-10 — recovery + tail of the queue
7
+
8
+ Context: the machine rebooted; recovered from docs. Discovered and fixed first:
9
+ the 1.0.41 release commit did NOT contain `columnGrid.tsx`, `fixedOrder.ts`,
10
+ `persistedMaps.ts` and the whole architecture pass (npm had them, git did not —
11
+ same failure mode as the earlier eb4e9b3 fix). Also `.npmrc` with a live npm
12
+ auth token was sitting untracked — now gitignored (`/.npmrc`, `.vite-*.log`);
13
+ the token itself should probably be rotated since it was on disk in the repo dir.
14
+
15
+ Commits this session (chronological):
16
+
17
+ 1. **Post-release commit of the 1.0.41 working tree** — createColumnGrid sources,
18
+ A1/A2/A4/A5/A6/A8/A10-safe, hook-extraction do-now trio, common2 ^1.0.70,
19
+ changelog/docs; .gitignore hardening.
20
+ 2. **A10 safe part 2** — `onClickClose` alias (+deprecated `onCLickClose`),
21
+ `keyForSave` alias on `Button` (+deprecated `keySave`), QA card dup fix
22
+ (Replay 25→33, 26→34), `__test/tokens.test.ts` (two-way tokens.ts↔tokens.css).
23
+ Verify: tsc qa-check, jest 47/47.
24
+ 3. **A10 loop-guard** — `utils/structEqual.ts` (+barrel export, permanent test);
25
+ `columnState.readFromGrid` guards off `JSON.stringify`; order-sensitive
26
+ `sameMap` deliberately untouched (its sensitivity re-imposes stored order on
27
+ columnDefs reset). Verify: tsc, jest 53/53.
28
+ 4. **A7** — `DragBox` → thin adapter over `useDraggableApi` (+additive
29
+ `onMove`/`trackState:false` on the hook); `DragArea` @deprecated as-is;
30
+ `useFloatingWindowController`/`StickerMenu` deliberately stay bespoke
31
+ (recon: clamp, `buttons===1` recovery, persist, z-stack / mount-lifetime
32
+ listeners, click-suppression are load-bearing). `__test/dragBox.test.tsx`,
33
+ QA card 35. Verify: tsc, jest 58/58, stand: card 35 two drags commit without
34
+ jump-back (renders 1+2/gesture), card 26 reorder commits once, zero console
35
+ errors on fresh load.
36
+
37
+ ## A9 — DONE (committed 2026-07-10, 5th commit of the session; build OK)
38
+
39
+ Done:
40
+
41
+ - `components/Overlay.tsx` — INTERNAL (not exported) portal+scrim+outside+Escape
42
+ composition; outside-click delegates to `OutsideClickArea`; Escape listener only
43
+ when `onEscape` given; callbacks through refs. Doubles as the DOM seam for the
44
+ future react-native view layer (headless state stays in hosts).
45
+ - `ModalProvider` → Overlay (inline token scrim + flex centering, Escape gated by
46
+ `closeOnEscape`, outside by `closeOnOutsideClick`) — public API untouched.
47
+ - `SettingsDialog` → Overlay (`wenayDlgScrim`/`wenayDlgOutside` classes,
48
+ NO onEscape — the controller keeps the two-stage Escape: clear search, then close).
49
+ - New permanent `__test/modalProvider.test.tsx` (portal/scrim/Escape/outside gates).
50
+
51
+ Verified so far: tsc qa-check OK; jest 62/62; stand card 13 — open, Escape,
52
+ outside click, close button all work (scrim dims, token z-index); card 20 —
53
+ open, two-stage Escape (clear → close), outside click, window x. Console clean
54
+ on fresh load (the ReferenceError seen mid-session was a vite HMR intermediate
55
+ between two sequential edits, gone after reload).
56
+
57
+ Deliberately NOT overlaid (recorded in changelog): `createModalElementStore`
58
+ (render-slot store, not chrome), `LeftModal`/`Modal2` drawer (gesture-driven,
59
+ no scrim), `ModalWrapper`/Input helpers (backdrop-less by design, hosted inside
60
+ another modal slot).
61
+
62
+ Close-out complete: fresh-page card-13/20 spot checks passed, changelog +
63
+ my.md updated, `npm run build` OK, committed.
64
+
65
+ ## Queue after this session
66
+
67
+ - **A3 (BREAKING)** dead `menuR.tsx` removal — only in a deliberate breaking version.
68
+ - **A10 breaking leftovers** — raw `ListenApi` narrowing; removal of deprecated
69
+ `onCLickClose`/`keySave`/`DragArea`.
70
+ - Then Ready queue: common2 1.0.66-1.0.70 adoption (useMediaSource, Peer SDK
71
+ adapter, WebRTC recipe), context-menu controller split, chart canvas wrapper.
72
+ - New Inbox item 2026-07-10: React Native / mobile version of the library's
73
+ functionality (see `doc/target/my.md` Inbox + verbatim dictation) — A9 Overlay
74
+ was already shaped with that in mind (DOM isolated in one leaf).