Skip to content

[codex] Optimize VBI namespaces and dashboard examples#498

Merged
youngwinds merged 8 commits into
mainfrom
feat/vbi-optimize
May 20, 2026
Merged

[codex] Optimize VBI namespaces and dashboard examples#498
youngwinds merged 8 commits into
mainfrom
feat/vbi-optimize

Conversation

@youngwinds
Copy link
Copy Markdown
Collaborator

Summary

  • Add createVBI() namespaces for connectors, resources, dashboard, report, chart, and insight APIs.
  • Let dashboard widget builders resolve registered chart and insight resources, with focused builder tests.
  • Add generated dashboard builder examples, website docs, and the dashboard builder ADR.
  • Streamline the repository development skill guidance.

Breaking Change

Connector registration and lookup are now under VBI.connectors:

  • VBI.registerConnector(id, connector) -> VBI.connectors.register(id, connector)
  • VBI.getConnector(id) -> VBI.connectors.get(id)
  • direct connectorMap checks -> VBI.connectors.has(id) / VBI.connectors.unregister(id)

The legacy fields remain deprecated on VBIInstance, but app, practice, provider, CLI, website, and agent references were migrated to the namespaced API.

Validation

  • pnpm --filter=@visactor/vbi run test
  • pnpm --filter=@visactor/headless-bi-provider run test
  • pnpm --filter=@visactor/headless-bi-cli run test
  • pre-push turbo typecheck

jiangtao.yang added 4 commits May 20, 2026 01:18
BREAKING CHANGE: connector registration and lookup now use VBI.connectors.register/get/has/unregister. Migrate VBI.registerConnector(id, connector) to VBI.connectors.register(id, connector), VBI.getConnector(id) to VBI.connectors.get(id), and direct connectorMap checks to VBI.connectors.has(id) or unregister(id).
@youngwinds youngwinds marked this pull request as ready for review May 19, 2026 17:23
@youngwinds youngwinds merged commit 73c3d5e into main May 20, 2026
4 checks passed
@youngwinds youngwinds deleted the feat/vbi-optimize branch May 20, 2026 03:22
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.

1 participant