Skip to content

fix: weekly rotation browser push, Slack title escaping, comment cleanup - #97

Merged
dylanjeffers merged 4 commits into
mainfrom
chore/review-cleanup
Sep 24, 2026
Merged

dylanjeffers merged 4 commits into
mainfrom
chore/review-cleanup

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor
  • Weekly rotation browser push: the browser push was behind shouldSendPushNotification, which requires a mobile device, so web-only listeners never got it. The browser push now runs first, only the mobile push is gated, and the unreachable devices.length === 0 check is removed. The no-devices test now asserts the browser push is sent.
  • Trending digest Slack links: a track title containing >, < or & broke the <url|title> markup. Titles are now escaped, with a test.
  • Weekly rotation push body now reads "A fresh mix of tracks picked just for you. Updates every Wednesday." to match the in-app copy.

Comment cleanup: shortened comments added in #91-#94 and swapped the em-dash in digest lines for a hyphen.

Tests: trending-challenge-rewards jest (13 passed) and tsc. notifications tsc --noEmit and eslint on touched files. The notifications jest mapping test was not run locally because it needs discovery/identity template DBs and redis, and CI doesn't run it.

🤖 Generated with Claude Code

dylanjeffers and others added 4 commits September 23, 2026 16:43
…t devices

The browser push was behind shouldSendPushNotification, which requires a
mobile device, so web-only listeners never got it. Send it first, then gate
only the mobile push. Removes the devices.length check that could never hit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A title containing >, < or & broke the <url|title> link markup in the
digest. Escape them per Slack's mrkdwn rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shorten comments added with the trending digest, General inbox and weekly
rotation changes, and use a plain hyphen in the digest's track lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dylanjeffers
dylanjeffers merged commit c1f71fc into main Sep 24, 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.

1 participant