Skip to content

Commit 83d66cf

Browse files
committed
docs(grid): the empty group heading comments name grid.empty, not "(empty)"
GroupRowProps.label and the temporalCellFace doc comment still said an empty group key is labelled "(empty)"; the heading is the grid's empty-value string grid.empty ("Empty" in English). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTqAcPU4VyEPH7iVn2
1 parent f6347c8 commit 83d66cf

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎ui/packages/plugin-grid/src/GroupRow.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import type { AggregationResult } from './useGroupedData';
1414
export interface GroupRowProps {
1515
/** Unique key identifying this group */
1616
groupKey: string;
17-
/** Display label for the group (field value or "(empty)") */
17+
/**
18+
* Display label for the group: the field value, or for an empty key the
19+
* grid's empty-value string `grid.empty` ("Empty" in English).
20+
*/
1821
label: string;
1922
/**
2023
* The group's size. On a server-grouped grid this is the header query's

‎ui/packages/plugin-grid/src/temporalCellFace.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ export function temporalExtreme(values: Iterable<unknown>, type: 'min' | 'max'):
7878
* [objectui#13234] A stored `date` / `datetime` value, drawn as the grid's
7979
* cell draws the same value. `undefined` for a value the cell has no face for
8080
* (empty or unparsable), so the caller keeps its own text: a group band keeps
81-
* the group's own label ("(empty)" for an empty key, the stored text
82-
* otherwise), and an aggregate is left out.
81+
* the group's own label (the grid's empty-value string `grid.empty`, "Empty"
82+
* in English, for an empty key; the stored text otherwise), and an aggregate is
83+
* left out.
8384
*
8485
* The formatting CALLS are the cells' own, with the cells' arguments:
8586
* `DateCellRenderer` in a grid column (`inGridColumn`, objectstack#25884)

0 commit comments

Comments
 (0)