Skip to content

Commit 2d63e76

Browse files
waleedlatif1claude
andcommitted
style(emcn): normalize confirm pendingLabel ellipsis to '...'
Two dialogs preserved a typographic '…' from their pre-migration copy; the codebase uses three-dot '...' everywhere else. Align for consistency. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 73e974c commit 2d63e76

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/delete-chunk-modal/delete-chunk-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function DeleteChunkModal({
4040
label: 'Delete',
4141
onClick: handleDeleteChunk,
4242
pending: isDeleting,
43-
pendingLabel: 'Deleting',
43+
pendingLabel: 'Deleting...',
4444
}}
4545
/>
4646
)

apps/sim/components/emcn/components/chip-modal/chip-modal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ function ChipModalFileControl({
740740
* A single footer action button. Rendered internally as a {@link Chip} so every
741741
* modal footer stays visually identical — callers describe intent (label,
742742
* handler, optional variant), never JSX or chrome. Encode pending state in the
743-
* `label` and `disabled` (e.g. `saving ? 'Saving' : 'Save'`).
743+
* `label` and `disabled` (e.g. `saving ? 'Saving...' : 'Save'`).
744744
*/
745745
export interface ChipModalFooterAction {
746746
/** Button label. */
@@ -883,7 +883,7 @@ export interface ChipConfirmAction {
883883
* of `label`.
884884
*/
885885
pending?: boolean
886-
/** Label shown while `pending` (e.g. `'Deleting'`). Falls back to `label`. */
886+
/** Label shown while `pending` (e.g. `'Deleting...'`). Falls back to `label`. */
887887
pendingLabel?: string
888888
/** Additional disable condition independent of `pending` (e.g. an unmet "type to confirm"). */
889889
disabled?: boolean
@@ -950,7 +950,7 @@ export interface ChipConfirmModalProps {
950950
* onOpenChange={(next) => { if (!next) setTarget(null); setOpen(next) }}
951951
* title='Delete API key'
952952
* description={<>Deleting <strong>{target?.name}</strong> revokes access immediately.</>}
953-
* confirm={{ label: 'Delete', onClick: handleDelete, pending: isDeleting, pendingLabel: 'Deleting' }}
953+
* confirm={{ label: 'Delete', onClick: handleDelete, pending: isDeleting, pendingLabel: 'Deleting...' }}
954954
* />
955955
* ```
956956
*/

0 commit comments

Comments
 (0)