You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dashboards: a table widget's 「导出 CSV」 exports without the export permission and writes no audit entry — bypasses 「看得到不等于导得走」 #34906
Export is a separate grant. A sales manager who holds no export permission on crm_cb_order, crm_allocation_plan and similar objects gets 403 EXPORT_NOT_PERMITTED from /api/v1/data/<obj>/export, and list views offer no export.
On a dashboard, though, the same manager can click the download icon on a table widget (tooltip 「导出 CSV」) and receives a CSV of the widget's rows. For example, from 数据洞察 → 订单毛利 → 「需特批的方案」:
The audit log records list exports (「导出 客户 — 王强」 with format and row count), but this dashboard export leaves no audit entry.
Expected
A dashboard or report widget export is subject to the same export grant as the objects behind its dataset. Without that grant, the download control is hidden and the server refuses the request.
Every dashboard or report export writes an audit entry (who, which widget or dataset, row count, format), the same as list exports.
Why it matters
The app's requirement is that seeing data is not the same as being allowed to export it, and that every export is logged. Field masking is unaffected: a sales rep's widget data stays masked. The gap is in the export grant and the audit trail.
First touch (R1198, 16:0xZ): p1 · domain:ui → pm:queue.
Theme: performance and security, with a named customer requirement. A dashboard table widget's CSV export skips the separate export grant that /data/<obj>/export enforces, and writes no audit entry. The viewer can already read the rows, so this is a policy bypass, not new data exposure. Labelled security. The fix spans the widget control (ui) and a server-side refusal plus an audit entry. So p1.
Decision owed · 2026-11-18T16:40Z — seat analysis for the maintainer (premise read at origin/main ec227fc). The card waits in needs-user-decision until he rules; the decision card is in the seat's project thread.
Ruled: 2026-11-18T16:45Z. The maintainer gave this in seat repo:objectstack#5's project session, verbatim, at 2026-11-18T16:44Z: 「直接删掉导出按钮」. It supersedes his earlier pick of option B on the seat's decision card, made at 2026-11-18T16:41Z. He asked who had requested a dashboard CSV export (「为什么需要看板到处 csv」, 「这是谁提的需求,一路提到 p1」); the seat found that no card had requested the widget's button.
Scope now
Remove the 「导出 CSV」 control from the dashboard table widget: ui/packages/plugin-dashboard/src/DatasetWidget.tsx, about lines 1602 and 1616–1630, together with its now-unused helper and i18n key.
No server work. No new audit row.
Exporting stays on the paths that enforce the export grant and write the audit row, which are list export. Reports keep their own control.
Done when
No dashboard widget offers a download.
A test pins that the table widget renders no export control.
Back to pm:queue for the seat to dispatch. The decision analysis in 6985014904 is superseded.
Grade: p2 (was p1) · area:data · Bug · impeded. The security label does not set a grade by itself; the grade follows the table. Fix shape: hide the button and correct the docs, one PR. A new export endpoint and its audit kind are separate Features, not options of this Bug. The open decision on this card stays with the maintainer.
Claim: PM loop round 1 (repo:objectstack#5; the maintainer, verbatim, in this seat's session, 2026-11-18T16:32Z: 「这几个p1卡都你处理」, scope per his ruling 6985168401) · 2026-11-18T17:00Z
Session: session_01Utp6CbUb7TcZK1XUAddUmQ
Thread session: session_01Utp6CaQvpYhavZuHEZEF3C
Account: os-bill
Branch: claude/project-thread-2xf843
Worktree: objectstack-issue-34906 (the card thread's container)
Domain: domain:ui
Seat: repo:objectstack#5
File surface: ui/packages/plugin-dashboard/src/** (+ tests), the i18n packs holding dashboard.exportCsv, docs that mention the control, a changeset. ⛔ ui/packages/plugin-report/**. Stop on breach and report.
Container & model: S, mode:thread (p1, security label), model: default — no path-derived mandate, effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: ui plugin-dashboard's table widget in objectstack builds a CSV in the browser with no export grant; the platform paths that enforce the grant (list export) stay; every dashboard viewer reaches the control today
Thread-read: 6985168401
Premise: holds — the 「导出 CSV」 control at ui/packages/plugin-dashboard/src/DatasetWidget.tsx (~1602, ~1616–1630) downloads a browser-built Blob; ruling 6985168401 narrows the fix to removing it.
Serial constraints cleared: none — no open PR or pm:dispatched card on plugin-dashboard at claim time.
Reported 2026-11-18T17:47Z · PR #35242 · head 24291320
{
"issue": 34906,
"status": "done",
"branch": "claude/project-thread-2xf843",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35242",
"session": "session_01Utp6CaQvpYhavZuHEZEF3C",
"premise_still_valid": true,
"summary": "Removed the dataset table and cross-tab widgets' Export CSV button from ui/packages/plugin-dashboard/src/DatasetWidget.tsx with its now-unused downloadCsv / toCsv / csvCell helpers and the Download icon import, and the dashboard.exportCsv key from all 11 i18n locale packs. Five tests that pinned the CSV's contents and the toCsv unit test go with the feature; the phone touch-target test drops its export-button lines; a new pin covers both table shapes. A1 holds at ec227fc7 (exportCsv ~1602, button ~1616-1630, downloadCsv ~216 Blob). A2: no other dashboard widget or shared helper in plugin-dashboard builds a file; the object-data-table block passes an authored exportable prop (default false) through to data-table, whose own Export CSV button then shows. Not widened; named for the seat. No packages/spec widget export option exists; no docs mention the control.",
"tests": "head 24291320: pnpm --filter @object-ui/plugin-dashboard test: Test Files 206 passed (206), Tests 2010 passed | 6 skipped; type-check exit 0. pnpm --filter @object-ui/i18n test: Test Files 104 passed (104), Tests 1956 passed | 13 skipped; type-check exit 0 (os-verify-lock VERDICT command-exit 0). Reverse check: DatasetWidget.tsx from origin/main => the new pin fails on both shapes (2 failed); restored from HEAD, git diff HEAD empty.",
"gates": "Local: dispatch-gates --commands derived 40 families at 24291320; 40 ran, each exit 0 (list with exits in gates-ran-24291320.txt). --ran: 40 run, 0 NOT-MEASURED (derived zero, every line carries an exit code). check-nul-bytes exit 0. CI check-runs: in_progress at report time.",
"line_budget": "20 files changed, 52 insertions(+), 315 deletions(-)",
"deviations": "Worked in the card thread's own checkout on the platform branch rather than a separate worktree (the branch is platform-assigned). The commit carries the harness-supplied Co-Authored-By trailer naming the model; reported, history not rewritten.",
"files_changed": [
".changeset/34906-dashboard-table-no-csv-export.md",
"ui/packages/i18n/src/locales/ar.ts",
"ui/packages/i18n/src/locales/de.ts",
"ui/packages/i18n/src/locales/en.ts",
"ui/packages/i18n/src/locales/es.ts",
"ui/packages/i18n/src/locales/fr.ts",
"ui/packages/i18n/src/locales/ja.ts",
"ui/packages/i18n/src/locales/ko.ts",
"ui/packages/i18n/src/locales/pt-BR.ts",
"ui/packages/i18n/src/locales/ru.ts",
"ui/packages/i18n/src/locales/zh-Hans.ts",
"ui/packages/i18n/src/locales/zh-Hant.ts",
"ui/packages/plugin-dashboard/src/DatasetWidget.tsx",
"ui/packages/plugin-dashboard/src/__tests__/DashboardPhoneTouchTargets-29078.test.tsx",
"ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.compareTo.test.tsx",
"ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.dottedDimensionTable.test.tsx",
"ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.localSelectI18n.test.tsx",
"ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.tablePolish.test.tsx",
"ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.tableTotalsRow.test.tsx",
"ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.test.tsx"
],
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "2 — mcp__github__issue_read (get_comments) x2; no write tools",
"api_writes": "1 — fleet-write relay pr_create (PR #35242, assignee os-bill); this report comment via post-stamped is the 2nd",
"open_questions": [
{
"question": "The ruling's Done-when says no dashboard widget offers a download. object-data-table with authored exportable: true still shows data-table's Export CSV. Remove it too?",
"options": [
"A leave it: it is the shared table's opt-in prop, default off, outside this card's named control",
"B follow-up card to refuse or drop exportable on object-data-table"
],
"recommendation": "A, the ruling names the dataset table control; raise B only if the maintainer wants every dashboard block download-free"
}
],
"security_findings": "none",
"out_of_scope_findings": []
}
Close-out 2026-11-18T18:41Z: PR #35242 MERGED as ad15579576; Fixes closed this card. Delivered: the dashboard table and cross-tab widgets no longer offer the browser-built CSV download (maintainer ruling 6985168401). Left as ruled: object-data-table's authored exportable (default off). pm:dispatched off.
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1198, 16:0xZ): p1 · domain:ui →
pm:queue.Theme: performance and security, with a named customer requirement. A dashboard table widget's CSV export skips the separate export grant that
/data/<obj>/exportenforces, and writes no audit entry. The viewer can already read the rows, so this is a policy bypass, not new data exposure. Labelledsecurity. The fix spans the widget control (ui) and a server-side refusal plus an audit entry. So p1.objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
Decision owed · 2026-11-18T16:40Z — seat analysis for the maintainer (premise read at origin/main ec227fc). The card waits in
needs-user-decisionuntil he rules; the decision card is in the seat's project thread.问题: 没被授予「导出」的人,在仪表盘表格上点一下照样能把数据下载走,审计里也查不到。(下载文件在浏览器里生成,
ui/packages/plugin-dashboard/src/DatasetWidget.tsx约 1602 行,服务器收不到请求。)这个下载只把按钮藏起来就够,还是要像列表导出那样由服务器拒绝并留下记录?已有裁定: 看哪个权限已经定了(#25873 裁决 B,评论 6408567749:报表导出走数据集基础对象的导出授权),所以藏按钮属于执行。是否必须由服务器把关、审计记成什么样,还没有裁定。对外文档
content/docs/permissions/permission-sets.mdx108–116 行写的是「导出由服务器强制,报表导出同样把关」,现在做不到。选项
席位推荐 B: 任何把数据带走的入口,都过同一个导出授权、留同一种记录。顺序:先按已有裁定藏按钮当天止血,再建服务器入口和审计,最后把报表切到同一个入口(报表另立同级跟进卡)。
请顺带确认: 数据集跨多个对象时,只看基础对象的导出授权(沿用 #25873 B),还是卡面写的「背后各对象」都要有导出授权。
Prior rulings read: export,audit,dataset → #25873 B (6408567749), #30955 / PR #31000 (list-export audit), PR #33559 (dataset_query audit); ADR-0021 D1–D3, ADR-0029 D6, ADR-0091 D7 do not answer it.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
Ruled: 2026-11-18T16:45Z. The maintainer gave this in seat repo:objectstack#5's project session, verbatim, at 2026-11-18T16:44Z: 「直接删掉导出按钮」. It supersedes his earlier pick of option B on the seat's decision card, made at 2026-11-18T16:41Z. He asked who had requested a dashboard CSV export (「为什么需要看板到处 csv」, 「这是谁提的需求,一路提到 p1」); the seat found that no card had requested the widget's button.
Scope now
ui/packages/plugin-dashboard/src/DatasetWidget.tsx, about lines 1602 and 1616–1630, together with its now-unused helper and i18n key.Done when
Back to
pm:queuefor the seat to dispatch. The decision analysis in 6985014904 is superseded.objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY
Ruling-ref: maintainer 16:58Z 「同意」 (regrade v4 under epic #35205; 16:57Z 「p1 的定级不是大问题,大问题是小开发放大」)
Grade: p2 (was p1) · area:data · Bug · impeded. The
securitylabel does not set a grade by itself; the grade follows the table. Fix shape: hide the button and correct the docs, one PR. A new export endpoint and its audit kind are separate Features, not options of this Bug. The open decision on this card stays with the maintainer.objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
Claim: PM loop round 1 (repo:objectstack#5; the maintainer, verbatim, in this seat's session, 2026-11-18T16:32Z: 「这几个p1卡都你处理」, scope per his ruling 6985168401) · 2026-11-18T17:00Z
Session:
session_01Utp6CbUb7TcZK1XUAddUmQThread session:
session_01Utp6CaQvpYhavZuHEZEF3CAccount:
os-billBranch:
claude/project-thread-2xf843Worktree:
objectstack-issue-34906(the card thread's container)Domain:
domain:uiSeat:
repo:objectstack#5File surface:
ui/packages/plugin-dashboard/src/**(+ tests), the i18n packs holdingdashboard.exportCsv, docs that mention the control, a changeset. ⛔ui/packages/plugin-report/**. Stop on breach and report.Container & model:
S,mode:thread(p1, security label),model: default — no path-derived mandate,effort: mediumClause-②: no
Metadata-protocol: none
Responsibility: ui plugin-dashboard's table widget in objectstack builds a CSV in the browser with no export grant; the platform paths that enforce the grant (list export) stay; every dashboard viewer reaches the control today
Thread-read: 6985168401
Premise: holds — the 「导出 CSV」 control at
ui/packages/plugin-dashboard/src/DatasetWidget.tsx(~1602, ~1616–1630) downloads a browser-built Blob; ruling 6985168401 narrows the fix to removing it.Serial constraints cleared: none — no open PR or pm:dispatched card on plugin-dashboard at claim time.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#5 · os-bill · session_01Utp6CaQvpYhavZuHEZEF3C
os-dev-report
Reported 2026-11-18T17:47Z · PR #35242 · head
24291320{ "issue": 34906, "status": "done", "branch": "claude/project-thread-2xf843", "pr": "https://github.com/objectstack-ai/objectstack/pull/35242", "session": "session_01Utp6CaQvpYhavZuHEZEF3C", "premise_still_valid": true, "summary": "Removed the dataset table and cross-tab widgets' Export CSV button from ui/packages/plugin-dashboard/src/DatasetWidget.tsx with its now-unused downloadCsv / toCsv / csvCell helpers and the Download icon import, and the dashboard.exportCsv key from all 11 i18n locale packs. Five tests that pinned the CSV's contents and the toCsv unit test go with the feature; the phone touch-target test drops its export-button lines; a new pin covers both table shapes. A1 holds at ec227fc7 (exportCsv ~1602, button ~1616-1630, downloadCsv ~216 Blob). A2: no other dashboard widget or shared helper in plugin-dashboard builds a file; the object-data-table block passes an authored exportable prop (default false) through to data-table, whose own Export CSV button then shows. Not widened; named for the seat. No packages/spec widget export option exists; no docs mention the control.", "tests": "head 24291320: pnpm --filter @object-ui/plugin-dashboard test: Test Files 206 passed (206), Tests 2010 passed | 6 skipped; type-check exit 0. pnpm --filter @object-ui/i18n test: Test Files 104 passed (104), Tests 1956 passed | 13 skipped; type-check exit 0 (os-verify-lock VERDICT command-exit 0). Reverse check: DatasetWidget.tsx from origin/main => the new pin fails on both shapes (2 failed); restored from HEAD, git diff HEAD empty.", "gates": "Local: dispatch-gates --commands derived 40 families at 24291320; 40 ran, each exit 0 (list with exits in gates-ran-24291320.txt). --ran: 40 run, 0 NOT-MEASURED (derived zero, every line carries an exit code). check-nul-bytes exit 0. CI check-runs: in_progress at report time.", "line_budget": "20 files changed, 52 insertions(+), 315 deletions(-)", "deviations": "Worked in the card thread's own checkout on the platform branch rather than a separate worktree (the branch is platform-assigned). The commit carries the harness-supplied Co-Authored-By trailer naming the model; reported, history not rewritten.", "files_changed": [ ".changeset/34906-dashboard-table-no-csv-export.md", "ui/packages/i18n/src/locales/ar.ts", "ui/packages/i18n/src/locales/de.ts", "ui/packages/i18n/src/locales/en.ts", "ui/packages/i18n/src/locales/es.ts", "ui/packages/i18n/src/locales/fr.ts", "ui/packages/i18n/src/locales/ja.ts", "ui/packages/i18n/src/locales/ko.ts", "ui/packages/i18n/src/locales/pt-BR.ts", "ui/packages/i18n/src/locales/ru.ts", "ui/packages/i18n/src/locales/zh-Hans.ts", "ui/packages/i18n/src/locales/zh-Hant.ts", "ui/packages/plugin-dashboard/src/DatasetWidget.tsx", "ui/packages/plugin-dashboard/src/__tests__/DashboardPhoneTouchTargets-29078.test.tsx", "ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.compareTo.test.tsx", "ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.dottedDimensionTable.test.tsx", "ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.localSelectI18n.test.tsx", "ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.tablePolish.test.tsx", "ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.tableTotalsRow.test.tsx", "ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.test.tsx" ], "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "2 — mcp__github__issue_read (get_comments) x2; no write tools", "api_writes": "1 — fleet-write relay pr_create (PR #35242, assignee os-bill); this report comment via post-stamped is the 2nd", "open_questions": [ { "question": "The ruling's Done-when says no dashboard widget offers a download. object-data-table with authored exportable: true still shows data-table's Export CSV. Remove it too?", "options": [ "A leave it: it is the shared table's opt-in prop, default off, outside this card's named control", "B follow-up card to refuse or drop exportable on object-data-table" ], "recommendation": "A, the ruling names the dataset table control; raise B only if the maintainer wants every dashboard block download-free" } ], "security_findings": "none", "out_of_scope_findings": [] }Generated by Claude Code
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
ACCEPT → PR #35242 comment 6987556455 · head
eae81e1a· 2026-11-18T18:21Z. Seat landing armed (ready + auto-merge); close-out here on MERGED.objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
Close-out 2026-11-18T18:41Z: PR #35242 MERGED as
ad15579576;Fixesclosed this card. Delivered: the dashboard table and cross-tab widgets no longer offer the browser-built CSV download (maintainer ruling 6985168401). Left as ruled:object-data-table's authoredexportable(default off).pm:dispatchedoff.