Commit Graph

214 Commits

Author SHA1 Message Date
Julien Froidefond
aeb4e17939 feat: refactor user preferences management
- Marked all user preferences actions as complete in TODO.md.
- Updated `user-preferences-client.ts` to remove outdated mutation methods, now handled by server actions.
- Deleted unused API routes for column visibility, kanban filters, and view preferences.
- Refactored `UserPreferencesContext.tsx` to utilize server actions for updates, improving performance with `useTransition`.
2025-09-18 13:10:04 +02:00
Julien Froidefond
cece09d150 feat: enhance Header component with active link styling
- Added `usePathname` hook to determine the current route.
- Implemented `isActiveLink` and `getLinkClasses` functions for dynamic link styling based on active state.
- Adjusted navigation links in the Header to utilize the new styling functions for improved user experience.
- Updated KanbanPageClient subtitle for consistency.
2025-09-18 12:57:10 +02:00
Julien Froidefond
3c7f5ca2fa feat: update package dependencies and integrate Recharts
- Changed project name from "towercontrol-temp" to "towercontrol" in package-lock.json and package.json.
- Added Recharts library for data visualization in the dashboard.
- Updated TODO.md to reflect completion of analytics and metrics integration tasks.
- Enhanced RecentTasks component to utilize TaskPriority type for better type safety.
- Minor layout adjustments in RecentTasks for improved UI.
2025-09-18 12:48:06 +02:00
Julien Froidefond
d38053b4dc feat: revamp HomePageClient and dashboard layout
- Updated HomePageClient to replace Kanban board with a modern dashboard layout.
- Integrated DashboardStats, QuickActions, and RecentTasks components for enhanced user experience.
- Marked several tasks as complete in TODO.md, including the creation of a new dashboard and quick action features.
- Added navigation link for the new dashboard in the Header component.
2025-09-18 11:52:10 +02:00
Julien Froidefond
e7a4091f94 chore: clean up README by removing optional interface variables
- Removed optional interface variables for theme and items per page from the README to streamline configuration instructions.
2025-09-18 11:39:47 +02:00
Julien Froidefond
ec634add04 feat: update README for TowerControl v2.0
- Revamped README to reflect the new version, including a comprehensive overview of features, installation instructions, and architecture details.
- Added sections for Kanban functionality, advanced tagging system, daily notes, and Jira integration.
- Included Docker installation instructions and environment variable configuration for enhanced usability.
- Emphasized the project's modern tech stack and architectural principles.
2025-09-18 11:38:34 +02:00
Julien Froidefond
8c88322823 fix: lint and types 2025-09-18 11:30:19 +02:00
Julien Froidefond
49874b38c0 feat: add automatic database backup system to TODO
- Introduced tasks for implementing an automatic database backup system, including configurable intervals, manual backup options, and backup rotation.
- Added details for backup format and an interface for managing existing backups.
2025-09-18 11:25:39 +02:00
Julien Froidefond
7f0d6ce8f9 feat: integrate createTask action in useTasks hook
- Replaced direct task creation call with createTask action for better error handling and response management.
- Enhanced task creation logic to refresh task list upon successful creation and throw errors for failure cases.
2025-09-18 11:22:33 +02:00
Julien Froidefond
fefcc91a03 feat: remove Filters 2025-09-18 09:56:46 +02:00
Julien Froidefond
7394b16999 feat: add font size toggle functionality
- Implemented a FontSizeToggle component in HomePageClient for adjusting task font sizes in kanban views.
- Updated TaskCard to apply dynamic font size classes based on user preferences.
- Enhanced user preferences to include font size settings, defaulting to 'medium'.
- Modified TODO.md to mark the font size toggle task as complete.
2025-09-18 09:51:40 +02:00
Julien Froidefond
4a4eb9c8ad refacto: passing by server actions on taskCard 2025-09-18 09:37:46 +02:00
Julien Froidefond
228e1563c6 feat: add decision guide for Server Actions vs API Routes
- Introduced a new guide in `server-actions.mdc` to clarify when to use Server Actions versus API Routes in Next.js.
- Included examples, implementation patterns, migration strategies, and anti-patterns to avoid for better developer understanding.
2025-09-18 08:55:16 +02:00
Julien Froidefond
1bfcce3736 feat: expand Jira analytics and monitoring features
- Updated TODO.md to include detailed tasks for Jira project configuration, analytics service, and dashboard page.
- Added advanced metrics and monitoring functionalities, including velocity calculations, cycle time analysis, and automated anomaly detection.
- Introduced new API routes and components for enhanced data handling and visualization.
2025-09-18 08:51:27 +02:00
Julien Froidefond
8d2652f4d8 feat: migrate API routes to server actions
- Replaced API routes with server actions for task management, daily checkboxes, user preferences, and tags to streamline operations.
- Implemented immediate cleanup of obsolete routes and code, enhancing performance and reducing complexity.
- Established a hybrid architecture to maintain complex endpoints while optimizing simple actions.
2025-09-18 08:48:28 +02:00
Julien Froidefond
0223611b3f feat: jira config in database 2025-09-17 18:04:13 +02:00
Julien Froidefond
83e48d5972 fix: lint 2025-09-17 17:30:38 +02:00
Julien Froidefond
24421e00e7 fix: integrate JiraQuickFilter into HomePageClient
- Added JiraQuickFilter component to HomePageClient for enhanced task filtering.
- Updated useTasksContext to include kanbanFilters and setKanbanFilters for managing filter state.
2025-09-17 17:16:32 +02:00
Julien Froidefond
d427b88756 fix: enhance priority handling in sort-config and JiraService
- Added a fallback mechanism in getPriorityValue to default to 'medium' when an unknown priority is encountered, improving robustness.
- Updated priority mapping in JiraService to change 'Highest' to 'urgent', aligning with new priority definitions.
2025-09-17 16:57:36 +02:00
Julien Froidefond
ff5f887c6a fix: improve JiraService pagination handling
- Updated JiraService to use `nextPageToken` for pagination instead of `startAt`, aligning with the latest API documentation.
- Enhanced logging for better visibility during ticket retrieval, including page number and pagination status.
- Implemented safety checks to prevent infinite loops and added a limit for ticket retrieval.
2025-09-17 16:51:35 +02:00
Julien Froidefond
97a938c46a fix: simplify KanbanFilters by removing unnecessary undefined checks
- Updated `jiraProjects` and `jiraTypes` assignments to always set values directly, improving clarity and consistency in filter updates.
2025-09-17 16:40:22 +02:00
Julien Froidefond
107154a4b8 fix: update JiraService to preserve local task title and priority
- Removed unnecessary checks for local updates, ensuring Jira data is always updated.
- Preserved local task title and priority during updates to maintain user modifications.
- Updated logging to reflect changes in task update behavior.
2025-09-17 16:30:57 +02:00
Julien Froidefond
b25e4ec7b4 fix: update Badge variant in SyncActionsList for better UI consistency
- Changed Badge variant from "secondary" to "outline" in SyncActionsList component to enhance visual clarity and align with design standards.
2025-09-17 16:22:46 +02:00
Julien Froidefond
e34e898e84 feat: enhance JiraSync with detailed sync actions
- Added `JiraSyncAction` interface to track individual task actions (created, updated, skipped, deleted) during synchronization.
- Updated `JiraSyncResult` to include actions for better visibility of sync outcomes.
- Implemented a modal to display detailed sync results, improving user feedback on synchronization processes.
- Enhanced task deletion logic to provide reasons and changes for each action, ensuring clarity in task management.
2025-09-17 16:14:21 +02:00
Julien Froidefond
7c139e4ce0 feat: enhance JiraService with task deletion logic
- Added `tasksDeleted` to `JiraSyncResult` to track deleted tasks.
- Implemented `cleanupUnassignedTasks` method to remove Jira tasks no longer assigned to the user, improving data accuracy and synchronization.
- Updated logging for better visibility during task cleanup process.
2025-09-17 15:55:40 +02:00
Julien Froidefond
95ac4617d6 fix: filter priorities with tasks in PrioritySwimlanesBoard
- Updated PrioritySwimlanesBoard to filter out priorities that have no associated tasks, ensuring only relevant priorities are displayed. This improves the clarity and usability of the swimlanes.
2025-09-17 15:51:49 +02:00
Julien Froidefond
7e7be6a890 fix: update KanbanFilters to always include tags and priorities
- Modified KanbanFilters to set tags and priorities directly, removing the conditional checks for empty arrays. This ensures that the filters are always updated with the latest values, improving consistency in filter application.
2025-09-17 14:52:59 +02:00
Julien Froidefond
21500269e1 feat: integrate Jira ticket linking in TaskCard
- Added functionality to generate Jira ticket URLs based on user preferences, enhancing task interactivity.
- Updated UserPreferences to include Jira configuration, ensuring seamless integration with Jira settings.
- Refactored TaskCard to conditionally render Jira links, improving user experience when interacting with Jira tasks.
2025-09-17 14:50:32 +02:00
Julien Froidefond
b0dc1bec11 fix: add active filters count to context and components
- Integrated activeFiltersCount into useTasksContext for HomePageContent and KanbanFilters.
- Removed redundant activeFiltersCount calculation from KanbanFilters, leveraging the context instead for better performance and consistency.
2025-09-17 14:46:27 +02:00
Julien Froidefond
8394f78fc7 fix: update Next.js configuration for turbopack rules
- Replaced experimental turbo configuration with turbopack for SQL file handling, ensuring compatibility with the latest Next.js features.
2025-09-17 14:46:13 +02:00
Julien Froidefond
95df2ad257 fix: update JiraService tag assignment and status mapping
- Changed comments to singular form for clarity regarding Jira tag assignment.
- Removed unused assignProjectTag method to streamline the JiraService.
- Enhanced status mapping with additional French translations for better localization.
2025-09-17 14:13:44 +02:00
Julien Froidefond
c8119faead fix: improve JiraService pagination and cleanup logic
- Updated pagination logging to include total issues retrieved.
- Increased safety limit for pagination from 5000 to 10000 tickets to prevent infinite loops.
- Removed deprecated cleanupEpics method to streamline synchronization process.
- Added check for actual changes before updating tasks to avoid unnecessary database operations.
2025-09-17 14:06:27 +02:00
Julien Froidefond
625e8dba4b feat: jira and synchro 2025-09-17 13:56:42 +02:00
Julien Froidefond
2f104109db fix: ensure tooltip hides during title editing in TaskCard
- Updated TaskCard to hide the tooltip when entering title editing mode, improving user experience by preventing distractions while editing the title.
2025-09-17 11:53:55 +02:00
Julien Froidefond
d3e7d171e4 fix: hide action buttons in TaskCard during title editing
- Updated TaskCard to conditionally render edit and delete buttons only when not in editing mode, improving user experience by preventing accidental actions while editing.
2025-09-17 11:52:20 +02:00
Julien Froidefond
aa80580e8a chore: update binary database file
- Updated the binary database file to reflect recent changes in the schema and data structure.
2025-09-17 11:50:51 +02:00
Julien Froidefond
b3052f34f2 feat: enhance TaskCard with tooltip functionality
- Added tooltip to TaskCard title for improved user interaction, displaying the title on hover.
- Introduced cleanup for timeout on component unmount to prevent memory leaks.
- Refactored title rendering to use a new TitleWithTooltip component for better code organization.
2025-09-17 11:49:01 +02:00
Julien Froidefond
60a9d0807e feat: add compact view and swimlanes toggle to HomePageContent
- Introduced toggle buttons for compact view and swimlanes by tags in HomePageContent, enhancing user preferences management.
- Removed redundant compact view toggle from KanbanFilters to streamline functionality.
2025-09-17 11:39:48 +02:00
Julien Froidefond
ed001ea74a style: update DailyAddForm and EditCheckboxModal for consistent theme
- Changed default selected type in DailyAddForm from 'task' to 'meeting'.
- Updated class names in DailyAddForm and EditCheckboxModal for improved visual consistency and user experience, ensuring better color contrast and hover effects.
2025-09-17 09:14:59 +02:00
Julien Froidefond
748888819b fix: theme in preferences and SSR GET 2025-09-17 08:49:41 +02:00
Julien Froidefond
fdaf47c1e5 feat: extend type definitions for KanbanFilters, ViewPreferences, and ColumnVisibility
- Added index signatures to allow for dynamic keys in KanbanFilters, ViewPreferences, and ColumnVisibility interfaces, enhancing flexibility in handling additional properties.
- Updated layout metadata to reflect new application title and description for better branding.
- Updated binary database file.
2025-09-17 08:39:46 +02:00
Julien Froidefond
14d300c682 refactor: userpreferences are now in the DB 2025-09-17 08:30:36 +02:00
Julien Froidefond
4f137455f4 fix: lint 2025-09-16 22:13:28 +02:00
Julien Froidefond
122a47f232 feat: implement drag-and-drop functionality in ObjectivesBoard
- Added DnD context and handlers for task reordering and status updates.
- Introduced DroppableColumn component for better task organization by status.
- Enhanced task card interaction with visual feedback during drag events.
- Updated KanbanBoardContainer to support new status update prop.
2025-09-16 09:59:27 +02:00
Julien Froidefond
d6a19544d2 style: update TaskCard for visual feedback on task status
- Added opacity adjustment for completed tasks in TaskCard to enhance visual distinction.
- Improved hover effects and interaction feedback for better user experience.
2025-09-16 09:50:20 +02:00
Julien Froidefond
883ba67599 feat: update EditCheckboxModal and DailyPageClient for task linkage
- Changed the label in EditCheckboxModal to clarify task linkage applies to all types, not just tasks.
- Updated DailyPageClient to allow taskId linkage for all checkbox types, enhancing flexibility in task management.
2025-09-16 09:33:06 +02:00
Julien Froidefond
65abbc1454 style: update project structure documentation for clarity
- Added clarification to the components section, specifying that React components are organized by domain for better understanding of project structure.
2025-09-16 09:08:00 +02:00
Julien Froidefond
470f3bfafd style: update SwimlanesBase and TaskCard for improved layout and interaction
- Changed the class names in SwimlanesBase to enhance hover effects and spacing.
- Adjusted QuickAddTask visibility and styling for better user experience.
- Increased font size and opacity in TaskCard for improved readability.
- Minor spacing adjustments in SwimlanesBase to maintain visual consistency.
2025-09-16 08:44:14 +02:00
Julien Froidefond
845d12f098 style: adjust spacing and sizing in DailyCheckboxItem and DailySection
- Reduced padding and margin in DailyCheckboxItem for a more compact layout.
- Updated checkbox sizes for consistency and improved visual hierarchy.
- Adjusted the scrollable area in DailySection to enhance user experience.
2025-09-16 08:15:45 +02:00
Julien Froidefond
11200f85ac feat: add toggle all functionality for daily checkboxes
- Implemented `toggleAllToday` and `toggleAllYesterday` methods in `useDaily` for batch checkbox state management.
- Updated `DailySection` to include a button for toggling all checkboxes, enhancing user interaction.
- Integrated new toggle functions in `DailyPageClient` to support the updated checkbox handling.
2025-09-16 08:09:13 +02:00