Skip to content

[TAN-7945] Show info box to explain when text/other responses are automatically summarised#14097

Open
jinjagit wants to merge 7 commits into
masterfrom
TAN-7945-show-info-on-when-other-responses-automatically-summarised
Open

[TAN-7945] Show info box to explain when text/other responses are automatically summarised#14097
jinjagit wants to merge 7 commits into
masterfrom
TAN-7945-show-info-on-when-other-responses-automatically-summarised

Conversation

@jinjagit

@jinjagit jinjagit commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

DO NOT MERGE! Needs translations (if approved) + awaiting decision on best approach (this may not be it)

  • Added an info box in survey results (phase Insights tab) telling admins an AI summary will auto‑generate once a question has more than 10 responses — shown below threshold, no summary yet, across all three textual cases (open text, select/multiselect "other" write‑ins, sentiment follow‑ups).
  • Tied the analysis‑creation threshold to one shared constant (AUTO_ANALYSIS_MIN_RESPONSES) so the auto‑create guard and the info box can't drift.
    • Added tests (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):
Screenshot 2026-06-16 at 10 37 34

When <= 10 responses to a text q exist (& no summary yet generated):
Screenshot 2026-06-16 at 11 21 52

When <= 10 responses to sentiment scale f/up q exist (& no summary yet generated):
Screenshot 2026-06-16 at 11 22 05

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

  • [TAN-7945] Show info box to explain when text/other responses are automatically summarised

@jinjagit jinjagit self-assigned this Jun 16, 2026
@notion-workspace

Copy link
Copy Markdown

@cl-dev-bot

cl-dev-bot commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator
Messages
📖 Changelog provided 🎉
📖 Notion issue: TAN-7945
📖

Run the e2e tests

📖 Check translation progress

Generated by 🚫 dangerJS against 8b6cf16

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).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disambiguating two magic numbers that happen to be the same value.

@jinjagit jinjagit requested review from IvaKop and removed request for IvaKop June 16, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants