Skip to content

Commit 6783699

Browse files
committed
fix(plugin-grid): rename the grouping hook's local field type off a spec-owned name (slice 6)
check:spec-symbols refuses a local `ObjectFieldLike` because @objectstack/spec/system exports that name. The local type is GroupingFieldDef now; nothing else changes. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bdrd2yH4eqnz2QobtN3haE
1 parent 39923d8 commit 6783699

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type QueryInputs = ReturnType<typeof useObjectGridQueryInputs>;
2525
type GroupingDecisions = ReturnType<typeof useObjectGridGroupingDecisions>;
2626
type RowLoad = ReturnType<typeof useObjectGridRowLoad>;
2727
/** What the grouping reads off an object field: its cell face and its options. */
28-
type ObjectFieldLike = GridCellFieldLike & {
28+
type GroupingFieldDef = GridCellFieldLike & {
2929
type?: string;
3030
options?: Parameters<ReturnType<typeof useSafeFieldLabel>['translateOptions']>[2];
3131
};
@@ -93,7 +93,7 @@ export function useObjectGridGrouping({
9393
schema: ObjectGridSchema;
9494
dataSource: DataSource | undefined;
9595
objectName: string | undefined;
96-
objectFields: Readonly<Record<string, ObjectFieldLike | undefined>> | undefined;
96+
objectFields: Readonly<Record<string, GroupingFieldDef | undefined>> | undefined;
9797
objectTypesPending: boolean;
9898
data: unknown[];
9999
setData: React.Dispatch<React.SetStateAction<unknown[]>>;

0 commit comments

Comments
 (0)