Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: handle companion app in manifest #512

Merged
merged 15 commits into from
Jan 10, 2025

Conversation

frontendphil
Copy link
Member

Part of #469

The companion app should eventually take over what the connect app does currently. Since we might want to integrate the extension and the companion app more closely, we need to be able to dynamically tell the extension where the companion app resides (e.g., during development, you might want the URL to point to a local instance instead of the deployed one).

This PR introduces a new CONNECT_IFRAME_URL environment variable and also creates the manifest.json dynamically when the app builds. This way, we can ensure that the manifest reflects the current development setup and that URL rules also reflect this.

Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zodiac-pilot-example-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 4:03pm

@frontendphil frontendphil force-pushed the feat/handle-companion-app-in-manifest branch from 3cf553a to 540a238 Compare January 10, 2025 14:04
Copy link

cloudflare-workers-and-pages bot commented Jan 10, 2025

Deploying zodiac-pilot with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2cceaa1
Status: ✅  Deploy successful!
Preview URL: https://838186bb.zodiac-pilot-29m.pages.dev
Branch Preview URL: https://feat-handle-companion-app-in.zodiac-pilot-29m.pages.dev

View logs

Copy link

cloudflare-workers-and-pages bot commented Jan 10, 2025

Deploying zodiac-pilot-connect with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2cceaa1
Status: ✅  Deploy successful!
Preview URL: https://9386aafa.zodiac-pilot.pages.dev
Branch Preview URL: https://feat-handle-companion-app-in.zodiac-pilot.pages.dev

View logs

Copy link

github-actions bot commented Jan 10, 2025

Coverage Report for deployables/extension

Status Category Percentage Covered / Total
🔵 Lines 62.42% 4779 / 7656
🔵 Statements 62.42% 4779 / 7656
🔵 Functions 69.21% 272 / 393
🔵 Branches 79.56% 732 / 920
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
deployables/extension/src/connect/contentScripts/dApp.ts 57.64% 50% 100% 57.64% 34-64, 72-73, 79-82, 94-95, 109-114
Generated in workflow #619 for commit 2cceaa1 by the Vitest Coverage Report Action

@frontendphil frontendphil force-pushed the feat/handle-companion-app-in-manifest branch from 5966aa6 to 2cceaa1 Compare January 10, 2025 16:02
@frontendphil frontendphil merged commit ec1ef85 into main Jan 10, 2025
16 checks passed
@frontendphil frontendphil deleted the feat/handle-companion-app-in-manifest branch January 10, 2025 16:05
@github-actions github-actions bot locked and limited conversation to collaborators Jan 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant