Skip to content

fix(designer): normalize custom study sequence input#823

Open
mohiuddinshahrukh wants to merge 1 commit into
hpi-studyu:devfrom
mohiuddinshahrukh:codex/fix-651-custom-sequence
Open

fix(designer): normalize custom study sequence input#823
mohiuddinshahrukh wants to merge 1 commit into
hpi-studyu:devfrom
mohiuddinshahrukh:codex/fix-651-custom-sequence

Conversation

@mohiuddinshahrukh
Copy link
Copy Markdown
Collaborator

Fixes #651

Summary

  • Update the schedule form immediately when sequencing changes, so the custom sequence field appears and disappears without needing a refresh.
  • Normalize custom sequences by stripping whitespace and uppercasing A/B values before saving.
  • Reject characters outside A/B and cover the formatter/form-data behavior with focused tests.

Tested

  • dart format on the touched Designer files and new tests
  • flutter test test\utils\input_formatter_test.dart test\features\design\interventions\study_schedule_form_data_test.dart
  • Frontend testing: custom sequence input strips spaces, uppercases letters, rejects non-A/B input, and hides immediately when switching away from Custom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

switching from the custom sequence when its empty does not update the state

1 participant