Skip to content

refactor: unify API error types - #1

Open
jc1788-byte wants to merge 26 commits into
mainfrom
refactor/unify-api-errors
Open

refactor: unify API error types#1
jc1788-byte wants to merge 26 commits into
mainfrom
refactor/unify-api-errors

Conversation

@jc1788-byte

Copy link
Copy Markdown
Owner

Summary

  • add a single shared contract under
  • normalize nested API payloads into the same shape across services
  • cover the behavior with a focused Vitest regression test
  • fix malformed WebAuthn endpoint strings encountered while validating the refactor

Verification

RUN v4.1.9 /workspaces/frontend

Test Files 1 passed (1)
Tests 2 passed (2)
Start at 23:50:42
Duration 714ms (transform 65ms, setup 105ms, import 53ms, tests 8ms, environment 397ms)

olutundee and others added 26 commits August 31, 2026 16:55
- Listen for document visibilitychange events in HelioWebGL
- Stop animation and switch Canvas frameloop to demand when tab is hidden
- Resume continuous rendering when tab returns to visible
- Add unit tests for HelioWebGL tab visibility and motion behavior
- Clean up upstream syntax and type errors across codebase
…trained devices

The live Helio canvas unconditionally requested a 2x DPR cap under a
high-performance context, which is costly on low-end hardware and ignores
the user's Save-Data preference. Detect constrained devices via client
hints (Save-Data, device memory <= 4 GiB, cores <= 4, slow-2g/2g) and
render at a 1x DPR cap under a low-power context instead.

Also restores syntax mangled across several source files (broken template
literals, var(--token) references, string/regex delimiters, typo'd
identifiers) that left modules uncompilable and tests failing.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Bring the branch up to date with the upstream base (87 commits, incl. later
merged fixes for Heliobond#394/Heliobond#400/Heliobond#405/Heliobond#428/Heliobond#434/Heliobond#455/Heliobond#556 etc.) and resolve the
resulting overlaps. Portfolio and Toast now track upstream's newer content;
Toast keeps the accent bar's no-shrink flex basis that upstream mangled.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
…tract-styled-components-theme

refactor: extract styled-components definitions to theme config
…ases

test: add tests for admin utils covering edge cases
…-webgl-tab-hidden

fix(brand): pause WebGL render loop when tab is hidden
Upstream fix(ci) commits and the cap-webgl merge mangled syntax and gutted
data across the app: broken JSX/CSS-var typos, a phantom usePortfolioRisk
import, Deposit destructuring a hash string as an object, the six-project
demo registry emptied from data.ts (404ing project pages), mismatched
vault/network signatures, stale i18n catalogs, and crashing AdminConsole
toasts. Restores the affected files, reconciles all message catalogs with
en, and realigns the tests with the current implementations.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
Reconcile the branch with upstream's latest commits: WebGL tab-visibility
pause (Heliobond#528), admin-utils edge-case tests (Heliobond#559), and the styled-components
theme extraction (Heliobond#416).

Conflict resolutions:
- HelioWebGL: combine upstream's tab-visibility pause with the branch's
  Save-Data / low-end DPR cap (dpr [1,1] + low-power when constrained);
  the test file keeps both behavior suites.
- Keep the branch's repairs for upstream corruption (var(--token) typos in
  Portfolio, WalletProvider addr/adr mismatch, RegistryTable duplicate
  style declarations and missing CSSProperties import, duplicated
  isWarningOpenRef in useSessionTimeout).
- data.ts: restore the six-project demo registry with upstream's
  OFF_SCREEN_PROJECTS_COUNT structure and inverted risk indicator.
- i18n: keep catalogs valid JSON and in key-parity with en.json.

Verification: tsc --noEmit clean; vitest 39 files / 320 tests passing.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
feat: support monthly auto-invest plans
fix: repair corruption that broke typecheck, tests, and runtime paths
…handled-rejection

fix: prevent analytics failures from crashing app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants