-
Notifications
You must be signed in to change notification settings - Fork 46
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) Billable Exemption config #503
Conversation
Please share a screenshot of the new look. |
The shared Preview screen is the new screen. I tried to maintain the same look as the previous one. The edit schema screen did not change. |
Do you mean without the icons? |
0bfece5
to
f3d0f48
Compare
<div> | ||
{errors.length && validationOn ? <ErrorMessages /> : null} | ||
<AceEditor | ||
style={{ height: '100vh', width: '100%', border: errors.length ? '3px solid #DA1E28' : 'none' }} |
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.
We should extract these syles to scss
file
gap: 0.5rem; | ||
|
||
:global(.cds--actionable-notification) { | ||
max-width: 38rem; |
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.
Will this be responsive on a small screen
.pagination { | ||
display: flex; | ||
align-items: center; | ||
gap: 0.5rem; |
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.
Lets use the carbon tokens for size
icon: React.ReactNode; | ||
} | ||
|
||
const transformDataToTree = (data: Record<string, any>, parentKey = 'root'): TreeNode[] => { |
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.
const transformDataToTree = (data: Record<string, any>, parentKey = 'root'): TreeNode[] => { | |
const transformDataToTree = (data: Record<string, any>, parentKey = 'root'): Array<TreeNode> => { |
import useSWRImmutable from 'swr/immutable'; | ||
import { openmrsFetch } from '@openmrs/esm-framework'; | ||
|
||
export function useStandardSchema(key: string) { |
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.
should we rename this to useExemptionSchema
headers, | ||
body, | ||
}); | ||
} |
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.
should we combine the functionality in useStandardSchema.tsx
and this file to one hook. They all access and manipulate the same endpoint
@@ -46,6 +47,7 @@ const RootComponent: React.FC = () => { | |||
<Route path="/bill-manager" element={<BillManager />} /> | |||
<Route path="/charge-items" element={<ChargeItemsDashboard />} /> | |||
<Route path="/payment-modes" element={<PaymentModeHome />} /> | |||
<Route path="/billable-exemptions" element={<BillableExemptions />} /> |
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.
After this PR is merged. Add a ticket to add control access by adding correct config for it
|
||
export interface Schema { | ||
services: { | ||
all: Service[]; |
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.
all: Service[]; | |
all: Array<Service> |
its a nit but that the convention we are using on the project
@Ogollah merging this in to test it out. you can follow up with PR to fix the recommended changes |
Requirements
Summary
What does this PR do?
Screenshots
*Schema editor
None.
Related Issue
None.
Other
None.