{weather && (
-
- {getWeatherIcon(weather.weatherCode, weather.isDay)}
- {Math.round(weather.temperature)}°C
- {weather.weatherDescription}
+
+ {getWeatherIcon(weather.weatherCode, weather.isDay)}
+ {Math.round(weather.temperature)}°C
+ {weather.weatherDescription}
+
+ )}
+ } color="#1890ff" value={summary.users.total} label="Users" onClick={() => navigate('/app/users')} />
+ {showInfluence && } color="#52c41a" value={summary.campaigns.active} label={`of ${summary.campaigns.total}`} onClick={() => navigate('/app/campaigns')} />}
+ {showMap && } color="#722ed1" value={summary.locations.total.toLocaleString()} label={`${geocodePct}%`} onClick={() => navigate('/app/map')} />}
+ {showInfluence && } color="#faad14" value={summary.emails.sent} label="sent" onClick={() => navigate('/app/email-queue')} />}
+ {showMedia && } color="#13c2c2" value={summary.videos.published} label={`of ${summary.videos.total}`} onClick={() => navigate('/app/media/library')} />}
+ {showMap && } color="#eb2f96" value={summary.shifts.upcoming} label={`${summary.shifts.open} open`} onClick={() => navigate('/app/map/shifts')} />}
+ {/* Pending action tags */}
+ {(summary.responses.pending > 0 || (summary.locations.total > 0 && summary.locations.total - summary.locations.geocoded > 0) || summary.emails.queued > 0) && (
+
+ {summary.responses.pending > 0 && (
+ navigate('/app/responses')}>
+ {summary.responses.pending} pending
+
+ )}
+ {summary.locations.total > 0 && summary.locations.total - summary.locations.geocoded > 0 && (
+ navigate('/app/map')}>
+ {summary.locations.total - summary.locations.geocoded} ungeocoded
+
+ )}
+ {summary.emails.queued > 0 && (
+ navigate('/app/email-queue')}>
+ {summary.emails.queued} queued
+
+ )}
+ {summary.campaignModeration.pendingReview > 0 && (
+ navigate('/app/campaign-moderation')}>
+ {summary.campaignModeration.pendingReview} review
+
+ )}
+
+ )}
+
+ ) : (
+