Skip to content

feat(web): model pill — brand glyph + model name capsule in proxy-logs - #1371

Closed
DeliciousBuding wants to merge 1 commit into
masterfrom
feat/model-pill
Closed

DeliciousBuding wants to merge 1 commit into
masterfrom
feat/model-pill

Conversation

@DeliciousBuding

Copy link
Copy Markdown
Owner

用户建议参考上游日志页的模型胶囊(品牌 logo + 型号名)。按 clean-room 约束只参考信息架构,用本仓已有的 vendored BrandIcon 资产 + token 体系自研实现:

  • 新 ModelPill(components/common):胶囊 = 品牌字形 + 截断型号名;未知模型退化为纯文本(不渲染空胶囊);bg-muted/40 + 细边框,双主题实证截图。
  • 首发落在代理日志「模型」列(参照场景);模型页本就有品牌列,通道页是多模型逗号列表不适合胶囊(不动)。

vitest 相关域 52 全绿(含 3 个新组件测试)· lint/format/knip 绿 · 双主题截图人工过目。

Model identifiers rendered as plain truncated text; a capsule with the
brand glyph (existing vendored BrandIcon set) reads faster and matches the
established models-page brand column. Unknown models degrade to the plain
name (no empty pill); token-driven surface works in both themes.

Co-authored-by: Cursor <cursor@vectorcontrol.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant