Repository navigation
feat(ui): settings API endpoints card — OpenAI/Anthropic base URLs with copy + usage steps (v1.19) - #62
Merged
Conversation
…th copy + usage steps (v1.19)
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.
Summary
Settings page gains an 「接入方式 / API 端点」card (
#endpoint-card, above the API Key card — see endpoints before generating a key), showing the platform's gateway base URLs so users know where to point Cursor / Cline / Roo Code / Claude Code etc.:https://gateway.aitokenpool.local/v1— Chat Completions · Cursor / Cline / Roo Code / OpenCode / OpenAI SDKhttps://gateway.aitokenpool.local/anthropic— Messages API · Claude Code / Goose / OpenClawEach endpoint row: protocol tag (accent pill) → mono, whole-selectable URL (
user-select:all) → copy button (reuses the copyKey fallback chain: clipboard API →execCommand("copy")→ "Ctrl+C" hint, with the「已复制 ✓」flash) → tool-list description. URL note「部署后替换为你的网关域名」(prototype placeholder). Card includes the usage steps ① generate API Key → ② set Base URL → ③ paste key.Endpoints are UI static constants (
API_ENDPOINTS, commented that real values come from deploy config, e.g.config.server.base_url, to be wired in the backend). Narrow screens stack rows vertically + URLs wrap.Docs:
docs/user-stories.mdv1.19 +ui/README.md「接入端点卡片约定」. Verified by DOM-stub smoke test (16 assertions: constants, HTML card structure + ordering above API Key card, CSS incl. narrow-screen),cargo test,cargo fmt --check.Rant (verbatim)
Related
2026-08-17T20:44:18.473579(projectaitokenpool, status in_progress)feat/ui-api-endpoints(per rant)Tests
node --check ui/js/app.jscargo test— 1 passedcargo fmt --check