Commit 6164366
fix: interface page renders empty grid when source view is hollow (#1684)
The Task Workbench (and any ADR-0047 interface page) rendered a grid with
only the row-number column against backends that serve the referenced
default view WITHOUT columns (columns live only in named views; the
default expands hollow as { provider, object }).
Two latent bugs, both rooted in an empty `columns: []` reading truthy:
- resolveSourceView picked a column-less view via `v?.columns` (an empty
array is truthy), and the hydration hollow-check `!resolvedView.columns`
computed false — so the per-view overlay fetch that backfills columns
never fired.
- InterfaceListPage had no default-column fallback, unlike ObjectView
(data mode), which derives columns from compactLayout / business fields
when a view carries none.
Fix: a shared hasColumns() (non-empty check) drives resolution + hollow
detection, and the schema build falls back to defaultColumnsFromObject()
(compactLayout, else first business fields) — mirroring ObjectView. The
grid now renders full columns + data; filters/persistence unaffected.
Locked by e2e/live/user-filters.spec.ts ('grid renders data columns even
when the source view is hollow'). Found via browser review of the
backend-served /_console (a build that serves hollow default views) — the
earlier verification ran against a backend that happened to inline columns.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 830dccd commit 6164366
2 files changed
Lines changed: 60 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
73 | 89 | | |
74 | 90 | | |
75 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | | - | |
| 47 | + | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
| |||
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
52 | 83 | | |
53 | 84 | | |
54 | 85 | | |
| |||
91 | 122 | | |
92 | 123 | | |
93 | 124 | | |
94 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
95 | 128 | | |
96 | 129 | | |
97 | 130 | | |
| |||
107 | 140 | | |
108 | 141 | | |
109 | 142 | | |
110 | | - | |
| 143 | + | |
111 | 144 | | |
112 | 145 | | |
113 | 146 | | |
| |||
139 | 172 | | |
140 | 173 | | |
141 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
142 | 181 | | |
143 | 182 | | |
144 | 183 | | |
145 | 184 | | |
146 | | - | |
| 185 | + | |
147 | 186 | | |
148 | 187 | | |
149 | 188 | | |
| |||
0 commit comments