-
Notifications
You must be signed in to change notification settings - Fork 5
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
move service unit filter next to basic search in leases view #477
Merged
robertrytovuori
merged 8 commits into
develop
from
MVJ-218_move-service-unit-lease-filter-out-of-detailed-search
May 16, 2024
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
fa4f9de
move service unit filter next to basic search in leases view
robertrytovuori 868219b
move service unit filter to suodatus component
robertrytovuori 33e3f52
move service unit filter into suodatus component
robertrytovuori b0255bd
rename componentToRenderNextToLabel to ...UnderLabel
robertrytovuori f237ac0
change palvelukokonaisuus in top navigation to oma palvelukokonaisuus
robertrytovuori c25f591
fix issue where detailed search is cleared when service unit filter c…
robertrytovuori 2eb25dc
rename to componentToRenderUnderTitle
robertrytovuori 8bc1fdb
detailed search view should not render when the service unit filter i…
robertrytovuori 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -236,6 +236,27 @@ class Search extends PureComponent<Props, State> { | |
/> | ||
</Column> | ||
</Row> | ||
<SearchRow> | ||
<SearchLabelColumn> | ||
<SearchLabel>Palvelukokonaisuus</SearchLabel> | ||
</SearchLabelColumn> | ||
<SearchInputColumn> | ||
<FormField | ||
autoBlur | ||
disableDirty | ||
fieldAttributes={{ | ||
label: 'Palvelukokonaisuus', | ||
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. This label is repeated in many places, so it is recommended to use the enum in |
||
type: FieldTypes.CHOICE, | ||
read_only: false, | ||
}} | ||
invisibleLabel | ||
name='service_unit' | ||
overrideValues={{ | ||
options: serviceUnitOptions, | ||
}} | ||
/> | ||
</SearchInputColumn> | ||
</SearchRow> | ||
{!isBasicSearch && | ||
<Fragment> | ||
<Row> | ||
|
@@ -737,28 +758,6 @@ class Search extends PureComponent<Props, State> { | |
/> | ||
</SearchInputColumn> | ||
</SearchRow> | ||
|
||
<SearchRow> | ||
<SearchLabelColumn> | ||
<SearchLabel>Palvelukokonaisuus</SearchLabel> | ||
</SearchLabelColumn> | ||
<SearchInputColumn> | ||
<FormField | ||
autoBlur | ||
disableDirty | ||
fieldAttributes={{ | ||
label: 'Palvelukokonaisuus', | ||
type: FieldTypes.CHOICE, | ||
read_only: false, | ||
}} | ||
invisibleLabel | ||
name='service_unit' | ||
overrideValues={{ | ||
options: serviceUnitOptions, | ||
}} | ||
/> | ||
</SearchInputColumn> | ||
</SearchRow> | ||
</Column> | ||
</Row> | ||
</Fragment> | ||
|
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.
Could this be something like
Suodata palvelukokonaisuuden mukaan
, to distinguish from the top nav bar filter. Should this label be put on a separate line above the field, just like in other fields?You could also add a visible label for the search field above in the same way with text something like
Hae hakusanalla
or something else.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.
Headerissa voisi lukea Oma palvelukokonaisuus
Suodatuksessa voisi lukea Vuokrauspalvelu