diff --git a/src/components/forms/forms-search-results-page.tsx b/src/components/forms/forms-search-results-page.tsx index 208717f02..0b0672ad5 100644 --- a/src/components/forms/forms-search-results-page.tsx +++ b/src/components/forms/forms-search-results-page.tsx @@ -3,8 +3,8 @@ import Link from "next/link"; import { useRouter } from "next/navigation"; import { + ChevronDown, ChevronRight, - Clock3, ExternalLink, FileText, Loader2, @@ -16,7 +16,7 @@ import { Workflow, type LucideIcon, } from "lucide-react"; -import { useMemo } from "react"; +import { useId, useMemo, useState } from "react"; import { appModeHomeHref } from "@/lib/app-modes"; import { rankFormRecords, type FormSearchMatch } from "@/lib/forms"; @@ -50,6 +50,19 @@ const sourceSnippetCount = 278; const taskCount = 8; const pathwayCount = 12; +const refineFilters: { + icon: LucideIcon; + title: string; + subtitle: string; + enabled: boolean; + danger?: boolean; +}[] = [ + { icon: Shield, title: "High risk only", subtitle: "Show high risk forms", enabled: false, danger: true }, + { icon: FileText, title: "Official forms", subtitle: "Limit to official forms", enabled: true }, + { icon: Workflow, title: "Pathway linked", subtitle: "Show pathway-linked", enabled: true }, + { icon: Search, title: "Source matches", subtitle: "Require source match", enabled: false }, +]; + function resultCode(match: FormSearchMatch, index: number) { return formCodesBySlug[match.service.slug] ?? String(index + 1); } @@ -89,7 +102,7 @@ function ResultTabs({ formsCount }: { formsCount: number }) { return (