You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fb1192c
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(ui)!: retire plugin-designer's dead collaboration code, VersionHistory and the useConfirmDialog entry line
The CollaborationProvider left the package entry in the previous batch and
nothing mounts it, so useCollaboration() is always null: delete the module
and the four designers' broadcast branches and status chips. VersionHistory
has no reader in the package or outside it: delete the module, its test and
its sub-barrel lines. useConfirmDialog stays module-local (seven designers
use it); only the entry and README stop publishing it.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jR9JS6qCZyzC5esvUr
refactor(plugin-designer)!: retire `useConfirmDialog` and `VersionHistory` from the entry, and delete the designers' dead collaboration code
6
+
7
+
Clause-②: yes
8
+
Metadata-protocol: none
9
+
10
+
<!-- adr-0087: not-required (runtime-export-retired @object-ui/plugin-designer#useConfirmDialog, @object-ui/plugin-designer#VersionHistory) the retired operands are a React hook and a React component in a published ui package's entry that nothing in the workspace or in hotcrm imported; no packages/spec schema, registered node type, ADR-0087 conversion surface or stored shape names them, so there is nothing for `objectstack migrate meta` to rewrite -->
11
+
12
+
**BREAKING** for a host that imports `useConfirmDialog` or `VersionHistory` from `@object-ui/plugin-designer`. Neither had an importer anywhere in the workspace or in hotcrm, so the Console and every `@object-ui/*` package are unaffected.
13
+
14
+
- The `VersionHistory` timeline module is deleted: nothing in the package rendered it. The `designer.versionHistory` translation key stays in the locale packs for now, with no reader.
15
+
-`useConfirmDialog` stays inside the package, because the designers use it for their delete prompts. Only the entry stops publishing it.
16
+
- The collaboration code that became unreachable once the previous release stopped exporting `CollaborationProvider` is deleted. That covers the provider module, the always-null `useCollaboration()` branches in the page, data model, process and report designers, and their "N users" / "Connected" toolbar chips. Nothing outside the package could mount the provider, so no designer behaves differently.
17
+
18
+
What leaves, and what to write instead (neither has a replacement export):
19
+
20
+
- FROM `useConfirmDialog` TO no replacement: render your own confirm prompt with `ConfirmDialog` (still exported) and local `useState`.
21
+
- FROM `VersionHistory` TO no replacement: render the version list in your own component. The designers never showed one.
0 commit comments