Skip to content

Commit 09fc0d2

Browse files
committed
refactor(plugin-grid): move ObjectGrid's query inputs and grouping decisions into sibling hooks (slice 4)
Two adjacent blocks of the component body move verbatim: the projection keys plus the filter, sort, search and server-paging state into useObjectGridQueryInputs, and the grouping decisions (masked-key refusal, server grouping, the two refusals, fetch window, group row query) into useObjectGridGroupingDecisions. Each hook is called where its block stood, so hook order is unchanged. The two inline-data effects between them stay in ObjectGrid.tsx. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bdrd2yH4eqnz2QobtN3haE
1 parent d0a7e74 commit 09fc0d2

4 files changed

Lines changed: 498 additions & 322 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 query inputs and grouping decisions 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 projection keys and the view's filter, sort, search and server-paging state go to `useObjectGridQueryInputs` (`objectGridQueryInputs.ts`). The masked grouping-key refusal, the server-grouping decision, the two grouping refusals, the fetch window and the held group row query go to `useObjectGridGroupingDecisions` (`objectGridGroupingDecisions.ts`). `ObjectGrid` calls each hook where its block stood, so its hook order, its queries, its warnings 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)