You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/general-cursor-project-rule.mdc
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,7 @@ Validate all inputs and implement proper authentication
151
151
### Database Migrations
152
152
Use `pnpm run db:migrate:` commands where possible.
153
153
Migration naming: Provide `--name descriptive_name` to avoid interactive prompts. Example `pnpm run db:migrate:dev --name add_user_table`
154
+
Important: avoid using "prisma db push", prefer using "pnpm db:migrate:deploy:dev". This creates short term database migration inconsistencies that are difficult to debug. Prompt the user to explain your migration issue issue before trying db push.
154
155
155
156
### Next.js Build Best Practices
156
157
Use `pnpm` not `npm`: Project uses pnpm for package management and build commands
@@ -170,6 +171,12 @@ Never make direct Prisma calls in components or API routes
Build UI for mobile friendly first. Then allow for different layouts for larger screens if convenient.
263
271
Collapsible Content with Gradient Fade: For long text content that needs to be collapsed, use gradient fade effects to indicate there's more content below
264
272
Show More/Less Controls: Use chevron icons (ChevronDown/ChevronUp) with descriptive text for expand/collapse actions
265
273
Consistent Collapsed Heights: Match collapsed heights to related UI sections (e.g., prediction summary height)
@@ -271,6 +279,17 @@ Responsive: Tailwind spacing classes automatically scale appropriately on mobile
271
279
272
280
### Layout & Spacing Standards
273
281
Refer to /lib/design-system.ts for instructions.
282
+
Prefer flexbox layout instead of absolution positioning to ensure mobile first good UX.
283
+
284
+
### Input Layout Best Practices
285
+
**Flex-based Search Inputs (RECOMMENDED)**: Use flexbox layout for search inputs with icons instead of absolute positioning:
286
+
- Container: `flex items-center` with consistent styling
287
+
- Left icon: `flex items-center justify-center pl-3` for natural positioning
288
+
- Input field: `flex-1` to fill remaining space with transparent background
289
+
- Right icon/button: `flex items-center justify-center pr-3` for natural right alignment
290
+
- Advantages: Predictable layout, no z-index conflicts, better accessibility, responsive by default
291
+
- Avoid: Absolute positioning which can cause CSS inheritance issues and layout conflicts
292
+
- Pattern used by major web applications (Google, GitHub, etc.) for reliability
Copy file name to clipboardExpand all lines: CLAUDE.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# CLAUDE.md
2
-
After completing each set of tasks - add in a positive motivational quote or advice in the style of the The Tao of Pooh and/or The Big Lebowski.
2
+
After completing each set of tasks - add in a positive motivational Tao'ist, Socratic, or Cynical, or Stoic.
3
3
4
4
5
5
## Project Overview
@@ -146,6 +146,7 @@ Validate all inputs and implement proper authentication
146
146
### Database Migrations
147
147
Use `pnpmrundb:migrate:` commands where possible.
148
148
Migration naming: Provide `--namedescriptive_name` to avoid interactive prompts. Example `pnpmrundb:migrate:dev --nameadd_user_table`
149
+
Important: avoid using "prisma db push", prefer using "pnpm db:migrate:deploy:dev". This creates short term database migration inconsistencies that are difficult to debug. Prompt the user to explain your migration issue issue before trying db push.
149
150
150
151
### Next.js Build Best Practices
151
152
Use `pnpm` not `npm`: Project uses pnpm for package management and build commands
@@ -165,6 +166,12 @@ Never make direct Prisma calls in components or API routes
Build UI for mobile friendly first. Then allow for different layouts for larger screens if convenient.
258
266
Collapsible Content with Gradient Fade: For long text content that needs to be collapsed, use gradient fade effects to indicate there's more content below
259
267
Show More/Less Controls: Use chevron icons (ChevronDown/ChevronUp) with descriptive text for expand/collapse actions
260
268
Consistent Collapsed Heights: Match collapsed heights to related UI sections (e.g., prediction summary height)
@@ -266,6 +274,7 @@ Responsive: Tailwind spacing classes automatically scale appropriately on mobile
266
274
267
275
### Layout & Spacing Standards
268
276
Refer to /lib/design-system.ts for instructions.
277
+
Prefer flexbox layout instead of absolution positioning to ensure mobile first good UX.
0 commit comments