Skip to content

Commit f445714

Browse files
committed
docs(skills): the objectstack-ui report example declares its download in exportOptions under the base object's allowExport
The Report Configuration example in rules/dashboards.md taught dateRange and not exportOptions. The example now declares exportOptions with formats csv / xlsx and names the optional includeHeaders / fileNamePrefix in a trailing comment; the note block says who may download is the base object's permission-set allowExport and that a joined report takes neither dateRange nor exportOptions. Paid under the token ratchet by folding the dateGranularity bullet (taught under Server-side date bucketing) and the drilldown sentence (taught under Drilldown): 6221 -> 6214 tokens, ceiling untouched. Claude-Session: https://claude.ai/code/session_01QSeKYmhU5KEj1nukYhp1Tg Co-authored-by: Claude <noreply@anthropic.com>
1 parent a0aa8a1 commit f445714

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the objectstack-ui report example declares its download in `exportOptions` under the base object's `allowExport`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`rules/dashboards.md` 〈Report Configuration〉 taught a report's `dateRange` and not its `exportOptions`: the example now declares `exportOptions: { formats: ['csv', 'xlsx'] }` (optional `includeHeaders` / `fileNamePrefix`) and the note says who may download is the base object's permission-set `allowExport` and that a `joined` report takes neither key, paid for by folding the `dateGranularity` and `drilldown` restatements that the same file already teaches under Server-side date bucketing and Drilldown.

‎skills/objectstack-ui/rules/dashboards.md‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,28 +398,27 @@ export const PipelineCoverageReport = defineReport({
398398
runtimeFilter: { stage: { $ne: 'closed_lost' } },
399399
// Period: ONE `type: 'date'` dataset dimension, not a dashboard-style raw `field`.
400400
dateRange: { dimension: 'close_date', defaultRange: 'this_year' },
401+
exportOptions: { formats: ['csv', 'xlsx'] }, // the download; optional `includeHeaders`, `fileNamePrefix`
401402
order: [{ by: 'amount_sum', direction: 'desc' }], // by measure; dates default to chronological
402403
chart: { type: 'bar', xAxis: 'forecast_category', yAxis: 'amount_sum' },
403404
});
404405
```
405406

406-
> **`dateGranularity`** lives on the dataset's date **dimension**
407-
> (`day | week | month | quarter | year`); selecting that dimension buckets the
408-
> field server-side in a single aggregate query — do **not** pre-compute virtual
409-
> columns for this.
410407
> **`rows`** are the report's grouping dimensions (selected from the dataset by
411408
> name). A `summary` groups *down* by `rows`. A `matrix` pivots `rows` (down) ×
412409
> **`columns`** (across, ADR-0021 D2) with `values` in the cells — do **not**
413410
> put both axes in `rows`. Multi-level grouping on either axis = multiple
414-
> dimension names in that array. `drilldown` (default `true`) makes cells
415-
> click-through to the underlying records.
411+
> dimension names in that array.
416412
> **`order`** sorts the result server-side — a list of `{ by, direction }`, most
417413
> significant key first. `by` must be a `rows`/`columns` dimension or a `values`
418414
> measure the report actually selects (anything else is an authoring error). A
419415
> selected date dimension already defaults to ASCENDING, so a month-bucketed
420416
> matrix reads left-to-right in time with no `order` at all; list the `columns`
421417
> key first when the across-axis header sequence is what matters. A `joined`
422418
> report orders per block (`blocks[].order`), never on the container.
419+
> **`exportOptions`** declares the download, never who may download — that is the
420+
> base object's permission-set `allowExport`; a `joined` report takes neither
421+
> `dateRange` nor `exportOptions`.
423422
424423
---
425424

0 commit comments

Comments
 (0)