Repository navigation
feat: auto theme by local time, Redis HA, weekly digest email, campaign map - #1499
Merged
joelpeace48-cell merged 7 commits intoOct 20, 2026
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
Convert gas_costs migration from knex-style to project-standard export format so runMigrations works. Align theme storage-unavailable test with getStoredTheme return contract.
osasfaith
force-pushed
the
feat/stellar-wave-frontend-backend-features
branch
from
October 20, 2026 18:16
771a313 to
5c877e6
Compare
joelpeace48-cell
merged commit Oct 20, 2026
6c5eeab
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 #1355, Closes #1356, Closes #1357, Closes #1358
Type of Change
Summary
Four features delivered in one PR:
automode that resolves to light between 06:00–18:00 local time and dark otherwise, re-evaluating every minute. Theme toggle cycles light → dark → auto.createRedisClientfactory selects standalone, Sentinel, or Cluster topology from env config (REDIS_SENTINEL_HOSTS,REDIS_SENTINEL_NAME,REDIS_CLUSTER_NODES), giving zero-downtime failover via ioredis.CampaignMapSVG component renders participation hotspots sized by intensity with clickable region filters (North America, South America, Europe, Africa, Asia, Oceania). Mounted on the campaign analytics dashboard.Motivation / Context
Closes #1355, Closes #1356, Closes #1357, Closes #1358
Changes
frontend/src/theme.js,App.jsxbackend/src/config/redis.js,index.jsbackend/src/services/emailService.js,jobs/weeklyDigestJob.js,index.jsfrontend/src/components/CampaignMap.jsx,CampaignAnalytics.jsxTesting
npx vitest run) including 8 new theme tests and 5 new CampaignMap testsnode --test)CampaignAnalytics.jsxandsanitizer.jsunchanged (verified viagit stash)Tradeoffs
CAMPAIGN_DIGEST_RECIPIENTSenv (no schema change for campaign creator emails)Out of scope