chore(env): update application version to 2.2.2 in production environment
feat(checkbox): enhance Checkbox component with animation and new icon options - Added GSAP animations for checkbox state changes to improve user interaction. - Introduced a new "none" icon option for the Checkbox component. - Updated Checkbox component to support additional props and improved styling. - Refactored Checkbox rendering logic for better performance and maintainability. feat(tender-filters): add document state filter to TenderListFilters - Integrated a new checkbox filter for "Documents scraped" in the TenderListFilters component. - Enhanced the UI for the filter section to improve user experience.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { GlobeIcon, SearchIcon } from "@/assets/icons";
|
||||
import { Checkbox } from "@/components/FormElements/checkbox";
|
||||
import DatePicker from "@/components/FormElements/DatePicker/DatePicker";
|
||||
import InputGroup from "@/components/FormElements/InputGroup";
|
||||
import { Select } from "@/components/FormElements/select";
|
||||
@@ -67,6 +68,7 @@ function countActiveFilters(values: Record<string, unknown>): number {
|
||||
for (const key of RANGE_KEYS) {
|
||||
if (isRangeActive(values[key])) n++;
|
||||
}
|
||||
if (values.documents_scraped === true) n++;
|
||||
return n;
|
||||
}
|
||||
|
||||
@@ -215,6 +217,21 @@ const TenderListFilters = ({
|
||||
</div>
|
||||
</CollapsibleFilterSection>
|
||||
|
||||
<CollapsibleFilterSection
|
||||
title="Document state"
|
||||
subtitle="Restrict to tenders whose documents have been scraped."
|
||||
>
|
||||
<div className="max-w-fit rounded-xl border border-stroke/40 bg-white/60 p-4 dark:border-white/[0.06] dark:bg-dark-3/40">
|
||||
<Checkbox
|
||||
label="Documents scraped"
|
||||
minimal
|
||||
withBg
|
||||
withIcon="check"
|
||||
{...filterRegister("documents_scraped")}
|
||||
/>
|
||||
</div>
|
||||
</CollapsibleFilterSection>
|
||||
|
||||
<CollapsibleFilterSection
|
||||
title="Date ranges"
|
||||
subtitle="Unix-backed ranges — pick start/end; cleared ranges are omitted from the query."
|
||||
|
||||
Reference in New Issue
Block a user