fix(dashboard): replace news pulse with recent activity + trend hover tooltip#55
Merged
Merged
Conversation
… tooltip Three changes to the dashboard: 1. Default tab reverted to 'Active watchlist' (was 'news pulse' via STATE.tab override at app.js init). HTML already had watchlist as tab--active; the JS was silently overriding it. 2. News pulse tab removed. It showed a flat list of ALL cumulative news (783 items) grouped by incident type with no temporal structure — redundant with the per-incident drawer and not useful for monitoring. Replaced with 'Recent activity' (48h) tab: a chronological feed of what changed in the last 48 hours — new incidents (NEW badge), new logs written (LOG badge), and news bursts grouped per incident per day (NEWS badge). Each row links to the incident drawer. Summary line shows counts by kind and the cutoff date. 3. Trend chart legends removed. The disease panel enumerated up to 17 pathogen names with totals and peaks, consuming significant chart vertical space. Replaced with a hover tooltip overlay: moving the cursor over either trend panel (geophysical or disease) shows a positioned HTML tooltip with the date and all active series values at that x position, plus a vertical tracker line. Only series with non-zero totals in the window are plotted and listed in the tooltip. Files changed: - dashboard/index.html: tab buttons, panels, trend panel structure - dashboard/app.js: renderTrendPanel rewrite (tooltip), renderRecentActivity (new), renderNewsPulse removed, STATE.tab default, STATE.newsOpen removed, stale 'news' tab references in KPI click handlers updated to 'watchlist' - dashboard/styles.css: trend-tooltip + recent-feed styles, news-pulse styles removed
nullhack
added a commit
that referenced
this pull request
Jul 23, 2026
Tooltip rows were in series-volume order (largest cumulative total first). Now sorted by the actual count at the hovered date, descending — so the tallest line on the chart at that x position is listed first.
Replace the cramped news-summary flex layout with a dedicated recent-summary style: total count + cutoff date + 3 colored stat chips (NEW/LOG/NEWS with counts). Drops the verbose parenthetical text and the redundant explanation line.
- Remove the KPI sidebar (aside.card--kpi-side) — redundant with the top severity/type/region filter chips. - Drop renderKPIs(), applyKpiAction(), STATE.kpiSel and all #kpis event wiring from app.js. - Remove .card--kpi-side / .kpi-axis / .kpis--pair / .card--kpi-side .kpi CSS (kept base .kpi* rules for any reuse). - Reorder HTML so map (span 6, left) precedes trend (span 6, right). - Stack the two trend panels vertically (.trend-grid 1fr) inside the now-narrower span-6 trend card. - Update responsive breakpoints to drop the kpi-side rules.
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.
Summary
Three dashboard changes in response to feedback that the News pulse tab was not useful and the trend chart labels took too much space.
1. Default tab reverted to Active watchlist
app.jswas settingSTATE.tab = "news"on init, overriding the HTML default. Fixed to"watchlist".2. News pulse tab → Recent activity (48h)
Removed: News pulse tab — showed a flat list of ALL cumulative news (783 items) grouped by incident type, no temporal structure. Redundant with the per-incident drawer.
Added: Recent activity (48h) tab — chronological feed of what changed in the last 48 hours:
NEWbadge: incidents first reported in the windowLOGbadge: new log entries written in the windowNEWSbadge: news bursts grouped per incident per dayEach row links to the incident drawer. Summary line shows event counts and the cutoff date.
3. Trend chart: legend labels → hover tooltip
Removed: The inline legend that enumerated all disease pathogen names (up to 17) with totals/peaks, consuming significant chart vertical space.
Added: Hover tooltip overlay on both trend panels (geophysical + disease). Moving the cursor shows:
Only series with non-zero totals in the selected window are plotted and listed in the tooltip, keeping it concise.
Test plan
node --check dashboard/app.js— syntax OKgenerate_dashboard_data.py)No Python source changes — frontend only (3 files: app.js, index.html, styles.css).