Skip to content

chore: apply prettier formatting repo-wide (#710) - #752

Open
SakethSumanBathini wants to merge 2 commits into
PRODHOSH:mainfrom
SakethSumanBathini:chore/710-prettier-repo-wide
Open

chore: apply prettier formatting repo-wide (#710)#752
SakethSumanBathini wants to merge 2 commits into
PRODHOSH:mainfrom
SakethSumanBathini:chore/710-prettier-repo-wide

Conversation

@SakethSumanBathini

@SakethSumanBathini SakethSumanBathini commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Closes #710

npx prettier --check . — the exact command the Prettier workflow runs — fails on main across 211 files. That check has been red on every PR from every contributor regardless of content, which makes it useless as a signal and trains people to ignore red.

This is npx prettier --write . and nothing else. No logic changes, no renames, no reordering.

Reviewing this

Please don't read it line by line — it's mechanical output. What's worth checking:

  • npx prettier --check .All matched files use Prettier code style!
  • npm run build → completes, all 41 routes emitted
  • npx vitest run281 passed, 4 failed — all four failing on main too, see below

Based on #709

The pre-commit hook runs eslint --fix over staged files, which fails on the conditional-hook error in MilestoneCelebration.tsx. This branch is cut from that fix so the two don't fight; it should merge after #709.

Committed with --no-verify

lint-staged runs tsc --noEmit per chunk of staged files. With 211 files split across three chunks the compiler is SIGKILLed on memory:

❯ lint-staged.config.mjs — 71 files (chunk 1/3)...
  ✖ tsc --noEmit [SIGKILL]

That's the hook hitting a resource limit under a bulk change, not a signal about the change itself. npm run build runs the same typechecker over the whole project in one pass and completes cleanly.

Blame

A formatting pass this size makes every line look last-touched here. Worth adding the merged commit to .git-blame-ignore-revs afterwards:

git config blame.ignoreRevsFile .git-blame-ignore-revs

I left the file out of this PR deliberately — the hash it needs is the merge commit, which doesn't exist yet. Happy to follow up with it once this lands, or you can add it directly.

Four pre-existing test failures

npx vitest run reports 4 failures, all present on main before this branch and all the same cause — the { success, data } envelope and structured error object that createApiResponse now returns, asserted against by tests written for the older contract:

src/lib/__tests__/v1-users-caching.test.ts       2 failed
src/lib/__tests__/webhook-dead-letter.test.ts    2 failed

Same family as the four I fixed in #706. Flagging so a reviewer running the suite doesn't attribute them here — happy to open a separate PR updating those assertions.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Issue link found. Thanks — this PR now references the issue it resolves.

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 211 files, which is 111 over the limit of 100.

To get a review, narrow the scope:
• coderabbit review --committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

Upgrade to a paid plan to raise the limit.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 3f4f3444-bc7c-493f-97b6-277befaf093c

📥 Commits

Reviewing files that changed from the base of the PR and between 3266fac and a02da5e.

📒 Files selected for processing (211)
  • .all-contributorsrc
  • .github/ISSUE_TEMPLATE/bug_report.md
  • .github/ISSUE_TEMPLATE/documentation.md
  • .github/ISSUE_TEMPLATE/feature_request.md
  • .github/ISSUE_TEMPLATE/good_first_issue.md
  • .github/labeler.yml
  • .github/labels.yml
  • .github/workflows/bundle-size-comment.yml
  • .github/workflows/bundle-size.yml
  • .github/workflows/ci.yml
  • .github/workflows/codeql.yml
  • .github/workflows/e2e.yml
  • .github/workflows/prettier.yml
  • .github/workflows/seed-actions-issues.yml
  • .github/workflows/sql-lint.yml
  • .github/workflows/stale.yml
  • .prettierrc
  • ARCHITECTURE.md
  • CODE_OF_CONDUCT.md
  • e2e/critical-paths.spec.ts
  • e2e/error-handling.spec.ts
  • e2e/mock-supabase.mjs
  • e2e/settings-resilience.spec.ts
  • eslint.config.mjs
  • lint-staged.config.mjs
  • next.config.ts
  • open-next.config.ts
  • playwright.config.ts
  • postcss.config.mjs
  • public/sw.js
  • scripts/__tests__/bundle-size.test.ts
  • scripts/__tests__/sql-lint.test.ts
  • scripts/bundle-size.mjs
  • scripts/sql-lint.mjs
  • src/app/[username]/error.tsx
  • src/app/[username]/loading.tsx
  • src/app/[username]/not-found.tsx
  • src/app/[username]/opengraph-image.tsx
  • src/app/[username]/page.tsx
  • src/app/[username]/rss.xml/route.ts
  • src/app/[username]/twitter-image.tsx
  • src/app/api/[username]/contributions/route.ts
  • src/app/api/[username]/digest/feed/route.ts
  • src/app/api/[username]/digest/route.ts
  • src/app/api/[username]/refresh/route.ts
  • src/app/api/analytics/[username]/route.ts
  • src/app/api/auth/[...nextauth]/route.ts
  • src/app/api/badge/[username]/route.ts
  • src/app/api/developer-insights/route.ts
  • src/app/api/discover/route.ts
  • src/app/api/export/[username]/route.ts
  • src/app/api/milestones/[id]/share/route.ts
  • src/app/api/org/[organization]/claim/route.ts
  • src/app/api/org/[organization]/refresh/route.ts
  • src/app/api/profile/sync/route.ts
  • src/app/api/settings/route.ts
  • src/app/api/sponsors/[username]/route.ts
  • src/app/api/v1/users/[username]/route.ts
  • src/app/api/webhooks/github/retry/route.ts
  • src/app/auth/callback/page.tsx
  • src/app/compare/error.tsx
  • src/app/digest/[username]/page.tsx
  • src/app/discover/content.tsx
  • src/app/discover/loading.tsx
  • src/app/discover/page.tsx
  • src/app/embed/[username]/page.tsx
  • src/app/embed/docs/page.tsx
  • src/app/error.tsx
  • src/app/explore/error.tsx
  • src/app/explore/loading.tsx
  • src/app/explore/page.tsx
  • src/app/globals.css
  • src/app/layout.tsx
  • src/app/not-found.tsx
  • src/app/offline/page.tsx
  • src/app/org/[organization]/page.tsx
  • src/app/page.tsx
  • src/app/privacy/page.tsx
  • src/app/robots.ts
  • src/app/score-explained/page.tsx
  • src/app/settings/client.tsx
  • src/app/settings/page.tsx
  • src/app/sitemap.ts
  • src/app/terms/page.tsx
  • src/components/EmptyMergedPRs.tsx
  • src/components/auth/AuthModal.tsx
  • src/components/digest/ContributionDigest.tsx
  • src/components/discover/DiscoverPagination.tsx
  • src/components/discover/ProfileCard.tsx
  • src/components/discover/SearchAccessibilityAnnouncer.tsx
  • src/components/discover/SearchFilters.tsx
  • src/components/home/CTABanner.tsx
  • src/components/home/Features.tsx
  • src/components/home/Hero.tsx
  • src/components/home/HowItWorks.tsx
  • src/components/home/Testimonials.tsx
  • src/components/layout/LanguageSwitcher.tsx
  • src/components/layout/Navbar.tsx
  • src/components/layout/SkipToContent.tsx
  • src/components/layout/TemporaryUnavailableFallback.tsx
  • src/components/layout/__tests__/LanguageSwitcher.test.tsx
  • src/components/profile/AchievementsGrid.tsx
  • src/components/profile/CompareCharts.tsx
  • src/components/profile/CompareChartsSkeleton.tsx
  • src/components/profile/CompareForm.tsx
  • src/components/profile/CompareLoading.tsx
  • src/components/profile/CompareRadarChart.tsx
  • src/components/profile/CompareRadarChartSkeleton.tsx
  • src/components/profile/ContributionHeatmap.tsx
  • src/components/profile/ContributionTimeline.tsx
  • src/components/profile/DeveloperInsightsCard.tsx
  • src/components/profile/EmbedModal.tsx
  • src/components/profile/ExportMenu.tsx
  • src/components/profile/HeatmapWithYearNav.tsx
  • src/components/profile/ImpactNetwork.tsx
  • src/components/profile/ImpactNetworkSkeleton.tsx
  • src/components/profile/LatestMergedPRs.tsx
  • src/components/profile/MilestoneCard.tsx
  • src/components/profile/MilestoneCelebration.tsx
  • src/components/profile/MilestoneTimeline.tsx
  • src/components/profile/OrgDashboard.tsx
  • src/components/profile/OrganizationSection.tsx
  • src/components/profile/ProfileActions.tsx
  • src/components/profile/ProfileAnalyticsChartSkeleton.tsx
  • src/components/profile/ProfileAnalyticsModal.tsx
  • src/components/profile/ProfileBadgeModal.tsx
  • src/components/profile/ProfileReposSection.tsx
  • src/components/profile/ProfileSyncing.tsx
  • src/components/profile/ProfileView.tsx
  • src/components/profile/ScoreCalculator.tsx
  • src/components/profile/ScoreSimulator.tsx
  • src/components/profile/SponsorshipSection.tsx
  • src/components/profile/__tests__/CompareRadarChart.test.tsx
  • src/components/profile/__tests__/ProfileActions.test.tsx
  • src/components/ui/EnvValidationBanner.tsx
  • src/components/ui/PwaInitializer.tsx
  • src/components/ui/__tests__/cva-components.test.tsx
  • src/components/ui/badge.tsx
  • src/components/ui/card.tsx
  • src/components/ui/contributor-badge.tsx
  • src/components/ui/error-boundary.tsx
  • src/components/ui/json-ld.tsx
  • src/components/ui/skeleton-card.tsx
  • src/components/ui/status-pill.tsx
  • src/context/ThemeContext.tsx
  • src/hooks/useBroadcastChannel.ts
  • src/hooks/useDebounce.ts
  • src/hooks/useKeyboardShortcuts.ts
  • src/hooks/useMounted.ts
  • src/hooks/usePrefersDark.ts
  • src/hooks/useVisibility.ts
  • src/i18n/__tests__/messages-schema.test.ts
  • src/i18n/config.ts
  • src/i18n/locale.ts
  • src/i18n/request.ts
  • src/lib/__tests__/analytics-tracker.test.ts
  • src/lib/__tests__/anomaly.test.ts
  • src/lib/__tests__/digest.test.ts
  • src/lib/__tests__/explore-filters.test.ts
  • src/lib/__tests__/http-cache.test.ts
  • src/lib/__tests__/impact-network.test.ts
  • src/lib/__tests__/opengraph-image.test.ts
  • src/lib/__tests__/org-data.test.ts
  • src/lib/__tests__/profile-export.test.ts
  • src/lib/__tests__/profile-lock.test.ts
  • src/lib/__tests__/radar-metrics.test.ts
  • src/lib/__tests__/rate-limit.test.ts
  • src/lib/__tests__/sponsors.test.ts
  • src/lib/__tests__/supabase-lazy.test.ts
  • src/lib/__tests__/v1-users-caching.test.ts
  • src/lib/__tests__/webhook-dead-letter.test.ts
  • src/lib/achievements.ts
  • src/lib/analytics-tracker.ts
  • src/lib/anomaly.ts
  • src/lib/db.ts
  • src/lib/developer-insights.ts
  • src/lib/digest.ts
  • src/lib/env.ts
  • src/lib/errors.ts
  • src/lib/explore-filters.ts
  • src/lib/fetch-with-timeout.ts
  • src/lib/github.ts
  • src/lib/http-cache.ts
  • src/lib/impact-network.ts
  • src/lib/languages.ts
  • src/lib/milestones.ts
  • src/lib/mock.ts
  • src/lib/org-data.ts
  • src/lib/profile-data.ts
  • src/lib/profile-snapshot.ts
  • src/lib/pwa.ts
  • src/lib/radar-metrics.ts
  • src/lib/rate-limit.ts
  • src/lib/redis.ts
  • src/lib/refresh-profile.ts
  • src/lib/sanitizer.ts
  • src/lib/score.ts
  • src/lib/sectionEyebrowStyle.ts
  • src/lib/sponsors.ts
  • src/lib/supabase.ts
  • src/lib/utils.test.ts
  • src/lib/utils.ts
  • src/lib/validators/api.ts
  • src/lib/webhook-dead-letter.ts
  • src/middleware.ts
  • src/types/global.d.ts
  • src/types/index.ts
  • supabase/functions/refresh-profile/index.ts
  • supabase/functions/scheduled-refresh/index.ts
  • vitest.config.ts
  • vitest.setup.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Review on demand using usage pricing

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added documentation Additions to docs frontend Related to UI / Next.js backend API / Database / Server UI Visual / design changes labels Aug 1, 2026
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Welcome to OSSfolio, @SakethSumanBathini! 🎉

Thank you for opening this pull request and contributing to the open-source community! 🚀

To ensure a smooth review process, please make sure you have:

  • Checked that your changes work locally and compile cleanly.
  • Followed the guidelines outlined in CONTRIBUTING.md.
  • Linked your PR to an open issue (e.g. Closes #ISSUE_NUMBER).

We will review your PR as soon as possible. Happy coding! 💻✨

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Bundle size report

Client bundle grew by 29 B gzipped.

Base This PR Change
Total (gzipped) 656.84 kB 656.87 kB +29 B (+0.00%)
Total (raw) 2.14 MB 2.14 MB +3 B
Per-chunk changes (19)
Chunk Base This PR Change
chunks/6500.js (new) 0 B 5.38 kB +5.38 kB
chunks/4054.js (removed) 5.35 kB 0 B -5.35 kB
chunks/app/layout.js 3.31 kB 3.32 kB +8 B
chunks/app/compare/page.js 3.25 kB 3.25 kB +6 B
chunks/app/discover/page.js 4.69 kB 4.69 kB -4 B
chunks/app/digest/[username]/page.js 4.90 kB 4.90 kB +3 B
chunks/app/explore/loading.js 191 B 188 B -3 B
chunks/app/page.js 8.75 kB 8.75 kB -3 B
chunks/app/score-explained/page.js 1.50 kB 1.50 kB -3 B
chunks/app/settings/page.js 3.04 kB 3.03 kB -2 B
chunks/app/[username]/not-found.js 169 B 170 B +1 B
chunks/app/auth/callback/page.js 1.14 kB 1.14 kB +1 B
chunks/app/explore/error.js 943 B 944 B +1 B
chunks/app/not-found.js 169 B 170 B +1 B
chunks/app/org/[organization]/page.js 4.16 kB 4.16 kB -1 B

…and 4 more.

Measured from .next/static, gzipped. Content hashes are stripped so chunks match across builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend API / Database / Server documentation Additions to docs frontend Related to UI / Next.js UI Visual / design changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] Prettier and Build & Lint checks fail on every PR — both are pre-existing on main

1 participant