Skip to content

Commit 5bb3bcc

Browse files
authored
feat(inbox): Show implementation tasks (#1741)
## Problem We weren't showing implementation tasks associated with reports. ## Changes Now we are: <img width="540" height="202" alt="Screenshot 2026-04-20 at 19 22 02@2x" src="https://github.com/user-attachments/assets/4562903e-0561-49b0-8bfb-6624283b50ae" /> Plus, removed the "Run local" or "Run cloud" buttons.
1 parent 3a9bfbe commit 5bb3bcc

7 files changed

Lines changed: 476 additions & 281 deletions

File tree

apps/code/src/renderer/api/posthogClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import type {
1717
SignalReportsQueryParams,
1818
SignalReportsResponse,
1919
SignalReportTask,
20+
SignalReportTaskRelationship,
2021
SignalTeamConfig,
2122
SignalUserAutonomyConfig,
2223
SuggestedReviewersArtefact,
@@ -657,6 +658,8 @@ export class PostHogAPIClient {
657658
>
658659
> & {
659660
github_integration?: number | null;
661+
/** POST-only: `SignalReportTask.relationship` to create when linking to `signal_report`. */
662+
signal_report_task_relationship?: SignalReportTaskRelationship;
660663
},
661664
) {
662665
const teamId = await this.getTeamId();

apps/code/src/renderer/features/folder-picker/components/GitHubRepoPicker.tsx

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Tooltip } from "@components/ui/Tooltip";
12
import { GithubLogo } from "@phosphor-icons/react";
23
import {
34
Button,
@@ -9,7 +10,7 @@ import {
910
ComboboxList,
1011
ComboboxTrigger,
1112
} from "@posthog/quill";
12-
import type { RefObject } from "react";
13+
import { type RefObject, useEffect, useRef } from "react";
1314

1415
interface GitHubRepoPickerProps {
1516
value: string | null;
@@ -20,6 +21,8 @@ interface GitHubRepoPickerProps {
2021
size?: "1" | "2";
2122
disabled?: boolean;
2223
anchor?: RefObject<HTMLElement | null>;
24+
/** When false, the list is shown without a filter field (e.g. short lists in modals). */
25+
showSearchInput?: boolean;
2326
}
2427

2528
export function GitHubRepoPicker({
@@ -30,7 +33,17 @@ export function GitHubRepoPicker({
3033
placeholder = "Select repository...",
3134
disabled = false,
3235
anchor,
36+
showSearchInput = true,
3337
}: GitHubRepoPickerProps) {
38+
const triggerRef = useRef<HTMLButtonElement>(null);
39+
const onlyRepo = repositories.length === 1 ? repositories[0] : null;
40+
41+
useEffect(() => {
42+
if (onlyRepo && value !== onlyRepo) {
43+
onChange(onlyRepo);
44+
}
45+
}, [onlyRepo, value, onChange]);
46+
3447
if (isLoading) {
3548
return (
3649
<Button variant="outline" disabled size="sm">
@@ -49,6 +62,26 @@ export function GitHubRepoPicker({
4962
);
5063
}
5164

65+
if (onlyRepo) {
66+
return (
67+
<Tooltip content="Only one GitHub repository is connected, so there's nothing to pick.">
68+
<span className="inline-flex min-w-0 max-w-full">
69+
<Button
70+
type="button"
71+
variant="outline"
72+
size="sm"
73+
disabled
74+
aria-label="Repository"
75+
className="pointer-events-none min-w-0 max-w-full cursor-default justify-start disabled:opacity-100"
76+
>
77+
<GithubLogo size={14} weight="regular" className="shrink-0" />
78+
<span className="min-w-0 truncate">{onlyRepo}</span>
79+
</Button>
80+
</span>
81+
</Tooltip>
82+
);
83+
}
84+
5285
return (
5386
<Combobox
5487
items={repositories}
@@ -61,6 +94,7 @@ export function GitHubRepoPicker({
6194
<ComboboxTrigger
6295
render={
6396
<Button
97+
ref={triggerRef}
6498
variant="outline"
6599
size="sm"
66100
disabled={disabled}
@@ -72,12 +106,14 @@ export function GitHubRepoPicker({
72106
}
73107
/>
74108
<ComboboxContent
75-
anchor={anchor}
109+
anchor={anchor ?? triggerRef}
76110
side="bottom"
77111
sideOffset={6}
78112
className="min-w-[280px]"
79113
>
80-
<ComboboxInput placeholder="Search repositories..." />
114+
{showSearchInput ? (
115+
<ComboboxInput placeholder="Search repositories..." />
116+
) : null}
81117
<ComboboxEmpty>No repositories found.</ComboboxEmpty>
82118
<ComboboxList>
83119
{(repo: string) => (

0 commit comments

Comments
 (0)