Skip to content
Source
Sign inSign up
pingdotgg/t3code

Add configurable Sidebar V2 ordering #4702

Closedsaphid(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/4702/headopened View on GitHub

Showing 21 changed files with 151 additions and 3 deletions (loading 18).

x
0 of 21 viewed, 21 left
2 additions and 0 deletionsapps/desktop/src/settings/DesktopClientSettings.test.tsModified
View file
@@ -30,6 +30,8 @@
sidebarThreadSortOrder: "created_at",
sidebarThreadPreviewCount: 6,
sidebarV2Enabled: false,
+ sidebarV2ThreadGroupOrder: ["review", "working", "ready"],
+ sidebarV2ThreadOrderMode: "created_at",
timestampFormat: "24-hour",
wordWrap: true,
};
20 additions and 1 deletionapps/mobile/src/features/home/HomeScreen.tsxModified
View file
@@ -12,6 +12,10 @@
SidebarProjectGroupingMode,
SidebarThreadSortOrder,
} from "@t3tools/contracts";
+import {
+ DEFAULT_SIDEBAR_V2_THREAD_GROUP_ORDER,
+ DEFAULT_SIDEBAR_V2_THREAD_ORDER_MODE,
+} from "@t3tools/contracts";
import { useAtomSet, useAtomValue } from "@effect/atom-react";
import { AsyncResult } from "effect/unstable/reactivity";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
@@ -184,6 +188,16 @@
const threadListV2Enabled =
AsyncResult.isSuccess(preferencesResult) &&
preferencesResult.value.threadListV2Enabled === true;
+ const threadOrderMode = AsyncResult.isSuccess(preferencesResult)