Skip to content

Conversation

jackmcdade
Copy link
Member

@jackmcdade jackmcdade commented Sep 26, 2025

I did a thing.

CleanShot 2025-09-26 at 11 04 07@2x

Mobile view:

CleanShot 2025-09-26 at 12 16 33@2x

Note

Introduces a calendar (month/week) view for collections with drag‑and‑drop rescheduling, saves/cancels pending changes, and persists view preference; adds supporting components/utilities and minor UI tweaks.

  • Collections UI:
    • New Calendar mode: Adds calendar view (month/week) to resources/js/components/collections/View.vue, with toggle, dirty-state tracking, save/cancel actions, and preference-based view persistence.
    • Calendar components: Introduces CollectionCalendar.vue (fetch, DnD, save/cancel), CalendarMonthView.vue, CalendarWeekView.vue, CalendarEntry.vue, CalendarWeekEntry.vue, and useCalendarDates.js utility.
    • Blade wiring: Updates resources/views/collections/show.blade.php to pass required props (including dated) and reorder attributes.
  • Global registration:
    • Registers CollectionCalendar in resources/js/bootstrap/components.js.
  • Entry creation:
    • Enhances CreateEntryButton.vue with optional custom trigger slot, icon prop, and blueprint dropdown support in calendar cells.
  • UI components:
    • Combobox.vue: preserves external class by moving it to ComboboxTrigger, adds size xl, tweaks lg, and avoids passing class via v-bind using omit.
    • Popover.vue: adjusts content styling (removes overflow-hidden) and improves arrow colors for dark mode.

Written by Cursor Bugbot for commit 05196ff. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@ryanmitchell
Copy link
Contributor

I love this thing! ❤️

@jackmcdade
Copy link
Member Author

I love this thing! ❤️

Thanks @ryanmitchell!

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@ebeauchamps
Copy link
Contributor

ebeauchamps commented Sep 27, 2025

@jackmcdade I don't know if you got my comment, so sorry for cross-posting: do you know that the fist day of the week depends from the locale / the country? Mostly Monday or Sunday throughout the world , but also Saturday? This view could benefit from a setting to change that (but perhaps you did it already). Thanks.

@jackmcdade
Copy link
Member Author

jackmcdade commented Sep 27, 2025

I did get it — it's all driven by your user's locale. I think it might be buggy tho cuz I'm having a hard time getting it to work correctly. I won't merge it until it's sorted.

@jackmcdade jackmcdade marked this pull request as draft September 27, 2025 19:08
@aaronbushnell
Copy link
Contributor

Suuuuuper slick! Does this allow you to change the date an entry is published by dragging and dropping it to a different date? Or is this a read-only way to visualize entries across a calendar view?

@jackmcdade
Copy link
Member Author

Suuuuuper slick! Does this allow you to change the date an entry is published by dragging and dropping it to a different date? Or is this a read-only way to visualize entries across a calendar view?

It doesn't support drag and drop (yet) but you can create a new entry by clicking on a date/time slot. Hadn't even thought of that honestly... 🤔

@ryanmitchell
Copy link
Contributor

Drag and drop would be awesome as a future improvement, but even if its just a visual view its really helpful for content editors.

@jackmcdade jackmcdade marked this pull request as ready for review September 30, 2025 21:49
@jackmcdade jackmcdade requested a review from jasonvarga October 8, 2025 02:12
# Conflicts:
#	resources/js/components/entries/CreateEntryButton.vue
#	resources/js/pages/collections/Show.vue
#	resources/views/collections/show.blade.php
Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

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

There's two month pickers.

Image

@jasonvarga jasonvarga force-pushed the collection-calendar branch from 762c659 to ba7d75a Compare October 9, 2025 18:01
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.

7 participants