changelog.mdc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ---
  2. description: Cursor Rules for Tabler Changesets
  3. globs:
  4. alwaysApply: true
  5. ---
  6. ### File Structure
  7. - Each change must be in a separate changeset file in `.changeset/` directory
  8. - Use descriptive kebab-case filenames (e.g., `progress-sizes.md`, `button-ghost.md`)
  9. - Follow the standard changeset format with frontmatter and description
  10. ### Change Description Format
  11. - **One sentence per changeset** - keep descriptions concise and focused
  12. - Use **backticks for code elements**: classes (`.btn-ghost`), properties (`stroke-width`), values (`1.5`), icons (`arrow-up`)
  13. - Start with action verbs: "Added", "Updated", "Fixed", "Removed"
  14. - Be specific about what was changed
  15. ### Version Bump Guidelines
  16. - **Major**: Breaking changes, complete rewrites
  17. - **Minor**: New features, new components, new pages, significant enhancements
  18. - **Patch**: Bug fixes, small improvements, style updates, accessibility fixes
  19. ### Package Selection
  20. - `"@tabler/core"`: Changes to SCSS, core functionality, CSS classes
  21. - `"@tabler/preview"`: New pages, demo updates, preview-specific changes
  22. - `"@tabler/docs"`: Documentation updates
  23. - Use multiple packages when change affects multiple areas
  24. ### Examples
  25. #### New Feature (Minor)
  26. ```md
  27. ---
  28. "@tabler/core": minor
  29. "@tabler/preview": minor
  30. ---
  31. Added Progress Steps component for step-by-step navigation indicators.
  32. ```
  33. #### Bug Fix (Patch)
  34. ```md
  35. ---
  36. "@tabler/core": patch
  37. ---
  38. Updated `stroke-width` for `.icon-sm` from `1` to `1.5` for better visibility.
  39. ```
  40. #### New Page (Minor)
  41. ```md
  42. ---
  43. "@tabler/preview": minor
  44. ---
  45. Added new onboarding page with progress indicator and navigation layout.
  46. ```
  47. #### Style Enhancement (Patch)
  48. ```md
  49. ---
  50. "@tabler/core": patch
  51. ---
  52. Added smooth transitions for progress bar width and background color changes.
  53. ```
  54. ### Code Formatting Rules
  55. - Class names: `.btn-ghost`, `.progress-lg`, `.icon-sm`
  56. - CSS properties: `stroke-width`, `background-color`, `width`
  57. - Values: `1.5`, `transparent`, `100%`
  58. - Icon names: `arrow-up`, `arrow-down`, `trending-up`
  59. - HTML attributes: `aria-label`, `role`, `data-*`
  60. - JavaScript functions: `addEventListener()`, `querySelector()`
  61. ### Common Patterns
  62. - **Component additions**: "Added [ComponentName] component for [purpose]"
  63. - **Size variants**: "Added [size] size variant for [component] (`.class-size`)"
  64. - **Style fixes**: "Fixed [issue] in [component/element]"
  65. - **Icon updates**: "Updated [component] to use `new-icon` instead of `old-icon`"
  66. - **Accessibility**: "Improved accessibility by [specific change]"
  67. ### Commit Message Format
  68. Use English for commit messages following conventional commit format when possible:
  69. - `feat: add progress steps component`
  70. - `fix: update icon stroke width for better visibility`
  71. - `style: add smooth transitions to progress bars`