feat: add credits usage panel mirroring the Qoder IDE usage view - #21
Open
luoxuanzao wants to merge 3 commits into
Open
feat: add credits usage panel mirroring the Qoder IDE usage view#21luoxuanzao wants to merge 3 commits into
luoxuanzao wants to merge 3 commits into
Conversation
- Startup probe piggybacks getUsageInfo() so the runtime catalog caches account usage; a gauge button next to the session history opens a dropup panel with plan quota, personal/add-on pack and org resource package, each with a segmented progress bar - Personal accounts render like the IDE: plain tier label instead of the org badge, no renewal line for the year-9999 sentinel expiry - "View Details" links to the edition account usage page (qoder.com vs qoder.com.cn); panel width tracks the footer so narrow sidebars clip neither edge - 10 locales plus unit tests for the button, service, probe and catalog Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
- Model dropdown opens above the model button (inset-inline-start on the toolbar) instead of flying to the far edge on wide views, a regression from the narrow-sidebar adaptivity change - Permission dropdown switches right to inset-inline-end so both dropdowns anchor correctly in right-to-left layouts while keeping the adaptive max-width Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.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.
Summary
session history opens a dropup popover mirroring the Qoder IDE usage view
(plan credits with edition badge, personal/add-on resource pack, org
resource package, segmented progress bars, renewal date), with a
"View Details" link to the edition's account usage page
(qoder.com vs qoder.com.cn). Data comes from the SDK's getUsageInfo(),
piggybacked on the startup probe plus a TTL-cached manual refresh.
instead of the org badge, and no renewal line for the year-9999 sentinel.
views (regression from Feat/narrow sidebar adaptivity #18) and switch toolbar dropdowns to logical-edge
anchoring for RTL layouts.
opening the IDE, matching both international and China editions.
Verification
npm run typechecknpm run lintnpm run testnpm run buildnpm run release:checknpm run audit:prod(live idle probes against both qodercli/teams and qoderclicn/personal
accounts; build deployed to a real vault and verified visually,
including narrow-sidebar behavior)
Safety
CHANGELOG.md