feat: add new variants and update agent docs for tokens#3791
feat: add new variants and update agent docs for tokens#3791adithyaakrishna wants to merge 2 commits intosimstudioai:stagingfrom
Conversation
PR SummaryMedium Risk Overview Extends several emcn components with new variants/props and exports: Updates the Written by Cursor Bugbot for commit 3c28b33. This will update automatically on new commits. Configure here. |
|
@adithyaakrishna is attempting to deploy a commit to the Sim Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR extends the EMCN component library with new variants across several components and adds a comprehensive Key changes:
Confidence Score: 5/5Safe to merge — all remaining findings are P2 style suggestions that do not affect runtime behaviour. The only open finding is that bannerVariants is not exported from banner.tsx or the barrel index, which is a minor style inconsistency relative to the rest of the library. It does not break any existing usage. All prior P1 concerns (raw Tailwind colours) were addressed with a TODO comment in the follow-up commit. No logic, data, or security issues were found. apps/sim/components/emcn/components/banner/banner.tsx — bannerVariants export consistency Important Files Changed
Class Diagram%%{init: {'theme': 'neutral'}}%%
classDiagram
class Banner {
+variant: default|destructive|warning|info|success
+text: ReactNode
+actionLabel: ReactNode
+actionVariant: ButtonVariant
+onAction(): void
-bannerVariants: CVA
}
class Skeleton {
+variant: line|circle|rectangle
+className: string
-skeletonVariants: CVA
}
class Input {
+variant: default|error|ghost
+size: sm|md
-inputVariants: CVA
}
class Textarea {
+variant: default|error|ghost
-textareaVariants: CVA
}
class Label {
+size: sm|md|lg
+required: boolean
-labelVariants: CVA
}
class Switch {
+size: sm|md|lg
-switchVariants: CVA
-switchThumbVariants: CVA
}
class Slider {
+size: sm|md|lg
-SLIDER_SIZES: const
}
Reviews (2): Last reviewed commit: "chore: fix review changes" | Re-trigger Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Summary
Type of Change
Testing
/playgroundChecklist
Screenshots/Videos