Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions apps/web/src/components/LegacySidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { useSupportsMultiplePullRequests } from "~/hooks/useSupportsMultiplePullRequests";
import { GitPullRequestIcon } from "lucide-react";
import { LinkBranchPullRequestButton } from "./pullRequest/LinkBranchPullRequestButton";
import {
resolveThreadCurrentPullRequestLink,
visibleThreadPullRequests,
} from "@t3tools/shared/threadPullRequests";
import { resolveThreadCurrentPullRequestLink } from "@t3tools/shared/threadPullRequests";
import { Spinner } from "~/components/ui/spinner";
import {
ArchiveIcon,
Expand Down Expand Up @@ -764,12 +760,6 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
<GitPullRequestIcon className="size-3" />
</a>
) : null}
{pr &&
(supportsMultiplePullRequests
? visibleThreadPullRequests(thread.pullRequests).length === 0
: thread.linkedPullRequest == null) ? (
<LinkBranchPullRequestButton threadRef={threadRef} url={pr.url} />
) : null}
{threadStatus && <ThreadStatusLabel status={threadStatus} />}
{renamingThreadKey === threadKey ? (
<input
Expand Down
21 changes: 1 addition & 20 deletions apps/web/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { useSupportsMultiplePullRequests } from "~/hooks/useSupportsMultiplePullRequests";
import { LinkBranchPullRequestButton } from "./pullRequest/LinkBranchPullRequestButton";
import {
resolveThreadCurrentPullRequestLink,
visibleThreadPullRequests,
} from "@t3tools/shared/threadPullRequests";
import { resolveThreadCurrentPullRequestLink } from "@t3tools/shared/threadPullRequests";
import { useAtomValue } from "@effect/atom-react";
import * as Schema from "effect/Schema";
import {
Expand Down Expand Up @@ -1617,14 +1613,6 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
remain visible AND clickable while the row is hovered. Only
the time/jump label yields to the settle affordance. */}
{prBadge}
{prBadge &&
variantAction !== "unsettle" &&
pr &&
(supportsMultiplePullRequests
? visibleThreadPullRequests(thread.pullRequests).length === 0
: thread.linkedPullRequest == null) ? (
<LinkBranchPullRequestButton threadRef={threadRef} url={pr.url} />
) : null}
{sortable?.isDragging ? (
dragDestination
) : (
Expand Down Expand Up @@ -1925,13 +1913,6 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
)}
{terminalStatusIcon}
{prBadge}
{prBadge &&
pr &&
(supportsMultiplePullRequests
? visibleThreadPullRequests(thread.pullRequests).length === 0
: thread.linkedPullRequest == null) ? (
<LinkBranchPullRequestButton threadRef={threadRef} url={pr.url} />
) : null}
{diff ? (
<span className="shrink-0 font-mono">
<span className="text-diff-addition-foreground">+{diff.insertions}</span>{" "}
Expand Down

This file was deleted.

Loading