-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Relationships UI improvements (#278)
* feat: created relationship workspace and revalidating functionality * feat: translations and filtering relationship types * Update packages/esm-patient-clinical-view-app/src/family-partner-history/family-relationship.workspace.tsx Co-authored-by: Makombe Kennedy <[email protected]> * Apply suggestions from code review from @makombe Co-authored-by: Makombe Kennedy <[email protected]> * feat: other relationships tab on relationships page * fix: correctly filtering relationships based on tab * refactor: filter relationship types from useConfig object * refactor: misplaced aria label --------- Co-authored-by: Makombe Kennedy <[email protected]>
- Loading branch information
1 parent
60baae7
commit 33583c7
Showing
17 changed files
with
975 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
...sm-patient-clinical-view-app/src/family-partner-history/family-partner-dashboard.meta.tsx
This file was deleted.
Oops, something went wrong.
104 changes: 104 additions & 0 deletions
104
packages/esm-patient-clinical-view-app/src/family-partner-history/family-relationship.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
@use '@carbon/styles/scss/spacing'; | ||
@use '@carbon/styles/scss/type'; | ||
@use '@carbon/layout'; | ||
@import '~@openmrs/esm-styleguide/src/vars'; | ||
|
||
.heading { | ||
@include type.type-style('heading-compact-01'); | ||
margin: spacing.$spacing-05 0 spacing.$spacing-05; | ||
} | ||
|
||
.warningContainer { | ||
background-color: $carbon--red-50; | ||
padding: spacing.$spacing-04; | ||
margin: spacing.$spacing-03 0 spacing.$spacing-03; | ||
display: flex; | ||
justify-content: space-between; | ||
.warning { | ||
@include type.type-style('heading-compact-01'); | ||
color: $ui-05; | ||
} | ||
} | ||
|
||
.datePickerInput span, | ||
.datePickerInput div, | ||
.datePickerInput input, | ||
.datePickerInput { | ||
width: 100% !important; | ||
} | ||
.form { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
padding-bottom: 20px; | ||
} | ||
|
||
.buttonSet { | ||
margin-top: auto; | ||
display: flex; | ||
} | ||
|
||
.button { | ||
height: spacing.$spacing-10; | ||
display: flex; | ||
align-content: flex-start; | ||
align-items: center; | ||
max-width: 50%; | ||
min-width: 50%; | ||
width: 50%; | ||
} | ||
|
||
.grid { | ||
margin: 0 spacing.$spacing-05; | ||
padding: 0rem; | ||
} | ||
.textbox { | ||
margin-bottom: spacing.$spacing-08; | ||
} | ||
|
||
.caseFormTitle { | ||
@include type.type-style('heading-02'); | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
margin: spacing.$spacing-05; | ||
margin-bottom: spacing.$spacing-07; | ||
row-gap: 1.5rem; | ||
position: relative; | ||
|
||
&::after { | ||
content: ''; | ||
display: block; | ||
width: 2rem; | ||
border-bottom: 0.375rem solid var(--brand-03); | ||
position: absolute; | ||
bottom: -0.75rem; | ||
left: 0; | ||
} | ||
|
||
& > span { | ||
@include type.type-style('body-01'); | ||
} | ||
} | ||
|
||
.sectionHeader { | ||
@include type.type-style('heading-02'); | ||
margin-top: spacing.$spacing-05; | ||
} | ||
|
||
:global(.omrs-breakpoint-lt-desktop) { | ||
.form { | ||
height: var(--tablet-workspace-window-height); | ||
} | ||
|
||
.buttonSet { | ||
padding: spacing.$spacing-06 spacing.$spacing-05; | ||
background-color: $ui-02; | ||
justify-content: flex-end; | ||
gap: spacing.$spacing-05; | ||
padding: 0; | ||
margin-top: auto; | ||
display: flex; | ||
justify-content: end; | ||
} | ||
} |
Oops, something went wrong.