Skip to content

Chehan branch#5

Merged
chehanw merged 4 commits intomainfrom
Chehan-branch
Jan 29, 2026
Merged

Chehan branch#5
chehanw merged 4 commits intomainfrom
Chehan-branch

Conversation

@chehanw
Copy link
Collaborator

@chehanw chehanw commented Jan 29, 2026

Incremental onboarding fixes and guided intake enhancements

♻️ Current situation & Problem

This PR introduces incremental fixes and feature additions to the onboarding flow identified during development and testing.

Specifically:

  • Scrollable elements in the consent form were difficult to dismiss and required scrolling back to the top.
  • The on-screen keyboard obscured certain text inputs (e.g. name fields) in the consent form.
  • TypeScript build errors were causing test failures, particularly related to ChoiceQuestion.
  • The onboarding flow required a guided intake step to better support eligibility checks and downstream data collection.

These issues impacted onboarding usability and caused CI instability.


⚙️ Release Notes

Changes

  • Fixed scroll and dismissal behavior for long consent form dropdowns and text fields.
  • Improved consent form layout to prevent keyboard overlap with inputs.
  • Resolved TypeScript build errors in tests and ChoiceQuestion.
  • Added chatbot-based guided intake using the OpenAI API.
  • Updated consent form UI and logic to integrate with the guided intake flow.

Breaking changes

  • None.

📚 Documentation

  • Updated onboarding implementation to reflect the guided intake flow.
  • Added inline documentation for chatbot logic and OpenAI API usage.
  • Consent form UI changes follow existing Spezi component and layout patterns.
  • No changes to public interfaces or external APIs.

Documentation aligns with the Spezi Documentation Guide.


✅ Testing

  • Fixed TypeScript errors to restore passing builds in CI.
  • Existing tests pass without requiring updates.
  • UI behavior changes (scrolling, keyboard avoidance) were validated manually in the simulator.
  • Guided intake chatbot functionality was tested manually in development with a valid API key.

📝 Code of Conduct & Contributing Guidelines

By submitting this pull request, I agree to follow the Code of Conduct and Contributing Guidelines:

  • I agree to follow the Code of Conduct and Contributing Guidelines

chehanw and others added 4 commits January 28, 2026 15:06
Add tsconfig.json for test directory so VS Code resolves Jest and Node
types correctly. Remove invalid delayPressIn prop from Pressable in
ChoiceQuestion.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@chehanw chehanw merged commit d083ec6 into main Jan 29, 2026
5 checks passed
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.

1 participant