From b7b2b375d72ee20fd6c9c9cef2f07e0f2d8a7e85 Mon Sep 17 00:00:00 2001 From: Sarthak Agrawal Date: Wed, 12 Aug 2026 10:57:52 +0530 Subject: [PATCH 1/4] chore: adopt fleet code health gate --- .github/workflows/ci.yml | 17 +- .prettierignore | 3 + app/changelog/page.tsx | 29 +- app/components/CustomProgrammePlanner.tsx | 72 +- app/components/CustomWorkoutManager.tsx | 40 +- app/components/LegalPage.tsx | 77 +- app/globals.css | 18 +- app/lib/auth-client.ts | 8 +- app/lib/cloud-sync.ts | 17 +- app/lib/custom-programme.ts | 6 +- app/lib/custom-workouts.ts | 72 +- app/lib/history-analytics.ts | 21 +- app/lib/programme.ts | 50 +- app/lib/workout-data-transfer.ts | 12 +- app/lib/workout-state.ts | 71 +- app/page.tsx | 566 +++-- knip.json | 18 + next.config.ts | 4 +- package.json | 33 +- pnpm-lock.yaml | 2011 ++++++++++++++---- scripts/check-code-health.mjs | 386 ++++ scripts/check-native-code-health.mjs | 134 ++ tests/account-deletion.test.mjs | 14 +- tests/custom-programme.test.mjs | 21 +- tests/custom-workouts.test.mjs | 19 +- tests/history-analytics-performance.test.mjs | 7 +- tests/history-analytics.test.mjs | 32 +- tests/mcp-read.test.mjs | 17 +- tests/mcp-source.test.mjs | 24 +- tests/native-account.test.mjs | 43 +- tests/programme.test.mjs | 71 +- tests/rendered-html.test.mjs | 35 +- tests/workout-data-transfer.test.mjs | 4 +- worker-configuration.d.ts | 11 +- worker/agent-edge.mjs | 152 +- worker/auth.ts | 15 +- worker/index.ts | 117 +- worker/mcp.ts | 47 +- worker/native-handoff.ts | 2 +- worker/native-state.ts | 27 +- worker/schema.ts | 8 +- worker/state.ts | 25 +- 42 files changed, 3386 insertions(+), 970 deletions(-) create mode 100644 .prettierignore create mode 100644 knip.json create mode 100644 scripts/check-code-health.mjs create mode 100644 scripts/check-native-code-health.mjs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 489090b..847254d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,21 @@ jobs: timeout-minutes: 20 steps: - uses: actions/checkout@v6 - - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v6 with: node-version: 24 - cache: pnpm + - run: corepack enable && corepack install - run: pnpm install --frozen-lockfile - - run: pnpm run check + - run: pnpm check + + native-quality: + runs-on: macos-15 + timeout-minutes: 20 + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 + with: + node-version: 24 + - run: corepack enable && corepack install + - run: command -v xcodegen >/dev/null || brew install xcodegen + - run: pnpm quality:native diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..4b56525 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +worker-configuration.d.ts +worker/agent-edge.mjs +worker/agent-edge.d.mts diff --git a/app/changelog/page.tsx b/app/changelog/page.tsx index 1352e7b..8118bde 100644 --- a/app/changelog/page.tsx +++ b/app/changelog/page.tsx @@ -63,17 +63,23 @@ const releases = [ export const metadata: Metadata = { title: "Changelog — Setline", - description: "Meaningful improvements to Setline workout execution and history.", + description: + "Meaningful improvements to Setline workout execution and history.", }; export default function ChangelogPage() { return (
- SETLINE + + SETLINE + PRODUCT HISTORY

Changelog

-

Meaningful improvements to programme execution, rest timing, and workout history.

+

+ Meaningful improvements to programme execution, rest timing, and + workout history. +