fix: re-implement filter components in /insights/routing (#18655)

* fix: re-implement team filter & people filter components

* implement DateRangeFilter

* show selected filter values

---------

Co-authored-by: Benny Joo <[email protected]>
This commit is contained in:
Eunjae LeeandBenny Joo authored and GitHub committed 2025-01-24 17:38:48 +01:00
1 parent a069af715e
commit d5e633b481
25 files changed
+770 -265

No files matched your search

+21
View File
@@ -118,6 +118,16 @@
<path d="M16 2v4" ></path>
<path d="M21.29 14.7a2.43 2.43 0 0 0-2.65-.52c-.3.12-.57.3-.8.53l-.34.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L17.5 22l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z" ></path>
</symbol>
<symbol class="lucide lucide-calendar-range" viewBox="0 0 24 24" fill="inherit" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="calendar-range">
<rect width="18" height="18" x="3" y="4" rx="2" ></rect>
<path d="M16 2v4" ></path>
<path d="M3 10h18" ></path>
<path d="M8 2v4" ></path>
<path d="M17 14h-6" ></path>
<path d="M13 18H7" ></path>
<path d="M7 14h.01" ></path>
<path d="M17 18h.01" ></path>
</symbol>
<symbol class="lucide lucide-calendar-search" viewBox="0 0 24 24" fill="inherit" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="calendar-search">
<path d="M16 2v4" ></path>
<path d="M21 11.75V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.25" ></path>
@@ -548,6 +558,17 @@
<path d="M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8" ></path>
<path d="m18 14 4 4-4 4" ></path>
</symbol>
<symbol class="lucide lucide-sliders-horizontal" viewBox="0 0 24 24" fill="inherit" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="sliders-horizontal">
<line x1="21" x2="14" y1="4" y2="4" ></line>
<line x1="10" x2="3" y1="4" y2="4" ></line>
<line x1="21" x2="12" y1="12" y2="12" ></line>
<line x1="8" x2="3" y1="12" y2="12" ></line>
<line x1="21" x2="16" y1="20" y2="20" ></line>
<line x1="12" x2="3" y1="20" y2="20" ></line>
<line x1="14" x2="14" y1="2" y2="6" ></line>
<line x1="8" x2="8" y1="10" y2="14" ></line>
<line x1="16" x2="16" y1="18" y2="22" ></line>
</symbol>
<symbol class="lucide lucide-sliders-vertical" viewBox="0 0 24 24" fill="inherit" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="sliders-vertical">
<line x1="4" x2="4" y1="21" y2="14" ></line>
<line x1="4" x2="4" y1="10" y2="3" ></line>

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 50 KiB

@@ -2078,6 +2078,7 @@
"looking_for_more_analytics": "Looking for more analytics?",
"looking_for_more_insights": "Looking for more Insights?",
"filters": "Filters",
"filter": "Filter",
"add_filter": "Add filter",
"add_rule": "Add rule",
"add_rule_group": "Add rule group",
@@ -2741,10 +2742,10 @@
"no_matching_members_will_fallback_to_all_assigned_members": "No matching members. It will fallback to using the team members assigned to the event type. Consider adding a fallback or correcting the logic of using_fallback_members",
"hide_calendar_event_details": "Hide calendar event details on shared calendars",
"description_hide_calendar_event_details": "When a calendar is shared, events are visible to readers but their details are hidden from those without write access.",
"last_number_of_days": "last {{count}} days",
"month_to_date": "month to date",
"year_to_date": "year to date",
"custom_range": "custom range",
"last_number_of_days": "Last {{count}} days",
"month_to_date": "Month to date",
"year_to_date": "Year to date",
"custom_range": "Custom range",
"refund_policy": "Refund Policy",
"always": "Always",
"never": "Never",