Repository navigation
feat(app-shell): Connect an AI Assistant opens with what a connected assistant can do, in plain words - #31052
Merged
Conversation
…assistant can do The page opens with two plain sentences on what a connected assistant can do (look up, create, change and delete the records you may, run actions, always as you), three example requests with copy buttons, and which one to try first to see the connection work. The address card, the Claude Code step and the turned-off state drop protocol words; MCP, OAuth and Streamable HTTP stay only where a client's own menu or form uses them. The API key fallback hints name the Advanced section where the key form now lives. New and reworded strings in all ten console packs, zh-Hant regenerated. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzWZSWpaweunqGyeA9
Contributor
Author
|
domain:ui#2 · os-tesla · session_01L9qibw7DekEe3wx5f3zphf 席位核对 · ACCEPT · 2026-11-06T21:56Z · head
|
This was referenced Nov 6, 2026
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.
Requested by Tesla · project thread
Part of #30898
Clause-②: no
Metadata-protocol: none
维护者速读
ConnectAgentWidget.tsx顶部新卡片,ui/packages/i18n/src/locales/zh-Hans.ts和en.ts的connectAgent.capabilities,测试文件末尾新增的 describe。bcbc29ec的 diff 复核:15 个文件、+342 / −102,无受治理路径。「连接 AI 助手」页顶部新增一张卡:用两句白话说明连接后助手能查找、新建、修改、删除你有权操作的记录并运行操作,始终以你的身份;附三条可复制的示例请求和「先试第一条」的提示(页面尚不能判断是否已连接,所以对所有人显示)。地址卡、Claude Code 步骤和关闭状态不再出现 MCP / OAuth,协议词只留在客户端自己的菜单和表单里;API 密钥提示指向「高级:脚本与 CI」。十个语言包同步,繁体由简体生成。阿语一条旧文案断言改为 toContain,因标题已改写。遗留:Expected 2(已连接的助手与最近调用,等 The OAuth consent page promises you can revoke access from your account settings, but no page lists the AI assistants you authorized #30894)和页头副标题。CI 全绿,Clause-② no,不欠契约复审。同意落地。What changes
ConnectAgentWidget.tsx: a new first card, "What your AI assistant can do here". It holds two plain sentences (look up, create, change and delete the records you may, run actions, always as you), three example requests each with a copy button, and a line saying to try the first one, because an answer listing your objects shows the connection works. The address card follows, then the client picker, as before.OS_MCP_SERVER_ENABLEDnamed in the turned-off state.connectAgent.capabilitiesand the reworded strings, in all ten packs;zh-Hant.tsregenerated withgen:zh-hant..changeset/30898-connect-agent-what-it-can-do.md(@object-ui/app-shell,@object-ui/i18n: patch).Tests
ConnectAgentWidget.keyName-13355.test.tsxgets a new describe:connectAgent.*string in any pack contains MCP, OAuth or Streamable HTTP, outside the four client-form keys.advanced.title.Ablation: putting
en.tsback to its state before this change fails §2, §3 and §4 (§3 listsen disabled.title,url.title,url.bodyandclaudeCode.body).Two existing i18n pins moved with the copy:
residue-namespaces-3546.test.tsxpinned the old Arabic turned-off title verbatim. It now checks that the title keeps the pack's deployment word,في هذا النشر, which is what that case claims.de-quote-pairing-3876's pinned pair count stays 107.Leftovers
packages/mcp/src/connect-ui.ts("Give any MCP-capable AI client governed access … row-level security."). Its translations live inpackages/platform-objects/src/apps/translations(pages.connect_agent.subtitle, source-hashed). It still uses protocol words and goes with Expected 2.Verification
Head
bcbc29ec. The branch was restarted onmain115a43ad, after PR #30973 merged asd9d3eb70, and the change was cherry-picked cleanly. A fullpnpm buildon that base ran 119/119.Live check on a local deployment (showcase with the fresh flag, console Vite dev, admin and member)
mainwith Connect an Agent offers the claude.ai and cloud-task steps on a deployment those clients cannot reach, with only a line of small print #30897): the page opens with "This system's MCP endpoint" and a paragraph on OAuth 2.1 and row-level security, and no sentence says what an assistant can do. As admin and as member alike, the widget plus header carried 7 protocol-word hits on the Claude tab and 8 on Codex.Local tests and gates
pnpm --dir ui exec vitest run packages/app-shell/src/console/connect/ packages/i18n/ packages/app-shell/src/__tests__/product-neutral-renderer.ratchet.test.ts→ 100 files, 1693 passed, 13 skipped (widget file 16/16)tsc --noEmitandtsc -p tsconfig.test.json→ exit 0. eslint onpackages/app-shell/src/console/connect/→ 0 errors (3 pre-existingno-explicit-anywarnings).pnpm --filter @object-ui/i18n gen:zh-hant→ zh-Hant.ts current.pnpm check:test-source-alias→ OK.dispatch-gates --commandsderived 38 commands on bcbc29e, and all 38 exit 0. That includesnode scripts/check-sdui-manifest.mjsandpnpm --dir ui exec vitest run scripts/(170 files passed).--ranwith exit codes: 38 run, 0 NOT-MEASURED (derived zero), 0 UNRUN.