Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: side chats and forking #9396

Closedamanthanvi(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/9396/headopened View on GitHub

Showing 96 changed files with 42 additions and 2 deletions (loading 93).

x
0 of 96 viewed, 96 left
26 additions and 0 deletionsapps/mobile/src/features/home/homeThreadList.test.tsModified
View file
@@ -72,6 +72,32 @@
​
describe("buildHomeThreadGroups", () => {
+ it("does not place side chats in the home list", () => {
+ const environmentId = EnvironmentId.make("environment-1");
+ const project = makeProject({
+ environmentId,
+ id: ProjectId.make("project-1"),
+ title: "Project",
+ });
+ const main = makeThread({
+ environmentId,
+ id: ThreadId.make("thread-main"),
+ projectId: project.id,
+ title: "Main",
+ });
+ const sideChat = makeThread({
+ environmentId,
+ id: ThreadId.make("thread-side"),
+ projectId: project.id,
+ title: "Side chat",
+ sideChat: true,
+ });
+​
+ expect(buildGroups([project], [main, sideChat])[0]?.threads.map((thread) => thread.id)).toEqual(
+ [main.id],
+ );
+ });
+​