Repository navigation
fix: remove sidebar spend card - #248
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Description
Remove the monetary Spend card from the lower-left sidebar shown in the reported screenshot. Keep Tokens, the collapse control, refresh behavior, and Settings usage statistics unchanged. The remaining Tokens card fills the available width.
Based on the latest fetched
origin/main(56566e2). Scope is limited to the monetary card, not the entire Usage section.Related Issue
N/A — requested directly with a screenshot.
Changes
Type of Change
Testing
cd desktop && npm run test)cd desktop/renderer && npm run test)cd desktop && npm run build)npm --prefix desktop\renderer run test -- src\components\SidePanel.test.ts— before the fix, six of seven tests failed on the old monetary card/two-column layout, confirming regression coverage.npm --prefix desktop\renderer run test -- src\components\SidePanel.test.ts src\i18n\index.test.ts src\views\SettingsView.test.ts— passed: 58 tests across three files, including all seven new tests.npm --prefix desktop run build— passed (main-process TypeScript, renderer type-check, and Vite production build). Reports warnings from unchanged dependency annotations, mixed gateway imports, and large bundles.npm --prefix desktop\renderer run lint -- src\components\SidePanel.vue src\components\SidePanel.test.ts src\i18n\en-US.ts src\i18n\zh-CN.ts— passed with 0 errors and 107 existing warnings; the script also lints the full renderer.git diff --cached --check— passed before commit.The full main-process and renderer suites were not run; targeted renderer tests were used for this UI-only change. Formatting validation could not run: Prettier was missing, and restoring it failed with TLS handshake errors against both configured and official npm registries; an offline retry had no cached package. Desktop
npm cialso encountered an existingjschardetlockfile mismatch, so build dependencies were restored withnpm --prefix desktop install --ignore-scripts --package-lock=false --no-audit --no-fund. No manifests or lockfiles were changed.Checklist
Documentation: N/A; no existing documentation describes this monetary card. The full-suite checklist remains unchecked because only the relevant new and existing tests were run.