Skip to content

Commit

Permalink
feat: multiply by 10 and various changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Jul 12, 2024
1 parent 4745f7c commit e52e0b0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 27 deletions.
2 changes: 1 addition & 1 deletion apps/datahub-e2e/src/e2e/search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ describe('search', () => {
' Aucune correspondance. '
)
})
describe.only('expanded search panel', () => {
describe('expanded search panel', () => {
beforeEach(() => {
cy.get('[data-cy="filterExpandBtn"]').as('expandBtn')
})
Expand Down
1 change: 0 additions & 1 deletion apps/datahub/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ import { MelDatahubDropdownRangeComponent } from './search/search-filters/mel-da
MelMapViewComponent,
MelDataViewComponent,
MelDatahubDropdownRangeComponent,
MelDatahubDropdownRangeComponent,
],
imports: [
MelModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class MelDatahubDropdownRangeComponent {
overlayOpen = false
overlayWidth = 'auto'
overlayMaxHeight = 'none'
id = `dropdown-multiselect-${Math.floor(Math.random() * 10000)}`
id = `dropdown-range-${Math.floor(Math.random() * 10000)}`

get hasSelectedChoices() {
return this.selected.length > 0
Expand Down Expand Up @@ -78,8 +78,8 @@ export class MelDatahubDropdownRangeComponent {
}

onValidate() {
const lowValue = Number(this.lowValue)
const highValue = Number(this.highValue)
const lowValue = Number(this.lowValue) * 10
const highValue = Number(this.highValue) * 10
this.selected = this.choices
.filter((choice) => {
const choiceNb = Number(choice.value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
</div>
}
</div>
<div class="flex flex-row items-start gap-4 -ml-[2px] mt-2">
<div
class="flex flex-row items-start gap-4 -ml-[2px] mt-2 justify-betwwen w-56"
>
@if(displayCount !== searchConfig.length) {
<button
data-cy="filterExpandBtn"
Expand Down
21 changes: 0 additions & 21 deletions resources/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,24 +179,3 @@ input[type='checkbox'] {
.mat-mdc-tab:not(.mdc-tab--stacked) {
@apply h-9 !important;
}

gn-ui-sort-by button {
@apply bg-primary text-white rounded-none !important;
}

gn-ui-sort-by button div {
@apply font-bold !important;
}

gn-ui-sort-by button:hover {
@apply bg-primary-dark !important;
}

/* In your global styles.css or styles.scss file */
gn-ui-sort-by button mat-icon {
@apply fill-white opacity-100 !important;
}

gn-ui-sort-by gn-ui-dropdown-selector span {
@apply text-[16px] !important;
}

0 comments on commit e52e0b0

Please sign in to comment.