-
Notifications
You must be signed in to change notification settings - Fork 47
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
Refactor: Relationships UI improvements #278
Merged
makombe
merged 9 commits into
palladiumkenya:main
from
amosmachora:relationships-improvements
Jul 26, 2024
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5fdeb87
feat: created relationship workspace and revalidating functionality
amosmachora 6bd1e3d
feat: translations and filtering relationship types
amosmachora 50cfb55
Update packages/esm-patient-clinical-view-app/src/family-partner-hist…
amosmachora e46c40a
Apply suggestions from code review from @Makombe
amosmachora ff9b9dd
feat: other relationships tab on relationships page
amosmachora e6c30a2
fix: correctly filtering relationships based on tab
amosmachora 6647233
refactor: filter relationship types from useConfig object
amosmachora de8a41c
refactor: misplaced aria label
amosmachora f4aaf51
merge main into relationships-improvements
amosmachora File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'; | ||
amosmachora marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.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 { | ||
Comment on lines
+35
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Try to localize the naming to avoid style overrides. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay got it |
||
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
+1. The config looks good