Skip to content

Scheduling infrastructure for absolutely everyone.

small wxt related fixes (#25866)

Peer Richelsene46df92492d5
diff --git a/companion/components/LoginScreen.tsx b/companion/components/LoginScreen.tsx
index a5f765af15f..bdeb47bd3e4 100644
--- a/companion/components/LoginScreen.tsx
+++ b/companion/components/LoginScreen.tsx
@@ -32,7 +32,7 @@ export function LoginScreen() {
<View className="flex-1 bg-white">
{/* Logo centered in the middle */}
<View className="flex-1 items-center justify-center">
- <CalComLogo width={240} height={54} color="#111827" />
+ <CalComLogo width={180} height={40} color="#111827" />
</View>
{/* Bottom section with button */}
diff --git a/companion/extension/public/manifest.json b/companion/extension/public/manifest.json
index 615cf816908..97a39d5eac1 100644
--- a/companion/extension/public/manifest.json
+++ b/companion/extension/public/manifest.json
@@ -7,6 +7,15 @@
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'; frame-src 'self' https://companion.cal.com;"
},
+ "data_collection_permissions": {
+ "libraries": [
+ {
+ "name": "cal.com",
+ "url": "https://cal.com/privacy",
+ "purpose": "Booking and scheduling"
+ }
+ ]
+ },
"action": {
"default_title": "Cal.com Companion"
},
diff --git a/companion/package.json b/companion/package.json
index c7ec2deaffa..89ada9ddf86 100644
--- a/companion/package.json
+++ b/companion/package.json
@@ -9,6 +9,8 @@
"ios": "expo run:ios",
"web": "expo start --web",
"ext:build": "wxt build",
+ "build:firefox": "wxt build -b firefox",
+ "build:safari": "wxt build -b safari",
"ext": "wxt",
"ext:zip": "wxt zip",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
diff --git a/companion/wxt.config.ts b/companion/wxt.config.ts
index fa58ee34613..cf1fc88aa4f 100644
--- a/companion/wxt.config.ts
+++ b/companion/wxt.config.ts
@@ -1,6 +1,15 @@
import { defineConfig } from "wxt";
export default defineConfig({
+ hooks: {
+ "build:manifestGenerated": (_wxt, manifest) => {
+ manifest.browser_specific_settings ??= {};
+ manifest.browser_specific_settings.gecko ??= {};
+ manifest.browser_specific_settings.gecko.data_collection_permissions = {
+ required: ["none"],
+ };
+ },
+ },
srcDir: "extension",
entrypointsDir: "entrypoints",
publicDir: "extension/public",
@@ -20,6 +29,9 @@ export default defineConfig({
extension_pages:
"script-src 'self'; object-src 'self'; frame-src 'self' https://companion.cal.com",
},
+ data_collection_permissions: {
+ collects_data: false,
+ },
action: {
default_title: "Cal.com Companion",
default_icon: {