Skip to content

Commit

Permalink
Merge pull request #99 from camptocamp/various-fixes-integration
Browse files Browse the repository at this point in the history
[Fix] : Various fixes on integration
  • Loading branch information
cmoinier authored Jul 22, 2024
2 parents d50edea + e612932 commit 37c9b89
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
6 changes: 2 additions & 4 deletions apps/datahub-e2e/src/e2e/search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,10 @@ describe('search', () => {
.map((dropdown) => dropdown.getAttribute('data-cy-field'))
)
.should('eql', [
'producerOrg',
'categoryKeyword',
'organization',
'publicationYear',
'revisionYear',
'license',
'qualityScore',
'territories',
])
})
it('should display the search results', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ export class SearchFiltersComponent {
displayCount = 3
searchConfig = (
getOptionalSearchConfig().ADVANCED_FILTERS || [
'producerOrg',
'categoryKeyword',
'organization',
'revisionYear',
'license',
'qualityScore',
'territories',
]
).map((filter) => ({
fieldName: filter,
Expand Down
2 changes: 1 addition & 1 deletion conf/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
# The advanced search filters available to the user can be customized with this setting.
# The following fields can be used for filtering: 'organization', 'format', 'publicationYear', 'inspireKeyword', 'keyword', 'topic', 'isSpatial', 'license', 'resourceType', 'representationType', 'revisionYear', 'categoryKeyword', 'qualityScore', 'territories', 'publisherOrg', 'producerOrg'
# any other field will be ignored
# advanced_filters = ['format', 'topic', 'keyword', 'organization', 'publisherOrg', 'producerOrg']
# advanced_filters = ['producerOrg', 'categoryKeyword', 'revisionYear', 'license', 'qualityScore']
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<gn-ui-button
type="outline"
(buttonClick)="previousPage()"
extraClass="pagination-btn-nav mr-14"
extraClass="pagination-btn-nav mr-8"
>
<mat-icon class="pagination-btn-arrow material-symbols-outlined"
>chevron_left</mat-icon
Expand All @@ -14,7 +14,7 @@
>
</gn-ui-button>
} @for(page of visiblePages; track $index){ @if(page === '...'){
<span class="mr-14">{{ page }}</span>
<span class="mr-8">{{ page }}</span>
} @else {
<gn-ui-button
[type]="page === currentPage ? 'outline' : 'light'"
Expand Down
4 changes: 2 additions & 2 deletions resources/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@
@apply group-hover:bg-primary-dark group-hover:border-white group-hover:text-white transition-colors;
}
.pagination-btn {
@apply border-none bg-transparent mr-14;
@apply border-none bg-transparent mr-8 text-sm;
}
.pagination-btn:disabled {
@apply border-none bg-transparent text-primary opacity-100;
}
.pagination-btn-nav {
@apply border-none bg-transparent text-primary opacity-100;
@apply border-none bg-transparent text-primary opacity-100 text-sm;
}
.pagination-btn-nav:disabled {
@apply text-black;
Expand Down

0 comments on commit 37c9b89

Please sign in to comment.