Commit 192f77b
authored
improvement(emcn): consolidate chip chrome, enforce ChipModalField, paint real chrome in loading fallbacks (#4935)
* improvement(emcn): consolidate chip chrome, enforce ChipModalField, paint real chrome in loading fallbacks
- Move chip chrome single-source to chip/chip-chrome.ts (surface, typography, and new content tokens); delete chip-input/chip-field-chrome.ts
- Rework Chip variants: implicit default replaces ghost, filled reserved for chip fields/triggers and removed from Chip's public API; add ChipChevron
- Migrate every labeled modal body field to ChipModalField across knowledge, settings, tables, files, deploy, sidebar, and ee modals
- Replace skeleton loading.tsx files with ResourceChromeFallback that paints the page's real header, actions, search/filter/sort chips, and column headers
- Rename resource-options-bar to resource-options; simplify resource.tsx and resource-header
- Delete legacy Breadcrumb, Callout, and FormField components
- Add shared connector-config-fields (knowledge) and ee InfoNote; add useTagUsageQuery; make useInlineRename save async with isSaving
- Update AGENTS.md/CLAUDE.md and emcn/styling rules (with .cursor/.agents mirrors)
* fix(rename): make inline rename await mutateAsync so isSaving disables the field; recover edits on failure
- useInlineRename: catch onSave rejection — log, restore the original name,
keep the edit session open, and re-arm doneRef (mirrors useItemRename)
- switch rename call sites (files, tables, table header, knowledge base,
document) from mutate() to mutateAsync() so isSaving spans the request
- table-grid column rename stays fire-and-forget by design (optimistic local
update + undo entry)
* fix(rename): type onSave as void | Promise<unknown> so fire-and-forget call sites pass the build
table-grid's optimistic column rename is a block-bodied callback returning
void, which is only assignable when the declared return type is literally
void — 'undefined | Promise<unknown>' rejected it and failed the Next.js
type check in CI.1 parent 3bf7104 commit 192f77b
113 files changed
Lines changed: 3092 additions & 4078 deletions
File tree
- .agents/skills/emcn-design-review
- .claude
- commands
- rules
- .cursor
- commands
- rules
- apps/sim
- app
- (landing)/components/landing-preview/components/landing-preview-tables
- playground
- workspace/[workspaceId]
- components
- credential-detail/components
- inline-rename-input
- message-actions
- resource
- components
- resource-chrome-fallback
- resource-header
- resource-options-bar
- resource-options
- files
- components/file-viewer
- home/components/suggested-actions
- integrations
- [block]
- components/showcase-with-explore
- knowledge
- [id]
- [documentId]
- components/document-tags-modal
- components
- add-connector-modal
- add-documents-modal
- base-tags-modal
- connector-config-fields
- connectors-section
- edit-connector-modal
- components/create-base-modal
- logs
- components
- dashboard
- logs-toolbar/components/notifications
- scheduled-tasks
- components/create-schedule-modal
- settings/components
- billing
- inbox/components/inbox-settings-tab
- mcp/components
- form-field
- mcp-server-form-modal
- recently-deleted
- secrets/components/secrets-manager
- team-management/components/organization-member-lists
- teammates
- workflow-mcp-servers
- components/create-workflow-mcp-server-modal
- skills/components/skill-import
- tables
- [tableId]
- components
- new-column-dropdown
- row-modal
- table-grid
- components/import-csv-dialog
- upgrade
- w
- [workflowId]/components/panel/components
- deploy/components/deploy-modal/components/general/components
- editor/components/sub-block/components/grouped-checkbox-list
- components/sidebar/components
- help-modal
- workflow-list/components/delete-modal
- workspace-header/components/invite-modal
- components/emcn
- components
- breadcrumb
- callout
- chip-date-picker
- chip-input
- chip-modal
- chip-select
- chip-switch
- chip-textarea
- chip
- form-field
- toast
- ee
- access-control/components
- components
- data-drains/components
- data-retention/components
- sso/components
- hooks
- queries/kb
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | | - | |
43 | | - | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
67 | | - | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments