Skip to content

Config ts cs#5347

Merged
alexwillingham merged 15 commits intorelease/1.22from
config-Ts-Cs
Dec 3, 2025
Merged

Config ts cs#5347
alexwillingham merged 15 commits intorelease/1.22from
config-Ts-Cs

Conversation

@imbenham
Copy link
Contributor

@imbenham imbenham commented Dec 2, 2025

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a configurable legal text system for terms and conditions and privacy policy links across the intake application. The changes centralize legal text configuration and replace hardcoded legal text with a dynamic component that reads from configuration.

  • Adds new configuration types and schemas for legal text composition with DisplayText and Link nodes
  • Implements a TermsAndConditions component that renders legal text based on page-specific configuration
  • Updates review pages to use the new configurable component instead of hardcoded legal text

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/utils/lib/configuration/types.ts Defines Zod schemas for DisplayText and Link configuration nodes
packages/utils/lib/configuration/legal/index.ts Implements legal configuration with defaults, overrides, and helper functions to retrieve legal text by location
packages/utils/lib/configuration/index.ts Exports the new legal configuration module
packages/utils/.ottehr_config/legal/index.ts Creates empty legal overrides configuration file
packages/utils/.ottehr_config/index.ts Exports the legal overrides
apps/intake/src/components/TermsAndConditions.tsx New component that dynamically renders legal text based on configuration
apps/intake/src/pages/Review.tsx Replaces hardcoded legal text with TermsAndConditions component
apps/intake/src/pages/ReviewPaperwork.tsx Replaces hardcoded legal text with TermsAndConditions component
apps/intake/tests/component/ReviewPage.test.tsx Updates tests to work with dynamic configuration
apps/intake/tests/specs/telemed/PaperworkTelemedReviewScreen.spec.ts Updates E2E tests to conditionally check for legal links based on configuration
apps/intake/tests/specs/in-person/PaperworkReviewScreen.spec.ts Updates E2E tests to conditionally check for legal links based on configuration
apps/intake/tests/specs/in-person/CheckReviewAndSubmitScreen.spec.ts Updates E2E tests to conditionally check for legal links based on configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI commented Dec 3, 2025

@imbenham I've opened a new pull request, #5349, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 6 commits December 3, 2025 00:17
…fined access

Co-authored-by: imbenham <5749511+imbenham@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: imbenham <isaac.benham@gmail.com>
Fix null check in getLegalCompositionForLocation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: imbenham <isaac.benham@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: imbenham <isaac.benham@gmail.com>
Copy link
Contributor

Copilot AI commented Dec 3, 2025

@imbenham I've opened a new pull request, #5350, to work on those changes. Once the pull request is ready, I'll request review from you.

@imbenham imbenham marked this pull request as draft December 3, 2025 00:20
Copy link
Contributor

Copilot AI commented Dec 3, 2025

@imbenham I've opened a new pull request, #5351, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits December 3, 2025 00:25
…t in tests

Co-authored-by: imbenham <5749511+imbenham@users.noreply.github.com>
[WIP] WIP to address review feedback on 'Config ts cs' pull request
@imbenham imbenham marked this pull request as ready for review December 3, 2025 00:29
@alexwillingham alexwillingham merged commit 4e53faf into release/1.22 Dec 3, 2025
8 of 10 checks passed
@imbenham imbenham deleted the config-Ts-Cs branch December 3, 2025 20:23
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.

3 participants