Skip to content

feat(overlay): add manual overlay initialization and support for Capacitor apps - #21

Draft
erkamyaman wants to merge 3 commits into
pangular-inspector:mainfrom
erkamyaman:feat/capacitor-support
Draft

erkamyaman wants to merge 3 commits into
pangular-inspector:mainfrom
erkamyaman:feat/capacitor-support

Conversation

@erkamyaman

@erkamyaman erkamyaman commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Still exploring this one, so it's a draft for now. Inspired by @NathanWalker's NativeScript work in #16.

Ionic/Capacitor apps run in a WebView, so the overlay already worked there. It just couldn't connect back to the devtools server on my machine.

Two small fixes:

  • initOverlay now accepts connectionMeta. The app can't fetch __connection.json cross-origin, so you pass it in.
  • Added /overlay-manual, which doesn't auto-start. /overlay still does. Without it you get a second connection that fails, plus the popup button on the phone.

The Capacitor dock in the hub is no longer "Coming Soon". It now shows the setup steps and links to the new Capacitor guide.

import('@pangular-inspector/devtools/overlay-manual').then(({ initOverlay }) =>
  initOverlay({
    baseURL: 'http://localhost:4000/__pangular/',
    connectionMeta: { backend: 'sse', sse: { path: '__sse' } },
  }),
);
capacitor-demo.mp4

@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

# Conflicts:
#	apps/docs/src/content/contributing/publishing.md
#	apps/docs/src/content/getting-started/installation.md
#	apps/docs/src/ngmd.config.ts
#	examples/analog/vite.config.ts
#	extension/ui/assets/browser-agent-rpc-BXhoSh1z-BX9DCYBv.js
#	extension/ui/assets/browser-agent-rpc-BXhoSh1z-D56mkq13.js
#	extension/ui/assets/browser-agent-rpc-BXhoSh1z-ZQx-Fu86.js
#	extension/ui/assets/index-BlFdPCLz.js
#	extension/ui/assets/index-CixrtvpV.js
#	extension/ui/assets/index-D2hW2yx5.js
#	extension/ui/index.html
#	packages/devtools/src/__tests__/hub.test.ts
#	packages/devtools/src/__tests__/overlay-dispose.test.ts
#	packages/devtools/src/__tests__/overlay-manual.test.ts
#	packages/devtools/src/hub-docks.ts
#	packages/devtools/src/overlay-auto.ts
#	packages/devtools/src/overlay-popup.ts
@github-actions github-actions Bot added area: panel The devtools panel app (app/) area: package The ng-devtools package (packages/ng-devtools) area: extension The Chrome extension area: demo The demo apps area: docs The documentation site labels Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: demo The demo apps area: docs The documentation site area: extension The Chrome extension area: package The ng-devtools package (packages/ng-devtools) area: panel The devtools panel app (app/)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant