Skip to content

feat(webui): tidy public exports and add hooks - #2333

Merged
netomi merged 2 commits into
mainfrom
feat/webui-public-exports
Oct 14, 2026
Merged

netomi merged 2 commits into
mainfrom
feat/webui-public-exports

Conversation

@gnugomez

@gnugomez gnugomez commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Groups the index.ts exports by area and uses named exports, so the published surface is explicit.

Also exports hooks that consumers would otherwise rewrite themselves: useInView (with ViewportObserverContext for tests), useRegistryValue and useReportedQuery.

Breaking: stops exporting SearchActionContext, filterFromParams, filterToParams, SEARCH_DEBOUNCE_MS and ExtensionHeaderInfo, which were exposed by accident through export *.

Also drops the @types/react resolution left over from #2321, deduping csstype so the types build passes without it.

@gnugomez
gnugomez requested a review from netomi October 14, 2026 11:46
@gnugomez
gnugomez marked this pull request as draft October 14, 2026 11:47
@gnugomez
gnugomez requested a balanced review from Copilot October 14, 2026 11:48
@gnugomez
gnugomez marked this pull request as ready for review October 14, 2026 11:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The public API rewrite lacks the repository-required package-root contract test.

1 open finding
What changed in this PR

Refines the web UI package’s public API and exports reusable hooks while documenting breaking removals.

Changes:

  • Reorganizes explicit package-root exports and adds three hooks.
  • Removes accidentally exposed internals.
  • Removes the React type resolution and deduplicates csstype.
File Description
webui/​src/​index.ts Defines the revised public API.
webui/​package.json Removes the React type resolution.
webui/​yarn.lock Updates React types and deduplicates csstype.
webui/​CHANGELOG.md Documents additions and breaking removals.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread webui/src/index.ts Resolved
@netomi
netomi merged commit 6886cb1 into main Oct 14, 2026
6 checks passed
@netomi
netomi deleted the feat/webui-public-exports branch October 14, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants