Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(pr): label and reviewer pickers send picks once, when they close #37733

Mergedjuliusmarmingemerged 4 commits intomain fromrefs/pull/37733/headmerged by juliusmarminge View on GitHub

Showing 9 changed files with 55 additions and 35 deletions (loading 8).

x
0 of 9 viewed, 9 left
55 additions and 35 deletionsapps/mobile/src/features/pull-requests/PullRequestLabelsScreen.tsxModified
View file
@@ -1,15 +1,23 @@
import { NativeScrollView } from "../../native/NativeScrollViewMarker";
import { LegendList } from "@legendapp/list/react-native";
import { useAtomValue } from "@effect/atom-react";
-import type { StaticScreenProps } from "@react-navigation/native";
+import { useNavigation, type StaticScreenProps } from "@react-navigation/native";
import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
+import {
+ emptySelection,
+ isSelected,
+ changeBatches,
+ selectionChanges,
+ toggleSelection,
+} from "@t3tools/client-runtime/pull-request-selection";
import type { PullRequestLabelCandidate } from "@t3tools/contracts";
import { AsyncResult } from "effect/reactivity";
-import { useRef, useState } from "react";
+import { useEffect, useState } from "react";
import { Platform, View } from "react-native";
import { AppActivityIndicator } from "../../components/ui/AppActivityIndicator";
import { AppText as Text } from "../../components/ui/AppText";
import { Button } from "../../components/ui/Button";
+import * as Dialog from "../../components/ui/Dialog";
import { EmptyState } from "../../components/ui/EmptyState";
import { SelectionRow } from "../../components/ui/SelectionRow";
import { composerPullRequests } from "../../state/pull-requests";
@@ -22,6 +30,7 @@
import { pullRequestTarget, type PullRequestParams } from "./usePullRequestDiff";
​
export function PullRequestLabelsScreen({ route }: StaticScreenProps<PullRequestParams>) {