Skip to content

(feat) Add prop to toggle patient banner rendering#624

Merged
samuelmale merged 2 commits intoopenmrs:mainfrom
Twiineenock:feat/hidePatientBanner
Aug 20, 2025
Merged

(feat) Add prop to toggle patient banner rendering#624
samuelmale merged 2 commits intoopenmrs:mainfrom
Twiineenock:feat/hidePatientBanner

Conversation

@Twiineenock
Copy link
Contributor

@Twiineenock Twiineenock commented Aug 17, 2025

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

Currently, the patient banner visibility can only be toggled in workspace zones. However, there are other non-workspace zones, such as the FDE, where we also want this flexibility. This PR introduces a new hidePatientBanner prop, which defaults to false, allowing the banner to be hidden in these additional contexts.

Screenshots

Related Issue

Other

Related Pull Requests

openmrs-esm-patient-chart

openmrs-esm-fast-data-entry-app

@Twiineenock
Copy link
Contributor Author

CC @samuelmale

} = useFormJson(formUUID, formJson, encounterUUID, formSessionIntent, preFilledQuestions);

const showPatientBanner = useMemo(() => {
if (hidePatientBanner) return false;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (hidePatientBanner) return false;
if (hidePatientBanner) {
return false;
}

@samuelmale samuelmale changed the title (feat): Enable Toggling The Patient Banner in non-workspaces Zones (feat) Add prop to toggle patient banner rendering Aug 20, 2025
@samuelmale samuelmale merged commit 69c263c into openmrs:main Aug 20, 2025
4 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.

2 participants