Integrate Calendar Page Functionality with Database #3

Open
opened 2025-05-28 12:06:34 +00:00 by MahmoudEmad · 1 comment
Member

Description:

This issue covers the full integration of the calendar page with the database, ensuring all related backend features work as expected with the actual data model. The goal is to connect the UI with real-time data from the calendar model and related views. The following tasks should be completed:

Tasks:

  1. Integrate backend with the database

    • Ensure all calendar-related operations are connected to the database layer.
  2. Implement missing functionality for the Calendar model (if needed)

    • Add or update fields, methods, or serializers required for calendar-related views.
  3. Integrate "Create New Calendar Event" functionality

    • Enable creation of new events from the UI and persist them to the database.
  4. Integrate "List All Events" functionality

    • Fetch and display all events stored in the database based on the rendered calendar.
### Description: This issue covers the full integration of the calendar page with the database, ensuring all related backend features work as expected with the actual data model. The goal is to connect the UI with real-time data from the calendar model and related views. The following tasks should be completed: #### ✅ Tasks: 1. **Integrate backend with the database** * Ensure all calendar-related operations are connected to the database layer. 2. **Implement missing functionality for the `Calendar` model (if needed)** * Add or update fields, methods, or serializers required for calendar-related views. 3. **Integrate "Create New Calendar Event" functionality** * Enable creation of new events from the UI and persist them to the database. 4. **Integrate "List All Events" functionality** * Fetch and display all events stored in the database based on the rendered calendar.
MahmoudEmad self-assigned this 2025-05-28 12:06:41 +00:00
MahmoudEmad added this to the Freezone project 2025-05-28 12:14:52 +00:00
MahmoudEmad added this to the 1.0.0 milestone 2025-05-28 12:14:54 +00:00
Author
Member

Issue Update

Completed the integration of the Calendar Page functionality with the database. The calendar now uses a database-backed system instead of Redis, with full support for event creation, listing, and display enhancements. Backend models and views are now aligned with real-time data usage, and timezones are properly handled for consistent event scheduling.

Changes

  • Migrated calendar functionality from Redis to a database-backed implementation
  • Created database models for calendars and events
  • Implemented new database functions for calendar and event management
  • Updated calendar views to work with database data
  • Added Tera filters (format_hour, extract_hour, format_time) for flexible date/time formatting in templates
  • Improved event display: limited events per day and added "+X more" link
  • Added modal for viewing and deleting events
  • Enhanced event creation modal with color selection
  • Improved year view to show number of events per month
  • Enhanced day view to show all-day events separately
  • Applied styling and layout improvements for better UX
  • Fixed timezone issues in event creation, including UTC conversion and default time handling
### Issue Update Completed the integration of the Calendar Page functionality with the database. The calendar now uses a database-backed system instead of Redis, with full support for event creation, listing, and display enhancements. Backend models and views are now aligned with real-time data usage, and timezones are properly handled for consistent event scheduling. ### Changes * Migrated calendar functionality from Redis to a database-backed implementation * Created database models for calendars and events * Implemented new database functions for calendar and event management * Updated calendar views to work with database data * Added Tera filters (`format_hour`, `extract_hour`, `format_time`) for flexible date/time formatting in templates * Improved event display: limited events per day and added "+X more" link * Added modal for viewing and deleting events * Enhanced event creation modal with color selection * Improved year view to show number of events per month * Enhanced day view to show all-day events separately * Applied styling and layout improvements for better UX * Fixed timezone issues in event creation, including UTC conversion and default time handling
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: herocode/hostbasket#3
No description provided.