cursor / composer-2.5 / Composer 2.5 default / unknown effort preferred over deepseek / deepseek-flash / none / unknown effort · clear win.
Primary judge: Sol 6.1, requested Low. Effective provider effort and internal attempts were not verified. A close win is still a scored preference; it does not establish a material defect.
Reviewed public evidence
Task goal
Inspect the dashboard-builder data exploration interaction in the supplied implementation. Find one user-visible interaction that can mislead, trap, or silently discard a user’s work during filtering, loading, or editing; cite the exact condition, describe a minimal UX correction, and suggest a focused regression check.
cursor / composer-2.5 / Composer 2.5 default / unknown effort answer
## Evidence packet
### 1. Conclusion (filtering — silent mismatch)
**Finding:** A numeric column header filter can stay visible in the grid while the server runs an **unfiltered** (wider) query — the user believes they narrowed the dataset; results and counts reflect no such filter.
**Exact condition:** In `tabulatorFiltersToGridFilters`, when `numericFields.has(f.field)` is true, the value is non-empty (`f.value` is not null/''), and `parseNumericExpression(strVal)` returns `null` (value does not match `NUMERIC_RE`, e.g. plain text `"active"`, malformed `">8x"`, or a lone operator `">"`). The loop `continue`s without adding a `GridFilterItem` and without any user-facing notice (only a dev `console.warn` exists for `type === 'function'`, not for failed numeric parse).
```316:321:[REDACTED: private project name]/frontend/src/hooks/useServerGrid.ts
if (numericFields.has(f.field)) {
const numeric = parseNumericExpression(strVal)
if (numeric) {
result.push({ field: f.field, op: numeric.op, value: numeric.value })
}
continue
}
```
The hook’s own `GridTransportRequest.rawHeaderFilterCount` comment describes the same class of failure: Tabulator can report filters that never reach `body.nl_filter_group` after translation.
**Minimal UX correction:** When a header filter cell is non-empty but translation produces no server condition for that field, show a compact inline warning on the column (or toolbar): e.g. “Filter not applied — use expressions like `>8` or `<=100`.” Optionally block treating the grid as “filtered” until valid or cleared. Mirror the numeric-parse rules in the message.
**Focused regression check:** Unit test `tabulatorFiltersToGridFilters([{ field: 'score', type: 'function', value: 'not-a-number' }], new Set(['score']))` → `[]`; integration/E2E: type invalid text into a numeric header filter, assert row set/count match unfiltered baseline **and** (after fix) assert visible “not applied” state. Cross-check export: `getExportBody()` should not claim a numeric constraint that was dropped.
**Confidence:** High for the silent-drop behavior in the supplied snapshot; medium that this path is exercised from dashboard-builder exploration UI (no `useServerGrid` import in `DashboardBuilderPage.tsx` in this packet).
---
### 2. Alternatives / discarded hypotheses
| Hypothesis | Verdict |
|------------|--------|
| **Dashboard builder — load another saved dashboard** (`loadSavedConfig` on card click, ~327): replaces `widgets` with no dirty-state prompt; can discard in-progress layout/edits. Strong for **editing**, not filtering. | Valid secondary finding; not chosen as primary because question emphasizes filtering/loading/editing and numeric filter is a clearer silent server mismatch. |
| **`reload()` clears `totalCount` to `null`** (~726): can briefly mislead “no rows” / empty totals while loading. | Transient UI flicker, not durable discard of user input. |
| **`setSearchText` 300ms debounce** (~824–829): rapid navigation might reload without final keystrokes. | Race/edge; less reproducible than numeric drop. |
| **Aborted requests return never-settling promise** (~628–629): Tabulator drops request; user may see stale rows until next success. | Loading confusion; harder to pin to one user action in packet alone. |
---
### 3. Missing evidence / consequence
- **`DashboardBuilderPage.tsx` does not reference `useServerGrid` or a data grid** in this snapshot — cannot prove explorer widgets in the builder wire numeric `numericFilterFields` without `WidgetConfigEditor`, `WidgetRenderer`, or explorer pages (listed as outside packet).
- **`headerFilters.js` / `compileFilterToServer.js`**: date/custom filter behavior not verified here.
- **Consequence:** Primary finding is grounded in `useServerGrid.ts`; product-level “dashboard-builder exploration” linkage is inferred from scope JSON, not demonstrated in-file.
---
### 4. Next useful action
Add a user-visible “filter not applied” path for numeric (and optionally `rawHeaderFilterCount` vs translated filter count mismatch in custom `transport`), plus the unit test above; separately, if builder UX is in scope, add dirty-state guard before `loadSavedConfig` / `applyTemplate` / `startNew`.deepseek / deepseek-flash / none / unknown effort answer
## Conclusion
**Defect:** In `DashboardBuilderPage.tsx`, the "New" button (`startNew`, line 138–146) and the "My Dashboards" card click / Apply Template action can silently discard unsaved widget edits with no confirmation, and `saveDashboard` is fire-and-forget against a length-changing error window. But the strongest **single user-visible trap** in the supplied evidence is narrower and reproducible:
**The "+ Add Widget" button does not create a widget in the grid the user is looking at — it flips the view to the catalog and can push the user's existing unsaved layout behind the empty-state, then the persisted save path can fail silently.**
Let me pin the exact condition rather than overstate.
## Primary finding (exact, reproducible)
**Condition:** User is editing a saved dashboard loaded from the URL (`urlConfig` effect, lines 51–67). They have unsaved edits. They click **"+ Add Widget"** (`addWidget`, lines 86–102).
```js
setWidgets((prev) => [...prev, {...}]) // line 89-98
setShowTemplates(false)
setShowSaved(false)
setShowCatalog(true) // line 101
```
The new widget IS appended, so work isn't lost there. **But** `addWidget` has an empty dependency array (`[]`, line 102) — it is stable, which is correct. The real hazard is the interaction with the URL-load effect:
- `useEffect` at lines 51–67 runs whenever `urlConfig` identity changes (React Query can refetch and return a **new object reference** for the same id). On refetch, it calls `setWidgets(result.widgets)`, **overwriting any unsaved edits the user has made since load**. Nothing guards against `urlConfig` re-arriving while `widgets` has local modifications. There is no dirty-tracking ref, no `configId` equality short-circuit, and no `configName` divergence check.
**Trigger:** Load a dashboard via URL. Edit/rename/add widgets (dirty state). A background refetch of `useDashboardConfig(parsedUrlId)` resolves with a fresh object → the effect re-runs → `setWidgets(result.widgets)` resets the canvas, `setConfigName` resets the name field, `setIsDefault` resets the checkbox. Unsaved work is silently discarded, and the URL effect also forces `setShowTemplates(false)` / `setShowSaved(false)`, collapsing the panels.
**Why it misleads:** The user sees the name input revert and widgets vanish with no alert; prior edits are simply gone. The page offers no "unsaved changes" indicator anywhere in the supplied code (contrast with `saveBlocked` at line 48, which only guards invalid layouts, not dirty state).
**Also relevant, same effect family:** `saveDashboard` (lines 148–167) sets `'Saved!'` optimistically after `mutateAsync` resolves, then clears the message after 2s. On catch it shows `'Failed to save'` — acceptable. However `saving` (line 46) is `createDashboard.isPending || updateDashboard.isPending`, and the Save button is `disabled={saving || saveBlocked}` (line 278). During the message timeout the button re-enables even though the toast implies success; minor.
## Minimal UX correction
Track dirtiness and refuse to silently clobber:
1. **Guard the URL-load effect** so it only applies a fetched config when the user has no unsaved local changes, or when the incoming config id differs from the current one. Smallest change: add a `dirtyRef`/`loadedRef` and short-circuit the `setWidgets` branch when `result.ok` and the user has edited since last load — e.g. only re-apply when `configId !== urlConfig.id` or when `!isDirty`. Alternatively, key the load effect solely on the config **id** (compare `urlConfig.id` to a ref) so identity churn from React Query refetches does not reset the canvas.
2. **Make destructive transitions explicit**: `startNew` (line 138), `applyTemplate` (line 114), and `loadSavedConfig` (line 122) all replace `widgets` unconditionally with no dirty check. A single confirm when `widgets` differ from the last loaded/saved snapshot is enough. (`startNew` is currently only guarded when reached via the corrupt-layout banner's own `window.confirm`, line 401 — the toolbar "New" button at line 252 calls it unguarded.)
## Focused regression check
A unit/component test (React Testing Library) over `DashboardBuilderPage`:
1. Render with `useDashboardConfig` mocked to return a config; assert widgets render and the name field is populated.
2. Fire an edit (call the exposed widget rename/config `onSave`, or `onLayoutChange`/`addWidget`), producing local divergence.
3. Re-render with a **new object reference for the same config id** (simulating a React Query refetch).
4. **Expected after fix:** local `widgets` and `configName` are preserved; the fetched snapshot does not overwrite unsaved state.
**Current behavior:** `setWidgets(result.widgets)` overwrites — test fails on the pre-fix code, which is exactly the trap.
A second assertion: clicking "New" while widgets are non-empty should require confirmation (spy on `window.confirm`) and, if declined, leave `widgets` intact.
## Uncertainty / dependencies outside the packet
- The reset is only provable if `useDashboardConfig` (in `../api/dashboards`, **not supplied**) returns a new object reference on refetch or refetch-on-focus is enabled. If that hook memoizes by structural equality or has no refetch triggers, the effect will not re-run and the clobber cannot fire. I cannot confirm the hook's `refetchOnWindowFocus`/`staleTime` from the packet — this is the load-bearing dependency.
- `parseLayout`, `BuilderCanvas`, and `WidgetConfigEditor` are outside the packet; I cannot verify whether `onLayoutChange` (line 456) also creates a dirty indicator or whether the editor's save path differs.
- `useServerGrid.ts` analysis: I found **no independent user-visible work-discarding trap** in the supplied hook that isn't already handled. Notable near-misses I evaluated and discarded as *not* defects:
- `tabulatorFiltersToGridFilters` (lines 327–336) **drops** custom-function header filters on non-numeric columns, logging only to `console.warn`. This *can* mislead (grid shows a filter in the header but the server query is wider) — the hook's own `rawHeaderFilterCount` docstring (lines 68–76) acknowledges it. It's real, but the conditional requires a developer-authored custom `headerFilterFunc`, and the hook documents the limitation; I rank it below the dashboard clobber.
- The abort path returns a **never-settling promise** (line 629) — intentional and documented (lines 619–624); not a leak in practice because the abort is always paired with a superseding `replaceData()` or unmount.
**Confidence:** Medium on the exact clobber (depends on the unsupplied `useDashboardConfig` refetch behavior); High that the page has **no dirty-state guard** on `startNew`/`applyTemplate`/`loadSavedConfig`/the URL effect, so *some* unsaved-edit loss is reachable by the user through at least the unguarded "New" button (line 252) — that path needs no external dependency to confirm.
MATERIAL_EVIDENCE_CONFLICT: The `useServerGrid` docstrings assert header-filter drops are "honest" and surfaced via `rawHeaderFilterCount` (lines 68–76), while lines 327–343 still silently drop the filter and default unknown types to `contains`; the page-level dashboard code asserts no dirty-tracking exists (lines 51–67, 138) yet the corrupt-layout banner guards only itself (lines 399–404).Primary judge's stated reason
A is preferable because its main diagnosis, correction, and regression check consistently address the supported silent numeric-filter drop. B's valid builder-specific analysis is substantial counterevidence, but its contradictory opening diagnosis can direct implementation toward behavior the snapshot does not establish. This supports a clear comparative advantage in diagnostic reliability, rather than a preference based on presentation or length.
This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.
Battle wave: c50cc6a9-2031-4391-a213-ab4daedec0f2. Pair: brp1_62a440849bd7b0656d7f08b10b14b4a04598efba9f909f6c1631d448100e2b2b. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.