Skip to content

入口专题 C7:空会话界面组件(AI 首页、全屏新会话、窄抽屉三处共用),19.1 #37862

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 · p2 · size M · window 19.1 (Jack 07:12Z).
Blocked-by: #37788 (AI home page); C4 (#37860).
Dedupe: searched empty conversation, AI home suggestions: #37788 (open, AI home page) is the first consumer, not a duplicate.

维护者速读

What to do

  1. One component, three uses: AI home (AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788), full-screen new chat, narrow drawer (compact).
  2. Resolve the three overlaps with AI 问询首页 T2:平台通用的应用内 AI 问询页面(首页态、提问、恢复对话,本页隐藏机器人) #37788:
  3. Greeting (time of day + name) and per-page suggestions are new strings in eleven locales.
  4. Today's static per-agent suggestions live in AiChatPage.tsx:1830,2123-2149.

Acceptance

Activity

  1. added
    enhancement
    priority:p2
    pm:blocked
    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_01L9qibyUSf2nKJWW6qBemSU

    Claim: PM loop round 1
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibwARdVa47nQacLfco1
    Account: os-tesla
    Branch: claude/project-thread-wh1csy
    Worktree: objectstack-issue-37862
    Domain: ui
    Area: o3-askai (topic #37853, C7)
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/console/ai/{EmptyConversation.tsx (new),emptyConversationModel.ts (new),AppAskPage.tsx,ChatPane.tsx,agentCopy.ts}, ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx (the empty-state slot, a suggestion filling the input), ui/packages/app-shell/src/layout/ChatDockConversation.tsx if needed (rail and sheet get the compact form), ui/packages/i18n/src/locales/** (11 packs, zh-Hant generated), the matching __tests__, .changeset/** (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high
    Clause-②: yes (new published locale keys widen @object-ui/i18n's public surface; precedent #37932)
    Metadata-protocol: none (mode is internal to the component; AiChatNavParams and spec unchanged)
    Responsibility: one empty-conversation component shared by the AI home, the full-screen new conversation and the narrow drawer (full screen draws the large form, rail and sheet the compact one), with a time-of-day greeting and platform suggestions by page type (read from ChatPane's surfaceContext.artifact.type). Ruled by the seat: the AI home uses the app's declared title when it has one, else the greeting; the drawer always greets.
    Thread-read: none
    Premise: holds on origin/main 4de4e3e, with corrections. Blocked-by #37788 is closed (#37889 merged 10:55Z). The card's item 4 locations are stale: per-agent static suggestions are at agentCopy.ts:55-81, used at ChatPane.tsx:580-584, and the drawer's empty state is drawn at ChatbotEnhanced.tsx:619-650. The AI-home half exists (AppAskPage.tsx:326-456), so C7 extracts it into the shared component and adds the rest. Jack's ruling 7221127130 starts it now.
    Serial constraints cleared: C4 PR #37970 (draft) touches ChatPane.tsx, ChatDock*.tsx and en.ts; C1 PR #37924 touches ChatDockConversation.tsx; PR #37989 touches en.ts; C5 #37861 and Q2b #37874 also touch ChatPane.tsx and ChatbotEnhanced.tsx. The thread works in parallel, runs overlap-check against each open PR before its first push, and merges main after each lands (real merge, no rebase, no force-push).

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 37862,
      "status": "done",
      "branch": "claude/project-thread-wh1csy",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38011",
      "session": "session_01L9qibwARdVa47nQacLfco1",
      "premise_still_valid": true,
      "summary": "One EmptyConversation component (console/ai/EmptyConversation.tsx, rules in emptyConversationModel.ts) draws the empty conversation in three places: the AI home (large, its own question box in the composer slot, the entry's title else the greeting, the entry's suggestions send, recent opens on the page via ?c=), the full-window drawer (large) and the rail and phone sheet (compact). The greeting reuses Home's home.greeting* keys with the user's name. Suggestions carry a mode: in the drawer the ask agent on a record gets two fill suggestions, on a list/dashboard/report two send suggestions, elsewhere the agent starters send. ChatbotEnhanced gains renderEmptyState({send, fill}); ChatPane opts in through emptyConversation, which only the drawer passes. The drawer's recent list shows the drawer agent's threads (not the AI home's), 3 compact / 5 large, opened in the drawer.",
      "tests": "At bf9d5b8f: vitest app-shell/src/console/ai, app-shell/src/layout, plugin-chatbot/src: 279 files / 2428 passed. packages/i18n: 108 files, 1869 passed, 13 skipped. app-shell/src/__tests__ + clickableNonControlCensus: 27 files / 480 passed. At b41c6ea0 (last source change): ChatDock.emptyConversation-37862 (6), emptyConversationModel-37862 (8), AppAskPage-37788 (15): 29 passed; ChatbotEnhanced.renderEmptyState-37862: 6 passed. Ablation on disk, restored from the commit, each red one case: fill->send in ChatPane; size always compact; fill via plain .value setter; drawer recent without the activePackageId filter.",
      "gates": "dispatch-gates --commands at b41c6ea0: 41 derived families, each exit 0; --ran reconciliation 41 derived / 41 run / 0 NOT-MEASURED (derived zero). pnpm --filter @object-ui/app-shell run type-check: exit 0; pnpm --filter @object-ui/plugin-chatbot run type-check: exit 0. eslint on changed files: 0 errors, no new warning on changed lines. overlap-check --pr=37970,37924,37989,38004,38005 vs origin/main 30a8047b: VERDICT clean. CI check-runs on #38011: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "4 — mcp__github__issue_read x3, mcp__github__pull_request_read x1 (reads only)",
      "api_writes": "2 — relay pr_create (POST /pulls draft + POST /issues/38011/assignees), relay comment (this report)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none — the greeting hour buckets copy Home's pickGreetingKey (HomePage.tsx, outside the surface); noted in Acceptance notes, not filed (not one of the three classes)"]
    }
  5. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim amendment 1 to 7221234060. It records the one file draft PR #38011 (head b41c6ea0) touches outside the claimed surface, from report 7222350321.
    File surface adds: ui/packages/plugin-chatbot/src/chat/types.ts, where ChatbotEnhancedProps declares the new renderEmptyState prop.
    Accepted deviation, recorded in the PR's Acceptance notes: in the drawer, the input stays at the bottom and does not move to the centre of the empty state. It carries the page chip, C5's focus row and the queued sends.
    Everything else in the claim is unchanged.

  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Maintainer ruling 2026-11-27T15:54Z, Tesla, on the seat's decision card 「C7 全屏新会话的输入框保持在底部,你接受吗?」. Verbatim tap: 「要做成居中大输入框」 (2026-11-27T15:53Z).

    This answers L2 F1 on PR #38011 (record 7222493699): topic #37853 item 9 and this card's 速读 call for a large composer in the full-screen new conversation. So:

    • PR feat(app-shell): one empty-conversation layout for the AI home, the full-window drawer and the narrow drawer #38011 changes its relation to Part of #37862 and lands as PR 1: the shared empty-conversation component, the greeting, page-type suggestions, and the drawer's recent list.
    • PR 2 on this card moves the full-screen new conversation's composer to a centred large composer in the empty state. The page chip, C5's focus row and the queued sends move with it. When the conversation starts, the composer returns to the bottom. PR 2 says Fixes #37862.
    • The drawer, in rail and sheet, keeps its compact empty state with the composer at the bottom.
  7. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Maintainer ruling 2026-11-27T15:54Z, which supersedes 7222625442. Within a minute of that tap, Tesla took it back, verbatim: 「感觉在底部也没问题,不用继续了」 (2026-11-27T15:54Z).

    So the composer in the full-screen new conversation stays at the bottom. This settles L2 F1 on PR #38011 (record 7222493699) as accepted. PR #38011 keeps Fixes #37862. There is no PR 2 and no follow-up card.

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:dispatchedpm:epicpriority:p2size/m

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions