Repository navigation
fix(keys): prevent rounded clipping of group names - #7645
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. WalkthroughThe API key group cell now sets ChangesAPI key group badge
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk: ⚪ Minimal · up to Non-auto group names receive the intended text styling, with the reported truncation, tooltips, and other labels unchanged. No merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the group badge glow Comment |
Agent
Links
User request
Out of scope — refuse
Open gate — do not open unless all are satisfied
go buildor tests passed: yes;见 Verification。Kind
Issue facts
v1.0.0-rc.41可复现;官方组件存在零水平内边距、圆角和溢出裁切的组合。/keys,Chrome 126,默认主题;用户确认与 Console / Network 无关。Relay、billing、deployment:not applicable。Change
为 API 密钥列表非 auto 分组的
GroupBadge增加type='text'。该调用已使用
px-0,但默认徽标仍带圆角及固定高度,并受到overflow-hidden裁切。复用已有纯文字样式后,名称不再使用圆角裁切区域。长名称截断、Tooltip、文字颜色,以及独立倍率和继承标签保持不变。仅修改一个文件、增加一行。
Research
Duplicate / prior art
分组 裁切、group clipping、api-key-group-cell、"rounded-4xl"、"GroupBadge";提交前再次检查相关 PR,未发现同分支 PR 或相同修复。Docs and code
ApiKeyGroupCell设置px-0;GroupBadge设置overflow-hidden;内部StatusBadge默认带rounded-4xl,已有text样式不带圆角。无需修改共享组件。Alternatives considered
GroupBadge的溢出策略或圆角样式。type='text'。Files
web/src/features/keys/components/api-key-group-cell.tsxBehavior
Verification
web/执行):bun run typecheck— 退出码 0,无类型错误。bun x --no-install oxlint -c .oxlintrc.json --threads=4 src/features/keys/components/api-key-group-cell.tsx— 退出码 0。bun x --no-install oxfmt --check --threads=4 src/features/keys/components/api-key-group-cell.tsx— 格式检查通过。bun run test -- src/features/keys/components/__tests__/api-key-group-cell.test.tsx --maxWorkers=4— 现有 9 项测试通过,覆盖倍率、继承标签、长名称 Tooltip 和 auto 分组显示。git diff --check upstream/main...HEAD— 通过。git diff --stat upstream/main...HEAD— 仅一个生产文件、一行新增,无测试文件改动;GitHub compare API 也确认一个提交、一个文件、+1/-0。impact— 一个直接调用方:API 密钥表格的 group 单元格;影响执行流 0,风险 LOW。detect_changes— 一个文件、一个符号ApiKeyGroupCell,风险 low。v1.0.0-rc.41在 Chrome 126、默认主题中可复现;Agent 未进行修复后的浏览器视觉验收。Risks
Scope check
Summary by CodeRabbit