GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mobile): thread context menu offers Mark unread (#37426) · pingdotgg/t3code@6234afb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/mobile/src
    • components/ui
      • AppSymbol.android.tsx
    • features/threads
      • thread-list-v2-items.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/mobile/src/components/ui/AppSymbol.android.tsx‎

Copy file name to clipboardExpand all lines: apps/mobile/src/components/ui/AppSymbol.android.tsx
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ import IconListNumbers from "@tabler/icons-react-native/IconListNumbers";
9191
import IconMenu2 from "@tabler/icons-react-native/IconMenu2";
9292
import IconMessageCircleQuestion from "@tabler/icons-react-native/IconMessageCircleQuestion";
9393
import IconMessage from "@tabler/icons-react-native/IconMessage";
94+
import IconMail from "@tabler/icons-react-native/IconMail";
9495
import IconMessageDots from "@tabler/icons-react-native/IconMessageDots";
9596
import IconMessagePlus from "@tabler/icons-react-native/IconMessagePlus";
9697
import IconMinus from "@tabler/icons-react-native/IconMinus";
@@ -208,6 +209,7 @@ const ANDROID_ICON_BY_SF_SYMBOL = {
208209
ellipsis: IconDots,
209210
moon: IconMoon,
210211
"ellipsis.circle": IconDotsCircleHorizontal,
212+
"envelope.badge": IconMail,
211213
"exclamationmark.triangle": IconAlertTriangle,
212214
"exclamationmark.circle": IconAlertCircle,
213215
eye: IconEye,
Collapse file

‎apps/mobile/src/features/threads/thread-list-v2-items.tsx‎

Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/thread-list-v2-items.tsx
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
799799
});
800800

801801
const visitThread = useAtomCommand(threadEnvironment.visit, { reportFailure: false });
802+
const markThreadUnread = useAtomCommand(threadEnvironment.markUnread, { reportFailure: false });
802803
const handleAcknowledgeWoke = useCallback(() => {
803804
if (props.wokeAt === null) return;
804805
void visitThread({
@@ -945,6 +946,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
945946
supported: props.titleRegenerationSupported,
946947
isRegenerating: isRegeneratingTitle,
947948
}),
949+
{ id: "mark-unread", title: "Mark unread", image: "envelope.badge" },
948950
...(canTurnIntoProject
949951
? [
950952
{
@@ -1059,6 +1061,12 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
10591061
if (nativeEvent.event === "rename") handleRename();
10601062
if (nativeEvent.event === "regenerate-title") handleRegenerateTitle();
10611063
if (nativeEvent.event === "turn-into-project") void turnThreadIntoProject(thread);
1064+
if (nativeEvent.event === "mark-unread") {
1065+
void markThreadUnread({
1066+
environmentId: thread.environmentId,
1067+
input: { threadId: thread.id },
1068+
});
1069+
}
10621070
if (nativeEvent.event === "copy-thread") {
10631071
const target = threadChipCopyTarget(
10641072
{ environmentId: thread.environmentId, threadId: thread.id },
@@ -1107,6 +1115,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
11071115
handleUnpin,
11081116
handleUnsettle,
11091117
handleUnsnooze,
1118+
markThreadUnread,
11101119
setCustomSnoozeOpen,
11111120
snoozePresets,
11121121
props.snoozePresets,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.