Summarize number form questions on the results page - #2477
Merged
Conversation
maebeale
changed the base branch from
maebeale/annual-evaluation-form-seed
to
main
September 1, 2026 15:01
maebeale
force-pushed
the
maebeale/form-results-numeric-stats
branch
from
September 1, 2026 15:02
0c8601e to
5ac4379
Compare
maebeale
marked this pull request as ready for review
September 1, 2026 15:03
Number-typed fields fell through to the free-text branch, so the results page listed every raw figure instead of rolling them up. Aggregate them into average / total / responses so a count question like "individuals served" reads as a report. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
maebeale
force-pushed
the
maebeale/form-results-numeric-stats
branch
from
September 1, 2026 16:43
5ac4379 to
7056727
Compare
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.
🤖 suggested review level: 3 Read 📖 one new aggregator report kind + a stat card; contained, well-tested
The form results page now rolls up number-typed questions into average / total / responses, instead of listing every raw figure as free text. So a count question like "individuals served" reads as a report (e.g. "average 54, total 20,287 across 379 responses").
What / why
:numberreport kind inFormResponseAggregatorfornumber_integer/number_decimalfields — before, both fell through to the free-text branch and rendered as raw-number lists.forms/_numeric_cardstat card showing Average / Total / Responses (+ range).Notes for reviewer
number_decimalfields; integer/whole-number fields display without decimals.Anything else to add?
Follow-up once the slider type (#2462) merges: a small change wires sliders into this same numeric rollup and adds percentage framing (average with a
%+ a 0–100 fill bar). Keeping that out of here so this PR stands alone onmain.