Skip to content

报表搭建页:右边五项(报表类型、数据来源、指标、分组、图表),选完数据来源立刻出图,缺什么就在图的位置提示 #36374

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #36255(专题:仪表盘和报表的使用体验,维护者直派)。⛔ 不是认领。优先级 p1(维护者 2026-11-22:「这几张卡都 p1」)。

本卡属于「运行界面的设计模式」这套方案,总说明和全部效果图在 #36359。 本卡对应本专题候选清单的第 6 项和第 8 项。

维护者说过的(2026-11-22)

  • 「然后完整的测试 attio 的 reports 和 dashboard,对照我们的功能提出优化改进意见」
  • 「先具体详细设计你的方案,和我沟通,包括界面设计」;看过图三后对这一张没有提修改意见,随后说「你先立已经决定的卡」

效果图(设计板图 49 的图三)

报表搭建页

现状(主干 6c7c6db250,本机环境 HotCRM 6.5.0,浏览器实测)

  • 报表页右上角有「编辑」,点了从右边出一个编辑面板,左边是现有的报表。面板里项很多,用词是内部名(另卡处理)。
  • 没有新建报表时用的页面。
  • 报表页上没有时间范围的快捷切换。

Attio(同日实测):搭建页右边五项。选完数据来源就按默认值出图。缺必填项时,图的位置写一句(「至少选两个阶段」)并自动打开那一项的下拉。时间类报表图上方有一排:7 天、1 月、3 月、6 月、12 月、全部,对比,按月按周。

要做的

  1. 一个页面管新建和编辑:新建报表、点现有报表的「编辑」,进的都是这个搭建页。左边是图的实时预览,右边是设置。
  2. 页头:左边「×」关闭、报表名称(可直接改)、一句说明(可直接改);右边「放弃」「保存」。
  3. 右边五项,从上到下:
    • 报表类型:这一批只有「现状分析」一种,下拉先留着。
    • 数据来源:从现有的数据集里选(显示名称)。下面「+ 筛选」。
    • 指标:选字段和算法,默认「记录数」。
    • 分组:选一个字段。下面「+ 再分一层」。
    • 图表:柱状图、折线图、环形图、数字、表格;下面是这种图自己的开关(显示数值、显示数量为 0 的分组、目标线)。
  4. 立刻出图:选完数据来源,按默认值(记录数、不分组、数字)马上画出来。每改一项,图跟着变。没有「生成」按钮。
  5. 缺什么提示什么:还缺必填项时,图的位置显示一句话说明缺什么(「选一个数据来源」「选一个分组字段」),并自动打开那一项的下拉。
  6. 时间切换:指标或分组里有日期字段时,图上方出现一排快捷时间(近 7 天、1 个月、3 个月、12 个月、全部)和「和上一期对比」。
  7. 图下面:「计算值」可以展开成一张数字表;「查看明细」打开明细弹窗(仪表盘和报表「查看明细」改成居中弹窗:所有图表都能点,弹窗里是带条件的标准列表(现在是右侧抽屉,全部字段、不能排序) #36256);「下载」。
  8. 保存:系统管理员保存后对所有人生效,不用发布应用包。

不做的

验收

  • 打开「各阶段商机」点「编辑」:进搭建页,左边是现在的图,右边五项已按现有设置填好。
  • 把分组从「阶段」换成「商机负责人」:图立刻变;点「放弃」回到原样。
  • 把图表从柱状图换成环形图再换成表格:都能画出来。
  • 新建一张报表(从 专题:运行界面的设计模式(管理员在界面上直接改菜单和页头按钮;看板、仪表盘、报表的设计入口都在页面上,不再去 Studio) #36359 的入口,或直接打开搭建页的新建地址):一开始图的位置写「选一个数据来源」,数据来源的下拉自动开着;选了以后立刻出一个数字。
  • 分组选一个日期字段:图上方出现时间切换;点「3 个月」,图只画近三个月。
  • 点「计算值」:图下面出现数字表,和图一致。
  • 保存后普通成员打开这张报表:看到新的样子。
  • 界面上没有内部名(配合「编辑面板换成业务用词」那张卡)。
  • PR 正文附搭建页、缺项提示、时间切换三张截图。

依赖

  • 本专题的「编辑面板换成业务用词」那张卡(可以先后做,用词以那张卡为准)。

协调席自己加的(不是维护者原话)

  • 图三的各项是协调席照 Attio 列的。
  • 默认值(记录数、不分组、数字)。
  • 「这一批只有系统管理员能进」「数据来源只能选现有的数据集」。
  • 第 6 项时间切换的五档。

没有核对的

Reader: domain:ui 车道。ui/packages/plugin-report。

Dedupe: 报表 搭建页(objectstack,open)→ 0。相关:#36256、#36230。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    通知记录 · 2026-11-22T08:26Z

    维护者 2026-11-22:「后续 ux 专题立卡之后都通知 7号座位。」本卡按此通知席位 repo:objectstack#7,随后在它的信箱 #36199 里发一条。同批:#36362 #36363 #36364 #36366(设计模式专题 #36359)、#36370 #36371(列表专题)、#36372 #36373 #36374(报表专题)。

  3. added
    priority:p1
    and removed
    priority:p2
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · a child the coordinator filed under #36255 (dashboards and reports on the page) → p1 as set by the maintainer · size M.

  5. added
    pm:queue
    on Nov 22, 2026
  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

    Claim: PM loop round 4
    Session: session_01QsR2jTeURPvEm465RcoYEC
    Thread session: session_01QsR2jUP9hxdL4RzdzTs9eK
    Account: zhuangjianguo
    Branch: claude/project-thread-3gbdm3 (the thread's container pushes only to its own branch name)
    Worktree: objectstack-issue-36374
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-seat (the reports card-pair thread; enters no area)
    File surface: the report/dashboard widget property panel, the report page and its builder in ui/**, the i18n catalogues, their tests
    Container & model: L, mode:thread, model: default tier (the thread re-derives dispatch-gates --tier at its head), effort: high (seat order)
    Clause-②: yes (widening) — new @object-ui/i18n keys for the new UI strings (the thread re-judges from the diff; a spec/schema change is told to the seat before push)
    Metadata-protocol: none (the thread re-judges from the diff)
    Responsibility: n/a — not a defect card
    Thread-read: 7076522033
    Premise: holds as filed (card 现状 read at main 6c7c6db; the thread re-measures first and stops on a premise that does not hold)
    Serial constraints cleared: after #36373; overlap-check before every push.
    Pre-claim lane: repo:objectstack seat 7: the maintainer's 「后续 ux 专题立卡之后都通知 7号座位」 (relayed by coordinator#1, record 7076522033) and 「ux 新进一批 p1 卡,要优先派发」 (2026-11-22T08:40Z, seat thread); coordinator#1's take request 7076651522, acknowledged 7076693653.
    Pre-claim deps: one branch, one PR per card, #36373 first (its panel is reused by #36372 in another thread), then #36374; 「查看明细」 stays #36256.
    Prior rulings read: epic #36359 (maintainer's words, board 49; the 2026-10-09 "no orchestration handles in the runtime" ruling stands, since editing controls appear only in the edit state); the thread runs check-prior-rulings.mjs --card 36374 before code.
    Resume-from: none (fresh from origin/main)

  7. added
    pm:dispatched
    on Nov 22, 2026
  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

    State fix · 2026-11-22T08:51Z: pm:queue was added by triage while the seat claim above was landing; this card is pm:dispatched under that claim, so the stale pm:queue is removed.

  9. removed
    pm:queue
    on Nov 22, 2026
  10. 2 remaining items

  11. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

    Release: seat 7 clocks out 2026-11-23T03:58Z on the maintainer's word (Steedos 2026-11-23T03:54Z, 「你可以走下班流程了」). This card was claimed at 7076755916 and never started: the maintainer ruled 2026-11-22T13:52Z, verbatim 「还没开工的不应该开工啊」, and at 2026-11-22T14:49Z that seat 2 takes the unstarted area:ux cards. Back to the queue, unclaimed, for seat 2's pick. No branch, no pushed work.
    Resume-from: none

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 3 · 2026-11-23T06:18Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbXq2Dxb31zZNmSqCtz
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat amends this claim then
    Worktree: objectstack-issue-36374
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36374 (w3-T2)
    Dispatch: the maintainer's ruling in this seat's project thread, 2026-11-23 06:15Z (decision card 「只接 p1,体验类也接」) and 06:16Z verbatim 「ux 直接 p1 和 专题卡」: this seat takes area:ux p1 cards and ux epic children. Released to the queue by seat 7 at 03:59Z, then handed to this seat by seat 2 (7092376997).
    File surface: ui/packages/plugin-report*/**, ui/packages/plugin-dashboard/** and the report spec they read; one changeset per moved package (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: opus — dispatch-gates --tier: no path-derived mandate, default tier (M, design judgement); the thread's first report states the served tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — a feature card
    Thread-read: 7091180783
    Premise: holds as filed; seat 7 released it unstarted with no branch (03:59Z); the card thread re-measures the builder on current main before code
    Serial constraints cleared: no open PR names #36374; #36364's new-report half waits on this card (seat ruling 7090058961)

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim amendment · 2026-11-23T06:21Z — completes claim 7093219907; the seat widens the surface on the card thread's premise reading.
    Branch: claude/project-thread-bkjint
    File surface: the builder component in ui/packages/plugin-report*/** (reusable by #36364); its hosting in ui/packages/app-shell (ReportView Edit, ReportConfigPanel / RuntimeDraftBar, the new-report route in console/AppContent.tsx, the save call); the i18n catalogues; one changeset per moved package. Save follows epic #36510's maintainer rule (save once, live at once) through saveAndPublishRuntimeMetadata. Item 3 picks among the dataset's declared measures and item 6 reuses ReportDateRange; both narrowings are recorded in the PR body.

  16. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 36374,
      "status": "done",
      "branch": "claude/project-thread-bkjint",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36644",
      "session": "session_01JQwxbXq2Dxb31zZNmSqCtz",
      "premise_still_valid": true,
      "summary": "The report builder (ReportBuilder, @object-ui/plugin-report): the report drawn live on the left, report type / data source / measure / grouping / chart on the right; picking a data source draws the count measure as one number; a missing piece is said where the chart would be and its picker opens by itself. The console opens it from the report page's Edit for dataset-bound reports (joined and pre-dataset reports keep the inspector panel) and at reports/new for a new report, admin only. Save stages and publishes in one press through saveAndPublishRuntimeMetadata, per the maintainer's ruling on epic #36510; a pending draft by someone else writes nothing and the builder says so. Narrowings (measures from the dataset, period chip reused, filter / zero-groups / compare not built, #36364's door not built) are listed in the PR's acceptance notes.",
      "tests": "vitest (ui): reportBuilder-36374 (19), ReportView* incl. saveRefusal-11583 and authoredEditBuffer-35008, reportBuilderArrival-36374, writeRefusalCensus-11583: Test Files 11 passed (11), Tests 63 passed (63). Regression test for the measure picker opening on a just-picked data source fails without the fix (1 failed | 18 passed) and passes with it (19 passed). @object-ui/i18n suite passes after gen:zh-hant. Browser run on the showcase app (admin, zh-Hans, head 6fea0ab67): five states captured.",
      "gates": "pnpm --filter @object-ui/app-shell type-check → exit 0 (both programs); plugin-report type-check → exit 0; eslint on changed files → 0 errors; scripts/pm/overlap-check.mjs --branch=HEAD → VERDICT clean exit 0. PR check-runs on 6fea0ab67 were in progress at writing; Governed Surface Queue Guard success.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 GitHub MCP calls (subscribe_pr_activity is the harness's, not GitHub's)",
      "api_writes": "3 — POST /repos/objectstack-ai/objectstack/pulls; POST /issues/36644/assignees; POST /pulls/36644/requested_reviewers (422: author cannot be requested)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  17. 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

Labels

area:uxdomain:uienhancementpriority:p1

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions