Skip to content

Conversation

@giuliohome
Copy link

This PR fixes #5415 by ensuring the calendar date picker updates correctly and allows selection of any date in the current month.

Addresses bug usememos#5415 where the calendar date picker was not updating
correctly when a new date was selected.

This fix involves:
- Updating useDateFilterNavigation to correctly handle displayTime filters,
  ensuring existing filters are replaced with new selections.
- Modifying CalendarCell to make all days interactive, allowing users
  to select any date in the current month, regardless of whether it has memos.
- Passing the selected date to useCalendarMatrix in MonthCalendar to ensure
  the chosen date is visually highlighted.
…lter

This commit re-introduces the "Created at" date picker field in the memo editor.
This field allows users to explicitly set the creation date of a new memo.

Key changes include:
- Reinstating the DateTimeInput component in  bound to .
- Ensuring  localization key is present in  to support the UI label.
- Correctly initializing  from the  filter in  when a new memo is created, if the field is not already set.
- Re-adding the  action and its corresponding reducer logic to manage updates to .
- Removing the unused  import from  to fix linting errors.

These changes ensure the frontend provides and manages the  for memos, which will then be used by the backend's (forthcoming) fix to persist this value on initial memo creation.
@giuliohome giuliohome changed the title "Fix: Calendar date picker not updating #5415 Fix: Calendar date picker not updating #5415 Jan 4, 2026
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.

Bug: Unable to Change Date in Datepicker

1 participant