Skip to content

feat: 创建前拉取模型 + iOS 26 液态玻璃美化 - #2

Merged
mzrodyu merged 1 commit into
mainfrom
feat/liquid-glass-and-create-form-pull
Sep 10, 2026
Merged

feat: 创建前拉取模型 + iOS 26 液态玻璃美化#2
mzrodyu merged 1 commit into
mainfrom
feat/liquid-glass-and-create-form-pull

Conversation

@mzrodyu

@mzrodyu mzrodyu commented Sep 10, 2026

Copy link
Copy Markdown
Owner

承接已合并的 #1,本 PR 包含两块。

1. 创建渠道前就能拉取模型

  • 新增只读接口 POST /api/channel-model-preview:用填入的 Base URL + Key 直接拉取上游模型,无需先创建渠道
  • 新增渠道表单加「获取模型」按钮 → 弹窗多选 → 勾选填入 → 再创建。模型选择弹窗重构为通用组件,编辑器与创建表单共用。

2. iOS 26 液态玻璃整体美化(明暗主题)

  • 统一磨砂玻璃材质(渐变 + backdrop 模糊 + 层次阴影 + 顶部高光)应用到所有主卡片:概览指标、渠道卡、模型卡、设置组、用户中心各区块、签到卡。
  • 卡片背后加环境光晕,玻璃更有层次;用户中心加了区块小标签与"可用模型"空态。

验证

  • 无头 Chromium 渲染真实打包 CSS,明暗两版均确认玻璃质感、徽章居中、创建表单两列布局与「获取模型」按钮正常。
  • go test ./... ✅、npm run build

🤖 Generated with Claude Code

Model pull in the create form:
- New POST /api/channel-model-preview lists upstream models from ad-hoc
  connection params (provider + baseUrl + key) with no saved channel, so the
  "new channel" form can pull and multi-select models before creating.
- ModelPickerModal refactored to take a loadModels() loader, reused by both
  the channel editor and the create form.

iOS 26 liquid-glass visual refresh (light + dark):
- Shared frosted-glass material (gradient + backdrop blur + layered shadow +
  top highlight) applied to the main card families: panels, metrics, channel
  cards, model cards, settings groups, account sections, check-in card.
- Ambient radial color wash behind cards on the console and account/auth pages
  so the glass reads with depth.
- User center enriched: section eyebrows (API Keys / Models), and an empty
  state for the available-models grid.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mzrodyu
mzrodyu merged commit 3894c4c into main Sep 10, 2026
1 check passed
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