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
fix: turn off frecency sort (#2304)
Peter Chinman04b06a7e9b0e
diff --git a/js/app/packages/app/component/next-soup/soup-view/sort-options.tsx b/js/app/packages/app/component/next-soup/soup-view/sort-options.tsxindex 4ba57135e5..879f916cab 100644--- a/js/app/packages/app/component/next-soup/soup-view/sort-options.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/sort-options.tsx@@ -15,7 +15,6 @@ import type { JSX } from 'solid-js';import ClockIcon from '@icon/regular/clock.svg';import ArrowClockwiseIcon from '@icon/regular/arrow-clockwise.svg';import EyeIcon from '@icon/regular/eye.svg';-import ChartLineUpIcon from '@icon/regular/chart-line-up.svg';import FlagIcon from '@icon/regular/flag.svg';import ListChecksIcon from '@icon/regular/list-checks.svg';@@ -23,7 +22,6 @@ export type SystemSortOption =| 'updated_at'| 'created_at'| 'viewed_at'- | 'frecency'| 'priority'| 'status';@@ -63,10 +61,6 @@ export function sortByViewedAt<T extends EntityData>(a: T, b: T) {return compareDateDesc(a.sortTs ?? a.viewedAt, b.sortTs ?? b.viewedAt);}-export function sortByFrecencyScore<T extends EntityData>(a: T, b: T): number {- return (b.frecencyScore ?? 0) - (a.frecencyScore ?? 0);-}-/*** Priority sort order: Urgent (highest) -> High -> Medium -> Low -> No priority (lowest)*/@@ -156,10 +150,6 @@ export const SORT_CONFIGS = {id: 'viewed_at',fn: sortByViewedAt,},- frecency: {- id: 'frecency',- fn: sortByFrecencyScore,- },priority: {id: 'priority',fn: sortByPriority,@@ -186,11 +176,6 @@ const SORT_OPTIONS = [label: 'Date created',icon: () => <ClockIcon class="size-3.5" />,},- {- value: 'frecency',- label: 'Frecency',- icon: () => <ChartLineUpIcon class="size-3.5" />,- },{value: 'priority',label: 'Priority',@@ -213,7 +198,6 @@ export const DEFAULT_SORT_OPTIONS = buildSortOptions(['viewed_at','updated_at','created_at',- 'frecency',]);export const TASK_SORT_OPTIONS = buildSortOptions([diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsxindex ab3b508178..9fbe00083a 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx@@ -108,7 +108,6 @@ const VALID_API_SORT_METHODS: ApiSortMethod[] = ['created_at','updated_at','viewed_updated',- 'frecency',];export const SoupViewContextProvider: FlowComponent<