Contract filters
We added a "Contract Filters" accordion which contains Channel Name and Group filters. We added a button to manually apply the filters, which automatically closes the accordtion to allow more space for reviewing the list of search results.
Widget additions
- Contract filters:
he-contract-filters
- Filter Contract Channel name:
he-contract-filter-channel-name
- Filter Contract Group Id:
he-contract-filter-group-id
- Filter Apply Button:
he-contract-filters-applybutton
State additions
filterChannelName
filterGroupId
filtersAccordionIsOpen
- You can use this new variable from product module and manage the expanded/collapsed state of the accordion.
Services
window.hapi.contract.service.getFilteredContracts
in Serviceswindow.hapi.contract.service.getContracts
has been changed, check Types section
API
window.hapi.contract.api.getContracts
receives a newfilters
argument in api getContracts, see Api Types
Utils additions
Types
filterChannelName
,filterGroupId
andfiltersAccordtionIsOpen
in contract state typesContractFilterQueryParams
in typesContractServiceGetFilteredContractsHandler
used as argument forwindow.hapi.contract.service.getFilteredContracts
in service types
The following types have been changed:
ContractServiceGetContractsHandler
used as argument forwindow.hapi.contract.service.getContracts
in service types has hadqueryParams?: URLSearchParams
added
i18n additions
Key | "en" value | "de" value | "nl" value | "fr" value |
---|---|---|---|---|
contracts.filters.channel-name | Channel Name | Kanalname | Kanaalnaam | Nom de chaîne |
contracts.filters.channel-name-placeholder | Type a channel name | Geben Sie einen Kanalnamen ein | Typ een kanaalnaam | Saisissez un nom de chaîne |
contracts.filters.group-id | Group | Gruppe | Groep | Groupe |
contracts.filters.group-id-placeholder | Select a Group | Gruppe auswählen | Selecteer een Groep | Sélectionner un groupe |
contracts.filters.apply-filters | Apply Filters | Filter anwenden | Filters toepassen | Appliquer les filtres |
HTML IDs And Class Additions
As part of this change the following HTML IDs and Class have been added:
contract-filter-channel-name-input
contract-group-select
contract-filters-apply-button
hapi__contracts-filters-apply-button
hapi__contracts-filters-group-id
hapi__contracts-filters-channel-name
hapi__contracts-filters