Repository navigation
feat: add auto theme, Redis failover, weekly digest, and campaign map - #1500
Merged
joelpeace48-cell merged 6 commits intoOct 20, 2026
Merged
Conversation
Introduce an 'auto' theme preference that resolves to light between 06:00-18:00 local time and dark otherwise, re-evaluating every minute. Theme toggle now cycles light -> dark -> auto.
Introduce a createRedisClient factory that selects standalone, Sentinel, or Cluster topology from environment configuration, giving zero-downtime failover when a Redis node fails. Wire it into the server bootstrap.
Introduce a pluggable email service (no-op without transport) and a weekly digest job that aggregates 7-day participation analytics per campaign and emails operators. Idempotent per ISO week via checkpoints.
Introduce a CampaignMap component that renders participation hotspots on an SVG world map, sized by intensity, with clickable region filters. Mount it on the campaign analytics dashboard.
- Mock window.localStorage directly instead of Storage.prototype for reliable test isolation in jsdom - Add injectable transport support to createEmailService factory
|
@osasfaith Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
joelpeace48-cell
merged commit Oct 20, 2026
e69ac56
into
FinesseStudioLab:main
9 of 28 checks passed
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.
Closes #1358, Closes #1356, Closes #1355, Closes #1357
Type of Change
Summary
This PR adds four features: (1) automatic light/dark theme switching based on local time, (2) Redis Sentinel/Cluster auto-failover for high availability, (3) weekly campaign performance email digest for operators, and (4) interactive campaign map with geographic region filtering.
Motivation / Context
Closes #1358 — Users want the UI to adapt to their local time automatically. An 'auto' theme preference resolves to light between 06:00–18:00 and dark otherwise, re-evaluating every minute.
Closes #1356 — Redis single-node is a SPOF. A
createRedisClientfactory selects standalone, Sentinel, or Cluster topology from environment config, giving zero-downtime failover.Closes #1355 — Campaign operators need weekly participation analytics. A digest job aggregates 7-day stats per campaign and emails operators, idempotent per ISO week.
Closes #1357 — Visualizing global participation helps operators understand reach. A
CampaignMapcomponent renders hotspots on an SVG world map with clickable region filters.Closes #1358, Closes #1356, Closes #1355, Closes #1357