|
81 | 81 | } |
82 | 82 | }, |
83 | 83 | "exportOptions": { |
84 | | - "status": "planned", |
85 | | - "verifiedAt": "2026-10-27", |
86 | | - "authorWarn": true, |
87 | | - "authorHint": "Keep it, but nothing reads it yet: the Console report page draws no export control, so the report table cannot be downloaded until the report renderer reads this key.", |
88 | | - "note": "PLANNED RECORD (#26548, the spec half of ruling 6408567749 on #25873, letter B). The report export control `{ formats?, includeHeaders?, fileNamePrefix? }`: three members of the list export block (ReportExportOptionsSchema in packages/spec/src/ui/list-view-export-options.ts), formats `csv` / `xlsx` only, on by default (absent = both, `formats: []` = off). Who may export is NOT a report key: the control is gated on the viewer having `export` in the effective apiOperations of the dataset base object (ObjectPermission.allowExport, the predicate the list toolbar uses). Refused on a `joined` container. PLANNED, not live: no renderer reads it. The report page (ui/packages/plugin-report/src/DatasetReportRenderer.tsx#DatasetReportRenderer) draws no export control, no source under ui/packages/plugin-report/src/ names `exportOptions` (0 hits outside tests), and the client-side CSV writer in ui/packages/plugin-report/src/ReportExportEngine.ts serves the legacy presentation schema, not ReportSchema. The renderer writes XLSX in the browser: the list XLSX path is the server record stream, which cannot carry aggregated report rows. Carrier: #25873. Flip to `live` on the commit that cites the renderer read point, and drop `authorWarn` / `authorHint` in that same edit.", |
| 84 | + "status": "live", |
| 85 | + "verifiedAt": "2026-10-28", |
| 86 | + "evidence": "ui/packages/plugin-report/src/ReportExport.tsx#ReportExportControl, ui/packages/plugin-report/src/DatasetReportRenderer.tsx#DatasetReportRenderer", |
| 87 | + "note": "#25873 (ruling 6408567749, letter B; spec half #26548). The report export control `{ formats?, includeHeaders?, fileNamePrefix? }`: three members of the list export block (ReportExportOptionsSchema in packages/spec/src/ui/list-view-export-options.ts), formats `csv` / `xlsx` only, on by default (absent = both, `formats: []` = off). Refused on a `joined` container, and not read there. LIVE: a non-joined report draws an Export control (ReportExport.tsx#ReportExportControl, read from DatasetReportRenderer.tsx#DatasetReportRenderer as `report.exportOptions`) once its table has rows. The download is the table AS DRAWN: the grouped table or the matrix cross-tab hands the cells it renders, server totals included, up through ReportExport.tsx#ReportTableSnapshotContext, so the file carries the active `runtimeFilter` and period of the table's own query and nothing is re-queried or re-aggregated. Who may export is NOT a report key: the control is offered only when the viewer's effective apiOperations on the dataset base object (the query answer's `object`) include `export` (ObjectPermission.allowExport, the predicate the list toolbar uses, read through `@object-ui/permissions` usePermissions); an absent operation set (no provider, an unrestricted object) keeps it, as on the list. Both files are written in the browser: the list XLSX path is the server record stream, which cannot carry aggregated report rows, so the XLSX is built with ExcelJS imported only when asked for. Pinned by ui/packages/plugin-report/src/__tests__/DatasetReportRenderer.export-25873.test.tsx.", |
89 | 88 | "children": { |
90 | 89 | "formats": { |
91 | | - "status": "planned", |
92 | | - "verifiedAt": "2026-10-27", |
93 | | - "evidence": "packages/spec/src/ui/list-view-export-options.ts#ReportExportOptionsSchema (declares `formats`, csv / xlsx only)", |
94 | | - "note": "The formats the export control offers; absent = both, `[]` = off. Planned with its container: no renderer draws the control." |
| 90 | + "status": "live", |
| 91 | + "verifiedAt": "2026-10-28", |
| 92 | + "evidence": "ui/packages/plugin-report/src/ReportExport.tsx#readReportExportFormats", |
| 93 | + "note": "The formats the control offers, in the declared order; absent = csv and xlsx, `[]` draws no control." |
95 | 94 | }, |
96 | 95 | "includeHeaders": { |
97 | | - "status": "planned", |
98 | | - "verifiedAt": "2026-10-27", |
99 | | - "evidence": "packages/spec/src/ui/list-view-export-options.ts#ReportExportOptionsSchema (declares `includeHeaders`, the list export member)", |
100 | | - "note": "Whether the download carries a header row. Planned with its container: no renderer draws the control." |
| 96 | + "status": "live", |
| 97 | + "verifiedAt": "2026-10-28", |
| 98 | + "evidence": "ui/packages/plugin-report/src/ReportExport.tsx#buildReportCsv, ui/packages/plugin-report/src/ReportExport.tsx#buildReportXlsx", |
| 99 | + "note": "Whether the download opens with the table's header row (dimension and measure labels as drawn); absent = true." |
101 | 100 | }, |
102 | 101 | "fileNamePrefix": { |
103 | | - "status": "planned", |
104 | | - "verifiedAt": "2026-10-27", |
105 | | - "evidence": "packages/spec/src/ui/list-view-export-options.ts#ReportExportOptionsSchema (declares `fileNamePrefix`, the list export member)", |
106 | | - "note": "The download file name prefix, in place of the report label. Planned with its container: no renderer draws the control." |
| 102 | + "status": "live", |
| 103 | + "verifiedAt": "2026-10-28", |
| 104 | + "evidence": "ui/packages/plugin-report/src/ReportExport.tsx#ReportExportControl", |
| 105 | + "note": "Replaces the report label as the file name base; the name is built by `@object-ui/core` buildExportFileName (base-YYYYMMDD-HHMMSS.ext, the list export's builder)." |
107 | 106 | } |
108 | 107 | } |
109 | 108 | }, |
|
0 commit comments