[TAN-7945] Show info box to explain when text/other responses are automatically summarised#14097
Open
jinjagit wants to merge 7 commits into
Open
Conversation
Collaborator
|
jinjagit
commented
Jun 16, 2026
Comment on lines
+66
to
+71
| // Minimum number of inputs (total submissions) before the default AI | ||
| // summary is generated automatically. Distinct from the response-count | ||
| // threshold that gates creating the analysis itself | ||
| // (AUTO_ANALYSIS_MIN_RESPONSES in ./index): this guards spending an LLM | ||
| // call, and applies regardless of how the analysis was created (including | ||
| // manually). |
Contributor
Author
There was a problem hiding this comment.
Disambiguating two magic numbers that happen to be the same value.
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.
DO NOT MERGE! Needs translations (if approved) + awaiting decision on best approach (this may not be it)
AUTO_ANALYSIS_MIN_RESPONSES) so the auto‑create guard and the info box can't drift.Analysis.test.tsx,AnalysisInsights.test.tsx) pinning both the auto‑analysis and auto‑summary thresholds and the info‑box visibility.When <= 10 responses to an 'other' field exist (& no summary yet generated):

When <= 10 responses to a text q exist (& no summary yet generated):

When <= 10 responses to sentiment scale f/up q exist (& no summary yet generated):

Rejected solution version
I considered just adding one info box at top of Insights, to be shown if any eligible textual response fields exist and no summary yet created for any, etc.
Rejected on the grounds that any such textual field could be along way down the page, and thus the info is not clearly available to explain the lack of a summary.
Changelog
Added