-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for setting and changing reminder due date and time #80
Added support for setting and changing reminder due date and time #80
Conversation
Conflicts: reminders-menu-bar/Views/Helpers/SelectableView.swift reminders-menu-bar/Views/ReminderItemView.swift
…metimes" This reverts commit 2d26d83.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but, delete changes in the .pbxproj file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for your contribution @andylin2004! My macbook stopped turning on after an update, so I won't be able to show what I was doing and test your changes now. Two small observations:
|
I have installed SwiftLint and adjusted my code to conform to the proper code style. Package.resolved isn't being tracked, so I think Xcode is autogenerating that. |
Hi, @andylin2004. I finally got my mac back. The
I was working on an edit popover (similar to the one in Apple Reminders) allowing to edit the reminder's title, notes, date/time and priority. My idea is to combine this work (from the image above) with the possibility you created to add date/time when creating a reminder (image below). Sound good to you? If it's ok I will merge your branch into a separate branch to combine these works and release this feature soon. |
Sounds good! The initial version of this type of PR had that, but I thought that was problematic because multiple popovers would then be needed. |
@andylin2004 can you please explain to me the advantage of using the |
The default textfield on macOS 11 will automatically create a reminder with the text in the textbook as the reminder name when the cursor clicks on the add date button (which is what we don't want to do, because people will probably adjust the due date multiple times).
|
Great! Thanks for the clarification. Didn't know about these behaviors on Big Sur. |
* Add support for setting and changing reminder due date and time (#80) * Add popover for reminder editing * Simplify createNew method in ReminderService * Adjustments to create a reminder based on RmbReminder * Remove unused variable in LegacyReminderTextFieldView * Improve behavior of remind me in date/time options * Configure dueDateComponents and alarms properties in EKReminder * Using custom DatePicker (NSViewRepresentable) * Fix conversion to DateComponents for reminders * Change RmbDatePicker to customize font through modifier * Fix updating reminder's due date * Renaming some views in FormNewReminderView * Keeping the calendars menu and the plus icon at the top of the form * Using withAnimation and removing previous animation * Changing preview of FormNewReminderView * Changing RemindDateOptionView appearance in FormNewReminderView * Resetting reminder when text field is empty * Creating single view to replace RemindDate and ReminderTime optionView * Fix wrong argument type * Adding missing translations for due date editing * Minor changes and code organization * Add missing translations for Brazilian Portuguese * Updating TODO for translation Co-authored-by: Andy Lin <60021592+andylin2004@users.noreply.github.com>
A previous issue discussed about adding the intelligent date and time setter like in the reminders app (see #17). This is a partial solution to that issue where users can change and set reminder due date and time manually (either below the textfield or via a popover that will apply changes once the user clicks out of the popover). English localization has also been applied for this.