Skip to content

DO NOT MERGE - just playing with assembly ai #1749

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

Draft
wants to merge 104 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
209aa71
Initial test implementation of automated transcriptions.
boazsender Mar 12, 2025
613bfa3
Don't merge - just playing with assembly ai
Mephistic Mar 13, 2025
4a5b505
fix(profile page): update broken image urls
Mephistic Mar 13, 2025
a92717e
Implement review changes.
boazsender Mar 13, 2025
bdc3fb7
Add _timestamp to transcriptions and fix var casing
boazsender Mar 14, 2025
faa9fff
Only transcribe future hearings. Delete tokens after use.
boazsender Mar 15, 2025
f605008
Transcribe up to 8 day old hearings.
boazsender Mar 15, 2025
73ffdaf
Address further review feedback.
boazsender Mar 15, 2025
615d4b3
Attempt private webhook auth
boazsender Mar 15, 2025
c85059c
Refactor video scrape cuttoff checking
boazsender Mar 16, 2025
c35ec01
Improve token check query
boazsender Mar 16, 2025
3b03904
Add negative test for video scrape within cutoff check
boazsender Mar 16, 2025
6ebe77b
Disabling i18next rules on the admin page - we only really expect tha…
Mephistic Mar 16, 2025
5cf4215
Fix missing prefix
boazsender Mar 16, 2025
5fdb0f2
Add future negative test to withinCutoff
boazsender Mar 16, 2025
3ff729e
Merge pull request #1747 from boazsender/automated-transcriptions
Mephistic Mar 16, 2025
4f6cd8a
Use Optional over Nullable for optional fields.
boazsender Mar 17, 2025
06310bc
And fix usage to match new times.
boazsender Mar 17, 2025
3b10cc3
Merge pull request #1752 from boazsender/automated-transcriptions
Mephistic Mar 17, 2025
6f6b7d0
Merge pull request #1748 from Mephistic/fix-profile-images
mertbagt Mar 17, 2025
d1b7e9a
reordered and renamed filters
mertbagt Mar 17, 2025
732ed6a
comments added re: need to update Typesense server
mertbagt Mar 17, 2025
5ad41b7
reverted court > session code
mertbagt Mar 17, 2025
32c35b2
revert pt2
mertbagt Mar 17, 2025
dea7323
revert pt3
mertbagt Mar 17, 2025
e459c46
refactor
mertbagt Mar 17, 2025
cb2b31d
cleanup
mertbagt Mar 17, 2025
1714253
refactor
mertbagt Mar 17, 2025
d34c4a1
added string translation
mertbagt Mar 18, 2025
f672cbd
revert reordering
mertbagt Mar 19, 2025
f586af9
Update README for notifications
kiminkim724 Mar 19, 2025
de21324
Merge pull request #1753 from mertbagt/bill-search-filters-reorg
Mephistic Mar 19, 2025
aad684e
Debug event scraper.
boazsender Mar 20, 2025
abd29e6
Remove unused dep
boazsender Mar 20, 2025
9fc96e4
Remove hardcoded testing var
boazsender Mar 20, 2025
15d53a2
fix(emails): Wrapping nextDigestAt update and email creation into a s…
Mephistic Mar 21, 2025
225053a
Remove try/catch, adjust types to not throw.
boazsender Mar 21, 2025
0306548
Remove hardcoded eventid
boazsender Mar 21, 2025
9303170
Improve video scrape start logic.
boazsender Mar 21, 2025
357dc62
update README.md
allcontributors[bot] Mar 24, 2025
5fea35b
update .all-contributorsrc
allcontributors[bot] Mar 24, 2025
7ef62d3
Merge pull request #1762 from codeforboston/all-contributors/add-onee…
mertbagt Mar 24, 2025
c86529f
update README.md
allcontributors[bot] Mar 24, 2025
c4612d3
update .all-contributorsrc
allcontributors[bot] Mar 24, 2025
1a1e1f3
Merge pull request #1760 from boazsender/automated-transcriptions
Mephistic Mar 24, 2025
59e35dd
unified filter buttons
mertbagt Mar 24, 2025
96308cb
Merge pull request #1763 from codeforboston/all-contributors/add-rdhss
mertbagt Mar 24, 2025
dec763b
undelete files - possibly used by testimony search
mertbagt Mar 24, 2025
a2d8f10
uncross the streams
mertbagt Mar 24, 2025
3724e63
cleaned up code
mertbagt Mar 24, 2025
71316e2
typo
mertbagt Mar 24, 2025
cbc7399
Merge pull request #1764 from mertbagt/unified_filter_button
Mephistic Mar 25, 2025
2e469dc
Add topicName information
kiminkim724 Mar 25, 2025
fef2405
temporary band-aid - replace me asap
mertbagt Mar 26, 2025
38d8d75
prettier
mertbagt Mar 26, 2025
6ff12ce
Merge pull request #1759 from kiminkim724/notifications-readme
Mephistic Mar 26, 2025
da0818d
no filters on mobile
mertbagt Mar 26, 2025
a1acf7a
chore(flags): Turning on feature flags for LLM summaries/tags, follow…
Mephistic Mar 26, 2025
8185528
Merge pull request #1769 from Mephistic/flip-flags
Mephistic Mar 26, 2025
2bcb1c0
Merge pull request #1767 from mertbagt/bill-search-inline-only
Mephistic Mar 26, 2025
9991307
Merge pull request #1761 from Mephistic/transact
Mephistic Mar 26, 2025
e84b1d7
Merge pull request #1750 from Mephistic/lang-fixes
Mephistic Mar 26, 2025
cbca688
feat(truncate): Truncate text on the Newsfeed card to 600 characters
Mephistic Mar 27, 2025
051fbd9
chore(newsletter): Updating newsletter link to the new signup form
Mephistic Mar 27, 2025
809af19
feat(links): Add hyperlinks to SmartTags on Bill Details page. They w…
Mephistic Mar 27, 2025
5cb2a97
Merge pull request #1776 from Mephistic/fix-form-link
Mephistic Mar 28, 2025
902afde
Merge pull request #1775 from Mephistic/truncate-newsfeed
Mephistic Mar 28, 2025
4f65905
Merge pull request #1777 from Mephistic/smart-tag-links
Mephistic Mar 28, 2025
ca517f2
feat(1760): add loading spinner when navigating to bill details
seatuna Mar 16, 2025
79619df
Added VirtualFilter and preserveSharedStateOnUnmount for mobile filters
kiminkim724 Apr 1, 2025
f0e530a
Merge branch 'main' of https://github.com/kiminkim724/maple into fix-…
kiminkim724 Apr 1, 2025
bb2d36d
Revert previous filter hotfix
kiminkim724 Apr 1, 2025
c931a84
Fix linting
kiminkim724 Apr 1, 2025
772bf91
Remove useMediaQuery
kiminkim724 Apr 1, 2025
a18b3cd
Add Filter translation
kiminkim724 Apr 2, 2025
42252d0
Merge pull request #1751 from seatuna/ctoon/1730/page-load-performance
Mephistic Apr 2, 2025
906d05f
Remove topics.lv0 to fix HierarchicalMenu
kiminkim724 Apr 2, 2025
daeebe5
Merge branch 'main' of https://github.com/kiminkim724/maple into fix-…
kiminkim724 Apr 2, 2025
182fef8
goals and mission updates
mertbagt Apr 2, 2025
82af4f8
advisory board
mertbagt Apr 2, 2025
9e20bf4
Merge pull request #1780 from kiminkim724/fix-mobile-filters
Mephistic Apr 2, 2025
60a8250
Merge pull request #1781 from mertbagt/goals-and-mission-update
mertbagt Apr 2, 2025
6e10fad
Test script for sending the notifications email digest email
Mephistic Feb 19, 2025
6ce37bd
fix(email): Updating test send script, using correct collection, remo…
Mephistic Apr 2, 2025
5d08304
Have the test script just point to functions/src instead of lib so we…
Mephistic Apr 4, 2025
4fe98a6
Adding test data, moving email types out of functions/src/email to av…
Mephistic Apr 6, 2025
8032ba1
Merge pull request #1715 from Mephistic/email-sending-script
Mephistic Apr 6, 2025
f692dcc
fix(email): Fixing email Storybook so it correctly renders the digest…
Mephistic Apr 6, 2025
c84ae00
fix(email): Copying test data over from sendTestEmail script to newly…
Mephistic Apr 6, 2025
09b870b
Move attrivutes registraction to init
HuanFengYeh Apr 9, 2025
b028290
Merge pull request #1787 from HuanFengYeh/default_general_filter
Mephistic Apr 9, 2025
4e69603
Merge pull request #1785 from Mephistic/handlebars-story
mertbagt Apr 9, 2025
d116e77
update README.md
allcontributors[bot] Apr 10, 2025
175918a
update .all-contributorsrc
allcontributors[bot] Apr 10, 2025
cc23a21
Merge pull request #1792 from codeforboston/all-contributors/add-azhe…
mertbagt Apr 10, 2025
f22204e
update README.md
allcontributors[bot] Apr 10, 2025
47bc4dc
update .all-contributorsrc
allcontributors[bot] Apr 10, 2025
4490059
Merge pull request #1793 from codeforboston/all-contributors/add-asiakay
mertbagt Apr 10, 2025
e64cec7
chore(github): Updating setup-node version from 2 to 4 to fix the bui…
Mephistic Apr 16, 2025
4a7ab94
Merge pull request #1796 from Mephistic/update-action
Mephistic Apr 17, 2025
80c3626
Don't merge - just playing with assembly ai
Mephistic Mar 13, 2025
710c5db
Adding hearing-specific page - will not work until we actually start …
Mephistic Mar 16, 2025
11f5f77
Updating hearing-specific page to use new utterances subcollection
Mephistic Apr 17, 2025
c809c31
Merge branch 'assembly-test' of https://github.com/Mephistic/maple in…
Mephistic Apr 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,42 @@
"contributions": [
"code"
]
},
{
"login": "oneeyedego",
"name": "Oliver Herman",
"avatar_url": "https://avatars.githubusercontent.com/u/6138460?v=4",
"profile": "http://olivertarrherman.com/",
"contributions": [
"code"
]
},
{
"login": "rdhss",
"name": "Ridho Suhendar",
"avatar_url": "https://avatars.githubusercontent.com/u/91738561?v=4",
"profile": "https://rdhss.netlify.app/",
"contributions": [
"code"
]
},
{
"login": "azheng1991",
"name": "Allan Zheng ",
"avatar_url": "https://avatars.githubusercontent.com/u/58377006?v=4",
"profile": "http://www.careergpt.io",
"contributions": [
"code"
]
},
{
"login": "asiakay",
"name": "Asia K",
"avatar_url": "https://avatars.githubusercontent.com/u/66960776?v=4",
"profile": "http://asialakay.net",
"contributions": [
"code"
]
}
],
"commitType": "docs"
Expand Down
14 changes: 13 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,17 @@
],
// TODO: Fix existing warnings and make them errors going forward
"i18next/no-literal-string": "warn"
}
},
"overrides": [
{
"files": [
"components/moderation/**/*.js",
"components/moderation/**/*.ts",
"components/moderation/**/*.tsx"
],
"rules": {
"i18next/no-literal-string": "off"
}
}
]
}
2 changes: 1 addition & 1 deletion .github/actions/setup-repo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
using: "composite"
steps:
- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: "yarn"
Expand Down
40 changes: 22 additions & 18 deletions README.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions components/EditProfilePage/PersonalInfoTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,28 +165,28 @@ export function PersonalInfoTab({
label={t("socialLinks.twitter")}
defaultValue={social?.twitter}
className="col-sm-12 col-md-6 mb-1"
iconSrc="./twitter.svg"
iconSrc="/twitter.svg"
{...register("twitter")}
/>
<SocialInput
label={t("socialLinks.linkedIn")}
defaultValue={social?.linkedIn}
className="col-sm-12 col-md-6 mb-1"
iconSrc="./linkedin.svg"
iconSrc="/linkedin.svg"
{...register("linkedIn")}
/>
<SocialInput
label={t("socialLinks.blueSky")}
defaultValue={social?.blueSky}
className="col-sm-12 col-md-6 mb-1"
iconSrc="./bluesky.svg"
iconSrc="/bluesky.svg"
{...register("blueSky")}
/>
<SocialInput
label={t("socialLinks.mastodon")}
defaultValue={social?.mastodon}
className="col-sm-12 col-md-6 mb-1"
iconSrc="./mastodon.svg"
iconSrc="/mastodon.svg"
{...register("mastodon")}
/>
{isOrg && (
Expand Down
2 changes: 1 addition & 1 deletion components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ const PageFooter = (props: PageFooterProps) => {
{t("legal.disclaimer")}
{" - "}
<a
href="https://cdn.forms-content.sg-form.com/fc8a7d49-d903-11ed-9e53-c2519c5b83a4"
href="https://cdn.forms-content.sg-form.com/d049f1ab-b547-11ee-9605-72ceb6b6e337"
style={{ color: "white" }}
target="_blank"
rel="noopener noreferrer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const OurGoalsCardContent = () => {
const { t } = useTranslation("goalsandmission")
return (
<>
<h5 className="pb-4 tracking-tight lh-sm">{t("goals.overview")}</h5>
<h5 className="text-center fw-bold fs-sm-2 tracking-tight pb-3 pb-sm-4">
{t("goals.overview")}
</h5>
<Row className="mb-4">
<Col md={6}>
<figure className="text-center mb-3">
Expand Down Expand Up @@ -77,7 +79,7 @@ const OurMissionCardContent = () => {

return (
<>
<h5 className="text-center fw-bold fs-sm-2 tracking-tight pb-3 pb-sm-4 text-info">
<h5 className="text-center fw-bold fs-sm-2 tracking-tight pb-3 pb-sm-4">
{t("mission.overview")}
</h5>
<Row className="mb-4">
Expand Down
2 changes: 1 addition & 1 deletion components/HeroHeader/HeroHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const HeroHeader = ({ authenticated }) => {
</p>
<p>
<a
href="https://cdn.forms-content.sg-form.com/fc8a7d49-d903-11ed-9e53-c2519c5b83a4"
href="https://cdn.forms-content.sg-form.com/d049f1ab-b547-11ee-9605-72ceb6b6e337"
style={{ color: "white" }}
target="_blank"
rel="noopener noreferrer"
Expand Down
15 changes: 11 additions & 4 deletions components/NewsfeedCard/NewsfeedCardBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import CardBootstrap from "react-bootstrap/Card"
import { useMediaQuery } from "usehooks-ts"
import { Col, Row } from "../bootstrap"
import { Internal } from "components/links"
import { truncateText } from "components/formatting"

interface NewsfeedCardBodyProps {
billText?: string
Expand Down Expand Up @@ -33,7 +34,7 @@ export const NewsfeedBillCardBody = (props: NewsfeedCardBodyProps) => {
className={`m-3`}
/>
<CardBootstrap.Text className={`mb-0 mt-2`}>
<strong>{text}</strong>
<strong>{truncateText(text, 600)}</strong>
</CardBootstrap.Text>
<>
{t("newsfeed.actionTaken")}
Expand All @@ -52,7 +53,7 @@ export const NewsfeedBillCardBody = (props: NewsfeedCardBodyProps) => {
/>
<Col className={`m-2`}>
<CardBootstrap.Text className={`mb-0`}>
<strong>{text}</strong>
<strong>{truncateText(text, 600)}</strong>
</CardBootstrap.Text>
<>
{t("newsfeed.actionTaken")}
Expand Down Expand Up @@ -112,7 +113,10 @@ export const NewsfeedTestimonyCardBody = (props: NewsfeedCardBodyProps) => {
</>
)}
</div>
<strong className={`mb-4`}>{`"${text}"`}</strong>
<strong className={`mb-4`}>{`"${truncateText(
text,
600
)}"`}</strong>
</Col>
) : (
<>
Expand All @@ -138,7 +142,10 @@ export const NewsfeedTestimonyCardBody = (props: NewsfeedCardBodyProps) => {
<Col
className={`d-flex align-self-center justify-content-center`}
>
<strong className={`m-4`}>{`"${text}"`}</strong>
<strong className={`m-4`}>{`"${truncateText(
text,
600
)}"`}</strong>
</Col>
</>
)}
Expand Down
7 changes: 6 additions & 1 deletion components/OurTeam/AdvisoryBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ export const AdvisoryBoard = () => {
<Row>
<Col className="my-3">
<SectionContainer className="py-1">
<MemberItem name="David Fields" descr={t("advisory.DFields")} />
<Divider />
<MemberItem name="John Griffin" descr={t("advisory.JGriffin")} />
<Divider />
<MemberItem name="Marci Harris" descr={t("advisory.MHarris")} />
<Divider />
<MemberItem name="David Fields" descr={t("advisory.DFields")} />
<MemberItem
name="Jake Hirsh-Allen"
descr={t("advisory.JakeHirshAllen")}
/>
<Divider />
<MemberItem name="Matt Prewitt" descr={t("advisory.MPrewitt")} />
<Divider />
Expand Down
2 changes: 1 addition & 1 deletion components/auth/TermsOfServiceModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function TermsOfServiceModal({
</Row>
<Row>
<NavLink
href="https://cdn.forms-content.sg-form.com/fc8a7d49-d903-11ed-9e53-c2519c5b83a4"
href="https://cdn.forms-content.sg-form.com/d049f1ab-b547-11ee-9605-72ceb6b6e337"
other={{
className: `text-center fs-5 mt-4 text-secondary`,
target: "_blank",
Expand Down
9 changes: 0 additions & 9 deletions components/bill/BillDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,11 @@ import { useTranslation } from "next-i18next"
import { isCurrentCourt } from "functions/src/shared"
import { FollowBillButton } from "components/shared/FollowButton"
import { PendingUpgradeBanner } from "components/PendingUpgradeBanner"
import { FollowContext, OrgFollowStatus } from "components/shared/FollowContext"
import { useState } from "react"

const StyledContainer = styled(Container)`
font-family: "Nunito";
`

const StyledImage = styled(Image)`
width: 14.77px;
height: 12.66px;

margin-left: 8px;
`

export const BillDetails = ({ bill }: BillProps) => {
const { t } = useTranslation("common")

Expand Down
26 changes: 16 additions & 10 deletions components/bill/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { SmartDisclaimer } from "./SmartDisclaimer"
import { SmartIcon } from "./SmartIcon"
import { TestimonyCounts } from "./TestimonyCounts"
import { BillProps } from "./types"
import { currentGeneralCourt } from "functions/src/shared"
import { BillTopic } from "functions/src/bills/types"

const SummaryContainer = styled(Container)`
background-color: white;
Expand Down Expand Up @@ -49,17 +51,21 @@ const SmartTagButton = styled.button`
font-size: 12px;
`

const SmartTag = ({ icon, tagName }: { icon: String; tagName: String }) => {
const SmartTag = ({ topic }: { topic: BillTopic }) => {
return (
<SmartTagButton
className={`btn btn-secondary d-flex text-nowrap mt-1 mx-1 p-1`}
<links.Internal
href={links.billSearchByTopicLink(currentGeneralCourt, topic)}
>
&nbsp;
<SmartIcon icon={icon} />
&nbsp;
{tagName}
&nbsp;
</SmartTagButton>
<SmartTagButton
className={`btn btn-secondary d-flex text-nowrap mt-1 mx-1 p-1`}
>
&nbsp;
<SmartIcon icon={topic.category} />
&nbsp;
{topic.topic}
&nbsp;
</SmartTagButton>
</links.Internal>
)
}

Expand Down Expand Up @@ -134,7 +140,7 @@ export const Summary = ({
<Row className="mx-1 mb-3">{bill.summary}</Row>
<Row className={`d-flex mx-0 my-1`} xs="auto">
{bill.topics?.map(t => (
<SmartTag key={t.topic} icon={t.category} tagName={t.topic} />
<SmartTag key={t.topic} topic={t} />
))}
</Row>
</>
Expand Down
12 changes: 6 additions & 6 deletions components/featureFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ const defaults: Record<Env, FeatureFlags> = {
},
production: {
testimonyDiffing: false,
notifications: false,
notifications: true,
billTracker: false,
followOrg: false,
followOrg: true,
lobbyingTable: false,
showLLMFeatures: false
showLLMFeatures: true
},
test: {
testimonyDiffing: false,
notifications: false,
notifications: true,
billTracker: false,
followOrg: false,
followOrg: true,
lobbyingTable: false,
showLLMFeatures: false
showLLMFeatures: true
}
}

Expand Down
3 changes: 3 additions & 0 deletions components/formatting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ export const decodeHtmlCharCodes = (s: string) =>
s.replace(/(&#(\d+);)/g, (match, capture, charCode) =>
String.fromCharCode(charCode)
)

export const truncateText = (s: string | undefined, maxLength: number) =>
!!s && s.length > maxLength ? s.substring(0, maxLength) + "..." : s
10 changes: 9 additions & 1 deletion components/links.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Link from "next/link"
import { forwardRef, PropsWithChildren } from "react"
import { CurrentCommittee } from "../functions/src/bills/types"
import { BillTopic, CurrentCommittee } from "../functions/src/bills/types"
import { Testimony } from "components/db/testimony"
import { Bill, MemberContent } from "./db"
import { formatBillId } from "./formatting"
Expand Down Expand Up @@ -130,3 +130,11 @@ export const twitterShareLink = (publication: Testimony, t: TFunction) => {

return tweetUrl
}

export const billSearchByTopicLink = (court: number, topic: BillTopic) => {
const params = {
"bills/sort/latestTestimonyAt:desc[multiselectHierarchicalMenu][topics.lvl1][0]": `${topic.category} > ${topic.topic}`,
"bills/sort/latestTestimonyAt:desc[refinementList][court][0]": `${court}`
}
return `/bills?${new URLSearchParams(params).toString()}`
}
25 changes: 11 additions & 14 deletions components/search/HierarchicalMenuWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,6 @@ export const connectMultiselectHierarchicalMenu: MultiselectHierarchicalMenuConn
): MultiselectHierarchicalMenuItem[] => {
const sortByParameter = isParent ? ["name:asc"] : ["count:desc"]

// Trigger a new search to apply the updated facets
if (
helper.state.disjunctiveFacets.length != 0 &&
!helper.state.disjunctiveFacets.includes(attribute)
) {
helper.setQueryParameter("disjunctiveFacets", [
...helper.state.disjunctiveFacets,
attribute
])
helper.search()
}

const facetValues =
(results?.getFacetValues(attribute, {
sortBy: sortByParameter
Expand Down Expand Up @@ -151,7 +139,6 @@ export const connectMultiselectHierarchicalMenu: MultiselectHierarchicalMenuConn
} else {
helper.removeDisjunctiveFacetRefinement(attribute, value)
}

helper.search()
}

Expand Down Expand Up @@ -182,7 +169,17 @@ export const connectMultiselectHierarchicalMenu: MultiselectHierarchicalMenuConn
}
},
init(initOptions) {
const { instantSearchInstance } = initOptions
const { helper, instantSearchInstance } = initOptions
attributes.forEach(attr => {
if (!helper.state.disjunctiveFacets.includes(attr)) {
helper.setQueryParameter("disjunctiveFacets", [
...helper.state.disjunctiveFacets,
attr
])
}
})
helper.search()

renderFn(
{
...this.getWidgetRenderState(initOptions),
Expand Down
Loading