feat: add configurable Codex plan badge styles#772
Open
vs2pk0 wants to merge 8 commits into
Open
Conversation
7a4e6d1 to
5437258
Compare
5437258 to
e9d3f06
Compare
…badge-styles # Conflicts: # src/styles/pages/codex.css
…badge-styles # Conflicts: # src-tauri/src/commands/codex.rs # src-tauri/src/models/codex_local_access.rs # src-tauri/src/modules/codex_local_access.rs # src/components/CodexLocalAccessModal.css # src/components/CodexLocalAccessModal.tsx # src/pages/CodexAccountsPage.tsx # src/services/codexLocalAccessService.ts # src/types/codexLocalAccess.ts
…badge-styles # Conflicts: # src-tauri/src/models/codex_local_access.rs # src/components/CodexLocalAccessModal.css # src/components/CodexLocalAccessModal.tsx # src/pages/CodexAccountsPage.tsx
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.
背景
本 PR 为 Codex 账号订阅等级徽章增加可配置样式能力,让用户可以分别为 FREE、TEAM、PRO 5X、PRO 20X、PLUS 选择不同的展示风格。
主要改动
CodexPlanBadge组件,统一渲染 Codex 订阅徽章。PRO 5X和PRO 20X独立识别与配置。localStorage。兼容性
tier-badgeclass,减少对原样式影响。api-key / new-api类型不套用自定义徽章,避免影响现有 API 展示。验证
已本地验证:
npm run typecheckgit diff --check构建产物:
target/release/bundle/macos/Cockpit Tools.apptarget/release/bundle/dmg/Cockpit Tools_0.23.4_aarch64.dmg