Skip to content
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

Bibdk2021 2032 adv facets #1391

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Bibdk2021 2032 adv facets #1391

wants to merge 19 commits into from

Conversation

pjohans
Copy link
Member

@pjohans pjohans commented Feb 26, 2024

No description provided.

Copy link
Contributor

@YousefMohsen YousefMohsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ser super godt ud! 🎩

Comment on lines 5 to 13
export default function Expand({ open, size = 3, src, bgColor }) {
return (
<Icon
size={size}
bgColor="var(--blue)"
// bgColor="var(--blue)"
dataCy="expand-icon"
className={`${styles.expandicon} ${open ? styles.opened : styles.closed}`}
alt="expand"
src="expand.svg"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bliver bgColor og src ikke brugt ? bgColor kunne evt. have default farve på "var(--blue)". Så der mindre chance for at det påvirker de steder hvor expand bliver brugt

Comment on lines 42 to 43
<div className={styles.flex}>
{/*<div className={styles.countstyle}> {hitcount} </div>*/}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skal kommenteret kode fjernes?

Comment on lines 46 to 47
</Title>
<Title type="title6">Resultater</Title>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Det skal måske i Translate.json

Comment on lines 67 to 68
<>
<Title type="title6">Afgræns din søgning</Title>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skal det ikke i translate.json? 😬

Comment on lines 80 to 83
// const facets = {
// facetLimit: 5,
// facets: ["specificmaterialtype", "subject"],
// };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fjernes 🧹

@@ -8,6 +8,8 @@ import Text from "@/components/base/text";
import Translate from "@/components/base/translate";
import isEmpty from "lodash/isEmpty";
import { formattersAndComparitors } from "@/components/search/advancedSearch/useDefaultItemsForDropdownUnits";
// import { getFacetsQuery } from "@/components/search/advancedSearch/utils";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹🧹

Comment on lines 56 to 57
/>
{/*<Text type="text1">{getFacetsQuery(selectedFacets)}</Text>*/}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹

Comment on lines 29 to 30
.accordionContainer {
/*border: 2px solid blue;*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹

import { useState } from "react";
import { useRouter } from "next/router";
import { AdvFacetsTypeEnum } from "@/lib/enums";
import { useAdvancedSearchContext } from "@/components/search/advancedSearch/advancedSearchContext";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Det kunne være super fedt hvis vi undgår at bruge useAdvancedSearchContext i useFacets. Helst den anden vej rundt 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants