From a062db6409748e4722a246c8f7d57ed0b4484af3 Mon Sep 17 00:00:00 2001 From: saagpatel <269905221+saagpatel@users.noreply.github.com> Date: Mon, 12 Oct 2026 23:37:50 -0700 Subject: [PATCH 01/12] chore: apply prettier across repository --- CHANGELOG.md | 3 + CODE_OF_CONDUCT.md | 20 +- SECURITY.md | 1 + commitlint.config.mjs | 17 +- docs/PORTFOLIO-DISPOSITION.md | 31 +-- pet.html | 4 +- scripts/check_performance_budget.mjs | 22 +- scripts/pack_qa.mjs | 56 +++-- scripts/perf/bundle-report.mjs | 18 +- scripts/perf/summarize.mjs | 11 +- src/components/panel/AchievementsPanel.tsx | 24 ++- src/components/panel/CoinDisplay.tsx | 28 ++- src/components/panel/GoalsList.tsx | 15 +- src/components/panel/ShopPanel.tsx | 30 ++- src/components/panel/StatsPanel.tsx | 35 +++- src/components/panel/TaskList.tsx | 36 +++- src/components/panel/TimerDisplay.tsx | 30 ++- .../panel/__tests__/CoinDisplay.test.tsx | 44 +++- .../CustomizationPanel.smoke.test.tsx | 17 +- .../CustomizationPanel.validator.test.tsx | 14 +- .../panel/__tests__/GoalsList.test.tsx | 34 ++- .../panel/__tests__/ShopPanel.test.tsx | 20 +- .../panel/__tests__/TaskList.test.tsx | 18 +- .../panel/__tests__/TimerDisplay.test.tsx | 22 +- src/components/pet/PetCharacter.tsx | 12 +- src/components/pet/PetStage1.tsx | 49 ++++- src/components/pet/PetStage2.tsx | 85 +++++++- src/components/pet/PetStage3.tsx | 102 +++++++-- .../pet/__tests__/PetCharacter.test.tsx | 16 +- src/components/pet/animations.css | 194 ++++++++++++++---- src/components/shared/AchievementBadge.tsx | 14 +- src/components/shared/CoinBadge.tsx | 18 +- src/components/shared/ProgressBar.tsx | 4 +- .../shared/__tests__/ErrorBoundary.test.tsx | 20 +- .../shared/__tests__/ProgressBar.test.tsx | 4 +- src/hooks/__tests__/useAchievements.test.ts | 4 +- src/hooks/__tests__/useSettings.test.ts | 97 +++++---- src/hooks/useAchievements.ts | 16 +- src/hooks/useAnalytics.ts | 4 +- src/hooks/useCoins.ts | 20 +- src/hooks/useCustomization.ts | 37 ++-- src/hooks/usePet.ts | 58 ++++-- src/hooks/useProgress.ts | 6 +- src/hooks/useSettings.ts | 6 +- src/lib/__tests__/constants.test.ts | 8 +- src/lib/__tests__/photoBooth.test.ts | 9 +- src/lib/__tests__/utils.test.ts | 2 +- src/lib/photoBooth.ts | 18 +- src/lib/themes.ts | 2 +- src/panel-main.tsx | 2 +- src/pet-main.tsx | 2 +- src/pet.css | 4 +- src/pets/__tests__/packValidation.test.ts | 9 +- src/pets/__tests__/species.test.ts | 12 +- src/pets/accessoryBehavior.ts | 5 +- src/pets/behaviorComposer.ts | 29 ++- src/pets/packValidation.ts | 54 +++-- src/pets/packs/axolotl.json | 6 +- src/pets/packs/corgi.json | 6 +- src/pets/packs/penguin.json | 6 +- src/pets/seasonal/spring-blossom.json | 16 +- src/pets/seasonal/winter-cozy.json | 16 +- src/pets/seasonalPacks.ts | 4 +- src/pets/species.ts | 25 ++- 64 files changed, 1163 insertions(+), 388 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62c6624..9fdd304 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.0.0] - 2026-03-22 ### Added + - Initial Desktop Pet / Pomodoro Buddy - Streamlined UI with penguin icon and minimal floating pet - Deepen pet interactions, customization, and guardrails @@ -29,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Pre-signing handoff documentation ### Fixed + - Honor DesktopPEt gitleaks skip flag - Stabilize overlay recovery and app flows - Increase pet window size to fit all evolution stages @@ -38,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Normalize import settings and preserve loadout FIFO ### Changed + - Harden verification and packaging for release - Complete audit hardening and ops tooling - Cover backup and diagnostics settings flows diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 4c38b83..22be14d 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -13,19 +13,19 @@ identity and orientation. Examples of behavior that contributes to a positive environment: -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Focusing on what is best for the community +- Showing empathy towards other community members Examples of unacceptable behavior: -* The use of sexualized language or imagery, and sexual attention or advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting +- The use of sexualized language or imagery, and sexual attention or advances of any kind +- Trolling, insulting or derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information without explicit permission +- Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement diff --git a/SECURITY.md b/SECURITY.md index f51e103..3590edf 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -7,6 +7,7 @@ Please **do not** open a public GitHub issue for security vulnerabilities. Open a [GitHub Security Advisory](../../security/advisories/new) or email the maintainer directly. Include: + - Description of the vulnerability - Steps to reproduce - Potential impact diff --git a/commitlint.config.mjs b/commitlint.config.mjs index 6509d3b..772f426 100644 --- a/commitlint.config.mjs +++ b/commitlint.config.mjs @@ -2,7 +2,22 @@ export default { extends: ["@commitlint/config-conventional"], rules: { - "type-enum": [2, "always", ["feat", "fix", "refactor", "perf", "docs", "test", "build", "ci", "chore", "revert"]], + "type-enum": [ + 2, + "always", + [ + "feat", + "fix", + "refactor", + "perf", + "docs", + "test", + "build", + "ci", + "chore", + "revert", + ], + ], "header-max-length": [2, "always", 72], "subject-empty": [2, "never"], "subject-full-stop": [2, "never", "."], diff --git a/docs/PORTFOLIO-DISPOSITION.md b/docs/PORTFOLIO-DISPOSITION.md index b7ed040..6973c23 100644 --- a/docs/PORTFOLIO-DISPOSITION.md +++ b/docs/PORTFOLIO-DISPOSITION.md @@ -26,6 +26,7 @@ Developer ID signing + notarization credentials**, which is operator-only work. For the full detail, see (in this order): + - `docs/release-candidate-status.md` - `docs/macos-signing-handoff.md` - `docs/release-runbook.md` @@ -37,11 +38,11 @@ system what to do given those. ## Portfolio operating system instructions -| Aspect | Posture | -|---|---| -| Portfolio status | `Release Frozen` (not `Cold Storage`, not `Active`) | -| Review cadence | Suspend overdue counting | -| Next review trigger | When Apple signing credentials become available, or when the operator explicitly decides to ship unsigned (not currently planned) | +| Aspect | Posture | +| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Portfolio status | `Release Frozen` (not `Cold Storage`, not `Active`) | +| Review cadence | Suspend overdue counting | +| Next review trigger | When Apple signing credentials become available, or when the operator explicitly decides to ship unsigned (not currently planned) | | Resurface conditions | (a) signing credentials configured in CI, or (b) operator decides to abandon ship and switch to `Cold Storage` with disposition `RC reached, ship abandoned` | --- @@ -60,7 +61,7 @@ system what to do given those. The distinction matters because portfolio reviews should treat these differently. Active projects get attention. Cold projects get -ignored. Frozen projects get *neither* — they sit until the unblocking +ignored. Frozen projects get _neither_ — they sit until the unblocking condition flips, then move quickly. --- @@ -89,7 +90,7 @@ When portfolio operating system flips this row to `Active`: 1. Delete the abandoned `codex/*` WIP branches that accumulated during the freeze — they don't reflect the shipping artifact. 2. Re-verify on current toolchain: `npm install && npm run - verify:required && npm run verify:required:tauri`. +verify:required && npm run verify:required:tauri`. 3. Re-run the packaged-app smoke checks listed in `release-candidate-status.md`. 4. Only then proceed to signing — do not assume the 2026-03-14 build @@ -99,11 +100,11 @@ When portfolio operating system flips this row to `Active`: ## Last known reference -| Field | Value | -|---|---| -| Last commit on `main` | `d7fcfd3` docs(release): add pre-signing handoff | -| Date | 2026-03-14 | -| Build verification status | green | -| Smoke test status | green | -| Blocker | Apple signing + notarization (operator-only) | -| Local WIP branches | several `codex/*` branches, not reflected in shipping artifact, safe to delete on reactivation | +| Field | Value | +| ------------------------- | ---------------------------------------------------------------------------------------------- | +| Last commit on `main` | `d7fcfd3` docs(release): add pre-signing handoff | +| Date | 2026-03-14 | +| Build verification status | green | +| Smoke test status | green | +| Blocker | Apple signing + notarization (operator-only) | +| Local WIP branches | several `codex/*` branches, not reflected in shipping artifact, safe to delete on reactivation | diff --git a/pet.html b/pet.html index 6565853..e2ce21a 100644 --- a/pet.html +++ b/pet.html @@ -5,7 +5,9 @@ Desktop Pet