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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
> [!IMPORTANT]
> PostHog Code is pre-alpha and not production-ready. Interested? Email jonathan@posthog.com
> PostHog Code is pre-alpha and not production-ready. Interested? Join our [Discord](https://discord.gg/posthog)

**[Download the latest version](https://github.com/PostHog/code/releases/latest)**

Expand Down
1 change: 0 additions & 1 deletion apps/code/src/main/platform-adapters/electron-notifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export class ElectronNotifier implements INotifier {
public setUnreadIndicator(on: boolean): void {
if (on) {
app.dock?.setBadge("•");
this.mainWindow.getBrowserWindow()?.flashFrame(true);
} else {
app.dock?.setBadge("");
this.mainWindow.getBrowserWindow()?.flashFrame(false);
Expand Down
2 changes: 1 addition & 1 deletion apps/code/src/renderer/components/HeaderRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function HeaderRow() {
align="center"
justify="end"
gap="2"
pr="1"
pr="3"
pl="2"
style={{
height: "100%",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,6 @@ export function ReportTaskLogs({
const row = isInteractive ? (
showRunAction ? (
// biome-ignore lint/a11y/useSemanticElements: a <button> can't contain the nested run-action <button>
// biome-ignore lint/a11y/useKeyWithClickEvents: keyboard handled via onKeyDown
// biome-ignore lint/a11y/noStaticElementInteractions: role="button" makes this interactive
<div
key={relationship}
role="button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function IssuePicker({
}
}, [open]);

const { data: issues = [] } = useQuery(
const { data: issues = [], isFetching } = useQuery(
trpc.git.searchGithubIssues.queryOptions(
{
directoryPath: repoPath,
Expand Down Expand Up @@ -104,7 +104,9 @@ export function IssuePicker({
showTrigger={false}
placeholder="Search issues..."
/>
<ComboboxEmpty>No issues found.</ComboboxEmpty>
<ComboboxEmpty>
{isFetching ? "Searching..." : "No issues found."}
</ComboboxEmpty>
<ComboboxList>
{(issue: Issue) => (
<ComboboxItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,31 +248,6 @@ export function GitIntegrationStep({
</Flex>
</motion.div>

{alternativeConnectedProject && selectedProject && (
<Callout.Root color="blue" variant="soft">
<Callout.Text>
GitHub is already connected on{" "}
<Text weight="bold">
{alternativeConnectedProject.name}
</Text>{" "}
({alternativeConnectedProject.organization.name}). Switch to
that project, or click Connect to install a new integration
on <Text weight="bold">{selectedProject.name}</Text>.
</Callout.Text>
<Flex mt="2">
<Button
size="1"
variant="soft"
onClick={() =>
setSelectedProjectId(alternativeConnectedProject.id)
}
>
Switch to {alternativeConnectedProject.name}
</Button>
</Flex>
</Callout.Root>
)}

{/* Local folder picker */}
<motion.div
initial={{ opacity: 0, y: 8 }}
Expand Down Expand Up @@ -393,6 +368,33 @@ export function GitIntegrationStep({
</Box>
</motion.div>

{alternativeConnectedProject && selectedProject && (
<Callout.Root color="blue" variant="soft">
<Callout.Text>
GitHub is already connected on{" "}
<Text weight="bold">
{alternativeConnectedProject.name}
</Text>{" "}
({alternativeConnectedProject.organization.name}). Switch to
that project, or click{" "}
<Text weight="bold">Connect GitHub</Text> below to install a
new integration on{" "}
<Text weight="bold">{selectedProject.name}</Text>.
</Callout.Text>
<Flex mt="2">
<Button
size="1"
variant="soft"
onClick={() =>
setSelectedProjectId(alternativeConnectedProject.id)
}
>
Switch to {alternativeConnectedProject.name}
</Button>
</Flex>
</Callout.Root>
)}

{/* GitHub integration */}
<motion.div
initial={{ opacity: 0, y: 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const DraggableTab: React.FC<DraggableTabProps> = ({
align="center"
gap="1"
pl="3"
pr={onClose ? "1" : "3"}
pr={onClose ? "2" : "3"}
className={`group relative flex-shrink-0 select-none border-r border-b-2 transition-colors ${draggable ? "cursor-grab" : "cursor-pointer"}`}
style={{
borderRightColor: "var(--gray-6)",
Expand Down Expand Up @@ -178,6 +178,7 @@ export const DraggableTab: React.FC<DraggableTabProps> = ({
<Box
style={{
width: "14px",
marginLeft: "2px",
display: "flex",
alignItems: "center",
justifyContent: "center",
Expand Down
Loading
Loading