Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panel:Add an extensionSlot for lab tab panels #28

Merged
merged 11 commits into from
Jan 16, 2024
Merged

Conversation

gitcliff
Copy link
Contributor

@gitcliff gitcliff commented Jan 5, 2024

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

Screenshots

Screenshot 2024-01-10 at 3 10 25 PM

Related Issue

Other

@gitcliff gitcliff marked this pull request as draft January 5, 2024 06:39
@gitcliff gitcliff marked this pull request as ready for review January 9, 2024 08:59
Copy link
Collaborator

@jabahum jabahum left a comment

Choose a reason for hiding this comment

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

LGTM

src/queue-list/laboratory-tabs.component.tsx Outdated Show resolved Hide resolved
src/queue-list/laboratory-tabs.component.tsx Outdated Show resolved Hide resolved
@@ -71,6 +95,11 @@ const LaboratoryQueueTabs: React.FC = () => {
<CompletedList fulfillerStatus={"COMPLETED"} />
</div>
</TabPanel>
<ExtensionSlot name={labPanelSlot}>
Copy link
Member

Choose a reason for hiding this comment

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

Am also hoping adding the check won't render this in the view unless there's an existing extension selected

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks Pius ....
by default its not rendering this in the view unless the corresponding extension has been been selected,

})}
</Tab>
))}
{tabExtensions
Copy link
Member

Choose a reason for hiding this comment

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

Please add the check here as well. Refer to previous comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hello @pirupius i added a check that makes sure that the title and name values of the extension.meta object are truthy before rendering the Tab which is automatically mapped to the corresponding TabPanel .
Kindly see the updated screenshot

@gitcliff
Copy link
Contributor Author

@pirupius @jabahum any more thoughts on this ?

@pirupius pirupius merged commit e4efcd4 into openmrs:main Jan 16, 2024
3 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.

3 participants