Skip to content

just a test PR - #245

Closed
glehmann wants to merge 3 commits into
mainfrom
gln/pr-update-indicator-pink-unzm
Closed

glehmann wants to merge 3 commits into
mainfrom
gln/pr-update-indicator-pink-unzm

Conversation

@glehmann

Copy link
Copy Markdown
Collaborator

No description provided.

glehmann added 2 commits June 22, 2026 10:09
The checkPRs polling loop in AppShell called getPREnrichment and
fetchInvolvedPRs without error handling. When the GitHub API was
unreachable, the promise rejection was unhandled (fire-and-forget),
producing an 'Uncaught (in promise) HttpError: NetworkError'.

Wrapped the polling body in try/catch so transient network failures
are silently ignored and polling continues on the next interval.
@glehmann
glehmann force-pushed the gln/pr-update-indicator-pink-unzm branch 2 times, most recently from b9c621c to 97d3aaa Compare June 22, 2026 08:23
Two bugs fixed in app-shell.tsx:

1. handleTabSelect called markTabUpdated instead of clearTabUpdated
   when clicking a tab (despite the comment saying 'Clear updated flag').
   This caused the ⟳ to flash briefly when selecting a tab.

2. The updated indicator was a solid orange dot (bg-orange-500).
   Changed to orange ⟳ with transparent background.
@glehmann
glehmann force-pushed the gln/pr-update-indicator-pink-unzm branch from 97d3aaa to f9a1167 Compare June 22, 2026 08:27
@glehmann

glehmann commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

just a test comment

@glehmann

glehmann commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

Another comment

@glehmann

glehmann commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

And another one

@glehmann

glehmann commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

and again

@glehmann

glehmann commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

and again another one!

@glehmann

glehmann commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

still testing commments

@glehmann
glehmann marked this pull request as draft September 10, 2026 09:17
@glehmann
glehmann marked this pull request as ready for review September 10, 2026 09:17
Comment thread src/browser/index.html
default-src 'self';
connect-src 'self' https://api.github.com;
img-src 'self' https://github.com https://avatars.githubusercontent.com https://private-user-images.githubusercontent.com https://camo.githubusercontent.com data:;
media-src 'self' https://private-user-images.githubusercontent.com;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an inline comment

(t): t is Tab & { owner: string; repo: string; number: number } =>
t.type === "pr-review" &&
t.owner !== undefined &&
t.repo !== undefined &&

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another in-line comment

@glehmann glehmann left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something

if (baseline && enrichment.updatedAt > baseline) {
markTabUpdated(tab.id);
try {
const prTabs = tabs.filter(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test comment inline, should appear as a review comment.

[navigate, clearTabUpdated]
);

// Close a tab and navigate to the next active tab if needed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment was originally on lines 137-141 of src/browser/components/app-shell.tsx, which is outside the diff — GitHub's API can only anchor review comments to diff lines, so it was moved to the nearest one.

A comment outside of a modified region

@@ -528,13 +532,15 @@ function TabStatusIndicator({ status }: { status?: TabStatus }) {
);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment was originally on lines 413-415 of src/browser/components/app-shell.tsx, which is outside the diff — GitHub's API can only anchor review comments to diff lines, so it was moved to the nearest one.

Remove those lines

@glehmann

Copy link
Copy Markdown
Collaborator Author

<div className="h-screen flex flex-col overflow-hidden bg-background">
{/* Native-style Tab Bar */}
<div className="h-9 bg-muted flex items-center shrink-0 border-b border-border/50">

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An out-of-diff comment

import { cn } from "../cn";
import {
useTabContext,
useOpenPRReviewTab,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another out-of-diff comment

import { useGitHubStore, type PREnrichment } from "../contexts/github";
import { getLastViewed, setLastViewed } from "../lib/waiting-prs";
import {

@glehmann glehmann closed this Oct 19, 2026
@glehmann
glehmann deleted the gln/pr-update-indicator-pink-unzm branch October 19, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant