Skip to content

Commit 39923d8

Browse files
committed
refactor(plugin-grid): move ObjectGrid's grouping and column summaries into sibling hooks (slice 6)
The grouping (group value formatter, date group faces, server group headers and rows, grouped data) moves verbatim into useObjectGridGrouping, with temporalGroupHeading and its face type. The fan-out query, resolved match total and column summaries move into useObjectGridSummaries. Each hook is called where its block stood, so hook order is unchanged. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bdrd2yH4eqnz2QobtN3haE
1 parent f48aa45 commit 39923d8

4 files changed

Lines changed: 554 additions & 411 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
---
4+
5+
refactor(plugin-grid): `ObjectGrid`'s grouping and column summaries move into two sibling hooks
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Two adjacent blocks of the `ObjectGrid` component move verbatim out of `ObjectGrid.tsx`. The grouping (the group value formatter, the date-family group faces, the server group headers and row pages, and the grouped data) goes to `useObjectGridGrouping` (`objectGridGrouping.ts`), together with `temporalGroupHeading`, which draws a date group's heading. The cross-page fan-out query, the resolved match total and the column summaries go to `useObjectGridSummaries` (`objectGridSummaries.ts`). `ObjectGrid` calls each hook where its block stood, so its hook order, its queries and its rendered output do not change. No name is renamed, and the package entry is unchanged.
11+
12+
What to do: nothing.

0 commit comments

Comments
 (0)