Skip to content

Conversation

@labmecanicatec
Copy link
Contributor

image
  • Replaced the specific dates display with a text string using the schedule_daily format.
  • Removed unused CSS to improve maintainability.
  • Added a CSS class to the date removal icon to indicate it is clickable.
  • Prevented duplicate loading of moment.js.
  • Removed an unnecessary line break that caused grid misalignment relative to the filter.

- Replaced the specific dates display with a text string using the `schedule_daily` format.
- Removed unused CSS to improve maintainability.
- Added a CSS class to the date removal icon to indicate it is clickable.
- Prevented duplicate loading of `moment.js`.
- Removed an unnecessary line break that caused grid misalignment relative to the filter.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects date display formatting and improves code maintainability in the schedule module. The changes replace technical date formats with user-friendly formatted dates, remove duplicate script loading, improve layout alignment, and clean up unused CSS.

Changes:

  • Replaced raw date format (YYYY-MM-DD) with user-formatted dates using the schedule_daily format
  • Removed duplicate loading of moment.js (already loaded via javascript-includes.tpl)
  • Fixed grid alignment by removing an extraneous line break
  • Cleaned up commented-out CSS and removed unused styles

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
tpl/Schedule/schedule.tpl Added wrapper div for datepicker alignment, removed duplicate moment.js loading, added altFormatDate config, changed DatePickerSetupControl parameter
tpl/Schedule/schedule-reservations-grid.tpl Removed line break that caused grid misalignment
Web/scripts/schedule.js Added date formatting using flatpickr to display user-friendly dates instead of ISO format
Web/css/schedule.css Removed commented CSS code, added cursor style for date removal icon, removed unused reservationsToTop styles

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@JohnVillalovos JohnVillalovos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @labmecanicatec

LGTM

@JohnVillalovos JohnVillalovos merged commit d684695 into LibreBooking:develop Jan 19, 2026
17 checks passed
@labmecanicatec labmecanicatec deleted the schedule.tpl branch January 19, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants