feat: Create ProjectTitle component (Closes #4)#6
Conversation
Implements Issue #4 — Create ProjectTitle component. Changes: - Create src/components/Project/ProjectTitle.tsx - Install @mui/material, @emotion/react, @emotion/styled, @mui/icons-material - Component accepts 'title' (string) and optional 'onSave' handler props - Renders project name dynamically from selected map marker - Includes bookmark/save icon with toggle state (saved/unsaved) - Matches Figma layout specs: 1188px max-width, 73px height, 12px gap, 20px/24px padding, 2px #E8E8E8 bottom border, white background - Uses MUI components: Box, Typography, IconButton - Component returns null when no title is provided (conditional rendering) - TypeScript compiles cleanly (tsc --noEmit exit 0)
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 43 minutes and 59 seconds.Comment |
Detailed Implementation NotesArchitecture Decisions1. MUI over vanilla CSS 2. Conditional rendering 3. Local bookmark state 4. Figma-exact styling Files Changed
How to testImport the component: import { ProjectTitle } from '@/components/Project/ProjectTitle' |
Summary
Implements Issue #4 - Create a reusable ProjectTitle React component.
Parent Epic: Issue #3 - Land Project Detail View
What This PR Does
Creates a reusable ProjectTitle component that appears when a user clicks on a map marker. Displays project title with a bookmark/save icon.
Props
Behavior
Figma Specs Implemented
Dependencies Added
MUI Components Used
Verification