Skip to content

Commit 3937bdb

Browse files
christian-byrnelordTyrion
authored andcommitted
[docs] Add PrimeVue deprecated component guidelines (Comfy-Org#4097)
1 parent c9239b0 commit 3937bdb

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.cursorrules

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ const tailwindCssBestPractices = [
3838
"Implement responsive design with Tailwind CSS",
3939
]
4040

41+
// PrimeVue deprecated components - DO NOT USE
42+
const deprecatedPrimeVueComponents = [
43+
"DO NOT use deprecated PrimeVue components. Use these replacements instead:",
44+
"Dropdown → Use Select (import from 'primevue/select')",
45+
"OverlayPanel → Use Popover (import from 'primevue/popover')",
46+
"Calendar → Use DatePicker (import from 'primevue/datepicker')",
47+
"InputSwitch → Use ToggleSwitch (import from 'primevue/toggleswitch')",
48+
"Sidebar → Use Drawer (import from 'primevue/drawer')",
49+
"Chips → Use AutoComplete with multiple enabled and typeahead disabled",
50+
"TabMenu → Use Tabs without panels",
51+
"Steps → Use Stepper without panels",
52+
"InlineMessage → Use Message component"
53+
]
54+
4155
// Additional instructions
4256
const additionalInstructions = `
4357
1. Leverage VueUse functions for performance-enhancing styles
@@ -51,4 +65,5 @@ const additionalInstructions = `
5165
9. Use Vite for fast development and building
5266
10. Use vue-i18n in composition API for any string literals. Place new translation
5367
entries in src/locales/en/main.json.
68+
11. Never use deprecated PrimeVue components listed above
5469
`;

CLAUDE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,13 @@
3636
- Use Vite for fast development and building
3737
- Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json.
3838
- Avoid using `@ts-expect-error` to work around type issues. We needed to employ it to migrate to TypeScript, but it should not be viewed as an accepted practice or standard.
39+
- DO NOT use deprecated PrimeVue components. Use these replacements instead:
40+
* `Dropdown` → Use `Select` (import from 'primevue/select')
41+
* `OverlayPanel` → Use `Popover` (import from 'primevue/popover')
42+
* `Calendar` → Use `DatePicker` (import from 'primevue/datepicker')
43+
* `InputSwitch` → Use `ToggleSwitch` (import from 'primevue/toggleswitch')
44+
* `Sidebar` → Use `Drawer` (import from 'primevue/drawer')
45+
* `Chips` → Use `AutoComplete` with multiple enabled and typeahead disabled
46+
* `TabMenu` → Use `Tabs` without panels
47+
* `Steps` → Use `Stepper` without panels
48+
* `InlineMessage` → Use `Message` component

0 commit comments

Comments
 (0)