feat(github): browse and work on repository issues (#8077)

* feat(github): browse and work on repository issues

* fix(github): fix issue browse assignee filter, list keyboard navigation, and edge cases
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-12-05 00:54:51 +08:00
1 джерело 1e6ab2ecff
коміт 71bfc70996
19 files changed
+1415 -303

No files matched your search

+18
Переглянути файл
@@ -24,6 +24,8 @@ import {
T,
type MenuItem,
} from "@/ui";
import { connectedRoot } from "../data/repository";
import { hasClosingReference, issueForBranch } from "../issues/input";
import { openPullRequest } from "../toolwindow/open";
import { ChangesPanel } from "./ChangesPanel";
import { DirectionSelector } from "./DirectionSelector";
@@ -106,6 +108,13 @@ function TextPanel() {
const title = useCreatePr((s) => s.title);
const description = useCreatePr((s) => s.description);
const templateLoading = useCreatePr((s) => s.templateLoading);
const direction = useCreatePr((s) => s.direction);
const head = direction?.headBranch;
const number =
direction && head?.kind === "local"
? issueForBranch({ ...direction.baseRepo, root: direction.baseRepo.root ?? connectedRoot() }, head.name)
: null;
const closing = number ? `Closes #${number}` : null;
return (
<div className={styles.text}>
<Input
@@ -115,6 +124,15 @@ function TextPanel() {
value={title}
onChange={(e) => setTitle(e.target.value)}
/>
{closing && number && !templateLoading && !hasClosingReference(description, number) && (
<Button
size="small"
variant="ghost"
onClick={() => setDescription([description.trimEnd(), closing].filter(Boolean).join("\n\n"))}
>
{tx`Add “${closing}” to description`}
</Button>
)}
<div className={styles.descriptionBox}>
<textarea
className={styles.description}