Skip to content

fix: restore a green main after the i18n merges - #944

Merged
dadadave80 merged 1 commit into
mainfrom
fix/main-typecheck
Oct 26, 2026
Merged

dadadave80 merged 1 commit into
mainfrom
fix/main-typecheck

Conversation

@dadadave80

Copy link
Copy Markdown
Contributor

main has failed CI since #940–#942 merged (7 type errors, a lint error, 20 unformatted files, 226 failing tests). This also turns #943 red even though it only edits a doc, because typecheck + lint runs on every PR.

  • Typecheck: duplicate useTranslations import in YieldAlertProvider, unused CATALOGS/catalog imports in LocaleProvider, possibly-null regex match in catalog-parity.test, a component passed as a rich-text value in Deposit (now uses the existing pendingDepositAge key), and a stale fifth argument to submitSetWhitelist.
  • Lint: require() in admin/utils.ts replaced by a static StrKey import.
  • Format: Prettier over the 20 files merged unformatted.
  • Tests: LocaleProvider calls useRouter(), so the shared @/test/render helper threw outside an App Router. vitest.setup.ts now mocks useRouter (files that mock next/navigation themselves still win). That clears 220 of the 226. The rest: fr/es/pt plurals lacked the CLDR many category the new parity test requires, the withdraw cap message lost its $, and two tests still expected untranslated error text.
  • Unused-keys baseline refreshed (48 keys).

Local run: typecheck, lint, format:check, unused-keys, hidden-content, lockfile-lint, test:coverage (1550 pass), build and bundle:check all pass.

Typecheck: duplicate useTranslations import, unused CATALOGS and catalog
imports, possibly-null regex match, rich-text age placeholder, stale
submitSetWhitelist argument. Lint: static StrKey import instead of require.
Format: run Prettier over the 20 files merged unformatted.

Tests: give the shared render helper a no-op router so LocaleProvider mounts
(226 failures), add the CLDR many category to fr/es/pt plurals, keep the
dollar sign in the withdraw cap message, and update expectations to the
translated error codes. Use the existing pendingDepositAge key for the
pending-deposit age and refresh the unused-keys baseline.
@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
heliobond Ready Ready Preview Oct 26, 2026 6:21pm UTC

@github-actions

Copy link
Copy Markdown

Thanks for your contribution! ❤️ It looks like this PR isn't linked to an issue yet. Please add Fixes #123 (or Closes #123) to the PR description, or link it via the Development sidebar on the right. Once linked, a maintainer will review your changes. No stress — we'll help fix things up if needed!

@dadadave80 dadadave80 added the supply-chain-reviewed Maintainer reviewed the supply-chain changes in this PR (re-apply after each push) label Oct 26, 2026
@dadadave80
dadadave80 merged commit 3979056 into main Oct 26, 2026
17 of 18 checks passed

This branch was successfully deployed

1 active deployment
Preview — 07d9b113 Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

supply-chain-reviewed Maintainer reviewed the supply-chain changes in this PR (re-apply after each push)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant