refactor: unify API error types - #1
Open
jc1788-byte wants to merge 26 commits into
Open
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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)