punimtag/viewer-frontend/.cursorrules
Tanya de2144be2a feat: Add new scripts and update project structure for database management and user authentication
This commit introduces several new scripts for managing database operations, including user creation, permission grants, and data migrations. It also adds new documentation files to guide users through the setup and configuration processes. Additionally, the project structure is updated to enhance organization and maintainability, ensuring a smoother development experience for contributors. These changes support the ongoing transition to a web-based architecture and improve overall project functionality.
2026-01-06 13:53:24 -05:00

32 lines
1.1 KiB
Plaintext

# Cursor Rules for PunimTag Viewer
## File Management
- NEVER create history files or backup files with timestamps
- NEVER create files in .history/ directory
- NEVER create files with patterns like: *_YYYYMMDDHHMMSS.* or *_timestamp.*
- DO NOT use Local History extension features that create history files
- When editing files, edit them directly - do not create timestamped copies
## Code Style
- Use TypeScript for all new files
- Follow Next.js 14 App Router conventions
- Use shadcn/ui components when available
- Prefer Server Components over Client Components when possible
- Use 'use client' directive only when necessary (interactivity, hooks, browser APIs)
## File Naming
- Use kebab-case for file names: `photo-grid.tsx`, `search-content.tsx`
- Use PascalCase for component names: `PhotoGrid`, `SearchContent`
- Use descriptive, clear names - avoid abbreviations
## Development Practices
- Edit files in place - do not create backup copies
- Use Git for version control, not file history extensions
- Test changes before committing
- Follow the existing code structure and patterns