Skip to content

Add per-rule "hide subtitle" option#128

Merged
matejdro merged 2 commits into
matejdro:mainfrom
dbortz:feat/hide-subtitle
Jul 6, 2026
Merged

Add per-rule "hide subtitle" option#128
matejdro merged 2 commits into
matejdro:mainfrom
dbortz:feat/hide-subtitle

Conversation

@dbortz

@dbortz dbortz commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

I'm back with another one trying to make my NC2 experience even better!

What

Adds a per-rule Hide subtitle option (in a rule's Settings). When enabled, the notification subtitle is dropped before the notification is sent to the watch.

The motivating case is that sometimes the subtitle is long and unhelpful and clutters the notification.

How

  • New per-rule preference RuleOption.hideSubtitle (hide_subtitle, default false), surfaced as a SwitchPreference in the rule Settings screen.
  • When enabled, NotificationProcessor blanks the subtitle field.
  • Group-chat edge case: a conversation/group title longer than MAX_TITLE_LENGTH is merged by the parser into the body (prepended as "title\n…"), so blanking the subtitle field alone wouldn't hide it for group chats. To handle that, ParsedNotification now carries the raw conversationTitle (the parser's parseSubtitleAndBody returns a Triple), and NotificationProcessor.removeConversationTitle() strips that "title\n" prefix (or the whole body when the body is just the title) when the option is on.

Testing

  • Manually verified on a Pebble Time 2: a group-chat rule with Hide subtitle on shows only the sender + message, with the participant list removed from both subtitle and body.
  • Paparazzi settings snapshots re-recorded for the new toggle.

@dbortz dbortz changed the title Add per-rule "hide subtitle" optionFeat/hide subtitle Add per-rule "hide subtitle" option Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 53.84% 🍏

There is no coverage information present for the Files changed

@dbortz dbortz force-pushed the feat/hide-subtitle branch from 4744339 to 3d6243a Compare July 6, 2026 17:10
dbortz and others added 2 commits July 6, 2026 12:27
Adds a per-rule toggle that drops the notification subtitle before sending
to the watch. For messaging notifications the useful "who said what" lives
in the body, so the subtitle (e.g. a group chat's participant list) is just
noise.

A conversation/group title longer than MAX_TITLE_LENGTH is merged into the
body by the parser, so blanking the subtitle field alone left the title in
the body for group chats. ParsedNotification now carries the raw
conversationTitle (parseSubtitleAndBody returns a Triple), and
NotificationProcessor.removeConversationTitle strips that "title\n" prefix
(or the whole body when body == title) when the option is enabled.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EbihJgxUPzinTBi3WThhUv
@dbortz dbortz force-pushed the feat/hide-subtitle branch from 3d6243a to e6dd747 Compare July 6, 2026 17:27
@matejdro

matejdro commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Thanks!

@matejdro matejdro merged commit 40c4682 into matejdro:main Jul 6, 2026
2 checks passed
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.

2 participants