diff --git a/.github/actions/verify/action.yml b/.github/actions/verify/action.yml
index 92a7d7f6..bb1531ca 100644
--- a/.github/actions/verify/action.yml
+++ b/.github/actions/verify/action.yml
@@ -25,6 +25,9 @@ runs:
- name: Unit tests
shell: bash
run: pnpm test
+ - name: Bundle size and chunk separation check
+ shell: bash
+ run: pnpm bundle:report
- name: WAF smoke tests
if: inputs.deploy-domain != ''
shell: bash
diff --git a/.gitignore b/.gitignore
index dd68020c..d965d387 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
node_modules/
dist/
+dist-report/
mcp/dist/
dist/shared/
*.tsbuildinfo
diff --git a/.oxlintrc.json b/.oxlintrc.json
index 2afae691..c9fa99f0 100644
--- a/.oxlintrc.json
+++ b/.oxlintrc.json
@@ -13,6 +13,7 @@
},
"ignorePatterns": [
"dist/**",
+ "dist-report/**",
"mcp/dist/**",
"**/node_modules/**",
".wrangler/**",
@@ -78,6 +79,169 @@
"rules": {
"vitest/valid-expect": "off"
}
+ },
+ {
+ "files": ["src/app/**/*.{ts,tsx}"],
+ "rules": {
+ "no-restricted-imports": [
+ "error",
+ {
+ "paths": [
+ {
+ "name": "@sentry/solid",
+ "allowTypeImports": true,
+ "message": "Import from lib/sentry-facade instead of @sentry/solid directly so the Sentry SDK stays lazy-loaded."
+ }
+ ],
+ "patterns": [
+ {
+ "group": ["./github-emoji-map.json", "**/github-emoji-map.json"],
+ "allowTypeImports": true,
+ "message": "Import expandEmoji/loadEmojiMap from lib/emoji instead of importing github-emoji-map.json directly so the emoji map stays lazy-loaded."
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "files": ["src/app/lib/sentry-init.ts"],
+ "rules": {
+ "no-restricted-imports": [
+ "error",
+ {
+ "patterns": [
+ {
+ "group": ["./github-emoji-map.json", "**/github-emoji-map.json"],
+ "allowTypeImports": true,
+ "message": "Import expandEmoji/loadEmojiMap from lib/emoji instead of importing github-emoji-map.json directly so the emoji map stays lazy-loaded."
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "files": ["src/app/lib/emoji.ts"],
+ "rules": {
+ "no-restricted-imports": [
+ "error",
+ {
+ "paths": [
+ {
+ "name": "@sentry/solid",
+ "allowTypeImports": true,
+ "message": "Import from lib/sentry-facade instead of @sentry/solid directly so the Sentry SDK stays lazy-loaded."
+ }
+ ],
+ "patterns": [
+ {
+ "group": ["./github-emoji-map.json", "**/github-emoji-map.json"],
+ "importNamePattern": "^",
+ "allowTypeImports": true,
+ "message": "Lazily load github-emoji-map.json via dynamic import('./github-emoji-map.json') in lib/emoji."
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "files": [
+ "src/shared/schemas.ts",
+ "src/app/index.tsx",
+ "src/app/App.tsx",
+ "src/app/stores/**/*.ts",
+ "src/app/pages/**/*.tsx",
+ "src/app/lib/sentry.ts",
+ "src/app/lib/sentry-facade.ts",
+ "src/app/lib/use-credential-import.ts",
+ "src/app/lib/pat.ts",
+ "src/app/lib/oauth.ts",
+ "src/app/lib/proxy.ts",
+ "src/app/lib/dashboard-snapshot.ts",
+ "src/app/lib/errors.ts",
+ "src/app/services/jira-keys.ts",
+ "src/app/services/jira-client.ts",
+ "src/app/components/shared/LoadingSpinner.tsx"
+ ],
+ "rules": {
+ "no-restricted-imports": [
+ "error",
+ {
+ "paths": [
+ {
+ "name": "zod",
+ "allowTypeImports": true,
+ "message": "Use 'import * as z from \"zod/mini\"' on the boot path so classic Zod is not bundled into initial boot chunks."
+ },
+ {
+ "name": "@sentry/solid",
+ "allowTypeImports": true,
+ "message": "Import from lib/sentry-facade instead of @sentry/solid directly so the Sentry SDK stays lazy-loaded."
+ }
+ ],
+ "patterns": [
+ {
+ "group": [
+ "@octokit/*",
+ "bottleneck",
+ "*/services/github",
+ "./services/github",
+ "../services/github",
+ "*/lib/mcp-relay",
+ "./lib/mcp-relay",
+ "../lib/mcp-relay",
+ "*/lib/settings-transfer",
+ "./settings-transfer",
+ "../lib/settings-transfer"
+ ],
+ "importNamePattern": "^",
+ "allowTypeImports": true,
+ "message": "Boot-path modules must dynamically import services/github, lib/mcp-relay, and lib/settings-transfer (or use import type) to keep initial boot chunks lean."
+ },
+ {
+ "group": ["./github-emoji-map.json", "**/github-emoji-map.json"],
+ "allowTypeImports": true,
+ "message": "Import expandEmoji/loadEmojiMap from lib/emoji instead of importing github-emoji-map.json directly so the emoji map stays lazy-loaded."
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "files": [
+ "src/app/components/dashboard/DashboardPage.tsx",
+ "src/app/components/settings/CustomTabsSection.tsx"
+ ],
+ "rules": {
+ "no-restricted-imports": [
+ "error",
+ {
+ "paths": [
+ {
+ "name": "@sentry/solid",
+ "allowTypeImports": true,
+ "message": "Import from lib/sentry-facade instead of @sentry/solid directly so the Sentry SDK stays lazy-loaded."
+ }
+ ],
+ "patterns": [
+ {
+ "group": ["*/CustomTabModal", "../shared/CustomTabModal"],
+ "importNamePattern": "^",
+ "allowTypeImports": true,
+ "message": "Lazy-load CustomTabModal via lazy(() => import('../shared/CustomTabModal')) so it is excluded from initial dashboard/settings chunks."
+ },
+ {
+ "group": ["./github-emoji-map.json", "**/github-emoji-map.json"],
+ "allowTypeImports": true,
+ "message": "Import expandEmoji/loadEmojiMap from lib/emoji instead of importing github-emoji-map.json directly so the emoji map stays lazy-loaded."
+ }
+ ]
+ }
+ ]
+ }
}
]
}
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9858bcb1..f48f976b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -42,6 +42,7 @@ pnpm run typecheck # TypeScript validation (root + mcp/)
pnpm lint # Type-aware lint check (oxlint — root + mcp/)
pnpm lint:fix # Auto-fix safe lint findings (oxlint)
pnpm run screenshot # Capture dashboard screenshot (saves to docs/)
+pnpm bundle:report # Build and print client bundle sizes + top-20 entry modules (deploy-safe)
pnpm mcp:serve # Start the MCP server (requires GITHUB_TOKEN)
```
diff --git a/mcp/src/index.ts b/mcp/src/index.ts
index 8c3ba279..e8711792 100644
--- a/mcp/src/index.ts
+++ b/mcp/src/index.ts
@@ -30,10 +30,10 @@ const MAX_TRACKED_USERS = 10;
const MAX_MONITORED_REPOS = 10;
const ConfigUpdatePayloadSchema = z.object({
- selectedRepos: RepoRefSchema.array().max(MAX_REPOS).default([]),
- trackedUsers: TrackedUserSchema.array().max(MAX_TRACKED_USERS).default([]),
- upstreamRepos: RepoRefSchema.array().max(MAX_REPOS).default([]),
- monitoredRepos: RepoRefSchema.array().max(MAX_MONITORED_REPOS).default([]),
+ selectedRepos: z.array(RepoRefSchema).max(MAX_REPOS).default([]),
+ trackedUsers: z.array(TrackedUserSchema).max(MAX_TRACKED_USERS).default([]),
+ upstreamRepos: z.array(RepoRefSchema).max(MAX_REPOS).default([]),
+ monitoredRepos: z.array(RepoRefSchema).max(MAX_MONITORED_REPOS).default([]),
enableActions: z.boolean().default(true),
});
diff --git a/package.json b/package.json
index 745585d5..d3b26c50 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,8 @@
"test:status-smoke": "vitest run --config vitest.smoke.config.ts",
"screenshot": "pnpm exec playwright test --config playwright.config.screenshot.ts",
"mcp:serve": "pnpm --filter github-tracker-mcp dev",
- "validate:deploy": "bash scripts/validate-deploy.sh"
+ "validate:deploy": "bash scripts/validate-deploy.sh",
+ "bundle:report": "bash scripts/bundle-report.sh"
},
"dependencies": {
"@kobalte/core": "0.13.14",
@@ -49,6 +50,7 @@
"happy-dom": "21.0.4",
"oxlint": "1.89.0",
"oxlint-tsgolint": "7.0.2004",
+ "rollup-plugin-visualizer": "7.1.1",
"tailwindcss": "4.3.3",
"typescript": "7.0.2",
"vite": "8.3.4",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9172979e..e1160096 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -242,6 +242,9 @@ importers:
oxlint-tsgolint:
specifier: 7.0.2004
version: 7.0.2004
+ rollup-plugin-visualizer:
+ specifier: 7.1.1
+ version: 7.1.1(rolldown@1.2.15)(rollup@4.65.0)
tailwindcss:
specifier: 4.3.3
version: 4.3.3
@@ -1781,10 +1784,18 @@ packages:
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
engines: {node: '>=8'}
+ ansi-regex@6.4.0:
+ resolution: {integrity: sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==}
+ engines: {node: '>=12'}
+
ansi-styles@5.2.0:
resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==}
engines: {node: '>=10'}
+ ansi-styles@6.2.3:
+ resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==}
+ engines: {node: '>=12'}
+
any-promise@1.3.0:
resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
@@ -1844,6 +1855,10 @@ packages:
resolution: {integrity: sha512-nEh+kZOPY1w+gcCMobZ6ETUp9WfibndnosbpwB1iJk/8Gt5ZF2bhS6+B6bPYz424KtwsR6Rflc3tCz1/ghX2dQ==}
engines: {node: '>=4.0'}
+ bundle-name@4.1.1:
+ resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==}
+ engines: {node: '>=18'}
+
bundle-require@5.1.0:
resolution: {integrity: sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@@ -1884,6 +1899,10 @@ packages:
cjs-module-lexer@1.2.3:
resolution: {integrity: sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==}
+ cliui@9.0.1:
+ resolution: {integrity: sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==}
+ engines: {node: '>=20'}
+
code-block-writer@13.0.3:
resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==}
@@ -1952,6 +1971,18 @@ packages:
supports-color:
optional: true
+ default-browser-id@5.0.1:
+ resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==}
+ engines: {node: '>=18'}
+
+ default-browser@5.5.1:
+ resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==}
+ engines: {node: '>=18'}
+
+ define-lazy-prop@3.0.0:
+ resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==}
+ engines: {node: '>=12'}
+
depd@2.0.0:
resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
engines: {node: '>= 0.8'}
@@ -1977,6 +2008,9 @@ packages:
electron-to-chromium@1.5.463:
resolution: {integrity: sha512-nVWNU6ltFjopvOdD44J4zoBkgO0M+WZiFKKFV7EjebOH9z0KNphk6bCEjplXtJofL21ARIuuwWOCsFkBVklm6w==}
+ emoji-regex@10.6.0:
+ resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==}
+
encodeurl@2.0.0:
resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==}
engines: {node: '>= 0.8'}
@@ -2102,6 +2136,14 @@ packages:
resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
engines: {node: '>=6.9.0'}
+ get-caller-file@2.0.5:
+ resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
+ engines: {node: 6.* || 8.* || >= 10.*}
+
+ get-east-asian-width@1.7.0:
+ resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==}
+ engines: {node: '>=18'}
+
get-intrinsic@1.3.0:
resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
engines: {node: '>= 0.4'}
@@ -2158,6 +2200,20 @@ packages:
resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}
engines: {node: '>= 0.10'}
+ is-docker@3.0.0:
+ resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ hasBin: true
+
+ is-in-ssh@1.0.0:
+ resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==}
+ engines: {node: '>=20'}
+
+ is-inside-container@1.0.0:
+ resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==}
+ engines: {node: '>=14.16'}
+ hasBin: true
+
is-promise@4.0.0:
resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}
@@ -2165,6 +2221,10 @@ packages:
resolution: {integrity: sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==}
engines: {node: '>=12.13'}
+ is-wsl@3.1.1:
+ resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==}
+ engines: {node: '>=16'}
+
isexe@2.0.0:
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
@@ -2457,6 +2517,10 @@ packages:
once@1.4.0:
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
+ open@11.0.4:
+ resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==}
+ engines: {node: '>=20'}
+
oxlint-tsgolint@7.0.2004:
resolution: {integrity: sha512-vQ9WDF3fiZJvRdSDosNOflerOCOpwol6vWzVDxW76RcU19cjTh7engvkHLvmv+tzedR8fAiJUVUGr6IVZdkzXQ==}
hasBin: true
@@ -2550,6 +2614,10 @@ packages:
resolution: {integrity: sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==}
engines: {node: ^10 || ^12 || >=14}
+ powershell-utils@0.2.1:
+ resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==}
+ engines: {node: '>=20'}
+
pretty-format@27.5.1:
resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
@@ -2593,6 +2661,19 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
+ rollup-plugin-visualizer@7.1.1:
+ resolution: {integrity: sha512-ThaGiHTU8XW02OkK80TrTHATraJmM9OAduU4otal+7gyXLpYEtmGBLfx5kW+EHvvLwn03YGW2NnwKUIqsYlJAA==}
+ engines: {node: '>=22'}
+ hasBin: true
+ peerDependencies:
+ rolldown: 1.x || ^1.0.0-beta || ^1.0.0-rc
+ rollup: 2.x || 3.x || 4.x
+ peerDependenciesMeta:
+ rolldown:
+ optional: true
+ rollup:
+ optional: true
+
rollup@4.65.0:
resolution: {integrity: sha512-QVCvQUTGDN6JRwi3jVGCY3H4aTHvi9rX0LyoBMkGUvdh/Z6O51CzcLz85BWZaTCDGhl6ySGqYZs+xI1jmPqGcw==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
@@ -2602,6 +2683,10 @@ packages:
resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}
engines: {node: '>= 18'}
+ run-applescript@7.1.0:
+ resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}
+ engines: {node: '>=18'}
+
safer-buffer@2.1.2:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
@@ -2690,6 +2775,10 @@ packages:
resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}
engines: {node: '>=0.10.0'}
+ source-map@0.8.0:
+ resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==}
+ engines: {node: '>= 12'}
+
statuses@2.0.2:
resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
engines: {node: '>= 0.8'}
@@ -2697,6 +2786,18 @@ packages:
std-env@4.3.0:
resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==}
+ string-width@7.2.0:
+ resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}
+ engines: {node: '>=18'}
+
+ string-width@8.3.0:
+ resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==}
+ engines: {node: '>=20'}
+
+ strip-ansi@7.2.0:
+ resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==}
+ engines: {node: '>=12'}
+
sucrase@3.35.1:
resolution: {integrity: sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==}
engines: {node: '>=16 || 14 >=14.17'}
@@ -2951,6 +3052,10 @@ packages:
'@cloudflare/workers-types':
optional: true
+ wrap-ansi@9.0.2:
+ resolution: {integrity: sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==}
+ engines: {node: '>=18'}
+
wrappy@1.0.2:
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
@@ -2978,9 +3083,25 @@ packages:
utf-8-validate:
optional: true
+ wsl-utils@1.0.1:
+ resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==}
+ engines: {node: '>=20'}
+
+ y18n@5.0.8:
+ resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
+ engines: {node: '>=10'}
+
yallist@3.1.1:
resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
+ yargs-parser@22.0.0:
+ resolution: {integrity: sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==}
+ engines: {node: ^20.19.0 || ^22.12.0 || >=23}
+
+ yargs@18.2.0:
+ resolution: {integrity: sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==}
+ engines: {node: ^20.19.0 || ^22.12.0 || >=23}
+
youch-core@0.3.3:
resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==}
@@ -4137,8 +4258,12 @@ snapshots:
ansi-regex@5.0.1: {}
+ ansi-regex@6.4.0: {}
+
ansi-styles@5.2.0: {}
+ ansi-styles@6.2.3: {}
+
any-promise@1.3.0: {}
aria-query@5.3.0:
@@ -4203,6 +4328,10 @@ snapshots:
dependencies:
'@types/node': 26.6.5
+ bundle-name@4.1.1:
+ dependencies:
+ run-applescript: 7.1.0
+
bundle-require@5.1.0(esbuild@0.28.2):
dependencies:
esbuild: 0.28.2
@@ -4234,6 +4363,12 @@ snapshots:
cjs-module-lexer@1.2.3: {}
+ cliui@9.0.1:
+ dependencies:
+ string-width: 7.2.0
+ strip-ansi: 7.2.0
+ wrap-ansi: 9.0.2
+
code-block-writer@13.0.3: {}
commander@4.1.1: {}
@@ -4279,6 +4414,15 @@ snapshots:
optionalDependencies:
supports-color: 10.2.2
+ default-browser-id@5.0.1: {}
+
+ default-browser@5.5.1:
+ dependencies:
+ bundle-name: 4.1.1
+ default-browser-id: 5.0.1
+
+ define-lazy-prop@3.0.0: {}
+
depd@2.0.0: {}
dequal@2.0.3: {}
@@ -4297,6 +4441,8 @@ snapshots:
electron-to-chromium@1.5.463: {}
+ emoji-regex@10.6.0: {}
+
encodeurl@2.0.0: {}
enhanced-resolve@5.26.0:
@@ -4450,6 +4596,10 @@ snapshots:
gensync@1.0.0-beta.2: {}
+ get-caller-file@2.0.5: {}
+
+ get-east-asian-width@1.7.0: {}
+
get-intrinsic@1.3.0:
dependencies:
call-bind-apply-helpers: 1.0.2
@@ -4515,10 +4665,22 @@ snapshots:
ipaddr.js@1.9.1: {}
+ is-docker@3.0.0: {}
+
+ is-in-ssh@1.0.0: {}
+
+ is-inside-container@1.0.0:
+ dependencies:
+ is-docker: 3.0.0
+
is-promise@4.0.0: {}
is-what@4.1.16: {}
+ is-wsl@3.1.1:
+ dependencies:
+ is-inside-container: 1.0.0
+
isexe@2.0.0: {}
jiti@2.7.0: {}
@@ -4744,6 +4906,15 @@ snapshots:
dependencies:
wrappy: 1.0.2
+ open@11.0.4:
+ dependencies:
+ default-browser: 5.5.1
+ define-lazy-prop: 3.0.0
+ is-in-ssh: 1.0.0
+ is-inside-container: 1.0.0
+ powershell-utils: 0.2.1
+ wsl-utils: 1.0.1
+
oxlint-tsgolint@7.0.2004:
optionalDependencies:
'@oxlint-tsgolint/darwin-arm64': 7.0.2004
@@ -4828,6 +4999,8 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.2
+ powershell-utils@0.2.1: {}
+
pretty-format@27.5.1:
dependencies:
ansi-regex: 5.0.1
@@ -4884,6 +5057,16 @@ snapshots:
'@rolldown/binding-win32-arm64-msvc': 1.2.15
'@rolldown/binding-win32-x64-msvc': 1.2.15
+ rollup-plugin-visualizer@7.1.1(rolldown@1.2.15)(rollup@4.65.0):
+ dependencies:
+ open: 11.0.4
+ picomatch: 4.0.7
+ source-map: 0.8.0
+ yargs: 18.2.0
+ optionalDependencies:
+ rolldown: 1.2.15
+ rollup: 4.65.0
+
rollup@4.65.0:
dependencies:
'@types/estree': 1.0.9
@@ -4926,6 +5109,8 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ run-applescript@7.1.0: {}
+
safer-buffer@2.1.2: {}
semver@6.3.1: {}
@@ -5059,10 +5244,27 @@ snapshots:
source-map-js@1.2.2: {}
+ source-map@0.8.0: {}
+
statuses@2.0.2: {}
std-env@4.3.0: {}
+ string-width@7.2.0:
+ dependencies:
+ emoji-regex: 10.6.0
+ get-east-asian-width: 1.7.0
+ strip-ansi: 7.2.0
+
+ string-width@8.3.0:
+ dependencies:
+ get-east-asian-width: 1.7.0
+ strip-ansi: 7.2.0
+
+ strip-ansi@7.2.0:
+ dependencies:
+ ansi-regex: 6.4.0
+
sucrase@3.35.1:
dependencies:
'@jridgewell/gen-mapping': 0.3.13
@@ -5290,14 +5492,38 @@ snapshots:
- bufferutil
- utf-8-validate
+ wrap-ansi@9.0.2:
+ dependencies:
+ ansi-styles: 6.2.3
+ string-width: 7.2.0
+ strip-ansi: 7.2.0
+
wrappy@1.0.2: {}
ws@8.21.0: {}
ws@8.22.0: {}
+ wsl-utils@1.0.1:
+ dependencies:
+ is-wsl: 3.1.1
+ powershell-utils: 0.2.1
+
+ y18n@5.0.8: {}
+
yallist@3.1.1: {}
+ yargs-parser@22.0.0: {}
+
+ yargs@18.2.0:
+ dependencies:
+ cliui: 9.0.1
+ escalade: 3.2.0
+ get-caller-file: 2.0.5
+ string-width: 8.3.0
+ y18n: 5.0.8
+ yargs-parser: 22.0.0
+
youch-core@0.3.3:
dependencies:
'@poppinss/exception': 1.2.3
diff --git a/scripts/bundle-report.sh b/scripts/bundle-report.sh
new file mode 100755
index 00000000..8ac1c5b4
--- /dev/null
+++ b/scripts/bundle-report.sh
@@ -0,0 +1,246 @@
+#!/usr/bin/env bash
+# Usage: pnpm bundle:report
+# Builds the application into dist-report/ with rollup-plugin-visualizer enabled
+# for the client environment, prints raw + gzip -9 asset sizes and top-20 entry
+# chunk modules, and preserves .wrangler/deploy/config.json so subsequent
+# wrangler deploy invocations never ship the report build.
+set -euo pipefail
+
+WRANGLER_CONFIG=".wrangler/deploy/config.json"
+WRANGLER_BACKUP=".wrangler/deploy/config.json.bak"
+HAD_WRANGLER_CONFIG=0
+
+if [[ -f "$WRANGLER_CONFIG" ]]; then
+ HAD_WRANGLER_CONFIG=1
+ cp "$WRANGLER_CONFIG" "$WRANGLER_BACKUP"
+fi
+
+cleanup() {
+ if [[ "$HAD_WRANGLER_CONFIG" -eq 1 ]]; then
+ if [[ -f "$WRANGLER_BACKUP" ]]; then
+ mkdir -p "$(dirname "$WRANGLER_CONFIG")"
+ mv "$WRANGLER_BACKUP" "$WRANGLER_CONFIG"
+ fi
+ else
+ rm -f "$WRANGLER_CONFIG" "$WRANGLER_BACKUP"
+ fi
+}
+trap cleanup EXIT
+
+BUNDLE_REPORT=1 VITE_SENTRY_DSN=https://public@o0.ingest.sentry.io/0 pnpm exec vite build --outDir dist-report
+
+node -e '
+const fs = require("node:fs");
+const path = require("node:path");
+const zlib = require("node:zlib");
+
+const clientDir = path.join("dist-report", "client");
+if (!fs.existsSync(clientDir)) {
+ console.error("Missing client build directory:", clientDir);
+ process.exit(1);
+}
+
+const files = [];
+for (const sub of fs.readdirSync(clientDir, { withFileTypes: true })) {
+ if (!sub.isDirectory()) continue;
+ const subDir = path.join(clientDir, sub.name);
+ for (const entry of fs.readdirSync(subDir, { withFileTypes: true })) {
+ if (!entry.isFile()) continue;
+ if (!/^.+-[^/]+\.(js|css)$/.test(entry.name)) continue;
+ const relPath = path.posix.join(sub.name, entry.name);
+ const fullPath = path.join(subDir, entry.name);
+ const buf = fs.readFileSync(fullPath);
+ const rawBytes = buf.length;
+ const gzipBytes = zlib.gzipSync(buf, { level: 9 }).length;
+ files.push({ relPath, name: entry.name, ext: path.extname(entry.name), rawBytes, gzipBytes });
+ }
+}
+
+files.sort((a, b) => b.rawBytes - a.rawBytes);
+
+const fmtKb = (bytes) => `${(bytes / 1024).toFixed(2)} KB (${bytes} B)`;
+
+console.log("\n=== Client Hashed Assets (dist-report/client/*/*-*.{js,css}) ===");
+let totalJsRaw = 0;
+let totalJsGzip = 0;
+let totalCssRaw = 0;
+let totalCssGzip = 0;
+let entryAsset = null;
+
+for (const f of files) {
+ if (f.ext === ".js") {
+ totalJsRaw += f.rawBytes;
+ totalJsGzip += f.gzipBytes;
+ if (/^index-[^/]+\.js$/.test(f.name)) {
+ entryAsset = f;
+ }
+ } else if (f.ext === ".css") {
+ totalCssRaw += f.rawBytes;
+ totalCssGzip += f.gzipBytes;
+ }
+ console.log(`${f.relPath.padEnd(48)} raw: ${fmtKb(f.rawBytes).padEnd(22)} gzip-9: ${fmtKb(f.gzipBytes)}`);
+}
+
+const htmlPath = path.join(clientDir, "index.html");
+const initialRelPaths = new Set();
+if (fs.existsSync(htmlPath)) {
+ const html = fs.readFileSync(htmlPath, "utf8");
+ for (const token of html.split(/\s+/)) {
+ if (token.startsWith("src=") || token.startsWith("href=")) {
+ const firstQuote = token.indexOf("=") + 1;
+ const quoteChar = token[firstQuote];
+ const endQuote = token.indexOf(quoteChar, firstQuote + 1);
+ if (endQuote > firstQuote) {
+ const val = token.slice(firstQuote + 1, endQuote).replace(/^\//, "");
+ if (val.endsWith(".js")) initialRelPaths.add(val);
+ }
+ }
+ }
+}
+
+console.log("\n=== Summary ===");
+if (entryAsset) {
+ console.log(`Entry JS (${entryAsset.relPath}): raw ${fmtKb(entryAsset.rawBytes)} | gzip-9 ${fmtKb(entryAsset.gzipBytes)}`);
+}
+const bootAssets = files.filter((f) => initialRelPaths.has(f.relPath) || (entryAsset && f.relPath === entryAsset.relPath));
+if (bootAssets.length > 1) {
+ const bootRaw = bootAssets.reduce((s, f) => s + f.rawBytes, 0);
+ const bootGzip = bootAssets.reduce((s, f) => s + f.gzipBytes, 0);
+ console.log(`Initial Boot JS (${bootAssets.map((f) => f.relPath).join(" + ")}): raw ${fmtKb(bootRaw)} | gzip-9 ${fmtKb(bootGzip)}`);
+}
+console.log(`Total JS: raw ${fmtKb(totalJsRaw)} | gzip-9 ${fmtKb(totalJsGzip)}`);
+console.log(`Total CSS: raw ${fmtKb(totalCssRaw)} | gzip-9 ${fmtKb(totalCssGzip)}`);
+
+const statsPath = path.join("dist-report", "stats.json");
+if (!fs.existsSync(statsPath)) {
+ console.error("Missing visualizer stats file:", statsPath);
+ process.exit(1);
+}
+
+const stats = JSON.parse(fs.readFileSync(statsPath, "utf8"));
+const nodeMetas = Object.values(stats.nodeMetas || {});
+const nodeParts = stats.nodeParts || {};
+
+const bundleIds = new Set();
+for (const meta of nodeMetas) {
+ for (const bId of Object.keys(meta.moduleParts || {})) {
+ bundleIds.add(bId);
+ }
+}
+const entryBundleId = [...bundleIds].find((id) => /(?:^|\/)index-[^/]+\.js$/.test(id));
+if (!entryBundleId) {
+ console.error("Could not find entry chunk (index-*.js) in stats.json bundleIds:", [...bundleIds]);
+ process.exit(1);
+}
+
+const bootBundleIds = [...bundleIds].filter((id) => initialRelPaths.has(id) || id === entryBundleId);
+const bootLabel = bootBundleIds.join(" + ");
+
+const entryModules = [];
+let zodEntryBytes = 0;
+const zodModules = [];
+
+for (const meta of nodeMetas) {
+ let renderedLength = 0;
+ for (const bId of bootBundleIds) {
+ const partUid = meta.moduleParts && meta.moduleParts[bId];
+ if (!partUid) continue;
+ const part = nodeParts[partUid];
+ if (part && part.renderedLength) renderedLength += part.renderedLength;
+ }
+ if (!renderedLength) continue;
+ entryModules.push({ id: meta.id, renderedLength });
+ if (meta.id.includes("/node_modules/zod/") || meta.id.includes("/node_modules/.pnpm/zod@")) {
+ zodEntryBytes += renderedLength;
+ zodModules.push({ id: meta.id, renderedLength });
+ }
+}
+
+entryModules.sort((a, b) => b.renderedLength - a.renderedLength);
+
+console.log(`\n=== Top 20 Modules by Rendered Size in Entry/Boot Chunks (${bootLabel}) ===`);
+for (const [idx, mod] of entryModules.slice(0, 20).entries()) {
+ console.log(`${String(idx + 1).padStart(2)}. ${fmtKb(mod.renderedLength).padEnd(22)} ${mod.id}`);
+}
+
+console.log(`\n=== Entry/Boot Chunk Zod Breakdown (${bootLabel}) ===`);
+console.log(`Total zod rendered in entry/boot chunks: ${fmtKb(zodEntryBytes)} across ${zodModules.length} module(s)`);
+
+console.log("\n=== Bundle Budget & Separation Verification ===");
+let failed = false;
+
+const forbiddenBootPatterns = [
+ { re: /node_modules\/.*@sentry\//, label: "@sentry/* must be lazy-loaded via sentry-init" },
+ { re: /node_modules\/.*@octokit\//, label: "@octokit/* must be deferred off boot path" },
+ { re: /node_modules\/.*bottleneck\//, label: "bottleneck must be deferred off boot path" },
+ { re: /src\/app\/lib\/mcp-relay\.ts$/, label: "mcp-relay must be deferred off boot path" },
+ { re: /src\/app\/lib\/settings-transfer\.ts$/, label: "settings-transfer must be dynamically imported" },
+ { re: /src\/app\/lib\/github-emoji-map\.json$/, label: "github-emoji-map.json must be lazy-loaded" },
+ { re: /src\/app\/components\/shared\/CustomTabModal\.tsx$/, label: "CustomTabModal must be lazy-loaded" },
+ { re: /node_modules\/.*zod\/v4\/classic\//, label: "classic zod runtime must not be in boot chunks; use zod/mini" },
+ { re: /node_modules\/.*zod\/v4\/core\/to-json-schema\.js$/, label: "Zod JSON Schema converter must not be in boot chunks" },
+];
+
+for (const rule of forbiddenBootPatterns) {
+ const matches = entryModules.filter((m) => rule.re.test(m.id));
+ if (matches.length > 0) {
+ failed = true;
+ console.error(`[FAIL] Forbidden boot module (${rule.label}):`);
+ for (const m of matches) {
+ console.error(` - ${m.id} (${fmtKb(m.renderedLength)})`);
+ }
+ } else {
+ console.log(`[PASS] Boot module check: ${rule.label}`);
+ }
+}
+
+const dashboardAsset = files.find((f) => /^DashboardPage-[^/]+\.js$/.test(f.name));
+const sentryInitAsset = files.find((f) => /^sentry-init-[^/]+\.js$/.test(f.name));
+const bootGzipBytes = bootAssets.reduce((s, f) => s + f.gzipBytes, 0);
+
+const sizeBudgets = [
+ {
+ name: "Entry JS (index-*.js)",
+ actual: entryAsset ? entryAsset.gzipBytes : null,
+ max: 35 * 1024,
+ },
+ {
+ name: "Combined Initial Boot JS",
+ actual: bootAssets.length > 0 ? bootGzipBytes : null,
+ max: 68 * 1024,
+ },
+ {
+ name: "DashboardPage-*.js chunk",
+ actual: dashboardAsset ? dashboardAsset.gzipBytes : null,
+ max: 68 * 1024,
+ },
+ {
+ name: "sentry-init-*.js chunk",
+ actual: sentryInitAsset ? sentryInitAsset.gzipBytes : null,
+ max: 35 * 1024,
+ },
+ {
+ name: "Total CSS (index-*.css)",
+ actual: totalCssGzip > 0 ? totalCssGzip : null,
+ max: 30 * 1024,
+ },
+];
+
+for (const budget of sizeBudgets) {
+ if (budget.actual === null) {
+ failed = true;
+ console.error(`[FAIL] ${budget.name}: asset not found in build output`);
+ } else if (budget.actual > budget.max) {
+ failed = true;
+ console.error(`[FAIL] ${budget.name}: gzip-9 ${fmtKb(budget.actual)} exceeds budget ${fmtKb(budget.max)}`);
+ } else {
+ console.log(`[PASS] ${budget.name}: gzip-9 ${fmtKb(budget.actual)} <= budget ${fmtKb(budget.max)}`);
+ }
+}
+
+if (failed) {
+ console.error("\nBundle verification FAILED.");
+ process.exit(1);
+}
+console.log("\nAll bundle size budgets and chunk separation checks PASSED.");
+'
diff --git a/src/app/App.tsx b/src/app/App.tsx
index 83651389..df768615 100644
--- a/src/app/App.tsx
+++ b/src/app/App.tsx
@@ -1,17 +1,24 @@
-import { createSignal, createEffect, on, onMount, onCleanup, Show, ErrorBoundary, Suspense, lazy, type JSX } from "solid-js";
-import * as Sentry from "@sentry/solid";
+import { createSignal, createEffect, on, onMount, onCleanup, getOwner, runWithOwner, Show, ErrorBoundary, Suspense, lazy, type JSX } from "solid-js";
+import { reportBoundaryError } from "./lib/sentry-facade";
import { Router, Route, Navigate, useNavigate } from "@solidjs/router";
import { isAuthenticated, validateToken, AUTH_STORAGE_KEY } from "./stores/auth";
import { config, initConfigPersistence, resolveTheme } from "./stores/config";
import { initViewPersistence, pruneStaleIgnoredItems } from "./stores/view";
import { evictStaleEntries, evictKeysWithPrefix } from "./stores/cache";
-import { initClientWatcher } from "./services/github";
-import { initMcpRelay } from "./lib/mcp-relay";
import LoginPage from "./pages/LoginPage";
import OAuthCallback from "./pages/OAuthCallback";
import JiraCallback from "./pages/JiraCallback";
import PrivacyPage from "./pages/PrivacyPage";
+let authInitStarted = false;
+let authInitGen = 0;
+
+/** @internal Test-only reset helper for authInitStarted across App renders */
+export function _resetAuthInitStartedForTests(): void {
+ authInitStarted = false;
+ authInitGen++;
+}
+
const CHUNK_RELOAD_KEY = "github-tracker:chunk-reload";
const CHUNK_RELOAD_MAX_AGE = 10_000;
@@ -33,8 +40,6 @@ const DashboardPage = lazyWithReload(() => import("./components/dashboard/Dashbo
const OnboardingWizard = lazyWithReload(() => import("./components/onboarding/OnboardingWizard"));
const SettingsPage = lazyWithReload(() => import("./components/settings/SettingsPage"));
-const SentryErrorBoundary = Sentry.withSentryErrorBoundary(ErrorBoundary);
-
function handleRouteError(err: unknown) {
console.error("[app] Route render failed:", err);
return ;
@@ -165,6 +170,34 @@ function RootRedirect() {
}
export default function App() {
+ const appOwner = getOwner();
+ let disposed = false;
+ onCleanup(() => {
+ disposed = true;
+ });
+
+ createEffect(
+ on(isAuthenticated, (authed) => {
+ if (!authed || authInitStarted) return;
+ authInitStarted = true;
+ const capturedGen = authInitGen;
+ void Promise.all([import("./services/github"), import("./lib/mcp-relay")])
+ .then(([gh, relay]) => {
+ if (disposed || capturedGen !== authInitGen) return undefined;
+ return runWithOwner(appOwner, () => {
+ gh.initClientWatcher();
+ relay.initMcpRelay();
+ });
+ })
+ .catch(() => {
+ // Non-fatal — dynamic import failure or test environment teardown
+ if (!disposed && capturedGen === authInitGen) {
+ authInitStarted = false;
+ }
+ });
+ }),
+ );
+
createEffect(() => {
document.documentElement.setAttribute("data-theme", resolveTheme(config.theme));
});
@@ -204,8 +237,6 @@ export default function App() {
// All reactive init functions must be called inside the component tree
initConfigPersistence();
initViewPersistence();
- initClientWatcher();
- initMcpRelay();
pruneStaleIgnoredItems();
const staleCacheMaxAgeMs = 24 * 60 * 60 * 1000;
@@ -232,7 +263,12 @@ export default function App() {
});
return (
-
+ {
+ reportBoundaryError(err);
+ return handleRouteError(err);
+ }}
+ >
@@ -250,6 +286,6 @@ export default function App() {
} />
-
+
);
}
diff --git a/src/app/components/dashboard/DashboardPage.tsx b/src/app/components/dashboard/DashboardPage.tsx
index 8413975b..0e926a1b 100644
--- a/src/app/components/dashboard/DashboardPage.tsx
+++ b/src/app/components/dashboard/DashboardPage.tsx
@@ -1,4 +1,4 @@
-import { batch, createSignal, createMemo, createEffect, on, Show, Switch, Match, onMount, onCleanup, untrack } from "solid-js";
+import { batch, createSignal, createMemo, createEffect, on, Show, Switch, Match, Suspense, lazy, onMount, onCleanup, untrack } from "solid-js";
import { createStore, produce, reconcile, unwrap } from "solid-js/store";
import { z } from "zod";
import Header from "../layout/Header";
@@ -49,10 +49,12 @@ import { Tooltip } from "../shared/Tooltip";
import { isIssueVisible, isPrVisible, isRunVisible, matchesActionsConclusionFilter } from "../../lib/filters";
import { isUserInvolved } from "../../lib/grouping";
import { KNOWN_CONCLUSIONS, KNOWN_EVENTS } from "../shared/filterTypes";
-import CustomTabModal from "../shared/CustomTabModal";
+import { loadEmojiMap } from "../../lib/emoji";
import { mergeActiveFilters } from "../../lib/tabFilters";
import type { CustomTab } from "../../stores/config";
+const CustomTabModal = lazy(() => import("../shared/CustomTabModal"));
+
// Hoisted to module scope — these are constant values (Zod schema defaults).
const ISSUE_FILTER_DEFAULTS = IssueFiltersSchema.parse({});
const PR_FILTER_DEFAULTS = PullRequestFiltersSchema.parse({});
@@ -883,6 +885,10 @@ export default function DashboardPage() {
const [clockTick, setClockTick] = createSignal(0);
const [showCustomTabModal, setShowCustomTabModal] = createSignal(false);
+ const [customTabModalEverOpened, setCustomTabModalEverOpened] = createSignal(false);
+ createEffect(() => {
+ if (showCustomTabModal()) setCustomTabModalEverOpened(true);
+ });
const [editingTabId, setEditingTabId] = createSignal(null);
const editingTab = createMemo(() => {
const id = editingTabId();
@@ -974,6 +980,8 @@ export default function DashboardPage() {
});
onMount(() => {
+ void loadEmojiMap();
+
if (
!realDataCommitted &&
dashboardData.issues.length === 0 &&
@@ -2112,14 +2120,18 @@ export default function DashboardPage() {
- { setShowCustomTabModal(false); setEditingTabId(null); }}
- editingTab={editingTab()}
- availableOrgs={[...new Set(config.selectedRepos.map((r) => r.owner))]}
- availableRepos={config.selectedRepos}
- enableActions={config.enableActions}
- />
+
+
+ { setShowCustomTabModal(false); setEditingTabId(null); }}
+ editingTab={editingTab()}
+ availableOrgs={[...new Set(config.selectedRepos.map((r) => r.owner))]}
+ availableRepos={config.selectedRepos}
+ enableActions={config.enableActions}
+ />
+
+