-
Notifications
You must be signed in to change notification settings - Fork 234
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
(feat) O3-2749 Service Queues - Add Patient Banner to "Add patient to queue" form #953
Conversation
Size Change: +115 B (0%) Total Size: 2.81 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before reviewing in more detail, it might be worthwhile to separate out the changes due to the pre-commit hooks from those related to this ticket. Can we get the pre-commit hooks to execute on a checkout without changes, and review/commit that, and then this PR can build on that and show just what is meaningful?
@denniskigen / @ibacher - what's up with these changes that come in from the git hooks? What is your typical approach to dealing with these?
@chibongho - note, there is also a failing check below
It's mostly to ensure that new translation strings are correctly added to all files and unused translation strings are removed. They're done in Git hooks mostly so it's automatic for people, though this may be the result of people by-passing those checks.
In general, I just mark the translation files as "Viewed" in the PR list and focus on the code. |
While this isn't per se a reason to stop this PR, I think we're at the point where we should refactor the patient header into a standard React component. Creating a number of slots all with the same name is not how the extension system is intended to be used... |
Yeah, I bypassed the pre-commit hook to add the translations as well in my recent commit because it was adding a lot of noise... also, although it's great to clean these up automatically, I'm a little fearful that it may be a bit aggressive in deleting translations... if we remove a message code, potentially temporarily, we have to re-translate when we add it back in, but I guess that's the a trade off... |
Tend to agree, but this does allow an implementation to add in their own custom header in a way that just having this be a component would not, correct @ibacher ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, though we should determine if we want to merge in all these translation changes as part of this commit.
Yeah, I suppose that's true. |
Ok, thanks for the reviews. I'll go ahead and separate the translation stuff into a separate PR. |
Requirements
Summary
Make it so that the form to add a paitent to a queue has a
<PatientBanner />
so we can see who we are adding. This is consistent with the UI in the appointments app when adding new appointments.Note: a lot of translation files are changed from the git pre-push hook. I only actually changed patient-search.component.tsx and appointments-header.component.tsx
cc: @ojwanganto
Screenshots
Related Issue
Other