Skip to content

[WEB-4302] - Prompt to scroll in Data Donation dialog if consent not fully read#1850

Open
henry-tp wants to merge 5 commits intodevelopfrom
WEB-4302-consent-infobox
Open

[WEB-4302] - Prompt to scroll in Data Donation dialog if consent not fully read#1850
henry-tp wants to merge 5 commits intodevelopfrom
WEB-4302-consent-infobox

Conversation

@henry-tp
Copy link
Contributor

@henry-tp henry-tp commented Jan 22, 2026

@henry-tp henry-tp changed the title WEB-4302 new info box to prompt user to read consent WEB-4302 - Info Box when user has not read consent Jan 22, 2026
@henry-tp henry-tp changed the title WEB-4302 - Info Box when user has not read consent WEB-4302 - Prompt to read consent if the user donating data has not scrolled Jan 22, 2026
@henry-tp henry-tp changed the title WEB-4302 - Prompt to read consent if the user donating data has not scrolled WEB-4302 - Prompt to scroll in Data Donation dialog if consent not fully read Jan 22, 2026
@henry-tp henry-tp changed the title WEB-4302 - Prompt to scroll in Data Donation dialog if consent not fully read [WEB-4302] - Prompt to scroll in Data Donation dialog if consent not fully read Jan 22, 2026
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 enhances the Data Donation Consent Dialog by adding a visual prompt that instructs users to scroll to the bottom of the consent form before they can agree to it. The prompt is displayed when the consent has not been fully read and automatically disappears once the user scrolls to the bottom.

Changes:

  • Added a Pill component that displays a scroll prompt when consent hasn't been fully read
  • Extracted consent read state into a reusable variable for better code clarity
  • Added test coverage to verify the prompt appears initially and disappears after scrolling

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
app/pages/patient/DataDonationConsentDialog.js Adds informational prompt message to guide users to scroll through consent form, with conditional rendering based on scroll state
tests/unit/app/pages/patient/DataDonationConsentDialog.test.js Adds test assertions to verify the scroll prompt appears before scrolling and disappears after scrolling to bottom

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

<Pill
id="consentReviewRequiredMessage"
mb={3}
sx={{ fontSize: 1, margin: '0 auto 0 0' }}
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

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

The margin property value '0 auto 0 0' is unusual and likely not having the intended effect. The 'auto' value for the right margin doesn't center or position the element as it might in a flex container. Consider using just 'margin: 0' or removing this property entirely since the Pill component already has mb={3} (margin-bottom) defined, and the container has default alignment.

Suggested change
sx={{ fontSize: 1, margin: '0 auto 0 0' }}
sx={{ fontSize: 1 }}

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

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

This should be addressed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thank you @clintonium-119
3a71e74

Copy link
Member

@clintonium-119 clintonium-119 left a comment

Choose a reason for hiding this comment

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

Just a small CSS cleanup issue (see comments)

@henry-tp henry-tp added the Needs Release Target This branch cannot be merged until the feature is assigned to a release version first. label Jan 22, 2026
@henry-tp
Copy link
Contributor Author

Feedback addressed @clintonium-119

@henry-tp
Copy link
Contributor Author

/deploy qa1

@tidebot
Copy link
Collaborator

tidebot commented Feb 18, 2026

henry-tp updated values.yaml file in qa1

@tidebot
Copy link
Collaborator

tidebot commented Feb 18, 2026

henry-tp updated flux policies file in qa1

@tidebot
Copy link
Collaborator

tidebot commented Feb 18, 2026

henry-tp deployed blip WEB-4302-consent-infobox branch to qa1 namespace

@henry-tp
Copy link
Contributor Author

/deploy qa2

@henry-tp henry-tp closed this Feb 18, 2026
@henry-tp henry-tp reopened this Feb 18, 2026
@tidebot
Copy link
Collaborator

tidebot commented Feb 18, 2026

henry-tp updated values.yaml file in qa2

@tidebot
Copy link
Collaborator

tidebot commented Feb 18, 2026

henry-tp updated flux policies file in qa2

@tidebot
Copy link
Collaborator

tidebot commented Feb 18, 2026

henry-tp deployed blip WEB-4302-consent-infobox branch to qa2 namespace

@henry-tp
Copy link
Contributor Author

/deploy qa2

@tidebot
Copy link
Collaborator

tidebot commented Feb 18, 2026

henry-tp updated values.yaml file in qa2

@tidebot
Copy link
Collaborator

tidebot commented Feb 18, 2026

henry-tp updated flux policies file in qa2

@tidebot
Copy link
Collaborator

tidebot commented Feb 18, 2026

henry-tp deployed blip WEB-4302-consent-infobox branch to qa2 namespace

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

Labels

Needs Release Target This branch cannot be merged until the feature is assigned to a release version first.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants