rename folder

This commit is contained in:
sanjeed5
2025-02-27 00:04:07 +05:30
parent 519c3fa882
commit f7fa52c998
879 changed files with 0 additions and 0 deletions
@@ -0,0 +1,7 @@
---
description: Rules for ensuring accessibility in React components using tailwind.
globs: **/*.{tsx,jsx}
---
- Ensure proper color contrast ratios using Tailwind's text-* and bg-* classes.
- Use semantic HTML elements and ARIA attributes where necessary.
- Implement keyboard navigation support.
@@ -0,0 +1,6 @@
---
description: Guidelines for organizing code structure and utilizing custom hooks.
globs: **/src/**/*.*
---
- Follow a consistent folder structure (e.g., components, hooks, pages, services).
- Use custom hooks to encapsulate and reuse logic.
@@ -0,0 +1,7 @@
---
description: Best practices for interacting with Firebase services, including security and optimization.
globs: **/firebase/**/*.js
---
- Implement proper security rules in Firebase.
- Use Firebase SDK's offline persistence for better performance and offline support.
- Optimize queries to minimize read/write operations.
@@ -0,0 +1,6 @@
---
description: Specific rules for handling forms in React components.
globs: **/components/forms/**/*.tsx
---
- Use libraries like Formik or react-hook-form for efficient form management.
- Implement proper form validation with clear error messages.
@@ -0,0 +1,27 @@
---
description: General UI/UX design best practices for React components using Tailwind CSS.
globs: **/*.{tsx,jsx}
---
- Always design and implement for mobile screens first, then scale up to larger screens.
- Use Tailwind's responsive prefixes (sm:, md:, lg:, xl:) to adjust layouts for different screen sizes.
- Create a design system with consistent colors, typography, spacing, and component styles.
- Utilize Tailwind's configuration file (tailwind.config.js) to define your custom design tokens.
- Use React.lazy() and Suspense for code-splitting and lazy-loading components.
- Implement virtualization for long lists using libraries like react-window.
- Optimize images and use next/image for automatic image optimization in Next.js.
- Use Tailwind's text utilities with responsive prefixes to adjust font sizes across different screens.
- Consider using a fluid typography system for seamless scaling.
- Ensure proper color contrast ratios using Tailwind's text-* and bg-* classes.
- Use semantic HTML elements and ARIA attributes where necessary.
- Implement keyboard navigation support.
- Make interactive elements (buttons, links) at least 44x44 pixels for easy tapping.
- Implement touch gestures for common actions (swipe, pinch-to-zoom) where appropriate.
- Implement proper error boundaries in React.
- Provide clear feedback for user actions (loading states, success/error messages).
- Use subtle animations to enhance UX (e.g., page transitions, micro-interactions).
- Utilize Tailwind's transition utilities or consider libraries like Framer Motion.
- Use libraries like Formik or react-hook-form for efficient form management.
- Implement proper form validation with clear error messages.
- Implement pull-to-refresh for content updates.
- Use smooth scrolling and momentum scrolling.
- Consider using libraries like react-spring for physics-based animations.
@@ -0,0 +1,8 @@
---
description: Focuses on rules and best practices for mobile-first design and responsive typography using tailwind.
globs: **/*.{tsx,jsx}
---
- Always design and implement for mobile screens first, then scale up to larger screens.
- Use Tailwind's responsive prefixes (sm:, md:, lg:, xl:) to adjust layouts for different screen sizes.
- Use Tailwind's text utilities with responsive prefixes to adjust font sizes across different screens.
- Consider using a fluid typography system for seamless scaling.
@@ -0,0 +1,12 @@
---
description: Rules for the AI-powered pill management feature, focusing on tracking user interactions and generating insights.
globs: **/pillManagement/**/*.ts
---
- Design a feature for a pill management app that tracks user interactions with medications (Take/Skip) and generates monthly adherence reports.
- The app should:
- Display pills for "Morning," "Afternoon," and "Night" with buttons for "Take" and "Skip."
- Show a confirmation modal for user actions.
- Log user interactions (pill ID, action, timestamp, notes) in a database.
- Aggregate data to calculate total pills scheduled vs. taken, adherence percentage, and trends (e.g., frequently skipped pills).
- Use basic statistical analysis to generate personalized suggestions based on user feedback (e.g., side effects, missed doses).
- Create a section for users to view their monthly reports, including adherence percentage, trends, and AI-generated suggestions.