Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(mobile): add Copy thread ID, branch, and path to thread menus #12186

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

Showing 13 changed files with 87 additions and 0 deletions (loading 10).

x
0 of 13 viewed, 13 left
2 additions and 0 deletionsapps/mobile/src/components/AppSymbol.tsxModified
View file
@@ -52,6 +52,7 @@
import IconGitMerge from "@tabler/icons-react-native/IconGitMerge";
import IconGitPullRequest from "@tabler/icons-react-native/IconGitPullRequest";
import IconHammer from "@tabler/icons-react-native/IconHammer";
+import IconHash from "@tabler/icons-react-native/IconHash";
import IconInfoCircle from "@tabler/icons-react-native/IconInfoCircle";
import IconKeyboard from "@tabler/icons-react-native/IconKeyboard";
import IconKeyboardHide from "@tabler/icons-react-native/IconKeyboardHide";
@@ -132,6 +133,7 @@
desktopcomputer: IconDeviceDesktop,
"doc.on.doc": IconCopy,
"doc.text": IconFileText,
+ number: IconHash,
ellipsis: IconDots,
moon: IconMoon,
"ellipsis.circle": IconDotsCircleHorizontal,
42 additions and 0 deletionsapps/mobile/src/features/threads/thread-copy-menu.test.tsAdded
View file
@@ -0,0 +1,42 @@
+import { describe, expect, it } from "vite-plus/test";
+​
+import { buildThreadCopyMenuActions, resolveThreadCopyPath } from "./thread-copy-menu";
+​
+describe("buildThreadCopyMenuActions", () => {
+ it("offers Path, Branch, and Thread ID when the thread has a branch", () => {
+ const actions = buildThreadCopyMenuActions({ branch: "feature/mobile-copy" });
+ expect(actions).toHaveLength(1);
+ expect(actions[0]?.id).toBe("copy");