Skip to content

Open saved GitHub rows from dashboard commands - #13

Merged
fdussert merged 3 commits into
fdussert:mainfrom
FlorianBruniaux:codex/github-row-open
Oct 15, 2026
Merged

fdussert merged 3 commits into
fdussert:mainfrom
FlorianBruniaux:codex/github-row-open

Conversation

@FlorianBruniaux

Copy link
Copy Markdown
Contributor

What this changes

GitHub widget rows currently have no host command for opening their saved destination. This adds a loopback-only command that accepts a row ID from the latest snapshot, validates its HTTPS GitHub repository URL, and opens it without changing notification read state.

Related fork issue: FlorianBruniaux#21

How to see it

Touch a workflow, notification or review row in a widget that sends the open command. The saved GitHub page should open in the Mac browser. Tests cover valid rows, unknown IDs, foreign hosts and remote callers.

Checks

  • pnpm typecheck and pnpm build pass on this branch.
  • The 1,361 server tests pass with pnpm --filter server exec vitest run --testTimeout 15000 --hookTimeout 20000; the 385 UI tests pass with the default timeout.
  • Plain pnpm test timed out in unchanged Dock and favicon tests at their 5-second limit on this Mac. The focused GitHub tests pass (44/44).
  • The UI was built by pnpm build; no UI source changed.
  • No widget manifest changed, so no rescan is needed.
  • No new user-facing text needs translation.
  • Added lines and tests contain no personal configuration or credentials.

@fdussert fdussert left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks — this is solid. Loopback-only, a strict zod payload, the URL taken from the last snapshot and never from the widget, the https/host/credentials/path checks, /usr/bin/open with an argument list, and a test that nothing is written back to GitHub: that's exactly how I'd want it done. A few small things when you take it out of draft:

  1. Other loopback-only commands answer a remote caller with { ok: false, error: tr(undefined, 'provider.localOnly') }. Could open do the same, so the widget can say why nothing happened?

  2. .strict() makes this the only GitHub payload that rejects unknown keys, and the host already stamps instanceId into every command. If that stamp ever gains a field, open breaks while markRead keeps working. Consider dropping .strict(): the handler only reads kind and id anyway.

  3. Nit: OPEN_PROGRAM already exists in providers/spotify.ts and helper/routes.ts. Reusing it (or a shared opener) would keep a single place that says which open we run. Also, url.port rejects GitHub Enterprise on a non-standard port — if that's intended, it's worth a comment.

  4. The CHANGELOG line sits as a loose bullet above ### Changed; please move it under ### Added. #10–#12 add theirs at the same spot, so expect a small rebase.

On ordering: fremkit-sietch #1/#2 depend on this command, so this has to ship in a Fremkit release before those widget versions are published.

@fdussert

Copy link
Copy Markdown
Owner

Thanks, Florian — all three points are addressed (no .strict() with a test for the host stamp, provider.localOnly for remote callers, and the comment on non-standard ports). LGTM once you take it out of draft. The only thing left is the CHANGELOG line: please give it a bold lead like its neighbours under ### Added. Reusing OPEN_PROGRAM is optional.

@fdussert

Copy link
Copy Markdown
Owner

Thanks Florian, the changelog lead reads well. LGTM — good to merge once it's out of draft.

FlorianBruniaux and others added 3 commits October 15, 2026 17:58
Accept only loopback requests for IDs present in the connection's latest snapshot and validate the resulting GitHub URL before opening it, without marking notifications read.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Match the project changelog style requested in review.

Co-Authored-By: Claude <noreply@anthropic.com>
@FlorianBruniaux
FlorianBruniaux marked this pull request as ready for review October 15, 2026 16:02

@fdussert fdussert left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks Florian — out of draft, rebased, changelog lead in place. Merging (squash).

@fdussert
fdussert merged commit ebb6ab4 into fdussert:main Oct 15, 2026
1 check passed
@fdussert fdussert mentioned this pull request Oct 15, 2026
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.

2 participants