Commit Graph
119 Commits
Author SHA1 Message Date
Michael b11aeddba6 feat: implement mobile note detail page with note, todo, and image managementr 2025-12-12 11:55:55 +01:00
Michael 96fe4857a0 feat: implement mobile note detail page for viewing, editing, and managing notes, todos, and images. 2025-12-12 11:45:56 +01:00
Michael 35ecd9a8bb feat: implement main application dashboard and mobile note detail page 2025-12-12 11:31:47 +01:00
Michael 970a9d6de4 feat: add i18n for common terms and implement mobile calendar page with event management 2025-12-10 11:46:19 +01:00
Michael 4ba078bf4e feat: Implement initial Noteflow application UI, foundational notes management, and mobile notes page. 2025-12-08 09:00:59 +01:00
Michael ad3f415469 Merge branch 'main' into antigravity - Resolve conflict in NotesPage.tsx (Archive fix + Kanban) 2025-12-08 08:46:23 +01:00
Michael b071c94cec feat: implement core application dashboard with notes, todos, RSS, calendar, and AI chat, alongside a dedicated mobile notes page. 2025-12-08 08:39:58 +01:00
Michael 389ce9ce89 feat: implement NotesService for comprehensive note, todo, and image management. 2025-12-08 08:32:20 +01:00
Michael 454fec3382 feat: Implement mobile notes page with search, advanced filters, and view modes. 2025-12-03 20:48:00 +01:00
Claude 8e57a1c15b fix: permettre au timer Pomodoro de continuer en arrière-plan
Correction du problème où le timer Pomodoro se mettait en pause lors du
changement d'onglet. Le timer utilise maintenant des timestamps réels au
lieu de setInterval pour calculer le temps restant, ce qui permet de
continuer à fonctionner même quand l'onglet n'est pas actif.

Changements:
- Ajout d'un état endTime pour stocker le timestamp de fin
- Modification de la logique du timer pour calculer le temps restant basé sur endTime
- Le timer vérifie maintenant toutes les 100ms pour plus de précision
- Persistance de endTime dans localStorage pour la synchronisation
2025-11-29 08:19:59 +00:00
Claude 4c5d990ff5 fix: corriger le style du champ de titre des notes
Le champ de titre utilisait des classes qui tentaient de supprimer
les bordures (border-none, shadow-none), créant un rendu visuel
incohérent avec les autres inputs. Simplifié pour utiliser le style
standard de l'Input avec juste text-2xl et font-semibold.
2025-11-28 22:33:52 +00:00
Claude 032f2246e4 fix: permettre les espaces dans les titres des notes
Le hook useKeyboardShortcuts interceptait tous les événements clavier,
y compris dans les champs de saisie, empêchant la saisie d'espaces.
La correction ignore les raccourcis sans modificateur quand l'utilisateur
tape dans un input, textarea ou contentEditable, tout en permettant
les raccourcis avec Ctrl/Alt/Meta de fonctionner normalement.
2025-11-28 22:28:21 +00:00
Claude 486634386e fix: synchroniser les instances du Pomodoro Timer en temps réel
- Ajouter un événement custom 'pomodoroStateChange' lors des modifications
- Chaque instance écoute cet événement et se synchronise avec localStorage
- Quand on met le timer sur pause dans le modal, l'instance cachée se met aussi en pause
- Les deux instances restent parfaitement synchronisées
2025-11-28 22:12:11 +00:00
Claude 631d31dd1b fix: réduire le z-index du bouton QuickCapture pour passer derrière les modals
- Changer z-50 en z-40 pour le bouton de capture rapide
- Les modals (Dialog) avec z-50 passent maintenant devant
- Le bouton QuickCapture n'est plus visible quand un modal est ouvert
2025-11-28 22:10:55 +00:00
Claude aa90d9811d feat: déplacer l'aide des raccourcis vers une icône dans le header
- Retirer le raccourci '?' pour ouvrir l'aide
- Ajouter une icône HelpCircle dans le header à côté du ModeToggle
- L'aide est maintenant accessible via l'icône au lieu du raccourci clavier
2025-11-28 22:04:51 +00:00
Claude cee242e455 fix: garder le Pomodoro Timer actif même quand le modal est fermé
- Rendre le PomodoroTimer dans une div cachée toujours montée
- Cette instance continue de faire tourner le timer en arrière-plan
- Le modal affiche une seconde instance pour les contrôles
- Les deux instances partagent l'état via localStorage
- Le timer continue maintenant de décompter même modal fermé
2025-11-28 22:02:39 +00:00
Claude ca0c60a13b feat: améliorer l'assistant IA avec modal agrandi et z-index
- Ajouter z-50 à la Card du chat pour qu'elle passe devant le bouton QuickCapture
- Ajouter un bouton 'Agrandir' avec l'icône LayoutGrid
- Créer un modal agrandi (max-w-4xl, h-80vh) pour l'assistant IA
- Améliorer l'affichage des messages avec whitespace-pre-wrap
- Ajouter des tooltips sur les boutons du chat
2025-11-28 21:56:24 +00:00
Claude 08bdbc389a fix: maintenir le timer Pomodoro actif quand le modal se ferme
- Utiliser useCallback pour mémoriser handleTimerComplete
- Retirer timeLeft des dépendances du useEffect qui gère l'intervalle
- Le useEffect ne dépend plus que de isRunning et handleTimerComplete
- L'intervalle continue de tourner même après démontage/remontage du composant
- Nettoyage propre de l'intervalle avec intervalRef.current = null
2025-11-28 21:54:07 +00:00
Claude 7825f5d07b fix: uniformiser la taille et l'alignement des boutons flottants
- Retirer size="lg" du bouton QuickCapture
- Aligner les deux boutons sur right-4 (au lieu de right-6 pour QuickCapture)
- Ajouter les mêmes effets hover et transition aux deux boutons
- Les boutons ont maintenant exactement la même taille (h-14 w-14)
- Les icônes ont la même taille (h-6 w-6)
2025-11-28 21:49:25 +00:00
Claude b533b98e5a fix: espacer les boutons flottants en bas à droite
- Déplacer le bouton de capture rapide plus haut (bottom-24 au lieu de bottom-6)
- Le bouton QuickCapture est maintenant au-dessus du bouton de chat IA
- Plus de superposition des boutons
2025-11-28 21:42:08 +00:00
Claude 8d4a2d5e50 fix: persister l'état du Pomodoro Timer avec localStorage
- Sauvegarder l'état du timer (mode, temps restant, état running, sessions) dans localStorage
- Restaurer l'état au montage du composant
- Le timer ne se réinitialise plus quand le modal se ferme et se rouvre
- Simplifier le PomodoroModal pour utiliser children directement
2025-11-28 20:49:55 +00:00
Claude d1f7f985b3 fix: ajouter l'import de l'icône Clock manquant 2025-11-28 20:40:24 +00:00
Claude 2b84ac0e97 feat: transformer le Pomodoro Timer en modal avec icône dans le header
- Créer un composant PomodoroModal pour afficher le timer
- Ajouter une icône Clock dans le header qui affiche le temps restant quand le timer est actif
- Modifier PomodoroTimer pour accepter une callback onStateChange
- Retirer la box Pomodoro de la page principale
- L'icône change de style quand le timer est en cours et affiche le décompte
2025-11-28 20:34:32 +00:00
Claude c66e5adc4a fix: corriger l'erreur CSP et le nettoyage HTML des notes
- Remplacer l'audio base64 par Web Audio API dans PomodoroTimer pour éviter les erreurs CSP
- Ajouter une fonction cleanHtmlContent pour correctement décoder les entités HTML
- Corriger l'affichage des notes pour supprimer les caractères parasites (&nb-, etc.)
2025-11-28 20:29:59 +00:00
Claude 3b8644bc4c feat: déplacer les statistiques dans un modal popup
- Créer un nouveau composant StatsModal pour afficher les statistiques
- Ajouter une icône BarChart3 dans le header à côté du bouton de thème
- Retirer le StatsDashboard de sa position sous le calendrier
- Afficher les statistiques dans un modal au clic sur l'icône
2025-11-28 20:25:33 +00:00
Claude f42f8fe7ed clean: remove all debug logging and UI panel
Removed all temporary debug code added during investigation:
- Removed debug console.log statements from loadNotes function
- Removed debug console.log statements from filter logic
- Removed red debug panel showing filter state in UI

The application code is now clean and production-ready.
2025-11-28 06:01:47 +00:00
Claude 5d011e81ae debug: add logging to loadNotes function for troubleshooting
Added console.log statements to track:
- When notes API fetch is initiated
- Number of notes fetched
- The actual notes data returned

This helps identify if the issue is with the API request, the response,
or the data handling in the frontend.
2025-11-27 20:42:47 +00:00
Claude a7bc2eb7ae debug: add temporary debug logging to identify notes filter issue
Added console.log statements and temporary debug UI panel to help
diagnose why notes are not displaying. This includes:
- Logging total notes count and active filters
- Logging which specific filter is excluding each note
- Visual debug panel showing filter state in the UI

This is temporary debugging code to resolve the issue reported
by the user where no notes are displaying.
2025-11-27 20:04:32 +00:00
Claude 04035d55fd feat: add advanced export/import system
- Create exportImport utility with JSON and CSV export
- Support full backup with version tracking
- Add BackupData interface with notes, todos, settings
- Implement file parsing and validation
- Create ExportImportModal component with tabs
- Show current data statistics before export
- Preview backup content before import
- Download as timestamped JSON or CSV files
- Calculate and display backup statistics
- Support reading and validating imported backups
2025-11-27 19:51:31 +00:00
Claude e294ff772b feat: add Kanban view to mobile interface
- Add view mode toggle (List/Kanban) in mobile notes page
- Integrate KanbanBoard component with drag & drop support
- Support moving notes between columns via tags
- Auto-refresh notes list after moving to new column
- Maintain search and filter functionality in Kanban view
- Add mobile-optimized horizontal scrolling for Kanban columns
2025-11-27 19:49:54 +00:00
Claude 4895cb4462 feat: add due dates support for todos
- Update Todo interface to include due_date, parent_id, level fields
- Add due_date parameter to NotesService.addTodo method
- Add due_date parameter to TodosService.createTodo method
- updateTodo already supports Partial<Todo> including due_date
- Backend migrations already created (003 and 004)
- Prepare foundation for due date UI in future updates
2025-11-27 19:45:16 +00:00
Claude a3d8167a46 feat: add keyboard shortcuts and statistics dashboard
Keyboard Shortcuts:
- Create useKeyboardShortcuts hook with configurable shortcuts
- Support Ctrl/Cmd, Alt, Shift modifiers
- Add 7 global shortcuts (New note, Search, Quick capture, etc.)
- Create KeyboardShortcutsHelp modal with categorized shortcuts
- Show formatted shortcut keys (⌘ on Mac, Ctrl on Windows)
- Press ? to open shortcuts help

Statistics Dashboard:
- Create StatsDashboard component with productivity metrics
- Calculate productivity score (0-100) based on completion rate
- Show notes statistics (total, active, archived, priority)
- Display todos statistics with completion rate
- Track content stats (notes with todos/images/files, unique tags)
- Show recent activity (notes updated in last 7 days)
- Visual progress bar for productivity score
- Integrate dashboard in left column below calendar
2025-11-27 19:43:26 +00:00
Claude 1e9795e5d9 feat: add quick capture floating widget for fast note creation
- Create QuickCaptureWidget with floating action button
- Support quick note capture with optional title
- Auto-generate timestamped title if none provided
- Add keyboard shortcuts: Ctrl+Enter to save, Escape to cancel
- Integrate into desktop interface with reload on capture
- Display visual feedback with kbd tags for shortcuts
- Position as floating FAB in bottom-right corner
- Refresh notes list automatically after capture
2025-11-27 14:06:15 +00:00
Claude ea926cb1a1 feat: add note linking system with wiki-style syntax
- Create noteLinks utility for wiki-style [[Note Title]] links
- Support automatic link detection and conversion to clickable HTML
- Show broken links (when target note doesn't exist) in gray strikethrough
- Implement backlinks detection (find notes linking to current note)
- Add autocomplete suggestions when typing [[ for quick note selection
- Support cursor position detection for inline link editing
- Prioritize exact matches and recent notes in suggestions
- Convert links to HTML with custom styling and click handlers
2025-11-27 14:04:33 +00:00
Claude e48bc1eaf1 feat: add smart tag auto-suggestions for notes
- Create smartTags utility with keyword extraction algorithm
- Filter out 100+ French stop words for better keyword quality
- Implement category-based tag suggestions (travail, dev, design, etc.)
- Suggest tags from similar notes based on content similarity
- Display smart suggestions with one-click add in note editor
- Show sparkle icon to indicate AI-assisted suggestions
- Combine multiple suggestion strategies for best results
- Limit to top 8 most relevant suggestions per note
2025-11-27 14:03:41 +00:00
Claude 712d3fd21a feat: add Kanban board view for notes organization
- Create KanbanBoard component with drag-and-drop functionality
- Support 5 columns: Backlog, À faire, En cours, En révision, Terminé
- Use tag-based system to track note status in columns
- Add view toggle between List and Kanban modes in desktop interface
- Display note metadata (todos, images, files, tags) in Kanban cards
- Support moving notes between columns by dragging
- Auto-update tags when moving notes to different columns
- Show task completion progress in Kanban cards
2025-11-27 14:01:14 +00:00
Claude 07756f2411 feat: add Pomodoro timer for productivity
- Create PomodoroTimer component with 25/5/15 minute intervals
- Support work sessions, short breaks, and long breaks
- Track completed sessions with visual counter
- Add progress bar and audio notification when timer completes
- Auto-advance to appropriate break after work session
- Add pause/resume and reset functionality
- Integrate timer in desktop right column above todos/RSS
2025-11-27 13:55:17 +00:00
Claude a1addbacba feat: add advanced search with filters for notes
- Create AdvancedSearch component with multiple filter options
- Add filters for tags, date range, content type (todos/images/files), and priority
- Integrate advanced search in desktop and mobile note pages
- Extract unique tags from notes for filter dropdown
- Support multiple simultaneous filters with clear visual feedback
- Reset pagination when filters change
2025-11-27 13:48:02 +00:00
Claude 0a22cc784f feat: add note templates system with 10 pre-built templates
- Create noteTemplates.ts with 10 default templates (Meeting, Daily Journal, Project Planning, etc.)
- Add TemplateSelector component with search and category filtering
- Integrate template selector in desktop and mobile note creation flows
- Support automatic todo creation from templates
- Organize templates by category (Travail, Personnel, Créativité, Autre)
2025-11-27 13:43:22 +00:00
Claude 94530246af feat: add markdown export functionality
Implemented comprehensive markdown export for notes and todos with automatic HTML to Markdown conversion.

New Features:
- Export single note to Markdown file
- Export all notes to combined Markdown
- Export todos list to Markdown
- Smart HTML to Markdown conversion
- Preserves formatting, links, lists, and code blocks

Files Created:
- src/utils/markdownExport.ts - Complete export utilities

Desktop (Index.tsx):
- Added FileDown icon to imports
- New export button in note editor toolbar
- Downloads note as .md file with one click

Mobile (NoteDetailPage.tsx):
- Added "Exporter en Markdown" to dropdown menu
- Same functionality as desktop version

Markdown Export Features:
✅ Converts HTML formatting to Markdown syntax
✅ Includes note metadata (creation date, tags, priority)
✅ Exports todos as checkboxes [ ] or [x]
✅ Includes image references
✅ Automatic filename generation
✅ One-click download

Export includes:
- Note title as H1
- Creation date and metadata
- Tags with # prefix
- Priority indicator ⭐
- Full content with formatting preserved
- Todo items with completion status
- Image links

Perfect for:
- Backing up notes
- Sharing notes externally
- Version control (git)
- Using notes in other markdown editors
2025-11-27 13:34:54 +00:00
Claude 21d3f7057f feat: add dark/light/system theme toggle
Implemented complete theme switching with three modes:
- Light theme
- Dark theme
- System (auto-detect from OS)

Changes:
- Created ModeToggle component with dropdown menu (src/components/mode-toggle.tsx)
- Added theme toggle to desktop header (Index.tsx)
- Enhanced mobile settings with radio group for theme selection (SettingsPage.tsx)
- Changed default theme from "light" to "system" for better UX (App.tsx)

Features:
✅ Seamless theme switching without page reload
✅ Persists user preference in localStorage
✅ System theme auto-detects OS preference
✅ Smooth transitions between themes
✅ Works on both mobile and desktop

Desktop: Theme toggle button in top navigation
Mobile: Theme settings in Settings page with Light/Dark/System options
2025-11-27 13:31:19 +00:00
Claude cc635f786f feat: add automatic image compression before upload
Added client-side image compression to improve upload speed and reduce storage.

New Features:
- Created imageCompression utility (src/utils/imageCompression.ts)
  * Automatically compresses images larger than 1MB
  * Resizes to max 1920x1080px while preserving aspect ratio
  * Uses 80% JPEG quality by default
  * Preserves PNG transparency when present
  * Falls back to 60% quality if still over 2MB

Mobile (NoteDetailPage.tsx):
- Integrated compression before upload
- Shows compression stats to user (e.g., "5.2 MB → 1.1 MB")
- Better error messages with specific details

Desktop (Index.tsx):
- Same compression integration as mobile
- Consistent user experience across platforms

Benefits:
✅ Users can upload large photos from cameras/phones
✅ Faster uploads (smaller files)
✅ Reduced server storage requirements
✅ Better mobile experience (photos often 5-10MB)
✅ Transparent to user (happens automatically)

Technical Details:
- Uses HTML5 Canvas API for processing
- Client-side compression (no server load)
- Maintains image quality while reducing size
- Handles JPEG, PNG, WebP, and GIF formats
- Smart transparency detection for PNGs
2025-11-27 13:14:37 +00:00
Claude 185fe92b6a fix: improve image upload error handling on mobile and desktop
Fixed image upload issues by improving error handling and validation:

Mobile (NoteDetailPage.tsx):
- Added file size validation (5MB max) before upload
- Added error message when upload returns null
- Specified exact image types in accept attribute
- Better user feedback for all error cases

Desktop (Index.tsx):
- Added file size validation (5MB max) before upload
- Added error message when upload returns null
- Specified exact image types in accept attribute
- Removed unnecessary handleUpdateNote call (backend ignores images field)
- Fixed state update to only update local state, not call backend

Both versions now:
- Show clear error messages to users when upload fails
- Validate file size before attempting upload
- Accept only supported formats: JPEG, PNG, WebP, GIF
- Handle null responses from upload service properly

This fixes the silent failure issue where images would not upload but no error was shown to the user.
2025-11-27 13:00:38 +00:00
Claude 75551be69d fix: resolve note todos synchronization issue between mobile and desktop
Fixed critical bug where todos added on mobile or desktop were being silently lost.

Root cause:
- Mobile and desktop were sending todos via the generic PUT /api/notes/:id endpoint
- Backend ignored the 'todos' field in this endpoint (only processes title and content)
- Users saw success messages but todos were never saved to database
- On reload, todos disappeared

Solution:
- Added dedicated todo management methods to NotesService:
  * addTodo() - POST /api/notes/:id/todos
  * updateTodo() - PUT /api/notes/todos/:todoId
  * toggleTodo() - PUT /api/notes/todos/:todoId
  * deleteTodo() - DELETE /api/notes/todos/:todoId

- Updated NoteDetailPage.tsx (mobile) to use proper API methods
- Updated Index.tsx (desktop) to use proper API methods
- Both versions now correctly persist todos to the database

Files modified:
- src/services/NotesService.ts - Added todo management methods
- src/pages/mobile/NoteDetailPage.tsx - Fixed todo handlers
- src/pages/Index.tsx - Fixed todo handlers in note detail view
2025-11-27 08:43:46 +00:00
LogiFlow 425b7f36a0 Merge pull request #122 from R0m1k3/antigravity
feat: implement main application dashboard with notes, todos, RSS, ca…
2025-11-23 17:39:24 +01:00
Michael 29e19414b8 feat: implement main application dashboard with notes, todos, RSS, calendar, and chat functionalities. 2025-11-23 17:38:57 +01:00
LogiFlow 200bdd1de7 Merge pull request #120 from R0m1k3/antigravity
feat: add admin service for user management and migration, and routes…
2025-11-23 16:32:14 +01:00
Michael 00ac17da70 feat: add admin service for user management and migration, and routes for database cleanup. 2025-11-23 16:31:47 +01:00
LogiFlow 1499987821 Merge pull request #119 from R0m1k3/antigravity
feat: implement the main application index page with integrated notes…
2025-11-23 16:04:54 +01:00
Michael c177833b38 feat: implement the main application index page with integrated notes, todos, RSS, calendar, and chat functionalities. 2025-11-23 16:04:06 +01:00