Skip to content

Studio 流程页头信息条:空间不够时整排缩成单字,改成按顺序逐个让位 #36745

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

① product defect · Source: maintainer (Warren), 2026-11-23, UI review thread.

  • 14:23Z 「还有哪些元数据可能会有问题?同时全面的测试 studio的各项功能」
  • 15:09Z 「用fable 评审一下 studio的问题,提出修改方案」
  • 15:23Z, decision card 「Studio 评审的 9 张卡,按 fable 方案立卡吗?」 → 「9 张全立」

Evidence:

Paths are relative to ui/packages/app-shell/src/views/ unless they start with ui/ or packages/. SDS = studio-design/StudioDesignSurface.tsx. zh = ui/packages/i18n/src/namespaces/studio/zh.ts. Line numbers are on 9e0c0c2.

What (review r07, confirmed)

With the property panel open, the flow header's meta chips (status, trigger, on error, version, run as) all shrink to one character each. The meta slot takes whatever width is left once the header is 640 px wide (studio-design/studio-tokens.ts:151). FlowMetaPills lays its items on a grid whose columns can all shrink to zero (metadata-admin/previews/FlowPreview.tsx:339, from objectui#13135). The slot is then about 80 px.

Expected

Items give way in order instead of all at once:

  • Status and Trigger stay whole.
  • When they do not fit, On error, version and Run as drop, starting from the end.
  • When not even one item fits, the slot hides.
  • The dropped items go in the row's hover text.

File: FlowPreview.tsx (FlowMetaPills, header variant).

Acceptance

  • A test pins the drop order and the hover text at three widths.
  • Browser screenshots with the property panel open and closed.

Grading: area:ux · Bug · Cosmetic · builders, often ⇒ p2. Effort S–M. Evidence: read (review r07) + measured (round2/ r07).

Dedupe: no open card names FlowMetaPills.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:ui · priority:p2 · Bug · pm:queue · size S; type set to Bug (was none).
    Rationale: with the property panel open, every flow header chip collapses to one character at once. Readability defect ⇒ UX rule p2.

  3. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 10 · 2026-11-23T21:24Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: opened by the coordinator; the thread names itself in its first report
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat records it then
    Worktree: objectstack-issue-36745
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36745 (w9-36745)
    Dispatch: p2 area:ux, non-epic Studio review card (r07). The maintainer resumed area:ux cards at 2026-11-23T21:18:46Z (「area 的ux任务继续处理」), lifting the 2026-11-23T15:36Z freeze for area:ux; p1+p2, epic children first, under the 15-thread cap.
    File surface: ui/packages/app-shell/src/views/metadata-admin/previews/FlowPreview.tsx (FlowMetaPills, header variant), its tests, a changeset (stop on breach; the thread's first report states the real surface and the seat amends this line)
    Container & model: S, mode:thread, model: opus — default tier; the thread's first report states the served tier, effort: high
    Clause-②: no. A new route, contract, spec key or export is amended to yes before its code
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: 7105980564
    Premise: read from the card; the thread re-reads it on its base before code
    Serial constraints cleared: no open PR names the card or FlowMetaPills

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  5. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim amendment · 2026-11-23T21:52Z · branch record for card thread session_01JQwxbXxhLfnaEFoHNkAeGh
    Branch: claude/project-thread-xd0g5m
    Container & model: S, mode:thread, served opus, effort: high
    File surface: ui/packages/app-shell/src/views/metadata-admin/previews/FlowPreview.tsx (FlowMetaPills header variant, a new header row and fit helper), one class in ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx, the superseded FlowPreview.headerMetaTruncate-13135.test.tsx deleted, a new FlowPreview.headerMetaGiveWay-36745.test.tsx, a changeset
    Premise: holds; reading taken on the card's open point: Status and Trigger are the floor (the slot hides when those two do not fit whole); drop order On error, version, Run as
    Serial constraints cleared: overlap-check clean against main and #36774 (which also touches StudioDesignSurface.tsx)

  6. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbXxhLfnaEFoHNkAeGh
    os-dev-report

    {
      "issue": 36745,
      "status": "done",
      "branch": "claude/project-thread-xd0g5m",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36781",
      "session": "session_01JQwxbXxhLfnaEFoHNkAeGh",
      "premise_still_valid": true,
      "summary": "Premise reproduced on base e0f0e9f7: with the property panel open the meta slot is 81 px and FlowMetaPills' shrinking grid cut every item to one character. The header variant now lays every item out whole in a FlowMetaHeaderRow that measures item and row widths after each render and on resize, keeps the first fitFlowMetaItems() whole items (drop order On error, version, Run as; Trigger + Status are the floor, below which the row hides) and names the hidden items' whole text in the row's title. The 13135 per-pill truncation and its test are removed; StudioDesignSurface's auto-flow-meta wrapper goes inline-flex to flex so the row reads the slot width. Reading taken: Trigger + Status as the floor, because the card lists only On error, version and Run as as items that drop.",
      "tests": "ui: pnpm exec vitest run FlowPreview.headerMetaGiveWay-36745.test.tsx AutomationsPillar.tabs-12454.test.tsx StudioItemHeader.statusPlace-12524.test.tsx: Test Files 3 passed (3), Tests 20 passed (20); new file 11/11 at d37f9470. Ablation (fitFlowMetaItems returning widths.length, anchor grep -c 1, restored with git checkout HEAD, git diff HEAD empty): 6 failed | 5 passed (11). pnpm --filter @object-ui/app-shell type-check: exit 0. Browser (showcase, zh-CN): panel open slot 81 px shown 0; panel closed 441 px shown 4/4 no title; 1300 px viewport 301 px shown 3, title v1; 1220 px 221 px shown 2; 1150 px 151 px shown 0. Shots in project files issue-36745/.",
      "gates": "dispatch-gates --commands: 38 families run, exit codes in project file issue-36745/gate-results-d37f9470.tsv; 37 exit 0 at 9f6fc4fa; check:test-source-alias exit 1 there, fixed (module-top @objectstack/lint import) and exit 0 at d37f9470. --ran: 38 run, 0 NOT-MEASURED (derived zero). overlap-check at d37f9470: VERDICT clean exit 0 (origin/main, #36774, #36784). CI families: in_progress on the PR's check-runs at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "3 — get_check_runs (pull_request_read), issue_read x2; no write tool",
      "api_writes": "3 — fleet-write relay: pr_create #36781 (+ assignees leg), issue_patch #36781 body; this report comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Cleared · 2026-11-23T23:31Z: closed by the merge of #36781. The seat takes pm:dispatched and its assignee off.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions