Skip to content

Show notes contents in notification and use stack icon#960

Merged
Crustack merged 2 commits intomainfrom
feat/610-873
Apr 3, 2026
Merged

Show notes contents in notification and use stack icon#960
Crustack merged 2 commits intomainfrom
feat/610-873

Conversation

@Crustack
Copy link
Copy Markdown
Owner

@Crustack Crustack commented Apr 3, 2026

Closes #610
Closes #873

Also enforces to initialize Time Picker in clock mode, relates to #945

Summary by CodeRabbit

  • New Features

    • Reminder notifications now group together with a summary view
    • Added a new "multiple notebook" icon resource
  • Bug Fixes

    • List item reminders display checkmarks showing completion status
    • Reminder notifications show full text instead of being truncated
    • Date and time pickers default to calendar and clock selection modes respectively
  • Chores

    • Removed a debug log entry affecting internal logging only

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 3, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5bb2ef92-33e1-4b78-9d34-d7f450c5c8c9

📥 Commits

Reviewing files that changed from the base of the PR and between ae90c20 and a83a4a9.

📒 Files selected for processing (3)
  • app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/DatePickerFragment.kt
  • app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/ReminderReceiver.kt
  • app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/TimePickerFragment.kt
✅ Files skipped from review due to trivial changes (1)
  • app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/DatePickerFragment.kt
🚧 Files skipped from review as they are similar to previous changes (2)
  • app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/TimePickerFragment.kt
  • app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/ReminderReceiver.kt

📝 Walkthrough

Walkthrough

Updated date/time pickers to set explicit input modes, enhanced reminder notifications to show full note content (including list items with checkbox indicators) and add notification grouping with a summary, added a new vector drawable, and removed a debug log statement.

Changes

Cohort / File(s) Summary
Date/Time Picker Configuration
app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/DatePickerFragment.kt, app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/TimePickerFragment.kt
Set explicit input modes on Material pickers (INPUT_MODE_CALENDAR, INPUT_MODE_CLOCK) while preserving existing selection/time-format logic.
Reminder Notification System
app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/ReminderReceiver.kt
Notification content now shows full note body or list items prefixed with checkmark/box icons; title falls back to a localized string; added BigTextStyle; implemented grouping via setGroup(GROUP_REMINDERS) and a separate group summary notification; added SUMMARY_ID and GROUP_REMINDERS constants; removed body truncation.
Utilities & Resources
app/src/main/java/com/philkes/notallyx/utils/changehistory/ChangeHistory.kt, app/src/main/res/drawable/notebook_multiple.xml
Removed a debug Log.d call from ChangeHistory.push; added a 24×24 vector drawable notebook_multiple.xml.

Sequence Diagram(s)

sequenceDiagram
    participant Receiver as ReminderReceiver
    participant Manager as NotificationManager
    participant System as SystemUI

    Receiver->>Manager: build per-reminder Notification (title, contentText, BigTextStyle)\n.setGroup(GROUP_REMINDERS)
    Manager->>System: notify(reminderId, notification)
    Receiver->>Manager: build group summary Notification (setGroupSummary(true))
    Manager->>System: notify(SUMMARY_ID, summaryNotification)
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

enhancement

Poem

🐇 I hopped to tweak the pickers' tune,
Reminders now show every line,
Checkmarks, grouped icons — quite the boon,
A dotted notebook, crisp and fine.
Hooray! 🥕📬

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Show notes contents in notification and use stack icon' accurately summarizes the main changes: displaying note content in notifications (#610) and using a stacked icon for multiple reminders (#873).
Linked Issues check ✅ Passed The PR successfully implements all coding requirements: ReminderReceiver now displays note content in notifications with special handling for list items, and uses grouped notifications with a stacked summary icon to indicate multiple reminders, addressing both issues #610 and #873.
Out of Scope Changes check ✅ Passed All changes are in scope: date/time picker input mode updates align with related issue #945, the debug log removal is minimal housekeeping, and the notebook_multiple drawable supports the notification grouping feature.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/610-873

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In
`@app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/ReminderReceiver.kt`:
- Around line 98-110: contentText and bigText are being built identically for
LIST notes so collapsed notifications show the full list; update the logic in
ReminderReceiver (the contentText and bigText construction for note.type ==
com.philkes.notallyx.data.model.Type.LIST) so contentText produces a short
preview (e.g., first 1–3 items or a truncated single-line summary from
note.items) while bigText remains the full join of all items, and apply the same
change to the other identical occurrence that constructs contentText/bigText for
LIST notes.
- Around line 126-131: The summary notification (summaryNotification built with
NotificationCompat.Builder, GROUP_REMINDERS) is posted unconditionally; change
logic in ReminderReceiver to first query the NotificationManager for active
notifications, count how many active child notifications belong to
GROUP_REMINDERS (exclude any existing group summary), and only post
summaryNotification when that count is > 1; otherwise cancel the group summary
(use notificationManager.cancel(...) with your group-summary notification id) to
avoid showing the stacked indicator. Apply the same conditional gating where the
summary is posted in the other occurrence as well.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c3e79710-5c51-49d2-b7fe-45d5e6deab58

📥 Commits

Reviewing files that changed from the base of the PR and between 6c931aa and ae90c20.

📒 Files selected for processing (5)
  • app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/DatePickerFragment.kt
  • app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/ReminderReceiver.kt
  • app/src/main/java/com/philkes/notallyx/presentation/activity/note/reminders/TimePickerFragment.kt
  • app/src/main/java/com/philkes/notallyx/utils/changehistory/ChangeHistory.kt
  • app/src/main/res/drawable/notebook_multiple.xml
💤 Files with no reviewable changes (1)
  • app/src/main/java/com/philkes/notallyx/utils/changehistory/ChangeHistory.kt

@Crustack Crustack marked this pull request as draft April 3, 2026 13:08
@Crustack Crustack marked this pull request as ready for review April 3, 2026 13:08
@Crustack Crustack merged commit e4195ff into main Apr 3, 2026
1 check passed
@Crustack Crustack deleted the feat/610-873 branch April 3, 2026 13:33
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.

Status Bar Icon Stack Idea Show note content in reminder

1 participant