feat: 模型多选弹窗、密钥卡片优化、Discord 服务器拉黑 - #1
Merged
Conversation
UI:
- Fix API key status badge misalignment in the user center (a global
.account-key-list span rule was overriding the badge's inline-flex,
breaking vertical centering) and enrich the key card (icon + mono prefix).
- Give the "new channel" form its own two-column grid so fields no longer
leave ragged empty columns.
- Add a newapi-style model picker dialog: pull the upstream model list into a
searchable multi-select modal instead of importing every model at once.
Discord server blacklist:
- New blocked-guild list (admin Discord settings + DISCORD_BLOCKED_GUILD_IDS
env): users who belong to any blacklisted Discord server are denied
registration/login. Requests the "guilds" OAuth scope only when a blacklist
is configured, and enforces the check before any login or registration.
Backend:
- Read-only POST /api/channels/:id/upstream-models preview endpoint; the
sync-models endpoint now accepts an explicit {models:[...]} selection.
Tests: preview endpoint, explicit-selection sync, blocked-guild deny/allow.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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.
概述
本次改动包含三块 UI 优化 + 一个新功能(Discord 服务器拉黑)。
UI 修复
.account-key-list span { display: block }覆盖了徽章的inline-flex导致内部失去垂直居中),并把卡片做得更丰富(钥匙图标 + 等宽前缀)。新功能:Discord 服务器拉黑
DISCORD_BLOCKED_GUILD_IDS环境变量)。guildsOAuth 授权,登录前先校验。后端
POST /api/channels/:id/upstream-models;sync-models现支持{models:[...]}显式选择。测试
go test ./...✅、npm run build✅🤖 Generated with Claude Code