Skip to content

Commit 7f1bc0e

Browse files
Update claude notes
1 parent 4474abf commit 7f1bc0e

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

CLAUDE.md

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ BreakTimer is a cross-platform desktop application built with Electron that help
2424

2525
- **Entry Point**: `index.tsx` - React application entry point
2626
- **Components**: React components for UI (Break, Settings, etc.)
27-
- **Styling**: SCSS files for component styling
27+
- **Styling**: CSS with Tailwind CSS for component styling
2828
- **Sounds**: Audio files for break notifications
2929
- **Preload**: `preload.js` - Secure context bridge for IPC
30+
- **Fonts**: Inter font bundled locally in `public/fonts/`
3031

3132
### Types (`app/types/`)
3233

@@ -61,8 +62,8 @@ DEBUG_PROD=true npm run start # Start production with debugging
6162
```bash
6263
npm run lint # Run ESLint
6364
npm run typecheck # Run TypeScript compiler check
64-
npm run prettier-check # Check code formatting
65-
npm run prettier-fix # Fix code formatting
65+
npm run format-check # Check code formatting
66+
npm run format # Fix code formatting
6667
```
6768

6869
### Testing
@@ -86,10 +87,12 @@ npm run package-linux # Package for Linux
8687
- **Electron** - Desktop application framework
8788
- **React 19** - UI framework for renderer process with new JSX transform
8889
- **TypeScript 5.8** - Primary language
89-
- **Blueprint.js v6** - UI component library
90+
- **shadcn/ui** - Modern UI component library with Radix UI primitives
91+
- **Tailwind CSS** - Utility-first CSS framework for styling
92+
- **Inter Font** - Typography font bundled locally (WOFF2 format)
9093
- **Framer Motion** - Animation library for smooth transitions
91-
- **SCSS** - Styling
92-
- **Webpack 5** - Module bundler
94+
- **Vite** - Frontend build tool and dev server for renderer process
95+
- **Webpack 5** - Module bundler for main process
9396
- **electron-store** - Settings persistence
9497
- **Howler.js** - Audio playback
9598
- **moment.js** - Date/time handling
@@ -114,29 +117,44 @@ Settings are managed through electron-store with TypeScript interfaces defined i
114117

115118
## Build System
116119

117-
- Uses Webpack 5 with separate configurations for main/renderer processes
118-
- Babel for transpilation with TypeScript support
120+
- **Main Process**: Uses Webpack 5 for building the Electron main process
121+
- **Renderer Process**: Uses Vite for fast development and optimized production builds
122+
- Babel for transpiliation with TypeScript support
119123
- React Fast Refresh for hot module replacement (replaced react-hot-loader)
120124
- Production builds are optimized and minified
121125
- TypeScript configured with `skipLibCheck: true` to avoid node_modules type checking
122126

123127
## Recent Updates
124128

129+
### UI and Styling
130+
131+
- **Migrated to shadcn/ui** - Modern component library with Radix UI primitives
132+
- **Added Tailwind CSS** - Utility-first CSS framework for consistent styling
133+
- **Bundled Inter font locally** - High-quality typography with WOFF2 format for offline use
134+
- **Enhanced button interactions** - Improved hover/active states for better UX
135+
125136
### Animation System
126137

127138
- **Replaced react-spring with framer-motion** for better performance and modern API
128139
- Break window animations now use `motion.div` components
140+
- **Smooth progress animations** - 50ms updates for notification progress, 100ms for break window
129141
- Fixed infinite loop issues by using functional state updates in useEffect hooks
130142

143+
### Window Management
144+
145+
- **Dynamic notification sizing** - Window width adjusts based on enabled buttons (450px-550px)
146+
- **Circular progress border** - Start button shows countdown progress around its border
147+
- Improved timer cleanup to prevent flickering during hot reloads
148+
131149
### Dependencies
132150

133151
- **React 19** with new JSX transform (`"jsx": "react-jsx"`)
134-
- **Blueprint.js v6** with updated CSS class names (`bp6-*` instead of `bp5-*`)
135152
- **TypeScript 5.8** with improved type checking
136153
- **Framer Motion** for smooth animations
154+
- **Vite** for fast development builds
137155

138156
### Development Experience
139157

140158
- Fixed tsconfig.json to only check app code, not node_modules
141-
- All Blueprint CSS classes updated to v6 naming convention
159+
- Updated script names (`npm run format` instead of `prettier-fix`)
142160
- Improved build configuration for better hot reloading

0 commit comments

Comments
 (0)