Skip to content

入口专题 C3:每页右上角改成带文字的「问 AI」按钮(桌面页头、记录页、手机顶栏、Home,无页头路由兜底) #37858

Done

Description

@objectstack-fleet

epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

Filing gate: ④ topic child. Source: topic #37853 (Jack: 「"页面里加按钮"的需求 作废」 06:28Z; card 「撤掉 ask_ai」 06:30Z; 「问 AI」 06:33Z; 「同意,立专题卡,非 cloud 的任务,让 objectstack #3 座位接手」 07:12Z, all 2026-11-27). Business reason: carried by the parent.
Parent: #37853 (rulings, target experience, card table, topic acceptance). Evidence: an independent Fable review of objectstack and cloud main (2026-11-27) checked every file:line below.
Owner: repo:objectstack#3 (Jack 07:12Z 「非 cloud 的任务,让 objectstack #3 座位接手」). Reserved under topic #37853 (pm:epic), not pm:queue: other seats leave it.

Grading: area:ux · Task · p1 · size M · reach: every page of every app (desktop page headers, record pages, mobile top bar, Home).
Order: shares a component with #37788 (the AI home page hides this button). Either may merge first; the later one resolves the conflict.
Dedupe: searched AssistantTopBarButton, 问 AI button: none open.

维护者速读

  • 是什么:把每页右上角 32px 的透明机器人图标改成带文字的描边按钮「💬 问 AI」,桌面页头、记录页、手机顶栏、Home 都一样;没有页头的页面加兜底按钮。
  • 影响:所有用户都能一眼看到问 AI 的入口。
  • 要你做什么:无。

Background (verified)

  • AssistantTopBarButton is transparent, 32px, a Bot icon only; its name is only in title / aria-label; an orange dot marks a pending plan; without a drawer host it degrades to a /ai link (ui/packages/app-shell/src/layout/AssistantTopBarButton.tsx:39-64).
  • Desktop (≥768px) draws no top bar inside apps (外壳(二)去掉顶栏:侧栏常驻可收起;应用名、搜索、头像进侧栏;应用菜单只做换应用;提示条移到内容区顶部 #36112). The entry lives in the page-header action group ShellPageActions (comments · AI · help), drawn by PageHeader and by the record page's nav row before ✕ (layout/ConsoleLayout.tsx:313-321, layout/ShellPageActions.tsx:236-258, layout/PageHeader.tsx:280-292, views/RecordDetailView.tsx:1038,5974). AppHeader appears only on mobile and on Home / org pages. Routes with no shell page header (search results, component pages, app editor) have no AI entry on desktop.
  • ⌘/Ctrl+Shift+I toggles the drawer (layout/chatDockState.ts:186-195); on non-Mac it collides with browser devtools.
  • Home has its own 「Ask AI」 button (console/home/HomePage.tsx:315-337, key home-ask-ai, eleven locales) calling openAssistant({agent:'ask'}).
  • A test pins "drawer title = entry button name" (layout/__tests__/ChatDock.titleMatchesTopBar-34827.test.tsx).

What to do

  1. Change the shared AssistantTopBarButton: variant="outline" size="sm", h-8, a chat-bubble icon plus 「问 AI」. New key topbar.askAi in eleven locales (reuse home.askAI translations). Keep the pressed style and the orange dot. Mobile stays size-11.
  2. Placement: last in ShellPageActions (after help); before ✕ in the record nav row; AppHeader on mobile and Home.
  3. Width: PageHeader collapses actions by width. When space runs out, hide the text first and keep the icon; never push out the page's own actions. Decide by measured width, not a breakpoint (fr/es/ru/ar are longer).
  4. Routes with no shell header: a top-right fallback button, built like ShellSidebarExpandFallback.
  5. Home 「Ask AI」 calls the same entry (its behaviour becomes "new conversation" with C4).
  6. Accessibility: with text, the accessible name is the text (no extra aria-label); icon-only, aria-label=「问 AI」. Tooltip with aria-keyshortcuts: show 「⌘⇧I」 on Mac, no shortcut on other platforms.
  7. AI 助手抽屉:标题写「助手」,与顶栏按钮「AI 助手」不一致 #34827 test: change to "drawer title = conversation title, 「新会话」 before the first send" in coordination with C4 (if C3 lands first, keep the test green and note it on C4).
  8. Apps cannot rename the button (Jack 06:32Z). Visibility rules unchanged.

Acceptance

  • Checked on a PageHeader page, a record page (before ✕) and a header-less route; narrow header hides text first; mobile 44px icon; no overflow in eleven locales; accessible name contains 「问 AI」; Mac tooltip shows ⌘⇧I, others none.

Activity

  1. added
    enhancement
    priority:p1
    pm:epic
    domain:ui
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwhwiMRQSuaJ1wVVcU

    Claim: PM loop round 1
    Session: session_01L9qibwhwiMRQSuaJ1wVVcU
    Account: os-tesla
    Branch: claude/project-thread-ua6w4g
    Worktree: objectstack-issue-37858
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/layout/ (AssistantTopBarButton.tsx, ShellPageActions.tsx, PageHeader.tsx action-collapse only, AppHeader.tsx, ConsoleLayout.tsx fallback mount only, one new header-less fallback component beside ShellSidebarExpandFallback), ui/packages/app-shell/src/views/RecordDetailView.tsx (nav-row placement only), ui/packages/app-shell/src/console/home/HomePage.tsx (Ask AI wiring only), one key topbar.askAi in the eleven ui/packages/i18n/src/locales/*.ts packs, ui/packages/app-shell/src/layout/__tests__/ChatDock.titleMatchesTopBar-34827.test.tsx (kept green, card item 7), new pin tests named *-37858.test.tsx, one changeset for @object-ui/app-shell and @object-ui/i18n (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default tier — dispatch-gates.mjs --tier on AssistantTopBarButton.tsx, ShellPageActions.tsx, PageHeader.tsx at adb65d16: "no path-derived mandate"; M with layout and accessibility design judgement, so default over floor, effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: holds
    Serial constraints cleared: no open PR touches the layout, RecordDetailView or HomePage files (file scan of all 48 open PRs at 07:37Z); #37676 shares the eleven locale packs (different keys; overlap-check.mjs before the first push); #37788 (AI home, shares this button) is open, pm:blocked, no PR, so either may merge first and the later one resolves the conflict (card's Order line); split PRs #37799/#37803 touch neither file; no in-flight claim on these files named by any seat (issue search, 07:37Z)
    Area: o3-askai

  3. added
    pm:dispatched
    on Nov 27, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwhwiMRQSuaJ1wVVcU
    os-dev-report

    {
     "issue": 37858,
     "status": "done",
     "branch": "claude/project-thread-ua6w4g",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/37885",
     "session": "session_01L9qibwhwiMRQSuaJ1wVVcU",
     "premise_still_valid": true,
     "summary": "AssistantTopBarButton is now an outlined button with a chat-bubble icon and the words 问 AI / Ask AI. It keeps the pressed style and the plan dot. On a phone it is a 44px icon. On a Mac it carries aria-keyshortcuts Meta+Shift+I and a ⌘⇧I tooltip; other platforms get no shortcut. It is last in the page's button group (after help) and after help in the app bar. PageHeader hides the words first, by measured width, before the title is cut and before a fold-capable page folds its actions. A new ShellAssistantFallback counts the groups actually drawn and pins the button top-right on routes that draw none. Home's Ask AI goes through the new useAskAiEntry. Premise held, with one stale point: the record row's ✕ has been its leftmost control since #36557, so the group (Ask AI last) is the row's top-right and RecordDetailView needed no change.",
     "tests": "New: AssistantTopBarButton.askAi-37858 (faces, accessible names zh/en, icon-only aria-label, phone size-11, pressed/toggle, link face, marker = description not name, Mac aria-keyshortcuts + ⌘⇧I tooltip, none elsewhere, all packs carry home.askAI). ShellPageActions.askAi-37858 (9 tests: order comments/help/Ask AI, icon-only via slot, corner fallback on/off cases, words-first collapse against a width model incl. fold ordering, no flip-flop, no-fold page keeps words while only description cut). HomePage.askAiEntry-37858. Edited: the #34827 pin (transition halves), plus the #34608/#26470 harnesses (they now drive the layout's corner entry, with the grid preload test-source-alias prescribes). Related suite (249 files naming the group/button/ConsoleLayout/PageHeader/AppHeader/ShellPageActions/HomePage) at 190b03b8: Test Files 249 passed, Tests 2903 passed, lock VERDICT command-exit 0. The 8 edited/new files at final head 49369e9f: 8 files / 63 tests passed, VERDICT command-exit 0. Type check (app-shell type-check, src + tsconfig.test.json) at 190b03b8: exit 0, 0 TS errors. Ablation: forcing PageHeader's assistantIconOnly to false turned ShellPageActions.askAi-37858 red (3 failed / 6 passed), then restored with git checkout HEAD.",
     "gates": "Local: all 39 families from dispatch-gates --commands ran, with exit codes captured before any pipe. --ran reconciliation: 39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. The batch ran at 190b03b8 and 49369e9f; the later commit changes only the three dock test harnesses and one lint fix in AssistantTopBarButton. check:test-source-alias went red (exit 1) on the three edited harnesses; the preloads were added and it re-ran exit 0. check:query-options-erasure hit the 300s timeout once (exit 124) and re-ran exit 0. pnpm --dir ui exec vitest run scripts/: 172 files passed, 2 skipped, exit 0. ui check:new-line-citations: 0 new, exit 0. overlap-check --branch=HEAD: exit 1 on the first build (locale packs vs #37676), then exit 0 before each of the 3 pushes after the key switch. eslint on changed files: 0 errors. CI on PR head 49369e9f: in_progress when this report was written (Check Changeset, Lint ·*, Type Check ·*, Governed Surface Queue Guard, PR-body guards all in_progress).",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 relay strokes, both through POST /repos/objectstack-ai/objectstack/dispatches. (1) pr_create = POST /pulls (draft #37885) + POST /issues/37885/assignees [os-tesla]; read back identical (9407 bytes). (2) This os-dev-report comment on #37858 via post-stamped.mjs. git push x3, not counted as REST writes.",
     "line_budget": "+1006 / -77 in 14 files, under the 3000 human-merge threshold. No skills/** or byte-ratchet ledger touched.",
     "files_changed": [
      ".changeset/37858-ask-ai-entry-button.md",
      "ui/packages/app-shell/src/console/home/HomePage.tsx",
      "ui/packages/app-shell/src/console/home/__tests__/HomePage.askAiEntry-37858.test.tsx",
      "ui/packages/app-shell/src/layout/AppHeader.tsx",
      "ui/packages/app-shell/src/layout/AssistantTopBarButton.tsx",
      "ui/packages/app-shell/src/layout/ConsoleLayout.tsx",
      "ui/packages/app-shell/src/layout/PageHeader.tsx",
      "ui/packages/app-shell/src/layout/ShellPageActions.tsx",
      "ui/packages/app-shell/src/layout/__tests__/AssistantTopBarButton.askAi-37858.test.tsx",
      "ui/packages/app-shell/src/layout/__tests__/ChatDock.titleMatchesTopBar-34827.test.tsx",
      "ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.previewFrameDock-26470.test.tsx",
      "ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.robotTogglesDrawer-34608.test.tsx",
      "ui/packages/app-shell/src/layout/__tests__/ShellPageActions.askAi-37858.test.tsx",
      "ui/packages/app-shell/src/layout/shellPageActionsSlot.ts"
     ],
     "deviations": [
      "Key: the button reuses home.askAI instead of adding topbar.askAi, so Clause-② is no (the claim said yes) and the changeset covers @object-ui/app-shell only. Reason: with the new key in the eleven packs, overlap-check exited 1 against #37676. The conflict hunk is #37676 vs main (the form count keys from #37366), not these lines, but the gate counts any conflict on a file the branch changed. The dispatch allows key reuse.",
      "File surface: shellPageActionsSlot.ts is outside the claim's list. It gains one optional prop, assistantIconOnly, because a header may not import the group. The #34608 and #26470 layout harnesses were edited too: they mounted a bare button beside a header-less page, which now also draws the corner entry. RecordDetailView.tsx was not touched.",
      "The record navigation row and the app bar do not measure the words; only PageHeader does (card item 3). The record row has no page actions to push out.",
      "PR body footer uses the AGENTS.md session-URL form, not the harness reminder's form."
     ],
     "acceptance_readings": {
      "pagehdr_page": "ShellPageActions.askAi-37858 'gone as soon as the page draws a group' plus the group-order case; PageView.consoleHeader-36111 and ShellPageActions-36111 green in the 249-file suite.",
      "record_page_before_x": "Code reading: ✕ is the nav row's first control (record-top-bar, since #36557); the group renders at the row's right end; Ask AI is the group's last child. RecordDetailView.topBar-27524 green in the 249-file suite. NOT MEASURED in a browser.",
      "headerless_route": "ShellPageActions.askAi-37858 fallback cases. ConsoleLayout.robotTogglesDrawer-34608 and previewFrameDock-26470 drive the layout's corner entry. Routes from a static reading at adb65d16: search, component/:ns/:name/*, inbox, inbox/:tab, system/marketplace/:packageId, reports/new, create-app, edit-app/:name, design/dashboard/:name, not-found.",
      "narrow_hides_text_first": "ShellPageActions.askAi-37858 words-first cases, plus the ablation red.",
      "mobile_44px": "AssistantTopBarButton.askAi-37858 'on a phone' (size-11, icon only).",
      "eleven_locales_no_overflow": "Headless Chrome widths with this container's system font: ar 179, es 149, fr 144, pt-BR 134, ru 130, ko 117, ja 103, de 101, en 84, zh 75 px. The words are nowrap, and PageHeader hides them by measured width. NOT MEASURED in the running Console.",
      "accessible_name": "AssistantTopBarButton.askAi-37858 (zh 问 AI, en Ask AI, icon-only aria-label), plus the #34827 pin.",
      "mac_tooltip": "AssistantTopBarButton.askAi-37858 Mac and non-Mac cases."
     },
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: #37860 (C4) · The record pane and record drawer bars' own assistant buttons (record-pane-open-assistant, in ObjectDataPage and recordDrawerStack) still read topbar.aiAssistant with the Bot icon. Outside this card's file surface · noted, not filed",
      "carrier: #37860 (C4) · The drawer is still titled AI 助手 while the entry reads 问 AI. The #34827 pin holds both halves until C4 rewrites it to the conversation title · noted, not filed",
      "carrier: seat (landing bookkeeping) · ui ADR-0057 A3 wording 'the top-bar robot' · noted, not filed",
      "carrier: none · The corner fallback may float over a header-less route's own top-right control (the inbox detail's open link, the app editor toolbar), and it shows during a lazy route's load. Not measured in a browser; recorded in the PR's Acceptance notes"
     ]
    }
  5. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwhwiMRQSuaJ1wVVcU
    os-dev-report

    Rework round 1 delta for PR #37885 (L1-a comment 7214495524). Local head 5f8012f, not pushed: overlap-check exit 1, see open_questions.

    {
     "issue": 37858,
     "status": "blocked",
     "branch": "claude/project-thread-ua6w4g",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/37885",
     "session": "session_01L9qibwhwiMRQSuaJ1wVVcU",
     "premise_still_valid": true,
     "summary": "Rework round 1 (R1) is done locally at 5f8012fd9a and NOT pushed. overlap-check --branch=HEAD answered exit 1 against #37889 (the #37788 AI-home PR, opened 09:01Z after round 0): it conflicts in AssistantTopBarButton.tsx, and it shares ConsoleLayout.tsx. The same exit 1 already holds at the pushed head 49369e9f, and this round touches neither file, so the conflict predates the rework. The order says stop on exit 1, so the push is held. The fix: the report builder's host (ReportBuilderHost, for both a new report and a report's Edit) and the inbox page now draw the shell's group at the end of their own top bar through the slot. The group counts itself, so the corner fallback steps aside there. ReportBuilder takes an optional headerEnd prop, drawn after Save. The fallback moved from right-2 to the logical end-2, so in a right-to-left language it sits where page headers put the group, not over a page's back or close button. The marketplace package error state's Back button no longer stretches across the row: it has self-start, as on the loaded page. Browser reading at 1280px in en and ar on all 11 group-less routes: before the fix, 9 route/locale pairs had a page control under the fallback (en: reports/new Discard+Save, inbox Mark all read, marketplace Back; ar: search back, inbox tab, marketplace back, reports/new close and name, design/dashboard back). After it, 0 of 22. The changeset bullet was re-read and rewritten. The PR-body lines to change and the restated 维护者速读 line are in the os-dev-report delta comment on #37858.",
     "tests": "New pin ReportBuilderHost.askAiEntry-37858.test.tsx (real ReportBuilderHost + ReportBuilder + ShellPageActionsScope + ShellAssistantFallback): inside the shell there is no fallback, exactly one Ask AI, and it sits in the builder header; the end cluster reads report-builder-discard, report-builder-save, report-builder-shell-divider, shell-page-actions. A bare mount ends with Save. Added to InboxPage-36741: the header row ends unread-only, mark-all-read, divider, shell group; no divider outside the shell (16/16 passed). ShellPageActions.askAi-37858 asserts end-2. Ablation: on disk, headerEnd was turned into undefined in ReportBuilderHost. The new pin went red (1 failed / 1 passed: AssertionError expected the fallback div to be null; lock VERDICT command-exit 1). The file was restored from a backup, and git diff matched the committed change. Affected run at 5f8012fd9a: pnpm --dir ui exec vitest run --maxWorkers=2 over packages/plugin-report/, app-shell src/layout/, src/views/Report*, src/views/inbox/, src/console/marketplace/ and src/console/home/. Result: Test Files 332 passed (332), Tests 2872 passed, 7 skipped; VERDICT command-exit 0. Type-check after building plugin-report: plugin-report type-check and app-shell type-check, VERDICT command-exit 0. Reverse check: renaming the prop to headerEndBogus made app-shell type-check fail with exit 2 (TS2322 on ReportBuilderHost.tsx), then it was restored.",
     "gates": "dispatch-gates --commands at 5f8012fd9a derived 39 families; all 39 ran, each with its exit captured before any pipe, and all 39 exited 0. --ran reconciliation: 39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. check-nul-bytes: OK, exit 0. overlap-check --branch=HEAD: exit 1 (#37889 conflicts in AssistantTopBarButton.tsx). The same exit 1 holds for --branch=origin/claude/project-thread-ua6w4g (49369e9f). dispatch-gates warned that the tree is 15 commits behind origin/main; the two stale gate scripts are check-route-envelope and check-skills-token-ratchet, and origin/main merges cleanly. CI: NOT MEASURED for the new head, which was not pushed.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "1 relay stroke through POST /repos/objectstack-ai/objectstack/dispatches: this os-dev-report delta comment on #37858 via post-stamped.mjs. No git push this round (held on overlap exit 1). REST reads only otherwise (GET issue 37858, GET pulls 37885 and 37889, GET ai/agents in the local runtime).",
     "open_questions": [
      {
       "question": "overlap-check exits 1 against #37889 (the AI-home PR for #37788). The conflict is in AssistantTopBarButton.tsx and was already present at the pushed head 49369e9f; the rework adds no shared file. Should I push 5f8012fd9a?",
       "options": [
        "A: push now. The card says either may merge first and the later one resolves the conflict, and #37889's change to the file is +5/-1.",
        "B: hold until #37889 lands, then merge main, resolve, and push.",
        "C: rebase onto #37889's head now (it touches #37788's scope, which the dispatch forbids)."
       ],
       "recommendation": "A. The conflict predates this round and the card assigns its resolution to whichever PR merges later; holding leaves the R1 fix (a covered Save) off the PR."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: a · reach: browser, any /apps route at 1280px with the console locale set to ar (objectui-locale=ar): the fixed sidebar panel is drawn at x 0..255 while main is laid out at x 0..1024, and the sidebar's gap is empty at 1024..1280. The sidebar covers the content's end edge, so in ar every page-header group (Ask AI included: reports index group 24..364, record nav row 8..224) sits under or over the sidebar's header. Measured on this branch's console; this PR does not touch the sidebar · evidence: element rects (data-sidebar=sidebar x0..255; #console-main-content and main x0..1024, dir=rtl) and screenshots pagehdr-ar-record.png, after-ar-component-recycle-bin.png · dedupe words: rtl sidebar overlaps content, dir rtl sidebar left, arabic desktop sidebar gap, sidebar side rtl",
      "carrier: none · ShellSidebarExpandFallback still pins at left-2, the start edge only in left-to-right languages. Not measured with a collapsed sidebar in ar · noted in the delta comment, not filed",
      "carrier: none · The open-source runtime serves an empty /ai/agents catalog, so the browser pass stubbed it with one agent through Playwright route interception. Without it no Ask AI renders, by design · noted, not filed",
      "carrier: #37860 (C4) · unchanged from round 0: the #34827 pin still holds both halves · noted, not filed"
     ]
    }

    Browser reading (R1 evidence)

    Chromium (Playwright) at 1280x800, deviceScaleFactor 1, signed in as the dev admin on an isolated showcase runtime (--fresh, own ports), the agent catalog stubbed with one agent (the open-source runtime serves none). Boxes are viewport px, x-left..x-right and y-top..bottom. "Page controls under it" counts every visible button, link, input or tab inside the main content whose box intersects the Ask AI button's box.

    locale route before (49369e9): page controls under the fallback after (5f8012f): where Ask AI is drawn after: page controls under it page's own top control nearest the end edge
    en search none fallback 1186..1272 y8..40 none task 344..1192 y76..120
    en component-recycle-bin none group in page header 1170..1256 y17..49 none shell-page-actions-help 1132..1164 y17..49
    en component-access-directory none fallback 1186..1272 y8..40 none View all issues (10) 929..1107 y110..146
    en inbox inbox-page-mark-all-read group in page header 1170..1256 y14..46 none inbox-detail-open-full 1165..1256 y73..109
    en inbox-detail none group in page header 1170..1256 y14..46 none inbox-detail-open-full 1095..1256 y71..107
    en marketplace-package Back to marketplace fallback 1186..1272 y8..40 none Back to marketplace 272..459 y24..60
    en reports-new report-builder-discard, report-builder-save group in page header 1178..1264 y14..46 none report-builder-type-trigger 977..1264 y129..165
    en create-app none fallback 1186..1272 y8..40 none wizard-step-branding 957..1024 y57..117
    en edit-app none fallback 1186..1272 y8..40 none wizard-step-branding 957..1024 y57..117
    en design-dashboard none fallback 1186..1272 y8..40 none dashboard-widget-remove-table_spend 2015..2033 y137..155
    en not-found none fallback 1186..1272 y8..40 none -
    ar search رجوع fallback 8..186 y8..40 none رجوع 885..936 y28..48
    ar component-recycle-bin none group in page header 28..206 y17..49 none تصفية الكائنات 757..987 y104..136
    ar component-access-directory none fallback 8..186 y8..40 none 520..1000 y108..148
    ar inbox inbox-page-tab-notifications group in page header 503..680 y64..96 none inbox-page-needs-you 640..1007 y119..161
    ar inbox-detail inbox-page-tab-notifications group in page header 266..444 y14..46 none inbox-page-row 624..1023 y55..120
    ar marketplace-package العودة إلى السوق fallback 8..186 y8..40 none العودة إلى السوق 845..1000 y24..60
    ar reports-new report-builder-close, report-builder-name group in page header 20..198 y14..46 none report-builder-close 976..1008 y14..46
    ar create-app none fallback 8..186 y8..40 none wizard-step-basic 671..786 y57..117
    ar edit-app none fallback 8..186 y8..40 none wizard-step-basic 671..786 y57..117
    ar design-dashboard dashboard-design-back fallback 8..186 y8..40 none dashboard-design-back 972..1000 y12..40
    ar not-found none fallback 8..186 y8..40 none -

    In ar the end edge is the left, and the x 8..206 positions there sit under the sidebar panel. That is a pre-existing RTL sidebar defect, the same for every page-header group, and is listed in out_of_scope_findings. The inbox detail was opened from the activity tab's first row (detail header present in both locales).

    Same pass, the other requested readings:

    • Record page nav row, ar: Ask AI box x 12..190, y 4. Words 「اسأل الذكاء الاصطناعي」 shown, not clipped (scrollWidth equals clientWidth). Row overflowX 0, document overflowX 0. en: x 1186..1272, words shown, overflow 0.
    • PageHeader pages, long locales: reports index and a dashboard in en, ar, es, fr and ru. Every case: page-header overflowX 0, document overflowX 0, title not clipped, words shown. Ask AI widths: ar 178, es 151, fr 148, ru 134, en 86 px.

    Screenshots (container-local, DSF 1): before-LANG-ROUTE.png, after-LANG-ROUTE.png and pagehdr-LANG-PAGE.png in the issue-37858 scratchpad browser folder.

    Changeset, re-read

    The bullet "gets the same button pinned at the content's top-right corner" now reads: "gets the same button over the empty top end corner of its content (top-right; top-left in a right-to-left language) … A page that keeps its own controls in that corner draws the group in its own top bar instead, so the button never covers them: the report builder (a new report, and a report's Edit) ends its header with Discard, Save, help, Ask AI, and the inbox ends its header row with its own buttons, help, Ask AI." The frontmatter adds '@object-ui/plugin-report': patch, and the closing paragraph names the new optional headerEnd prop.

    PR-body lines for the seat to change (after the push)

    1. 维护者速读, 出错会怎样, replace with: 「出错会怎样:本轮之前兜底按钮会盖住报表编辑器右上角的「保存」「放弃」和收件箱的「全部标为已读」并抢走点击;现在这两处把按钮放进自己的页头,浏览器实测无遮挡。最坏仍是页头很窄时只剩图标,或今后新加的无页头页面在同一角放了自己的按钮;直接撤回这次改动即可恢复原来的机器人图标。」
    2. 维护者速读, 用户能看到什么变化: append 「(从右到左的语言在左上角)」 after 「没有页头的页面在内容右上角也有这个按钮」.
    3. What changes, item 4: replace "the same button is pinned at the content's top-right corner" with "the same button sits over the content's empty top end corner (end-2: top-right, top-left in a right-to-left language)". Append: "The report builder's host and the inbox page keep their own controls in that corner, so they draw the group at the end of their own top bar through the slot (ReportBuilder takes an optional headerEnd, drawn after Save), which also counts it for the fallback. The marketplace package's error-state Back button is sized to its words (self-start), as on the loaded page."
    4. Tests: add the new pin ReportBuilderHost.askAiEntry-37858.test.tsx and the two cases added to InboxPage-36741.test.tsx. Add the round-1 ablation (host headerEnd disabled on disk: pin red, 1 failed / 1 passed). Readings: 332 files / 2872 passed, 7 skipped, at 5f8012f. Type-check for plugin-report and app-shell, exit 0. The reverse check (unknown prop) went red, exit 2.
    5. Acceptance notes, "Corner fallback, unmeasured in a browser": replace with the table above and the two sentences after it, and keep the lazy-load sentence.
    6. Verification, read first: add ui/packages/app-shell/src/views/ReportBuilderHost.tsx (headerEnd wiring) as item 2, and shift the others down.

    Generated by Claude Code

  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwhwiMRQSuaJ1wVVcU
    os-dev-report

    Rework round 1, push delta (seat ruling: option A). Follows issuecomment-7215895888.

    {
     "issue": 37858,
     "status": "done",
     "branch": "claude/project-thread-ua6w4g",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/37885",
     "session": "session_01L9qibwhwiMRQSuaJ1wVVcU",
     "premise_still_valid": true,
     "summary": "Pushed 5f8012fd9a (49369e9fdb..5f8012fd9a), with no rebase and no other change. Landing stays queued behind #37889. Once #37889 merges, main is merged in and the conflict in AssistantTopBarButton.tsx is resolved.",
     "tests": "Unchanged from issuecomment-7215895888.",
     "gates": "overlap-check --branch=HEAD before the push: exit 1, VERDICT overlap exit 1. The only conflict is #37889 (AssistantTopBarButton.tsx; ConsoleLayout.tsx is shared too); origin/main merges cleanly. CI on head 5f8012fd9ad2545ff5d3290299ee1b35a2dca6dc, all completed at 10:53Z: 51 check-runs, 38 success, 13 skipped, 0 failed, 0 pending. The skipped runs are selector or opt-in lanes: Test Core shards and Plan Test Core shards, Build Core, Build Docs, UI Published Artifacts, the Dogfood Regression Gate and Dogfood Verify CLI, Temporal Conformance, Packed-tarball smoke, the Schedule gate, Borrowed queue verdict, Queue verdict, and the 18.x upgrade harness.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "This round: 2 relay strokes in all, both through POST /repos/objectstack-ai/objectstack/dispatches via post-stamped.mjs: issuecomment-7215895888 and this comment. git push x1 is not a REST write.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": ["unchanged from issuecomment-7215895888"]
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwhwiMRQSuaJ1wVVcU
    os-dev-report

    Merge-main delta after #37889 landed. Follows issuecomment-7216439088.

    {
     "issue": 37858,
     "status": "done",
     "branch": "claude/project-thread-ua6w4g",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/37885",
     "session": "session_01L9qibwhwiMRQSuaJ1wVVcU",
     "premise_still_valid": true,
     "summary": "Merged origin/main (#37889, merge e50ab8fc91) into the branch with a merge commit, 78b9db3284; no rebase and no force-push. The merge conflicted only in AssistantTopBarButton.tsx. The resolution keeps this PR's outlined faces and puts main's ui ADR-0057 Amendment A4 guard (if control?.askPageActive return null, with its comment) right after the component's last hook (useId), so no hook sits after the early return. Main's doc sentence on the inquiry page auto-merged into the file header, and ConsoleLayout.tsx merged cleanly. Main's pin ConsoleLayout.askPageHidesEntry-37788 then failed 2/2 with 'Found multiple elements by topbar-ai-assistant'. Its harness mounted a bare AssistantTopBarButton beside a header-less page, so the layout's corner fallback made a second button. The pin's intent is unchanged. Commit 2f8956f621 points the harness at the layout's corner entry: the bare button is removed and the Real subjects doc is updated, the same change round 0 made to the #34608 and #26470 harnesses. New head: 2f8956f6214c755b3fe962d43e5029a34a3d5546.",
     "tests": "Named pins at 2f8956f621, one run: ConsoleLayout.askPageHidesEntry-37788 (2/2), useConsoleChatDock.phoneCollapseOnNavigate-37556 (which holds 'robot is hidden on the page only'), AssistantTopBarButton/ShellPageActions/HomePage/ReportBuilderHost -37858, InboxPage-36741, ChatDock.titleMatchesTopBar-34827, ConsoleLayout.robotTogglesDrawer-34608 and ConsoleLayout.previewFrameDock-26470. Before the harness fix this run gave 10 files, 2 failed / 66 passed (exactly the two 37788 cases); after the fix the 37788 file passed 2/2 with VERDICT command-exit 0. Ablation: on disk the guard was disabled (askPageActive and false), and the adapted 37788 pin went red (1 failed / 1 passed, VERDICT command-exit 1); the file was restored and git status was clean. Affected run at 2f8956f621, after building the app-shell^... closure (72/72 turbo tasks, VERDICT 0): vitest over plugin-report/, app-shell layout/, views/Report*, views/inbox/, console/marketplace/ and console/home/ gave Test Files 333 passed (333), Tests 2881 passed, 7 skipped. app-shell type-check exit 0 in the same locked command, VERDICT command-exit 0.",
     "gates": "dispatch-gates --commands on the two paths the merge changed (AssistantTopBarButton.tsx and the 37788 test) derived 27 families. 26 exited 0 on the first run. pnpm --dir ui exec vitest run scripts/ recorded exit 1 as captured: its log ends ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL 'Command was killed with SIGKILL'. The cgroup OOM killer took a node process while the unlocked gate batch ran beside the locked 333-file run, so the first run measured nothing. The re-run under the lock gave 172 files passed, 2 skipped, VERDICT command-exit 0, and the ran file keeps both lines. --ran reconciliation: 27 derived, 27 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. overlap-check --branch=HEAD gave exit 0 (VERDICT clean exit 0, origin/main ff63b02b4f merges cleanly, 0 PR heads) after the merge and again right before the push. CI on 2f8956f6214c755b3fe962d43e5029a34a3d5546, completed 11:58Z: 51 check-runs, 38 success, 13 skipped, 0 failed, 0 pending. Nothing red. The 13 skipped runs are the same selector and opt-in lanes as on 5f8012fd9a.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "This step: 1 relay stroke, POST /repos/objectstack-ai/objectstack/dispatches via post-stamped.mjs, for this os-dev-report comment on #37858. git push x1 (5f8012fd9a..2f8956f621) is not a REST write. The PR body was not edited.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": ["unchanged from issuecomment-7215895888"]
    }

    Generated by Claude Code

  8. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwhwiMRQSuaJ1wVVcU

    Delivered · 2026-11-27T12:23Z · zone o3-askai

  9. removed
    pm:dispatched
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:epicpriority:p1size/m

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions