Repository navigation
Dates, agenda and reminders; password-protected notes - #6
Merged
Merged
Conversation
- Editor page (rebuilt from ivynote): task date chips, the date picker and
"@明天 9点" completion; password protection through
@ivynote/editor/protection — lock panel, sealing every edit, the set /
change / remove / lock dialogs. The app only ever sees sealed bodies;
the page reports {protected, locked} for the note menu.
- Note menu: 日期与提醒, 设置密码 / 更改密码 / 移除密码 / 立即锁定; a date
button in the format bar; protected notes show a lock and cannot be shared.
- Agenda sheet (library menu → 日程): open dated to-dos across the library,
check off in place, open a note at its task.
- Reminders: the next reminders of a library become AlarmManager alarms a
moment after any change (exact when allowed), are restored after a reboot
or update, and open their note when tapped. Android 13+ asks for
notification permission the first time there is something to remind of.
- core: Tasks (parse, reminders, agenda, toggle as the editor does) and
NoteLock.isEncrypted, with tests; search matches protected notes by title.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZ7eDpLFZCVDPw4eURZJLR
- Tasks.agendaTree groups the agenda like the web: overdue, a branch per day for the coming week, then by month; agendaDay / agendaMonth name them. - The agenda sheet folds and unfolds branches (overdue, today and tomorrow open by default), remembered on the device; days of a branch show only times, overdue and month branches show dates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZ7eDpLFZCVDPw4eURZJLR
Lint (MissingPermission) does not follow the check in mayNotify() or treat runCatching as handling SecurityException. Check POST_NOTIFICATIONS right before notify() and catch SecurityException for a permission withdrawn in between. Drop the version check below minSdk (ObsoleteSdkInt). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZ7eDpLFZCVDPw4eURZJLR
- Editor page (rebuilt): "/" insert menu, the date picker as a bottom sheet, @ completion with 选择日期和重复…, the selection toolbar for mice. - + first in the format bar opens the menu (command 'insert'); its photo and file items arrive as a 'pick' message and open the app's pickers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZ7eDpLFZCVDPw4eURZJLR
Rebuilt from ivynote: menu rows with an icon tile, a description and the Markdown they write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZ7eDpLFZCVDPw4eURZJLR
Rebuilt from ivynote: "🔁 every weekday" shows as one chip (it read as "every week" plus "day"); @ completes "1分钟后", "半小时后" and alike. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZ7eDpLFZCVDPw4eURZJLR
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZ7eDpLFZCVDPw4eURZJLR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the Android counterpart of ivynote/ivynote#(same branch): task dates and reminders, plus password-protected notes.
Changes
@明天 9点completion. Password protection goes through@ivynote/editor/protection: lock panel, every edit encrypted, and the set, change, remove and lock dialogs. The app only ever sees and syncs the encrypted body; the page sends aprotection {protected, locked}message.AgendaSheet(library menu → 日程): open dated to-dos across the library. They can be checked off in place (only if the line hasn't changed), and tapping one opens the note at the task.reminders/Reminders.kt:setAndAllowWhileIdle.BOOT_COMPLETEDandMY_PACKAGE_REPLACEDcan restore them.Tasks(parse, reminders, agenda, toggle, all matching the web rules) andNoteLock.isEncrypted. Search matches protected notes by title only.Testing
./gradlew -Pivy.coreOnly=true :core:test: passes, including 5 newTasksTesttests.IvyAndroidbridge:command('protect')produces an encrypted bodysetBodysends nothing backappmodule was not compiled here: the Android SDK host (dl.google.com) is blocked in this environment. Please let CI (:app:assembleDebug, lint) or Android Studio confirm the build. The changes follow the existing code's APIs (Compose Material3, extended icons Event/Lock/LockOpen/VpnKey, AlarmManager, NotificationCompat).Generated by Claude Code