Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/actions/verify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
dist/
dist-report/
mcp/dist/
dist/shared/
*.tsbuildinfo
Expand Down
164 changes: 164 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"ignorePatterns": [
"dist/**",
"dist-report/**",
"mcp/dist/**",
"**/node_modules/**",
".wrangler/**",
Expand Down Expand Up @@ -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."
}
]
}
]
}
}
]
}
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down
8 changes: 4 additions & 4 deletions mcp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Loading
Loading