Skip to content

Add reset button to three forms and require two follow-up answers - #57

Open
gdevenyi wants to merge 1 commit into
mainfrom
reset-button-and-required-followups
Open

gdevenyi wants to merge 1 commit into
mainfrom
reset-button-and-required-followups

Conversation

@gdevenyi

Copy link
Copy Markdown
Contributor

Changes

Form Edition Change
ATHENS_INSOMNIA_SCALE 1 → 2 resetButton: true
TEN_ITEM_PERSONALITY_INVENTORY 2 → 3 resetButton: true
STARKSTEIN_APATHY_SCALE 2 → 3 resetButton: true
GAD_7 3 → 4 difficultyCoping is required when it shows (one or more items above 0)
OLDER_AMERICANS_RESOURCES_AND_SERVICES 2 → 3 someoneTakeCareOfYouAsLongAsYouNeed is required when it shows (answer "yes")

Why

  • The reset button was requested for these three forms in DouglasNeuroInformatics/CPPQ#131.
  • The two follow-up questions could be left blank when they showed. PHQ_9 already makes its equivalent question mandatory. This change uses the same rule and the same message.

Notes for the reviewer

  • The reset button clears the page immediately. It has no confirmation step and no undo.
  • pnpm lint passes. I did not run the forms in a browser. Please use the preview links to check them.
  • CPP_SERIES in CPPQ pins these five forms. A CPPQ pull request will bump the pins after this one merges.

🤖 Generated with Claude Code

https://claude.ai/code/session_01W53iUQZ3TB7KmUkmvJ6iyN

- ATHENS_INSOMNIA_SCALE (1 -> 2), TEN_ITEM_PERSONALITY_INVENTORY (2 -> 3)
  and STARKSTEIN_APATHY_SCALE (2 -> 3): set resetButton, as requested in
  DouglasNeuroInformatics/CPPQ#131.
- GAD_7 (3 -> 4): difficultyCoping is required when it shows.
- OLDER_AMERICANS_RESOURCES_AND_SERVICES (2 -> 3):
  someoneTakeCareOfYouAsLongAsYouNeed is required when it shows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W53iUQZ3TB7KmUkmvJ6iyN
Copilot AI balanced review requested due to automatic review settings November 10, 2026 03:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

Copy link
Copy Markdown

Form previews

Open the forms changed in this pull request in the Open Data Capture playground:

Generated for 8e521bc

@gdevenyi

Copy link
Copy Markdown
Contributor Author

@thomasbeaudry please review. GitHub does not let me add you as a reviewer on this repo, so this comment replaces the review request.

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