Commit graph

8 commits

Author SHA1 Message Date
7b947029c9
refactor: optimize task serialization method
Switched from using `this.tasks.values()` to `this.tasks.entries()` in the serialize method. This change directly reduces the complexity of the serialization process by eliminating a mapping step, making it more efficient and streamlined. No functional changes to the output.
2024-07-30 14:14:21 +02:00
b88a998c9a
feat: add state persistence and task change events
Introduce state persistence to example to save and load Kanblendar state using localStorage, enhancing user experience by remembering their tasks and settings across sessions. Implement a new 'taskChanged' custom event to trigger state saving whenever tasks are created, moved, edited, or deleted. This ensures state consistency and reduces the risk of data loss.

Refactor to attach Kanblendar instance to the window object for global access in example.
2024-07-30 14:09:38 +02:00
0f530dc401
feat: add serialization and deserialization for tasks
Introduced methods to serialize and deserialize tasks to enable saving and loading Kanblendar state. This addition facilitates persistence and recovery of task data, ensuring continuity. Adjusted task element creation and placement to maintain task integrity during deserialization.
2024-07-30 13:56:30 +02:00
303258ce10
refactor: separate task creation logic from Kanblendar class
Moved event listener for task button from Kanblendar init method to DOMContentLoaded handler. This change simplifies the Kanblendar class and improves modularity by placing event listening logic closer to the button initialization. Helps maintain separation of concerns and makes the code easier to manage and test.
2024-07-30 13:48:35 +02:00
cc4989cac4
fix: handle tasks without due times appropriately
Ensures tasks without due times are moved to a non-timed section rather than attempting to update their location based on an undefined value. This change prevents errors related to missing due time values and improves overall task management experience.
2024-07-30 13:45:30 +02:00
83471f8820
fix: ensure equal height for time slots in kanban board
Added adjustTimeSlotHeights method and invoked it wherever necessary
to ensure that all time slots and non-timed tasks sections maintain
equal height. This addresses inconsistencies in the layout, improving
the visual alignment and user experience.
2024-07-30 13:43:22 +02:00
53463d4e85
feat: highlight current time slot in Kanblendar
Added functionality to highlight the current time slot in the Kanblendar application for better time tracking. This feature updates every minute and visually indicates the active time slot by applying a specific CSS class.
2024-07-30 13:32:21 +02:00
38d9d36312
feat: add initial Kanblendar project with core features
Introduced the Kanblendar project, which combines a Kanban board and a daily calendar. Users can create, edit, and organize tasks in columns and time slots, with notification support for upcoming tasks.

Added README.md with detailed usage instructions and LICENSE file for licensing under MIT. Created example files (HTML, CSS, JS) to illustrate the usage of Kanblendar, and essential styles and scripts for its functionality.
2024-07-30 10:52:03 +02:00