improvement(tables): migrate inputs to emcn chip components and clean up tables feature#4995
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Form fields move from Behavior / perf fixes: expanded cell editing uses a keyed Reviewed by Cursor Bugbot for commit c180722. Configure here. |
Greptile SummaryThis PR is a UI migration + cleanup pass over the tables feature: all hand-rolled inputs and dropdown pickers are replaced with the canonical
Confidence Score: 5/5Safe to merge — the changes are purely additive UI migrations and cleanup with no schema, API, or data-layer changes. All changed paths are UI components or a dead-hook deletion. The chip component migrations are drop-in replacements (ChipInput forwards its ref, ChipDropdown handles string values correctly), CSS token fixes eliminate a class of invisible-colour bugs, and the ExpandedCellEditor keying fix is a correctness improvement with no regressions. The uploading state derivation and memo-stability fixes are straightforward. No database queries, auth paths, or API contracts are touched. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
subgraph Shared["sidebar-fields (new)"]
RL["RequiredLabel"]
FE["FieldError\n(--text-error token)"]
end
subgraph ColumnConfig["column-config-sidebar"]
CI1["ChipInput\n(column name)"]
end
subgraph WorkflowSidebar["workflow-sidebar"]
CI2["ChipInput\n(column name)"]
CC1["ChipCombobox\n(workflow picker)\n— error via FieldError below"]
end
subgraph EnrichmentConfig["enrichment-config"]
CI3["ChipInput\n(output name)"]
CC2["ChipCombobox\n(input mapping)\n— error via FieldError below"]
end
subgraph FilterRow["table-filter / FilterRuleRow"]
CD1["ChipDropdown\n(column)"]
CD2["ChipDropdown\n(operator)"]
CI4["ChipInput\n(value)"]
end
subgraph TableFind["table-find"]
CI5["ChipInput\nref forwarded → HTMLInputElement"]
end
subgraph ActionBar["table-action-bar"]
AIB["ActionIconButton\n(extracted — 4× de-dup)\nTooltip + Button chrome"]
end
subgraph ExpandedCell["expanded-cell-popover"]
ECE["ExpandedCellEditor\nkey=rowId:colKey\ndraft survives SSE refetch"]
end
Shared -->|imported by| ColumnConfig
Shared -->|imported by| WorkflowSidebar
Shared -->|imported by| EnrichmentConfig
Reviews (2): Last reviewed commit: "improvement(tables): scope create-table ..." | Re-trigger Greptile |
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit cb2907c. Configure here.
… up tables feature
…red FieldError in enrichment config
5611551 to
c180722
Compare
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit c180722. Configure here.
Summary
icon={Search}), table find, and filter value now useChipInput; filter column/operator pickers now useChipDropdowninstead of hand-rolled 28px pillserrorprop instead of className border overrides; fixChipComboboxerrormisuse where the message replaced the options list (workflow picker, enrichment input mapping)--text-dangerCSS var (rendered incurrentColor, not red) and wrongtext-destructivetoken in field errors — both now--text-errorRequiredLabel/FieldErrorinto sharedsidebar-fields, extractActionIconButtonin the table action bar (4x duplicated chrome string), align enrichments-sidebar close buttons with sibling sidebars, swap lucideX/ChevronDownfor the emcn iconsExpandedCellEditorso an in-progress cell draft survives SSE/refetch row updates; memoizefilter/asideprops feeding the memoizedResource.Header/Resource.Options; deriveuploadingfromuploadProgress; drop unstable mutation object fromhandleCreateTabledeps; delete deaduseTableRowshookType of Change
Testing
bun run check:api-validationpasses, tables unit tests pass (28/28), typecheck clean. Tested manuallyChecklist