Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat[mobile]: soup filters as drawer (#2229)
Peter Chinmanb160fdbaf90f
diff --git a/js/app/bun.lock b/js/app/bun.lockindex c4fa09f19f..36aa8e1982 100644--- a/js/app/bun.lock+++ b/js/app/bun.lock@@ -15,6 +15,7 @@"@codemirror/lang-rust": "^6.0.2","@codemirror/language": "^6.11.3","@corvu/dialog": "^0.2.4",+ "@corvu/drawer": "^0.2.4","@corvu/resizable": "^0.2.5","@corvu/tooltip": "^0.2.2","@date-fns/tz": "^1.4.1",@@ -499,6 +500,8 @@"@corvu/dialog": ["@corvu/[email protected]", "", { "dependencies": { "@corvu/utils": "~0.4.2", "solid-dismissible": "~0.1.1", "solid-focus-trap": "~0.1.8", "solid-presence": "~0.2.0", "solid-prevent-scroll": "~0.1.10" }, "peerDependencies": { "solid-js": "^1.8" } }, "sha512-n54vJq+fOy8GVrnYBdJpD6JXNuyx7LOeMrRxwzAvZnYGpW8+AA12tnb/P/2emJj/HjOO5otheGKb0breshdFlA=="],+ "@corvu/drawer": ["@corvu/[email protected]", "", { "dependencies": { "@corvu/dialog": "~0.2.4", "@corvu/utils": "~0.4.2", "@solid-primitives/memo": "^1.4.1", "solid-transition-size": "~0.1.4" }, "peerDependencies": { "solid-js": "^1.8" } }, "sha512-7jQoGZ8ROB9CmXam2nMY2wEskU3IoFwZQywkF/7vrBc/edGsPv7mOVQ1GN6G+4nd7nrMZ3UtqHAhmRh9V0azlw=="],+"@corvu/resizable": ["@corvu/[email protected]", "", { "dependencies": { "@corvu/utils": "~0.4.2" }, "peerDependencies": { "solid-js": "^1.8" } }, "sha512-psax38DraM9SXtaNh/sfvizGO6xLCL4sqT4rWYlMZP5ZsUM05Q30tvXgnTo2roQFNOz2e06WofhDsBXTjY6g4A=="],"@corvu/tooltip": ["@corvu/[email protected]", "", { "dependencies": { "@corvu/utils": "~0.4.2", "@floating-ui/dom": "^1.6.13", "solid-dismissible": "~0.1.1", "solid-presence": "~0.2.0" }, "peerDependencies": { "solid-js": "^1.8" } }, "sha512-gyOBJ43GNAecDtmWc68A5YJvifXWwK0VZZdTOcFbX0rVQUA2ihBMltRE4oj7/lKidg2gXALjmFr71Blt5s3YuQ=="],@@ -2553,6 +2556,8 @@"solid-transition-group": ["[email protected]", "", { "dependencies": { "@solid-primitives/refs": "^1.0.5", "@solid-primitives/transition-group": "^1.0.2" }, "peerDependencies": { "solid-js": "^1.6.12" } }, "sha512-iB72c9N5Kz9ykRqIXl0lQohOau4t0dhel9kjwFvx81UZJbVwaChMuBuyhiZmK24b8aKEK0w3uFM96ZxzcyZGdg=="],+ "solid-transition-size": ["[email protected]", "", { "dependencies": { "@corvu/utils": "~0.3.2" }, "peerDependencies": { "solid-js": "^1.8" } }, "sha512-ocHVnbfy23CgfaH4cEUR/AFg0Y3CEL8Oh3n9Qv8OHFJgPh+zkmERKZQfi/xH5XvxDCizg8VjPrVUhiHB1Gza8g=="],+"source-map": ["[email protected]", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="],"source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],@@ -3709,6 +3714,8 @@"solid-refresh/@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.24.8", "@babel/helper-validator-identifier": "^7.24.7", "to-fast-properties": "^2.0.0" } }, "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q=="],+ "solid-transition-size/@corvu/utils": ["@corvu/[email protected]", "", { "dependencies": { "@floating-ui/dom": "^1.6.7" }, "peerDependencies": { "solid-js": "^1.8" } }, "sha512-ZWlyWEE8qV9+CB9OAyo2bTrZGXQN9ZeM+JfYv89zoR+lRACKTDuoOZEdiyL8Uc7U5dUSH1uTqKhTTnaHWb+wZA=="],+"string-width/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],"string-width-cjs/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],diff --git a/js/app/package.json b/js/app/package.jsonindex 6be7f52411..ab11bf8e96 100644--- a/js/app/package.json+++ b/js/app/package.json@@ -32,6 +32,7 @@"@codemirror/lang-rust": "^6.0.2","@codemirror/language": "^6.11.3","@corvu/dialog": "^0.2.4",+ "@corvu/drawer": "^0.2.4","@corvu/resizable": "^0.2.5","@corvu/tooltip": "^0.2.2","@date-fns/tz": "^1.4.1",diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/active-filter-chips.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/active-filter-chips.tsxindex d700dead3e..86d21e0174 100644--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/active-filter-chips.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/active-filter-chips.tsx@@ -28,6 +28,10 @@ interface ActiveFilterChipsProps {onClearAll: () => void;/** Check if a filter option is currently active */isOptionActive: (optionId: string) => boolean;+ /** Extra class applied to each chip wrapper */+ chipClass?: string;+ /** Hide the "Category: " prefix in each chip label */+ hideCategoryLabel?: boolean;}const FilterChip = (props: {@@ -35,6 +39,8 @@ const FilterChip = (props: {onRemove: () => void;onReplace: (newOptionId: string) => void;isOptionActive: (optionId: string) => boolean;+ chipClass?: string;+ hideCategoryLabel?: boolean;}) => {const [open, setOpen] = createSignal(false);@@ -47,7 +53,8 @@ const FilterChip = (props: {'flex text-xs rounded-xs','bg-ink/10 text-ink-muted border border-edge-muted','group',- 'transition-colors'+ 'transition-colors',+ props.chipClass)}><Show@@ -62,7 +69,10 @@ const FilterChip = (props: {)}</Show><span class="font-medium">- {props.filter.categoryLabel}: {props.filter.optionLabel}+ <Show when={!props.hideCategoryLabel}>+ {props.filter.categoryLabel}:{' '}+ </Show>+ {props.filter.optionLabel}</span></span>}@@ -82,7 +92,10 @@ const FilterChip = (props: {)}</Show><span class="font-medium">- {props.filter.categoryLabel}: {props.filter.optionLabel}+ <Show when={!props.hideCategoryLabel}>+ {props.filter.categoryLabel}:{' '}+ </Show>+ {props.filter.optionLabel}</span></DropdownMenu.Trigger>@@ -177,6 +190,8 @@ export const ActiveFilterChips = (props: ActiveFilterChipsProps) => {props.onReplace(filter.optionId, newOptionId)}isOptionActive={props.isOptionActive}+ chipClass={props.chipClass}+ hideCategoryLabel={props.hideCategoryLabel}/>}>@@ -188,6 +203,8 @@ export const ActiveFilterChips = (props: ActiveFilterChipsProps) => {props.onReplace(filter.optionId, newOptionId)}isOptionActive={props.isOptionActive}+ chipClass={props.chipClass}+ hideCategoryLabel={props.hideCategoryLabel}/><Buttonclass={cn(diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/mobile-filter-drawer.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/mobile-filter-drawer.tsxnew file mode 100644index 0000000000..2c24564517--- /dev/null+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/mobile-filter-drawer.tsx@@ -0,0 +1,344 @@+import Drawer from '@corvu/drawer';+import { Accordion } from '@kobalte/core/accordion';+import { cn } from '@ui/utils/classname';+import { createMemo, createSignal, For, Show } from 'solid-js';+import { ScrollIndicators } from '@core/component/VerticalScrollIndicators';+import SlidersHorizontalIcon from '@macro-icons/wide/sliders-horizontal.svg';+import ChevronDownIcon from '@icon/regular/caret-down.svg';+import CheckIcon from '@icon/regular/check.svg';+import SearchIcon from '@icon/regular/magnifying-glass.svg';+import CircleDashedIcon from '@icon/regular/circle-dashed.svg';+import { Button } from './button';+import {+ VIEW_FILTER_CATEGORIES,+ buildContactLabel,+ type FilterOption,+} from './unified-filter-dropdown';+import { ActiveFilterChips } from './active-filter-chips';+import { useFilterRefinements } from './use-filter-refinements';+import { useSoupView } from '@app/component/next-soup/soup-view/soup-view-context';+import { useSplitPanelOrThrow } from '@app/component/split-layout/layoutUtils';+import type { ListView } from '@app/constants/list-views';+import { isListViewID } from '@app/constants/list-views';+import { useContacts } from '@queries/contacts/contacts';+import { useUserId } from '@core/context/user';+import { NO_ASSIGNEE } from '@app/component/next-soup/soup-view/task-sub-filter-matcher';+import { UserIcon } from '@core/component/UserIcon';++export const MobileFilterDrawer = () => {+ const {+ activeFiltersList,+ removeFilter,+ replaceFilter,+ resetToTabDefaults,+ isOptionActive,+ } = useFilterRefinements();++ const { soup, assigneeFilter, setAssigneeFilter } = useSoupView();+ const panel = useSplitPanelOrThrow();+ const contacts = useContacts();+ const userId = useUserId();++ const [assigneeSearch, setAssigneeSearch] = createSignal('');++ const currentView = createMemo((): ListView | undefined => {+ const content = panel.handle.content();+ if (content.type !== 'component' || !isListViewID(content.id))+ return undefined;+ return content.id;+ });++ const categories = createMemo(() => {+ const view = currentView();+ if (!view) return [];+ return VIEW_FILTER_CATEGORIES[view] ?? [];+ });++ const isTasksView = () => currentView() === 'tasks';++ const hasFiltersOrCategories = () => categories().length > 0 || isTasksView();++ const toggleFilter = (optionId: FilterOption['id']) => {+ soup.filters.toggle({ or: [optionId] });+ };++ const toggleAssignee = (id: string) => {+ const current = assigneeFilter();+ if (current.includes(id)) {+ setAssigneeFilter(current.filter((a) => a !== id));+ } else {+ setAssigneeFilter([...current, id]);+ }+ };++ const assigneeOptions = createMemo(() => {+ const currentUserId = userId();+ const noAssigneeOption = {+ id: NO_ASSIGNEE,+ label: 'Unassigned',+ icon: () => <CircleDashedIcon class="size-3.5 text-ink-muted" />,+ };+ const contactOptions = contacts().map((contact) => ({+ id: contact.id,+ label: buildContactLabel(contact, currentUserId),+ icon: () => (+ <UserIcon id={contact.id} size="xs" suppressClick showTooltip={false} />+ ),+ }));+ return [noAssigneeOption, ...contactOptions];+ });++ const filteredAssigneeOptions = createMemo(() => {+ const query = assigneeSearch().toLowerCase();+ if (!query) return assigneeOptions();+ return assigneeOptions().filter((o) =>+ o.label.toLowerCase().includes(query)+ );+ });++ const activeCount = () => activeFiltersList().length;++ const [scrollRef, setScrollRef] = createSignal<HTMLElement>();++ return (+ <Show when={hasFiltersOrCategories()}>+ <Drawer+ side="bottom"+ preventScroll={false}+ preventScrollbarShift={false}+ breakPoints={[0.85]}+ >+ <Drawer.Trigger+ as={Button}+ variant="secondary"+ size="sm"+ class="rounded-xs [&_svg]:size-4 relative"+ >+ <SlidersHorizontalIcon />+ <span class="font-medium">Filter</span>+ <Show when={activeCount() > 0}>+ <span class="absolute -top-1 -right-1 size-4 flex items-center justify-center rounded-full bg-accent text-page text-[10px] font-medium leading-none">+ {activeCount()}+ </span>+ </Show>+ </Drawer.Trigger>++ <Drawer.Portal>+ <Drawer.Overlay class="fixed inset-0 z-modal-overlay bg-modal-overlay" />+ <Drawer.Content+ aria-label="Filters"+ class="fixed bottom-0 left-0 right-0 z-modal bg-menu rounded-t-lg shadow-lg flex flex-col h-[80dvh] border-l border-r border-t border-edge transition-transform duration-100 ease-out data-[closing]:ease-in pb-(--safe-bottom)"+ >+ {/* Drag handle */}+ <div class="flex justify-center pt-3 pb-1 shrink-0">+ <div class="w-10 h-1 rounded-full bg-edge-muted" />+ </div>++ {/* Header */}+ {/*+ <div class="flex items-center justify-between px-4 pb-2 shrink-0 border-b border-edge-muted/50">+ <span class="text-md font-md text-ink-muted">Filters</span>+ <div class="flex items-center gap-2">+ <Drawer.Close+ as={Button}+ variant="ghost"+ class="rounded-xs size-11 [&_svg]:size-6 px-1"+ >+ <XIcon />+ </Drawer.Close>+ </div>+ </div>+ */}++ {/* Scrollable filter list */}+ <div class="relative flex-1 min-h-0">+ <ScrollIndicators+ scrollRef={scrollRef}+ noBorderStart+ noBorderEnd+ />+ <div+ ref={setScrollRef}+ class="overflow-y-auto scrollbar-hidden h-full pb-1"+ >+ <Accordion+ multiple+ collapsible+ defaultValue={[categories()[0]?.id ?? 'assignee']}+ >+ <For each={categories()}>+ {(category) => {+ const activeCount = createMemo(+ () =>+ category.options.filter((o) =>+ soup.filters.isActive(o.id)+ ).length+ );+ return (+ <Accordion.Item+ value={category.id}+ class="border-b border-edge-muted/30 last:border-b-0"+ >+ <Accordion.Header>+ <Accordion.Trigger class="w-full flex items-center justify-between px-4 py-3 text-sm text-ink hover:bg-hover transition-colors outline-none group">+ <span class="font-medium">{category.label}</span>+ <div class="flex items-center gap-2">+ <Show when={activeCount() > 0}>+ <span class="group-data-[expanded]:hidden size-4 flex items-center justify-center rounded-full bg-accent text-page text-[10px] font-medium leading-none">+ {activeCount()}+ </span>+ </Show>+ <ChevronDownIcon class="size-3.5 text-ink-muted transition-transform duration-200 group-data-[expanded]:rotate-180" />+ </div>+ </Accordion.Trigger>+ </Accordion.Header>+ <Accordion.Content class="pb-1">+ <For each={category.options}>+ {(option) => {+ const active = () =>+ soup.filters.isActive(option.id);+ return (+ <button+ type="button"+ role="checkbox"+ aria-checked={active()}+ class="w-full flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-hover transition-colors text-left"+ onClick={() => toggleFilter(option.id)}+ >+ <span+ class={cn(+ 'size-4 flex items-center justify-center shrink-0 rounded border transition-colors',+ active()+ ? 'bg-accent border-accent'+ : 'border-edge'+ )}+ >+ <Show when={active()}>+ <CheckIcon class="size-2.5 text-page" />+ </Show>+ </span>+ <Show when={option.icon}>+ {(icon) => (+ <span class="size-4 flex items-center justify-center shrink-0">+ {icon()()}+ </span>+ )}+ </Show>+ <span class={cn('flex-1 truncate')}>+ {option.label}+ </span>+ </button>+ );+ }}+ </For>+ </Accordion.Content>+ </Accordion.Item>+ );+ }}+ </For>++ {/* Assignee section for tasks view */}+ <Show when={isTasksView()}>+ <Accordion.Item+ value="assignee"+ class="border-b border-edge-muted/30 last:border-b-0"+ >+ <Accordion.Header>+ <Accordion.Trigger class="w-full flex items-center justify-between px-4 py-3 text-sm text-ink hover:bg-hover transition-colors outline-none group">+ <span class="font-medium">Assignee</span>+ <div class="flex items-center gap-2">+ <Show when={assigneeFilter().length > 0}>+ <span class="group-data-[expanded]:hidden size-4 flex items-center justify-center rounded-full bg-accent text-page text-[10px] font-medium leading-none">+ {assigneeFilter().length}+ </span>+ </Show>+ <ChevronDownIcon class="size-3.5 text-ink-muted transition-transform duration-200 group-data-[expanded]:rotate-180" />+ </div>+ </Accordion.Trigger>+ </Accordion.Header>+ <Accordion.Content class="pb-1">+ {/* Search */}+ <div class="flex items-center gap-2 px-4 py-2 border-b border-edge-muted/50 mb-1">+ <SearchIcon class="size-3.5 text-ink-muted shrink-0" />+ <input+ type="text"+ aria-label="Search assignees"+ value={assigneeSearch()}+ onInput={(e) =>+ setAssigneeSearch(e.currentTarget.value)+ }+ placeholder="Search assignees..."+ class="flex-1 bg-transparent text-sm outline-none placeholder:text-ink-muted"+ />+ </div>+ <For each={filteredAssigneeOptions()}>+ {(option) => {+ const active = () =>+ assigneeFilter().includes(option.id);+ return (+ <button+ type="button"+ role="checkbox"+ aria-checked={active()}+ class="w-full flex items-center gap-3 px-4 py-2.5 text-sm hover:bg-hover transition-colors text-left"+ onClick={() => toggleAssignee(option.id)}+ >+ <span+ class={cn(+ 'size-4 flex items-center justify-center shrink-0 rounded border transition-colors',+ active()+ ? 'bg-accent border-accent'+ : 'border-edge'+ )}+ >+ <Show when={active()}>+ <CheckIcon class="size-2.5 text-page" />+ </Show>+ </span>+ <span class="size-4 flex items-center justify-center shrink-0">+ {option.icon()}+ </span>+ <span+ class={cn(+ 'flex-1 truncate',+ active() ? 'text-ink' : 'text-ink-muted'+ )}+ >+ {option.label}+ </span>+ </button>+ );+ }}+ </For>+ <Show when={filteredAssigneeOptions().length === 0}>+ <div class="px-4 py-2 text-sm text-ink-muted">+ No results+ </div>+ </Show>+ </Accordion.Content>+ </Accordion.Item>+ </Show>+ </Accordion>+ </div>+ </div>++ {/* Active filter chips footer */}+ <Show when={activeCount() > 0}>+ <div class="shrink-0 border-t border-edge-muted/50 py-2">+ <ActiveFilterChips+ filters={activeFiltersList()}+ onRemove={removeFilter}+ onReplace={replaceFilter}+ onClearAll={resetToTabDefaults}+ isOptionActive={isOptionActive}+ chipClass="min-h-11"+ hideCategoryLabel+ />+ </div>+ </Show>+ </Drawer.Content>+ </Drawer.Portal>+ </Drawer>+ </Show>+ );+};diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-filters-bar.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-filters-bar.tsxindex 8d50542c4b..93f931386f 100644--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-filters-bar.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/soup-filters-bar.tsx@@ -3,9 +3,11 @@ import { SoupSearchbar } from '@app/component/next-soup/soup-view/filters-bar/soimport { useFilterRefinements } from '@app/component/next-soup/soup-view/filters-bar/use-filter-refinements';import { useSplitPanelOrThrow } from '@app/component/split-layout/layoutUtils';import type { ListView } from '@app/constants/list-views';-import { createMemo, createSignal, Match, Switch } from 'solid-js';+import { createMemo, createSignal, Match, Show, Switch } from 'solid-js';import { UnifiedFilterDropdown } from '@app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown';import { ActiveFilterChips } from '@app/component/next-soup/soup-view/filters-bar/active-filter-chips';+import { MobileFilterDrawer } from '@app/component/next-soup/soup-view/filters-bar/mobile-filter-drawer';+import { isMobile } from '@core/mobile/isMobile';import { LabelAndHotKey, Tooltip } from '@core/component/Tooltip';import { Button } from './button';import { AnimatedPreviewIcon } from '@macro-icons/wide/animating/preview';@@ -75,14 +77,23 @@ export const SoupFiltersBar = () => {</Match><Match when={true}><div class="flex items-start gap-2 px-2 py-1.5 border-b border-edge-muted/50 w-full">- <UnifiedFilterDropdown />- <ActiveFilterChips- filters={activeFiltersList()}- onRemove={removeFilter}- onReplace={replaceFilter}- onClearAll={resetToTabDefaults}- isOptionActive={isOptionActive}- />+ <Show+ when={isMobile()}+ fallback={+ <>+ <UnifiedFilterDropdown />+ <ActiveFilterChips+ filters={activeFiltersList()}+ onRemove={removeFilter}+ onReplace={replaceFilter}+ onClearAll={resetToTabDefaults}+ isOptionActive={isOptionActive}+ />+ </>+ }+ >+ <MobileFilterDrawer />+ </Show><div class="flex-1" /><Tooltiptooltip={<LabelAndHotKey label="Preview" shortcut="space" />}diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsxindex 874f2b30cc..85137c0881 100644--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx@@ -31,6 +31,13 @@ import { registerHotkey } from '@core/hotkey/hotkeys';import { LabelAndHotKey, Tooltip } from '@core/component/Tooltip';export type FilterOption = {+ id: FilterID;+ label: string;+ icon?: () => JSX.Element;+};++/** Options whose ids are arbitrary strings (e.g. contact IDs), not FilterIDs. */+type SearchableOption = {id: string;label: string;icon?: () => JSX.Element;@@ -308,7 +315,7 @@ export const VIEW_FILTER_CATEGORIES: Record<ListView, FilterCategory[]> = {/** Searchable submenu for filters with many options like assignees */const SearchableFilterSubmenu = (props: {label: string;- options: Accessor<FilterOption[]>;+ options: Accessor<SearchableOption[]>;activeIds: Accessor<string[]>;onToggle: (id: string) => void;placeholder?: string;@@ -500,13 +507,13 @@ export const UnifiedFilterDropdown = () => {};const toggleFilter = (optionId: string) => {- soup.filters.toggle({ or: [optionId as FilterID] });+ soup.filters.toggle({ or: [optionId] });};// Assignee options for tasks view- const assigneeOptions = createMemo((): FilterOption[] => {+ const assigneeOptions = createMemo((): SearchableOption[] => {const currentUserId = userId();- const noAssigneeOption: FilterOption = {+ const noAssigneeOption: SearchableOption = {id: NO_ASSIGNEE,label: 'Unassigned',icon: () => <CircleDashedIcon class="size-3.5 text-ink-muted" />,diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view-create-button.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view-create-button.tsxindex 93d812bdf5..b794465cb5 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view-create-button.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view-create-button.tsx@@ -46,7 +46,11 @@ function CreateOptionIcon(props: { id: BlockName | 'import' }) {when={props.id !== 'import'}fallback={<UploadIcon class="size-3.5" />}>- <EntityIcon targetType={props.id as BlockName} size="xs" />+ <EntityIcon+ targetType={props.id as BlockName}+ size="xs"+ class="mobile:size-6"+ /></Show>);}diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsxindex adab5db714..d9317c6e88 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsx@@ -235,7 +235,7 @@ export const SegmentedControl: ParentComponent<class="border-r border-edge-muted last:border-r-0"><KSegmentedControl.ItemInput class="absolute inset-0 pointer-events-none" />- <KSegmentedControl.ItemLabel class="relative text-ink-muted/70 size-full px-2.5 py-1 text-xs font-medium data-[checked]:text-ink data-[checked]:bg-edge/50 hover:text-ink hover:bg-ink/6 data-[checked]:hover:bg-edge/60 transition-colors duration-150 block">+ <KSegmentedControl.ItemLabel class="relative text-ink-muted/70 size-full mobile:min-h-11 flex items-center justify-center px-2.5 py-1 text-xs font-medium data-[checked]:text-ink data-[checked]:bg-edge/50 hover:text-ink hover:bg-ink/6 data-[checked]:hover:bg-edge/60 transition-colors duration-150">{itemLabel()}</KSegmentedControl.ItemLabel></KSegmentedControl.Item>