Data stories
A data story opens on an overview of the record, shows what public meetings said one screen at a time, and only then asks its topic question so you can agree or disagree and see how other readers answered. Each screen of the record has a bold sentence computed from the data, one line of context, and a chart where every dot is a record you can open. Along the way, each contested screen asks the statement its record is about (Agree / Disagree / Not sure) and shows where you sit once you answer (#981); there is no separate challenge any more. The hub never leads with the question (#950).
The Data Stories item in the header scrolls to the Data stories section of the home page (/#data-stories), which shows the story's real counts and opens the story, the challenge and the index of every story at /stories (#975). The first story is the Data Center Story at /stories/data-centers.
The home page opens on the Data stories section, with search second; the line "Every local decision, in one place." now closes the page, under Impact (#995). The section's map draws each state as small boxes (#1087, described below), and hovering one shows a card quoting that state: a speaker's own words with their recorded side ("Spoke against · Business owner") where one is on record, otherwise a meeting passage chosen as described under "Which meeting a map card quotes" (#1230), verbatim, with the place, date, meeting and a link to the moment in the recording. Under it, Browse topics opens the story's screens (who spoke, projects, decisions, environment and resources, jobs) for the page's place. On the home page, the Data stories section leads with the story's conclusion, America hates data centers., with its subtitle and a line giving the real speaker counts behind it. The headline shows only while the national record backs it (see Story statements and where you sit); otherwise the story's question shows. Start the story comes right under it, in view on a laptop and a phone. The hub card does the same (#989). The section names the story (The Data Center Story). It has a US map with one marker per state where a data center came up in at least one meeting; a marker's size follows that real count and clicking it opens the story for that state. The page's own place is highlighted, with its counts and a Start the story button named for that place. Under the box, All data stories lists every story there is, and says so plainly while there is only one (#985).
Under Search your community, a Find your town button opens the location picker (#1179); once a place is set it reads "[Town, ST] · Find another town". No list of "launch cities" is hard-coded anywhere in the web app: any place the geocoder finds can be picked, and a page with no meetings for it says so (for example "No meetings on record for X") rather than the picker refusing the place. Search no longer offers "Include all of [county]", which only worked for four hard-coded cities; bringing it back from data for every city is tracked separately.
(Home card: removed 26 Nov 2026, #1182; the points remain on the Data Center Story's opening screen.) Under the headline and its subtitle, the hero's left column lists up to three numbered points, each with a round teal icon, a bold title and a line with the real figure (#1122). The titles are fixed; every figure is national and comes from GET /api/data-centers/positions:
- "Communities are saying no." The meetings (and states) where Jev read the public as mostly opposed (
lean_totals.public_against_meetings/public_against_states), then (only when the meeting reading is missing) "29 speakers counted by hand in 4 states: 18 against and 3 for." from the counted speakers intotals, with the number of states counted fromby_state(states with any counted speaker), never hard-coded (#1134). - "Projects are being stopped." The meetings whose data center outcome Jev read as tabled or deferred, denied or a moratorium (
lean_totals.stopped_meetings). - "Officials don't always listen." The meetings (and states) where officials sided against the public (
lean_totals.disagreement_meetings/disagreement_states, the #1113 rule).
Jev's figures are labelled "AI reading", because they are a classifier's reading of the transcript, not counted speakers. A point with no data (a 0, or lean_totals null because data_center_meeting_lean isn't loaded) is left out and the rest are renumbered; a sentence with no data is dropped from point 1. On a page scoped to a place, each point uses the place's own figure where it has one and otherwise the national figure, starting "Nationally:" (#1134, see below). Under the points, a large pill Start the story for [place] → keeps the page's scope, and a second pill Next story: Short-term rentals → (from nextStoryLink in storyNav.ts) carries it too. On a phone the points stack above the map and both buttons are full width. The copy is built by the pure helper web_app/src/utils/heroPoints.ts, with tests; the map on the right is unchanged.
The home map is now drawn like the Explore map: each state is a grid of small square boxes in its own shape (Alaska and Hawaii where the Albers map puts them), not a pin (#1087). Where speakers are on record, a state's boxes are split in bands by the real counts of those who spoke against, spoke for, asked a question or took no side (from data_center_meeting_position, served nationally as by_state on GET /api/data-centers/positions); a caption gives the number of speakers and states behind the split. A state with meetings but no speaker on record is one grey (Meetings, no stance on record) and a state with no meetings stays the empty tint, so no split is ever drawn without real counts. Hovering a box (tapping, on a phone) shows one of that state's real passages, cycling through them across its boxes, with the place, date, quote and the state's speaker counts; clicking opens that state's story. A data table under the map lists every state with its meetings and speaker counts and links to its story, for keyboard and screen readers. The hover card ends with a full-width Open the [State] story → button (at least 44px tall, on desktop and phones), not a line of small text (#1187). Under the map the legend is compact (8px swatches, 11px text), and the note on how the split is counted sits with the data table under How to read this map · data table, so the first desktop screen keeps room for Browse topics. The legend itself still names the AI reading. The short-term rentals card uses the same map without a split, shaded by meetings only. Each state's outline is drawn over its boxes, and a state with meetings but no recorded stance is grey, light to dark by its real meeting count (#1103). The legend has four entries: Spoke against (red), Spoke for (green), No side (purple) and Meetings with no stance on record (grey, darker = more meetings). A speaker who only asked a question is drawn as No side, while hover cards still say "asked a question" (#1110). Hovering shows a quote card (#1108). It carries the meeting's own recording thumbnail with "Hear it at m:ss", the place and date, the quote verbatim and large, and a speaker row: an initials avatar (never a photo), the shortened name, the side, and only the role or item on record. The meeting video popup uses the same card without the image.
Beyond counted speakers, both maps show an AI reading of each data center meeting (#1117). Jev, a classifier, read every meeting's transcript and judged whether the members of the public who spoke, and the elected officials, were mostly against, mostly for or split (data_center_meeting_lean, served as public_against_meetings and disagreement_meetings on positions by_state and meeting-mentions by_place). A state or county with no counted speakers but at least one meeting where the public mostly opposed a data center (probability at least 0.7) is a lighter red, labelled Public mostly opposed (AI reading of meetings); counted speakers keep their own colours. Where Jev read the public as opposed and officials as supportive, and the meeting wasn't a moratorium, a denial or an approval of rules (officials sided against the public), the map draws nothing extra (the owner preferred no dark outlines); it is stated in the hover card, the readout and the data table. The hover card and readout add a line such as "AI reading: the public mostly opposed in 2 meetings; officials sided against the public in 2 meetings." only when a count is above 0, and the data tables add both columns. "Supported" and "mixed" readings are never shown, because hand checks found them unreliable. The state drill-down also draws each county's border as a thin line over its dots, and it tells towns from counties the way printed maps do: towns and cities stay dark and bold beside their ring, while county governments are small, uppercase, letter-spaced grey text at the county's centre ("FAYETTE COUNTY"), placed after the towns. Method and limits: Data center meeting lean. On a phone, one tap on a state opens its story (#1120); there is no hover there, so the quote card is a desktop affordance. Changed 26 Nov 2026 (#1222): on a phone, the first tap on a state that has a quote card now shows that state's card, and its Open the [State] story → button opens the story. The page's scope label, map highlight, state select and charts then change to that state. A tap on a state with no card, or a second tap on the state already shown, still opens its story directly. When the card's state is the page the reader is already on, the card says You're reading the [State] story instead of offering a button that would do nothing. Before this change a tap focused the map, the keyboard's starting state (the page's own) took the card, and the button always led back to the current page. Keyboard focus still starts on the page's state.
Which meeting a map card quotes (#1230)
Changed 26 Nov 2026 (#1230). The owner did not believe the Alabama guns card: it quoted "Full Steve Carter Interview" (Athens, Sep 8, 2026), a passage that only says "firearms" and comes from an interview, not a public meeting. Map cards used to quote each state's newest keyword passage. They now quote it this way, server-side:
- Only real public meetings. A recording Jev read as
government_other(media briefings, ceremonies, academy graduations, interviews) ornot_government(podcasts, news shows, streams) is never quoted. The reading is Jev's existingmeeting_kind(transcript screen first, else the title-and-description screen), published per quoted recording aspublic.meeting_video_kind. A recording Jev never screened is still quoted, after the screened meetings, so no state loses its card for being unscreened. Title patterns ("Interview", "Candidate") were measured and not used: they also catch real meetings such as "City Council Special Meeting - Candidate Interviews". On the local warehouse (26 Nov 2026) the rule drops 131 of 18,045 topic-linked recordings and 56 of 1,859 data-center recordings; for Alabama guns, 12 of 386 (Montgomery police and mayor media briefings, a police academy graduation, the Athens interview, a podcast and a game stream). Jev has not screened 11,971 topic-linked recordings yet. - Meetings where the public took a side first. Topic stories (
GET /api/topics/{id}/states,newest) pick, per state, the newest meeting wheretopic_meeting_leanreads the public as mostly opposed, mostly supportive or mixed; only when the state has none, its other meetings (screened meetings first), newest first. Each pick carriespublic_stance(against,for,split,silentor null, with the map's 0.7 threshold). The home data-center map and the Data Center Story's national map askGET /api/data-centers/meeting-mentions?quotes_per_state=3: one passage per meeting, meetings where the public mostly opposed first (the only lean the maps serve), then newest. Counts are unchanged. Speakers' own words still come first on the home map. - The card says where the public stood. Under "In the meeting ·
<title>" a short line reads "Public: " and the topic's own position words fromweb_app/src/utils/topicPositions.ts(its "against", "for" or "Split" label, so a topic reworded there is reworded on the card too), or, when the reading found the public didn't speak on it, "Mentions<topic>; no public stance in this meeting". A meeting not read yet gets only "Mentions<topic>", with no claim about the public. A data-center passage gets its "against" words or the no-stance line, and no line for the audit-only supported or mixed readings. The line never says "AI reading".
The quote stays a verbatim excerpt with the matched words marked, with the meeting title, date, place and recording
link. With the change the guns cards read: Alabama, Calera City Council, Feb 2, 2026 ("…where people are able to carry
firearms", public opposed); Texas, El Paso City Council, May 23, 2023 (split); California, Santa Monica City Council,
Aug 22, 2023, on a retail firearm sales ordinance (split). A serving copy without meeting_video_kind falls back to the
newest passage.
What a meeting quote card shows (#1124)
A meeting passage's card on the story maps (the national dot map, the state's county map and the home map) adds three things from the record, each left out when the record has nothing (#1124):
- AI summary. The meeting's own AI summary (
event_meeting.meeting_summary), labelled "AI summary" and clamped to about three lines. It is shown as plain, escaped text. A meeting with no summary shows no block. - Open the meeting analysis →. A link to the meeting page (
/meetings/<event_meeting_id>), which has "How this summary was made". The link keeps the story's scope (?state=&city=). A recording that is not inevent_meetinghas no link. - The speaker, only when on record. The card names a speaker as "First L.", with the recorded role, only when a counted public comment from the same meeting (
data_center_public_comment) has a name and its whole verbatim quote (20 characters or more) is inside the passage's excerpt. If two different speakers match, no name is shown. There is no guess from timing. Otherwise the card keeps "In the meeting ·<title>". The API also shortens any fuller name to "First L." (AGENTS.md, Privacy).
The fields come from GET /api/data-centers/meeting-mentions as nullable meeting_summary, meeting_url, speaker_display_name and speaker_role. Each lookup is optional, so a database without event_meeting or data_center_public_comment leaves them null and the passages are still served. On the local warehouse (2026-11-26), 645 of 6,323 passages have a summary and 647 have a meeting page. Only 3 passages have a named speaker, because the public comment mart has 29 named comments and none of them has a timestamp. No transcript segment in event_documents carries a diarized speaker. More names need diarized transcripts (WhisperX speaker turns at each passage's start) or timed public comments.
Which topics get a story
A story or a challenge needs meeting recordings or transcripts behind it. Figure-only data, such as census measures, is shown under Explore.
Every curated topic with at least one linked meeting has a live story at /stories/<query_id> (#1133). The list is read at runtime from GET /api/topics (curated topics with a meeting count above 0, utils/topicStories.ts), so a topic added later goes live with no code change. /stories/data-centers stays on the Data Center Story (DataStory); every other slug is told by TopicStory: its caption (#1125), the map of meetings per state with each state's map quote (a public meeting where the public took a side when there is one, #1230), what was said and what was decided. On the home Browse topics strip a tile is live when its topic has meetings, and selecting it shows that topic's story card above, keeping the place. Flock and license plate readers share one topic and one tile. Starting a nonprofit links to its guide. A tile whose topic has no meetings on record (Insurance shopping until #1079 has data) says "Coming soon". Bike lanes has its own curated topic (100007, #1162) and goes live after the next seed and rebuild finds meetings for it. A curated topic with meetings that has no tile of its own gets a plain one, most meetings first, before the guides. At the end of a story, Next story walks the same live list. Within a story, a screen whose figures are not from recordings or transcripts (for the Data Center Story, sites on record and projects on record) is marked "For context" with its source named, and is never the story's headline claim. The opener's large counts lead with the transcript-based ones and show counts from other sources after them with their source.
Every topic story's map is the home box map with the same four-entry legend (#1127). For topics other than data centers the colours come from the AI reading of meetings (topic_meeting_lean, #1126), served by GET /api/topics/{topic_id}/state-map as distinct meetings per state, in each topic's own words since #1200: against (muted red, e.g. Want limits on short-term rentals, Opposed the gun proposal, Against the courts), for (teal, e.g. Want to allow short-term rentals, Backed the gun proposal, For the courts), Split (plum: the public spoke but was divided, or the AI could not tell which way) and No AI reading yet, or the public didn't speak on it (grey, darker = more meetings). The note under the map says what "for" means for the topic, and the data table adds a Public didn't speak on it column. A state's boxes are split in bands by those meeting counts, never by counted speakers, and the caption, hover card and data table say "AI reading of N meetings". Until the reading exists for a topic, the endpoint answers available: false and the map is grey with the note "No AI reading of these meetings yet; states show meetings only"; a failed request leaves the plain meetings map and claims no stance. Choosing a state (?state=) highlights it on the national map; the county drill-down the Data Center Story has needs a jurisdiction on each topic meeting and is tracked separately.
On the home hero, Start the story and the next-story button stick to the bottom of the screen until their own place scrolls into view, so they are always reachable (#1174). The desktop hover card ends with "Click to open the story for [state] →". The map's cards prefer a named speaker's own words ("Rob D.", never a full surname): the home map asks GET /api/data-centers/positions?per_state=3 for up to three quotes per state and side, and named speakers rank first.
The heading is a sentence
The story is headed by the longer "What did local meetings in [place] say about [topic]?". The two blanks are the controls: the place blank opens a dialog with one search box for a city, county or ZIP code (pick a suggestion and it applies and closes), one-click The United States and All of [state], Use my location, and an "Or pick a state" list. It has a close button, and Escape or a click outside closes it too; on a phone it is a bottom sheet. A county has no city grain here, so picking one applies its state and the dialog says "Stories are told by city or state; showing all of [state]". The lookup uses the same geocoder helpers as the home page location search (web_app/src/utils/resolvePlace.ts), picks carry the geocoder's own city name so nothing has to be typed exactly, and the choice is kept only in the address (state and city), never in the saved site-wide location, the topic blank lists the topics that have a story (today only data centers). They are underlined inline controls you can reach with the keyboard, named "Place" and "Topic", and at least 44 pixels tall on a phone. Because the story is built from meeting records, the screens that are things said in meetings (concerns, job claims, passages, agendas, decisions, company-hosted meetings) carry the sentence; sites and projects are marked "For context". The component is web_app/src/components/stance/SentenceHeading.tsx; it has the same props as the shared story component being built elsewhere, and the two should be merged.
The hub
/stories is the index of every data story (#1203). Every link labelled All data stories opens it: the Browse topics "all" arrow on the home page, and the All data stories link at the end of the last story (nextStoryLink in web_app/src/utils/storyNav.ts). The page is web_app/src/pages/DataStories.tsx; the card list is storyIndexCards in web_app/src/utils/storyIndex.ts, with tests.
- Header and place. The heading names the place every card is read for: "All data stories · National", "All data stories · Alabama", "All data stories · Tuscaloosa, Alabama". The place is the URL's
?state=&city=. Your place opens the place picker (PlaceControl), and All of [state] / National broaden in one click. Every Start link carries the place. - One card per story, in the home order. Data centers first, then the topics in the home Browse topics strip's order (
buildTilesinweb_app/src/utils/homeTopicTiles.ts), then any other live curated topic, most meetings first. Guides (starting a nonprofit, insurance) are not meeting stories and are not listed. - A live card names the topic, then its title from the shared caption picker (
pickCaption), the same title the home card and the story show for the place, then the meetings on record for the place from the caption facts ("71 meetings on record in Alabama"), then Start the [topic] story →. A count that is not on record is not shown (never a zero); while the facts load the title's place is held so the question does not flash first. - Coming soon. A topic with no meetings yet (no curated topic with linked meetings) reads "Coming soon" with no link, as on the home strip. Until the topic catalog answers, only data centers is listed; if it fails, the page says so rather than calling every topic coming soon.
- The data center record. The former data-center hub's counts row and Who spoke for and against are kept as the Data centers card's detail, What the data center records cover, loaded only when opened. The rules for those figures are below. Every count is the endpoint's own whole-scope total, a count that is missing or zero is left out, and under a city a count the source cannot narrow to a city (sites) is labelled with its own, wider place.
Who spoke up
When the positions table is loaded, the Data centers card's detail on /stories shows what people said about data centers at local meetings in the place in scope, as five figures and one chart (under the power/water/land hook). The story's own Who spoke up screen always has this block:
| Figure | What it counts |
|---|---|
| spoke for | Public speakers who asked the body to approve a data center item |
| spoke against | Public speakers who asked the body not to |
| asked a question | Public speakers who only asked questions |
| votes for | Yes votes on data center decisions that recorded a tally |
| votes against | No votes on those decisions |
The chart has one mark per speaker, grouped and headed by what they did ("Spoke against · 23 speakers · 56%"). Each group has its own colour and its own shape, so colour is never the only cue: teal squares for, amber diamonds against, open squares for a question, and short grey bars for speakers who took no side. When there are more than 240 speakers one mark stands for several, and the line under the chart says how many ("Each dot is 10 speakers; the last dot of a group is what is left over."). One line under it says what is counted and where: "Speakers at local meetings in Alabama where a data center item was discussed. From 6 meetings and 3 decisions with a recorded vote."
Only comments about the data center item count. A comment on another item of the same meeting never does. The rule, and what it misses, is in Who spoke up about data centers.
A figure with no data behind it is never shown as zero:
- When no decision in scope recorded a tally, both vote figures read not recorded, with "Votes were not recorded for these decisions."
- When no public comment on a data center item is on record for the place, the three speaker figures read not recorded, with "No public comment on a data center item is on record for these meetings."
- A real zero beside real counts stays zero (nobody spoke for, eleven spoke against).
- Until the table behind these figures has been built in the database, the story screen is one quiet line, "Who spoke for and against is not loaded yet."; the
/storiesdetail omits the block entirely so the care-first hook and Start stay in view (#962).
The figures come from GET /api/data-centers/positions?state=&city=&limit=, which sums the dbt mart data_center_meeting_position for the place and returns a few of the speakers' own words on each side from data_center_public_comment. The block is web_app/src/components/stance/PositionsBlock.tsx; its figures, caption and "not recorded" rules are positionFigures and positionsCaption in web_app/src/utils/dataStory.ts, with tests.
The Data Center Story
Up to eleven screens, in this order (a chart screen with nothing on record for the place is left out, so "N of M" counts only the screens shown). Each has a short word as its header (never a number), and each progress segment in the top bar is named after its screen ("3 of 11: Sites"). The id is what ?screen= carries. The story opens on the record, not on the question (#950).
| Screen | Word | Id | What it shows |
|---|---|---|---|
| Opener | Overview | overview | A dot map of the country: each state's dots shaded by its real number of meetings where a data center came up, nationally (none stays grey). Hover or choose a state to read its count; clicking a state narrows the whole story to it (?state=). In a state or city scope that state stands out and the rest are muted but keep their own counts; clicking it again broadens (city → state → country), and United States goes straight to the country. A data table lists every state with a count. In a state or city scope the map is that state's counties instead, like the Census map's state drill-down, in the home box map's colours: where its governments have speakers on record, a county's dots are split in bands by the real counts of those who spoke against, for, asked a question or took no side; a county with meetings but no stance on record is grey, light to dark by its real meeting count; a county with none takes the empty colour, and the legend matches the home map's (#1106). A county government counts by its geoid; a city, town or school district is placed by its coordinates and drawn as a ring. Hovering a county quotes one of its passages and gives its stance counts, and the data table lists counties with their governments. A government that can't be placed is named under the map, not shaded (#1039). Each ring's government is named beside it in the Data Explorer's label style (dark text, white halo), largest meeting counts first, and a label that would overlap one already drawn is left out; a county government is named at its county's centre only when that spot is free. At a state or city scope the Overview headline says which way speakers leaned once at least as many are on record as the national headline needs (10): two thirds or more against reads "Arizona pushed back: 11 of 12 speakers spoke against data centers.", two thirds or more for reads "… welcomed data centers …", otherwise "… was split …"; the meeting count moves to the line under it, and with fewer speakers the neutral count stays (#1115). On a phone the maps say Tap instead of Hover, and tapping a county selects it like hovering does (#1057). Then the row of large real counts (#970) |
| Who spoke up | Who spoke up | voices | The five figures, one dot per speaker, and up to three of the speakers' own words on each side, each linked to the moment in the recording |
| Where they are | Sites | sites | Data center sites by status (one dot per site) |
| What is proposed | Proposals | projects | Projects by status (one dot per project) |
| What is promised | Promises | jobs | Jobs claims by phase (one dot per claim) |
| What is raised | Concerns | concerns | A dumbbell (#1209): in a state or city, one row per concern, hollow dot = its share of national concern mentions, filled dot = its share of the place's, the difference in percentage points on the right (a fall in the warning colour), sorted By [place], By difference or Nationally. Nationally there is one dot per concern, its share of all mentions: the records count objections per area, not per concern, so there is no second value to compare. Concerns with fewer than 2 mentions in the place are left out and the note names them. Show data table lists every row |
| When it comes up | Meetings | meetings | Meeting passages by year (one dot per passage). Hovering or focusing a dot previews the recording's thumbnail, title, place and date; clicking it (or Enter / Space) plays the recording in a dialog from the quoted moment. Nothing loads from YouTube before the hover, and the player exists only while the dialog is open: Escape, Close or a click outside removes it and returns focus to the dot (#972) |
| What is on the agenda | Agendas | agendas | Agendas for upcoming and past meetings |
| What was decided | Decisions | decisions | Decisions on data center items, debated or taken up without debate (one dot per decision, titled with its outcome as recorded); a debated one links to its page, one without debate to the meeting recording. "Not loaded yet" when the table isn't in the database (#933) |
| Where people gather | Gatherings | gatherings | Company-hosted meetings by kind |
| Your answer | Your answer | verdict | After the record: the topic question, how readers answered, then the challenge |
Start, short titles, swipe and the phone Back (#1234, 26 Nov 2026)
- Start opens the story, not its cover. Every link that already means "start" (home's Start the data center
story, the home topic cards' Start, the Start on each
/storiescard) goes to/stories/<topic>?…&screen=overview(storyStartHrefinutils/storyNav.ts), so the reader lands on the Overview and does not press Start twice. A plain link (a shared URL, the topic picker, Next story) still opens the cover. The home map's drill-down keeps its navigation state (#1213).?screen=<id>deep links open that screen, and a progress segment pressed while the place's data is still arriving re-aims at the screen it names once the page settles (#1208). - Titles are the short conclusion only ("America hates data centers."), with no counts and no "AI reading" text; at a place whose own reading is too thin, the title is the broader conclusion and the line under it starts with the place, which is the place control. The Overview never repeats the title. Details, wording and before/after: Story captions. This replaces the title examples in the rules below (they keep their order and thresholds).
- Swipe between screens on a touch screen (owner: "It should swipe left to toggle"): swipe left = next screen (on
the cover, start), swipe right = previous. It needs a mostly sideways move (50px or more, 1.5 times more sideways than
vertical, within 0.8s), so scrolling up and down never turns a screen, and it is off inside maps, charts, the place
dialog and form fields (
useSwipeNavinweb_app/src/hooks/useSwipeNav.ts, shared with the topic stories). The git history shows no earlier sideways swipe in the story (the phone has moved by vertical scroll snap since #921), so this is new behaviour, not a restored handler. - The phone bottom bar has Back (owner: "On phone back button is missing"): a round 48px ← left of the progress, named "Back: [previous screen]", hidden on the cover and the first screen. Desktop keeps the inline Back.
- Close top right, Next bottom right, nothing else (decision 27 Nov 2026; owner: "I think a right Next green button at
bottom right always visible. The two buttons is confusing." and "This is confusing. We should have consistent Close in
top right, probably move change state elsewhere, have Next in bottom right and move Next story somewhere super subtle
so it doesn't cause this. Just make Close go back to home and pick next story."). This reverses #1199's removal of the
× and replaces its Start-only cover:
- Close (×) sits in the top-right corner of the story's sticky bar on every screen, 44px, named "Close story"
(
StoryClose.tsx, throughScopeBar'scloseprop; shared with the topic stories). It goes to the home page with the place kept and the same story card shown (/?state=&city=[&story=]#data-stories,storyCloseHref). Escape closes too, unless a dialog is open. - The bar drops ← Data stories and the Showing: [place] · National only row. The title's place control ("[Texas ▾] hates data centers.", or the subhead's when the title names a broader place) is the page's one place switcher.
- One green Next → is fixed at the bottom right of the window on every screen, desktop and phone (inside the
safe-area insets, 48px tall;
StoryNextButton.tsx, shared). On the cover it starts the story (landing on the Overview); on a screen it goes to the next screen. On the last screen it is a quiet outlined Done in the same place, which closes the story: the story ends there. The cover's Start / Next story pair is gone, the screens' inline Next buttons give way to it (Back, Skip and See every data center record stay) and the floating bar (FloatingNext) no longer shows on the story. The page leaves 96px under its last content on a wide screen (the phone bar's height on a phone), so it never covers anything; on a phone it sits at the right end of the bottom bar, which keeps Back and the progress dots. - Next story is gone from the cover and the screens; after the last screen there is at most a small plain-text link, "Another story: Guns". The home page is where readers pick the next story: the home story cards keep one primary Start the [topic] story → and no Next story link.
e2e/story-nav.check.mjs(1440x900) ande2e/story-flow.check.mjs(Pixel 7, iPhone 13, 1440x900) check Close at the same top-right box and Next at the same bottom-right box on the cover and every screen, Done on the last screen, and that Close and Escape go home with the place kept.
- Close (×) sits in the top-right corner of the story's sticky bar on every screen, 44px, named "Close story"
(
The title states the place's strongest statement (#993, #1125)
The story's title, and the caption on each Browse topics tile on the home page, is the strongest statement the record
supports for the topic and the place in scope (?state=&city=), with the place and topic still clickable on the story. The
caption picker (web_app/src/utils/storyCaption.ts) reads GET /api/topics/{topic}/caption-facts for exactly that scope
and tries, in order:
0. The place's conclusion, in the topic's words (#1200).
Once enough meetings where the public spoke have an AI reading (50 nationally, 10 in a state, 3 in one place), the
title states the majority position with the count: "In Ohio, most meetings that took up gun control favored gun
limits: 41 of 63 where the public spoke (AI reading).", "America hates data centers: the public was
against them in 283 of 341 meetings where it spoke (AI reading)." ("hates" only for data centers, Flock and license
plate readers, and pickleball), or "Ohio is split on …" when no side has more than half. A place too thin of its
own names the broader scope that has a conclusion. With too few readings the rules below apply, and the line under
the title says how many meetings have a reading so far ("20 of 7,623 meetings have an AI reading so far; …"). The
words come from utils/topicPositions.ts; see Story captions.
- "[America] hates [data centers]." when the public was read as confidently against in enough meetings (an AI
reading: at least 50 nationally, 10 in a state, 3 in one place) or the counted speakers pass the headline's gate
(against at least twice for, at least 10 speakers). "Hates" is only for data centers, Flock and license plate readers,
and pickleball; every other topic says plainly what the AI reading found, on the same counts: "In 81 meetings, the
public mostly opposed water fluoridation.", or in a place "In 12 meetings in Arizona, the public mostly opposed
short-term rentals." (gun control: "the public mostly opposed local gun-control measures"), and leads with "is divided" instead when that passes too
(#1182,
#1190). The basis line under it reads "In 283 meetings
across 32 states, the public mostly opposed data centers (AI reading of each meeting's transcript)." No title, legend
or hover card says "leaned": the owner found it unclear (#1190).
1a. The broader scope the map colours (#1182). When the
place's own AI reading is too thin for rule 1, the title says what the map beside it shows: the nearest broader scope
whose reading passes rule 1 (the state, then the country), named, with the place's own count after it. At
?state=AL&city=Tuscaloosathe home title reads "America hates data centers; Tuscaloosa, Alabama brought them up in 2 meetings." (Tuscaloosa has no confident public-against meeting and Alabama 6, under the state floor of 10), and the basis states the place's own reading truly: "Of Tuscaloosa, Alabama's 2 meetings with an AI reading, none had a public mostly opposed." (or, for Alabama, "Of Alabama's 71 meetings with an AI reading, 6 had a public mostly opposed, under the 10 a title of its own needs."). A topic without "hates" reads the same way: "Across America the public mostly opposed water fluoridation; Tuscaloosa, Alabama brought it up in 2 meetings." A state or national claim is never put under a city label without naming its scope. The broader readings come fromwideron caption-facts. - "[America] is divided on [data centers]." when officials sided against the public in at least 10 meetings (an AI reading; the basis says "In 23 meetings across 10 states, officials backed data centers while the public pushed back (AI reading).") or counted speakers split with both sides substantial.
- Volume with state differences. "[California] took up [short-term rentals] in 570 meetings, more than any other state.", or for a near tie "California and North Carolina took up guns most: 659 and 585 meetings."; "...the 2nd most of any state."; for a city "...more than any other place in Florida.". There is no per-resident claim: meeting coverage varies too much by state.
- Plain volume. "[Florida] took up [short-term rentals] in 47 meetings."
- The question, when nothing is on record. Guides with no meeting record (starting a nonprofit, insurance) always show their question, and their tile keeps its blurb.
The home story card uses the same title. No title or basis line ever states a zero.
The home story card fits one laptop screen (#1176). Its
title is at most about 46px (three or four lines beside the map; a two-clause title over 60 characters is set at about
36px), and right under the subhead and basis line come the topic-named Start the [data center] story for [place] →
(national: no place; storyStartLabel in storyCaption.ts, #1182)
and Next story: [title] → (the same nextStoryLink as the end of a story, carrying the place),
then the map hint, "Pick a state on the map to open its story." (it said "Showing Tuscaloosa, Alabama." first until
#1206: the title's place control now names the scope).
Every topic card has Next story, not only data centers.
The place in the home title is a place control (#1206;
owner, 26 Nov 2026: "This was better when there was a subtle drop down to choose national or state to change location in
title."). On every home story card (data centers and each topic story) the place in the title is a subtle inline control,
in the title's own font with a dotted teal underline and a small ▾: "[America ▾] hates data centers.",
"[Tuscaloosa, Alabama ▾] brought up …". In the broader-scope title (rule 1a) the control is the place the reader
chose, the second place: "America hates data centers; [Tuscaloosa, Alabama ▾] brought them up in 2 meetings." A
national title whose place is not the country (rule 3 naming the leading state, or "In 81 meetings, the public mostly
opposed …") is led by "In [the United States ▾], …", so the title always names the scope in effect and stays one
sentence. The words are the shared caption's (pickCaption / captionText), unchanged; splitCaptionAtPlace
(web_app/src/utils/captionPlace.ts, with tests) only says where the place sits in them. The control opens the story
pages' place dialog (PlaceControl, themeClassName="home-place", styles in web_app/src/styles/home-place.css): place
search, one-click The United States and All of [state], Use my location and a state list, as a bottom sheet
on a phone. A pick changes the home scope the way the header's place control does (usePlacePick): a city or a state
becomes the saved location and the home level follows it (City or State), so the header label, the title, the map
highlight and the Browse topics captions move together; The United States sets the home level to National and keeps
the saved place (as the level menu's National does), so the header still names your place. On a phone the control stays
inline; its tap target is at least 44px tall, drawn outside the text so the title's line height does not change.
The map is capped at 60% of the screen height so it never pushes the card below the fold. At 1366×768 the buttons and
the scope line are in view for the national and a city scope, and on a phone the buttons stack full width.
The same two buttons open every story (#1182). The
stories hub's button names its topic too. A topic story (/stories/guns) shows, under its title (now about 36px) and
lede, Start the gun control story →, which scrolls to the story's first section (the map), and Next story: [title] →,
carrying ?state=&city=. On the Data Center Story the subhead, basis line, both buttons and the numbered points are
the story's opening screen, under the sticky title and progress bar and in normal flow, so they scroll away and the
sticky bar shrinks to the title and progress on every later screen; Start goes to the Overview. The buttons share
web_app/src/styles/story-actions.css (.home-story-actions, .home-story-start, .home-story-next); on the story
pages the folio house style squares their corners. A topic card on the home page now draws its map from the AI reading
of meetings (the topic story's four-colour split) whenever a reading exists, so a lean title and the map beside it agree;
with no reading yet it stays the plain meetings map.
The data-center home card no longer shows the three numbered points, on any screen size (owner, 26 Nov 2026: first on
phones, then "remove the numbered bullets even in desktop too much real estate";
#1182). The card is the title, subhead, basis line, the
topic-named Start button and Next story, the scope line and the map, with the top of Browse topics in the first
laptop screen. Nothing else on the card states the points' counts; they stay on the Data Center Story's opening screen
(storyHeroPoints in heroPoints.ts). The home-only icon set (heroPointGlyphs.tsx) and the card's scoped positions
query went with them.
A small line under the title gives the numbers behind it, and says when coverage varies by state. Every number is a real
count for the scope; missing data falls through to the next rule. Thresholds and the reasons for them:
Story captions.
One title, with a scoped subhead and numbered points (#1134)
(Since #1234, 26 Nov 2026: the Overview no longer repeats the title; it leads with its own count of the record. See above.)
The home hero, the story header and the story's Overview screen state the same caption for the page's scope, from
pickCaption. On the Overview, any caption but the bare question (hates, divided, state comparison, meeting count) is
the headline and the meeting count moves to the line under it ("A data center came up in 71 meetings in Alabama. First,
where are they?"), so the Overview never makes a different or stronger claim than the title. Only when the title is the
question does the Overview fall back to its speaker-lean or meeting-count headline (#1115). The national "hates" basis
names the states the meetings span: "In 283 meetings across 32 states, Jev (an AI classifier) read the public as mostly
against data centers (AI reading)." (public_against_states on caption-facts). On the home hero at a state or city
scope, the numbered points wait for the place's own figures, so national figures never flash first. Hand counts in a basis always name their scope: "29
speakers counted by hand in 4 states: 18 against and 3 for." (speakers.states on caption-facts), never "nationwide".
Under the title, the hero and the story's opening both show:
- a subhead about the caption's scope only (
captionSubheadinstoryCaption.ts): the story's national line only with the national "hates" caption; for a place a sentence about that place (for example "At local meetings in Arizona, the public has mostly spoken against data centers."), never a national claim; - the basis line from the caption;
- three numbered points, on the story's opening screen only (the home card dropped them, #1182) (
storyHeroPointsinheroPoints.ts, fromGET /api/data-centers/positions): each uses the place's own figure where it is above 0 (scope_lean_totals, the AI-reading totals narrowed bystateand bycityas a substring of the meeting's government name: "6 meetings in Alabama where the public mostly opposed data centers (AI reading).") and otherwise the national one (lean_totals), starting "Nationally:". Point 1 is a short form, so it doesn't repeat the basis line word for word.
"Supported" and "mixed" readings are never evidence for a title: hand checks found them unreliable (served as
lean_totals.public_for_meetings / public_mixed_meetings for audit; see
Data center meeting lean).
No zero clause in a title (#1134)
A title or point never states a zero ("0 asked a question", "and none about operations jobs"). Zero clauses are dropped
and the rest are joined plainly, larger side first where that reads better: "Of 6 people who spoke on a data center item
at local meetings in Texas, 2 spoke for it and 1 against." Questions and speakers who took no side go in the line under
the title, only when there are any ("3 took no side."). With no one for or against, the title says only how many spoke.
Recorded votes and jobs claims follow the same rule ("Recorded votes: 5 for, in 1 decision."). The helper is
countClauses in web_app/src/utils/clauses.ts.
Statements along the way (#981)
The contested screens (Sites, Proposals, Promises, Concerns, Meetings, Agendas, Gatherings) each ask, under the headline, the statement their record is about, with Agree, Disagree and Not sure. A screen with no record for the place asks nothing. Answers are saved as before (/api/stance/responses, anonymous player id), and you can change one.
After you answer, Where you sit shows:
- Readers: one bar from Agree to Disagree with a You marker, for the most specific place that has reached the minimum sample (your community, then your state, then the country). Below it, the page says how many have answered and how many are needed, and shows no split.
- Speakers at meetings: shown only where agreeing clearly lines up with one side (for example "The jobs a data center brings are worth what it asks"). One bar from Spoke for through asked a question or took no side to Spoke against, from the real speaker counts for the place, with You on the side your answer lines up with, and the same in a sentence. Statements that don't lean (such as "Local officials discuss data centers enough") show no speaker bar, because mapping that answer onto speakers for or against data centers would be invented.
The separate Data Center Challenge is retired: /challenge/data-centers (and /play) open the story, keeping the place.
The minimum sample
A group's split is shown only when at least 30 people in that group have answered the statement (the API setting STANCE_MIN_SAMPLE). Below that the page says how many have answered so far and how many are needed, and never shows a split. Where you sit names the group its bar uses (your community, your state or the country), and the sentence under it says the same group.
Privacy
Your browser makes a random id and keeps it in local storage under on_stance_player_id. That is the only thing stored about you in the browser. The server stores your id, the statement, your answer and the state and community you chose. It does not store your IP address, name or email. The rate limiter keeps only a hash in memory.
Sources and limits
Every chart has a caption that names its source and what it counts. The numbers are real counts from the Open Navigator warehouse through the /api/data-centers/* endpoints. If a chart has no data, the screen says "No data available" and asks no statement.
- Meeting records are not a survey. The charts count what appears in local meeting records (transcripts, agendas) and in news and company announcements. They do not measure what the public thinks.
- Charts follow your place as far as their source allows. With a state they are for that state; with a community they are for that community wherever the source can narrow to one. Data center sites are listed by state, so that chart stays at the state, and its sentence and caption say so. With no state they are national, and the caption says which.
- Dot charts draw one dot per record, up to 500. When there are more records than dots, the caption says "Showing the most recent 500 of N" and the group percentages are shares of the dots drawn. A dot with a link opens the source record (a meeting recording at the moment, an agenda document, an article, a site's source page).
- Ranked bars show a count and a share of the counted total.
- Site data comes from Epoch AI and the US Data Center Registry (both CC BY 4.0), each site credited to its own source. Sites no longer listed by their source stay in the list.
- The dots are small. Use the arrow keys to move between them and the data table under each chart for the group counts.
An old link to ?screen=turn opens the last screen. An old link to ?screen=question opens Overview.
The question, after the record
The story does not open on its question. After the overview and the rest of the record, the last screen says "You've seen the record. Where do you stand now?" and asks the topic question, worded for the place. The answers are Yes, No and Pause for now; one line under them says a pause is a moratorium (no new approvals until the rules are settled).
There is no separate Where? screen any more (#1134): the place picker is in the title sentence, and the Overview shows the question worded for the place and your answer before reading, if you gave one. An old ?screen=scope link opens the Overview.
After you answer on the last screen it says whether your answer changed when a prior answer is on record ("You said No before. Now you say Pause for now.", "You said Yes both times.", or that you had no earlier answer). Then it shows how readers of the story answered for the country, your state and your community, as stacked bars: Yes in teal, No in amber, Pause for now in a neutral ink tone, each with its count and percentage written out and your own answer marked. Then it offers See every data center record.
- Answers are stored once per reader for the question (an optional earlier "before" if one exists, and "after" on the closing screen). Picking another answer replaces the stored one.
- An answer is stored with the place showing when you give it. Broadening back to the country changes nothing stored.
- A group with fewer than 30 answers shows "Not enough answers yet (N so far, 30 needed)" and no bars, exactly as the challenge does. Nothing is ever seeded: with no answers every group says so.
- The results are how readers of this story answered. It is not a poll, and the page says so next to the results.
- Nothing on these screens implies a right answer.
- If the question cannot be loaded the screen says so and the story can still be read.
The question and its answers come from the topic's pack (question in api/stance_packs/data_centers.json), so the wording and the option ids live in one place. The pure logic (the wording for a place, whether the answer changed, the bar maths for any number of options) is in web_app/src/utils/storyQuestion.ts, with its tests. The screens are QuestionScreen, ScopeScreen and VerdictScreen in web_app/src/components/stance/StoryVoteScreens.tsx, and the bars are ChoiceBars.tsx.
How the screens move
The engine is the one the challenge uses (web_app/src/components/stance/useActs.ts). The story uses two of its modes (data-mode on the page), and a third way of showing them under reduced motion:
| Mode | When | What happens |
|---|---|---|
pinned | 768 pixels or wider, motion allowed | Each screen is pinned and scrubbed by the scroll: its word card slides in, the chart builds, the headline's words rise out of their masks one after another, and the screen dims and lifts as it leaves. The scroll glides to the next screen and one gesture never passes more than one. |
snap | Narrower than 768 pixels, motion allowed | Each screen is exactly one frame tall (100svh less the two bars at the top and the story bar at the bottom) and the page uses the browser's own scroll snap with scroll-snap-stop: always, so a swipe lands on the next screen and stops there. As a screen arrives its headline's words rise out of their masks, its blocks rise in one after another and its chart draws; as it leaves they fade and lift; coming back plays the entrance again. |
snap with data-fade | prefers-reduced-motion on, at any width | One screen at a time, as on a phone. A screen cross-fades in when it arrives and its dots appear one after another. Only opacity changes: nothing slides, scales or drifts, and nothing loops. Moving on is a jump, not a glide. |
Reduced motion is not only a setting people choose. On Android, battery saver and "Remove animations" both turn it on, so a phone in battery saver gets this version. Before #930 that version was a plain stacked page with nothing animated, which read as a page that was not working. The challenge still uses the plain stacked mode under reduced motion.
A phone gets scroll snap, not the pinned engine. Pinning with ScrollTrigger and Lenis depends on the page's own scroll position being rewritten every frame, which fights a phone's touch momentum and the address bar changing the window height. Scroll snap is the browser's own mechanism, so momentum and the address bar are its business, and the screens are sized in svh so they do not jump when the bar hides. A screen whose content cannot fit scrolls inside its own block, never the page inside a screen: you scroll to the bottom of that block first, and the next swipe goes on. With a mouse wheel or trackpad on a narrow window, one wheel gesture moves exactly one screen.
The story's motion is calm: rises, fades and a steady filled button, with no bounce. The challenge shares the same engine and layout and adds its own livelier touches (see its page).
The state drill-down transition (#1195)
On the Overview, picking a state on the national box map (a click, a tap, or the Show one state select) no longer swaps the map in one jump (#1195). The state's boxes lift (they grow a little and cast a shadow), then fly from their national places and re-form into the state's county box map, each easing in (exponential ease-out) to one county box, centre first with a small stagger; the other states' boxes fade and drift outward. Colours cross-fade from the national teal to the county colours as the boxes land. It takes about a second. United States plays the same motion backwards. Opening a state's story from the home map plays it on arrival, from the national layout: the home map's link carries a one-time navigation flag (not a URL parameter), cleared from the history entry once used, so a refresh or Back does not replay it.
Nothing is invented. The state has far fewer boxes on the national grid than on its county grid, so each county box flies from the national box nearest it on the map: one of them carries that box, the others spawn from it small and clear and grow in, and a national box with no county box under it fades where it stands. Every box that lands is one of the county map's real boxes, at its real place, size, colour and opacity (read from the county map itself), and when it is over the real map shows again.
It is drawn on a canvas over the map (MapDrill.tsx); the map stays in the page underneath, transparent for that second, so focus never moves, nothing extra is announced, and the map's keyboard navigation and data table work as before. A click or key press during it jumps to the end. With prefers-reduced-motion on there is no animation: the map swaps at once, as before. While the county counts are still loading, the state's boxes stay lifted on the national map and the flight starts when the county map is ready (it gives up after ten seconds and just shows the map). On a phone the county map is taller than the national one, so part of the flight lands below the fold. The layout math is the pure helper web_app/src/utils/boxMorph.ts, with tests. Design note: State drill-down box transition.
Progress, and the next step
A strip of segments along the lower edge of the top bar has one segment per screen. The one in view fills, the ones behind it stay filled, and the words beside it say what is left ("Seven to go", "One to go", "Last one").
(Data Center Story since #1234, 27 Nov 2026: the fixed bottom-right Next and the top-right Close replace this bar; see above.) Every screen has one primary action: the three answers on the question and the last screen (then See every data center record once you have answered), and Next → everywhere else. On a wide screen, when that control is not in view, because it is below the fold or inside a block that scrolls, a bar pinned to the bottom of the window shows the same action, with a quieter Back beside it from the second screen on. It presses the real control, so there is one behaviour and one name. The bar is left out of the tab order and hidden from screen readers, because the real control is still in the page for them. The bar is FloatingNext.tsx; a screen marks its primary action with data-primary. On the hub the same bar carries Start whenever the card's own button has scrolled out of view, for example when you are reading the counts.
Story navigation: one exit, one progress indicator, the next story (#1102, #1192)
(Superseded in part by #1234, 27 Nov 2026: Close (×) is back top right as the one exit, "← Data stories" and the cover's Start / Next story pair are gone, and one fixed Next sits bottom right. See "Close top right, Next bottom right, nothing else" above.)
Simplified 26 Nov 2026 (#1192). A live-site audit counted six navigation devices on the Data Center Story's opening screen (Start, a floating Next, a numbered 1–11 rail, the segmented progress bar plus a thin fill bar, "← Data stories" and an unlabelled ×), and on a phone the progress showed twice (top bar and bottom bar). Now:
- On the cover, Start is the only forward action. The floating Next (wide screens) and the bottom bar's Next (phones) are hidden while the cover's Start the [topic] story → button is in view, and appear from the Overview on. (The phone bar's Next on the cover also skipped the Overview, moving on from screen 0 before it was seen.) Next story: [title] → stays beside Start, both in the first screen at 1366×768, 1440×900 and on an iPhone 13.
- One progress indicator per device. Wide screens keep the segmented bar under the title and drop the numbered rail
and the thin fill bar. The bar was kept rather than the rail because it sits in the sticky title bar the reader already
looks at, it says what is left in words ("Ten to go"), and the rail took a 56px gutter from every screen and floated
away from the title. Its segments are now buttons: each is named "N of M: [screen word]" ("3 of 11: Sites"), the
current one is
aria-current="step", and a click goes to that screen (ProgressPipswithonJump, anavnamed "Story screens"). Phones keep only the bottom bar's dots and "N to go"; the top bar shows no progress there. - One exit. The × ("Close story") is gone from the Data Center Story and the topic stories. ← Data stories (to
/stories, keeping the place) is the single way out, at least 44px tall on a phone; the topic stories gained it. - Topic stories' basis line names the runner-up as "Then Ohio, 399 meetings." instead of "Next: Ohio, …", which read
like a navigation link (
storyCaption.ts), and "Counted from local meeting recordings and transcripts…" shows once in the first screen (the separate line is left out when the basis already says it). - The numbered points stay on the cover. They sit under the two buttons, so they never push Start or Next story out of the first screen (Start and Next story end at about 412px of 768 on a 1366×768 laptop and about 435px of 664 on an iPhone 13).
- No map beside the cover text. The Overview screen, one Start away, is that same national map (or the state's county map); a second interactive copy on the cover would repeat the figure and add a second place picker, the opposite of this simplification. The cover keeps its empty right side on wide screens.
web_app/e2e/story-nav.check.mjs now checks the cover first (no floating Next beside Start, one progress indicator, no
×), then presses Start and checks that Next and Back line up on every screen.
The story shows how far you are and where it goes next (#1102). None of this changes a screen or a map: every control below moves with the story's own screen navigation (the same goTo as Next → and the keys), so landing on a screen from the address (?screen=) works as before.
| Where | What | Behaviour |
|---|---|---|
| Wide screens (768 pixels or wider) | The segmented bar along the lower edge of the sticky title bar, one segment per screen, with "N to go" | The screen in view and those behind it are filled. Each segment is a button named "N of M: [screen word]"; the current one is aria-current="step"; clicking goes to that screen. It is a nav named "Story screens" and the story's only progress indicator on a wide screen (#1192 removed the numbered dots on the left edge and the thin fill bar along the top). |
| After the last screen, every width | A full-width Next story card | It fades in as it comes into view (opacity and a short rise; opacity only under reduced motion). It reads "Next story: Short-term rentals →" while there is a following live story, and "All data stories →" (to /stories) at the end of the list; the list does not wrap. The link keeps the place (?state=&city=). Scrolling on past the last screen reaches it: the scroll no longer pulls back onto the last screen once you are past it. |
| Phones (narrower than 768 pixels) | A bar fixed to the bottom of the window, above the safe area | The phone's only progress indicator: compact progress dots with "N to go", and one prominent Next (hidden on the cover, where Start leads on): it goes to the next screen, and on the last screen it becomes Next story (or All stories). Each screen is shortened by the bar's height and the page has bottom padding of the same height, so the bar never covers a screen's controls. On phones it replaces the floating bar and each screen's own Next → (Back and the answers stay in the screen). |
The order of live stories is the home page's: the stories registry (STORIES in web_app/src/utils/dataStory.ts), then the topic stories (/stories/short-term-rentals). Stories still "coming soon" are never linked. The pure helpers (next live story, the progress share, which dot is current) are in web_app/src/utils/storyNav.ts, with tests; the components are in web_app/src/components/stance/StoryProgress.tsx (bottom bar, next-story card) and ProgressPips.tsx (the wide-screen segments).
Moving between screens
Every screen of the record ends with a quieter Back at the left and the primary Next → at the right, the same kind of button as the hub's Start the story (#964). The button shows only "Next": the next screen's name ("Next: Who spoke up") is its accessible name and tooltip, because as the visible label it read like a heading and confused readers. Every screen uses the one nav row (ScreenNav.tsx, #1138), including the question and last screens. On a wide screen the row is pinned to the bottom of the left column, so Back and Next → sit at the same place and size on every screen whatever the text or chart height. The first screen has no Back and keeps Next in that spot; on the last screen See every data center record takes Next's spot (same right edge, top and height) once you have answered. Because the inline row is always in view there, the floating bar does not appear beside it. Phones keep the row in the flow, with the bottom bar as before. web_app/e2e/story-nav.check.mjs checks this at 1440×900 (run it against a running app: node e2e/story-nav.check.mjs --base http://localhost:5173). These keys also move: PageDown, Space, down arrow and right arrow go on; PageUp, Shift+Space, up arrow and left arrow go back; Home and End jump to the first and last screen. They do nothing while focus is in a field, a select, a table or a figure that scrolls on its own. Touch scrolling is never taken over (see "How the screens move" for the wheel). The address follows the screen in view (?screen=sites, replacing the entry), so a shared link opens on it.
The place in scope
The page reads ?state=AL&city=Tuscaloosa (a city only with a state). The sentence blank already names the place (the United States, a state, or a city). Under a state or city the bar also says Showing: that place, with one-click All of [state] and National only; under the United States it does not repeat Showing: National (#959). The label, the queries and the charts change together, and the place is carried to the hub and to every link at the end of the story. A screen with nothing in scope says "No data available for this place." and offers to show the state or the national data. Data center sites have no city in their source, so with a city chosen the sites screen shows the state and says so in its sentence and caption.
The voice
Headlines and context lines come from pure functions in web_app/src/utils/dataStory.ts, tested in dataStory.test.ts.
- Use counts, rankings, shares, contrasts and change over time. Name the scope in the sentence.
- A share or a ranking is stated only from whole-scope counts the endpoint returned. A list that is capped says "most recent N" and never gives a share or a trend.
- A sentence that ends in a question leads to the next screen only when the next screen answers it.
- No sentence describes how the page is built ("one screen at a time", "each dot opens its source"). The reader gets what the record says and what comes next. The source of a "For context" screen stays on its card.
- No causes ("because", "due to", "driven by"), no forecasts, no judgments (good, bad, worrying, best, worst, should, problem, crisis) and no claim about what people in general think. The one exception is the story's question itself, which asks "Should ...?" and is not a finding. The records are meeting records, not a survey, and a concern count is a count of passages, not of people.
- A header never starts with a number, so a sentence that would start with a count starts with a word ("Of 26 data center sites in Alabama, 14 are operating, ...").
- Missing data gives a neutral description of the chart, never a filled-in number.
Colours
The hub, the story and the challenge use the Open Navigator house theme from web_app/src/utils/folioThemes.ts (the one the Data explorer Matrix map defaults to), applied as custom properties on the page wrapper through web_app/src/utils/houseTheme.ts. The challenge's reveal bars are Agree in the teal accent, Disagree in amber and Not sure in neutral, each with a text label and count so colour is never the only cue. Dot groups use the theme's segment colours in order.
What a chart shows
The charts are the challenge's (ChartPanel). The listed-record charts (meeting passages, agendas, decisions, jobs claims) are drawn as a unit matrix of squares (#1140, see the Meetings screen above); the others are dot charts, and one dot is one real record: a speaker, a meeting, an agenda, a site, a project, a jobs claim, a mention of a concern. Dots are grouped under a heading with the group's real count and share. They appear one after another when their screen arrives. Each chart has a FIG. caption with source and scope, an honest note when the list is capped, and Show data table. A long figure scrolls inside its own frame so the headline stays in view.
There are two kinds of dot chart, and the caption says which:
- Listed records (sites, projects, jobs claims, meeting passages, agendas, company-hosted meetings). The endpoint returns the records, up to 500, and each dot opens its source. When the endpoint also counts the whole scope, the heading states that count and its share and says how many are drawn ("Operating · 118 records · 60% · showing 24"). When it does not count per group (projects by status), the heading says only how many are drawn ("Planned · 5 shown") and gives no share. A share is never worked out from a capped list.
- Counts (who spoke up, concerns, meetings in the opener). The endpoint returns totals, not records. Up to 240 the chart draws one dot per record. Above that one dot stands for 2, 5, 10, 20, 50... records, the smallest that fits, and the caption says so ("Each dot is 10 meetings; the last dot of a group is what is left over."). The last dot of a group stands for the remainder and is drawn smaller, so the dots always add up to the real count. The arithmetic is
dotRatioandcountDotsinweb_app/src/utils/stanceGame.ts, with tests.
Meetings screen: trend line, milestone track and period dumbbell (#1140)
The Meetings screen (chart meeting-mentions) opens with three figures, all for the place in scope:
- Trend line. Distinct meetings per year whose transcript discussed the topic, with the quoted passages in the tooltip. A toggle switches to the topic's share of recorded meetings: meetings on the topic divided by every recorded (transcribed) meeting in the same place and year (
recorded_meeting_year). The line carries the note "Meetings in our record by year; recording coverage grew sharply in 2025–26, so the rise partly reflects coverage." A year with nothing recorded, or with no meetings on the topic and fewer than 25 recorded meetings, is a gap in the line, never a zero; the note names the gap years. A year with far fewer recorded meetings than the years around it and than the place's typical year (nationally, 2024: 932 recorded against about 13,000 a year around it) is thin (#1207): its count is a hole in our recordings, not a drop. On the count line it is a hollow point on a dashed line and the note says "Only 932 meetings were recorded in 2024, so that year's count is not comparable." When a year is thin the chart opens on the share of recorded meetings, which is still comparable, and the Meetings toggle stays available. The year axis prints only the labels that fit the chart's width: the first and last year always, and in between every year, every 2nd, every 5th or every 10th, whichever is the smallest step that keeps the labels apart. On a phone, 2016–2026 reads 2016, 2018 … 2026. Labels are never rotated. The period dumbbell's % axis follows the same rule (#1222,web_app/src/utils/axisTicks.ts). - Milestone track. Under the line, on the same year scale, one lane per kind of event: meetings where officials approved, denied, tabled or adopted a moratorium (an AI reading of the transcript, labelled as such on the card), and state bills enacted once
topic_legislation_billis served. Click a square, or select one and use the arrow keys, Home and End; the card below gives the date, place, what happened and a link to the meeting or bill. Under 560px wide the track becomes a tap list, newest first. - Period dumbbell. Last year (hollow circle) against this year (filled dot) for each state in national scope, or each town in state scope, with a ±pp label and sort buttons (by this year, by change, by last year). Rows with too few recorded meetings are left out and the note says how many. Moved earlier (26 Nov 2026, owner: "earlier in every story", #1192): in the Data Center Story it is now on the Overview screen, the first screen after the cover, right under the overview map (the dot map, or the state's county map), and it is no longer drawn on the Meetings screen, so it shows once. In a city scope the Overview says the comparison is drawn by state or by town within a state and points to All of [state], instead of drawing nothing. The chart never disappears silently: while loading it says so, a failed request says "could not be loaded right now", and a scope with no per-year counts of recorded meetings (
recorded_meeting_yearnot loaded, #1194) or no rows at all reads "No comparison to draw for [scope] yet: either no meetings on the topic are on record for [year] or [year], or the yearly counts of recorded meetings per state have not been loaded."
Every other topic story (/stories/<topic>, for example /stories/water-fluoridation) shows the same trend line, milestone track and period dumbbell under its map, in a Meetings over time section that follows the page's state filter. That section sits directly under the state map, above the companies, meetings and decisions lists, so it is the second thing a reader sees (checked for #1192; it already sat there). Topics other than data centers count meetings from topic_transcript_link (no passage counts) and read their milestones from topic_meeting_lean.
Below them, the passages are a unit matrix: one square per passage, regrouped by a toggle (All, By year, By state or By town, By outcome, By who spoke). The outcome and public-lean groupings are an AI reading and say so. The decisions, agenda and jobs-claim charts use the same matrix with their own grouping first. The design and thresholds: Story charts: timeline, dumbbell and unit matrix.
The headline names the year with the most meetings when the passage list is complete ("Data centers came up in 71 meetings in Texas, most of them in 2026 (278 quoted passages)."); when years tie or the list is capped it keeps the plain count.
Add a story
- Add the screens to
web_app/src/utils/dataStory.ts(a list likeDATA_CENTER_STORY: anid, a short word, the dataset key and the kind; start with aquestionand ascopescreen and end with averdictscreen) and a function per record screen that returns its headline and context from the endpoint's response. Add them toscreenTextand cover them indataStory.test.ts, including the empty and failed cases and the banned wording. - If the story needs a dataset the charts do not have yet, add it to
chartSpecinweb_app/src/utils/stanceGame.tsand tofetchChartDatainweb_app/src/api/stance.ts, with its test. - Register the story in
STORIESinweb_app/src/pages/DataStory.tsxand add its card to the hub inweb_app/src/pages/DataStories.tsx. - Add the pack (
api/stance_packs/<pack>.json) with the story'squestionand its statements. Give each statement the story screen that asks it (story_screen) and, only when agreeing clearly lines up with one side of the meeting speakers,speaker_lean(for/against); see Story statements and where you sit. - Update this page.
Moving to the next screen
When you stop on a screen that has a next step, the page draws your eye to it. After about six seconds with no scroll, tap or key, the main button gets a small cue: its arrow slides a few pixels and back and a light passes across it. If the button is not on screen, the bar at the bottom of the window is showing it, and the cue plays there. On a phone the story's own bottom bar (#1102) always shows Next, so the cue is not drawn on a phone story. This is the same on the hub (Start), in the story (Next →) and in the challenge.
- The cue repeats about every eight seconds, at most three times, then it rests.
- Anything you do (scroll, tap, type) starts the wait and the count again. So does arriving on a new screen, and there the wait begins only after the screen has finished arriving.
- It never plays while the place picker is open, while a data table is open, while you are typing in a field or selecting text, or while the tab is in the background.
- It is never shown on a group of answers: no answer is pushed.
- Focus does not move, nothing is announced to a screen reader, no control is added and nothing shifts.
- With reduced motion nothing moves: an outline inside the button shows and goes, once per cue.
- The hub cue is visual only. On the story, with Sound on, the first idle nudge also plays one soft page-turn cue, and advancing to a new screen plays the same soft cue (after your first click or key unlocks Web Audio). Answering still plays the lock cue. The challenge is louder: its arrow hops twice and the light is brighter, and its first idle cue plays a soft sound when sound is on (#966).
| Timing | Value | Constant |
|---|---|---|
| Stillness before the first cue | 6 seconds | NUDGE_IDLE_MS |
| Between cues | 8 seconds | NUDGE_REPEAT_MS |
| Cues before it rests | 3 | NUDGE_MAX |
| One cue | 1.4 seconds | NUDGE_CYCLE_MS |
| A screen's arrival, before the wait starts | 1.2 seconds | NUDGE_ENTRANCE_MS |
The timing is a pure function, shouldNudge in web_app/src/utils/idleNudge.ts, with tests. The hook that runs it is web_app/src/hooks/useIdleNudge.ts: it adds the class is-nudging to the button or the bar for one cue, and stance.css draws it. This replaced the story's separate "Scroll" / "Swipe up" cue, so there is one cue at a time. (The Data explorer's Matrix page still uses that older cue, ScrollCue.tsx; it has no floating bar.)