Skip to content

Windows verification, GitLab author pictures, faster launch (1.1.1) - #1

Merged
edoardopanichi merged 5 commits into
mainfrom
bugfix/windows-verification
Nov 27, 2026
Merged

edoardopanichi merged 5 commits into
mainfrom
bugfix/windows-verification

Conversation

@edoardopanichi

Copy link
Copy Markdown
Owner

Summary

  • Windows verified: the full test suite passes on Windows 11 (UI tests included). Hands-on checks covered detached and foreground launch, Ctrl+C, closing the window, no console windows, unusual paths, port reuse, a large repo, live refresh and high-DPI. Results are in TESTING.md.
  • GitLab author pictures: GitLab's /api/v4/avatar only matches a profile's public email, so most GitLab authors showed initials. gitgraph now asks GitLab's GraphQL API who wrote the commit, which matches any verified email, and falls back to the email lookup. Private projects use a token the user already has: GITLAB_TOKEN (only for its GITLAB_HOST) or a glab login, including one stored in the keyring. The token is sent only to the repository's own server. Verified on a public gitlab.com project and on a private self-hosted one.
  • Stale cache: "no picture" answers saved by older versions, or saved before a token existed, are now asked again.
  • Launch: the launch page now shows the logo and "Opening …" instead of a bare link. The first api/meta is prepared while the browser starts, and the watcher's first signature is computed lazily. On Windows, graph data is now requested about 2.2 s after gitgraph instead of about 4.3 s.
  • Version 1.1.1. The README now explains that pipx upgrade works when the version number goes up (checked with pip).

Tests

  • Windows: 94 passed, 2 skipped on purpose (POSIX-only cases); node --test passes.
  • New tests cover the GitLab commit lookup and its fallback, a rejected token, token sources, stale-miss invalidation, the launch page (including escaping), and the warm-up with a change made after it.

🤖 Generated with Claude Code

Edoardo Panichi and others added 5 commits November 27, 2026 22:24
- Automated suite on Windows 11: 85 passed, 2 expected skips; UI tests ran
- Detached and foreground launch, Ctrl+C, window close, no console windows
- Tricky paths (non-ASCII, junction, UNC, 8.3), port reuse, encodings
- Large repo, aborted log streams, live refresh, avatars, 125/150 % scaling
- How to send a real Ctrl+C from a script, and what is still unverified

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- GitLab's /api/v4/avatar only matches a profile's public email, so most authors showed initials
- Ask GitLab's GraphQL API who wrote the commit (matches any verified email), fall back to the email lookup
- Use a token the user already has: GITLAB_TOKEN (only for its GITLAB_HOST) or a glab login for that server
- Send the token only to the repository's own server; drop it after a 401
- Ignore GitLab's answer for empty commits, where it names an older commit
- Tests for the commit lookup, fallback, rejected token, token sources; README and TESTING.md updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rade

- Launch page shows the logo and "Opening <repo>..." in the app's colours instead of a bare link
- Forward with location.replace (meta refresh as fallback); link only after 4 s
- Prepare the first api/meta while the browser starts (about 10 git calls, ~0.7 s on Windows)
- Compute the watcher's first signature lazily so the browser starts sooner
- Avatar misses from older versions, or made without a token that now exists, are asked again
- Tests for the launch page, the warm-up, and stale misses; README and TESTING.md updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- GitLab author pictures through the commit author, faster launch with a launch page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- pip re-fetches a git install on upgrade but skips it at the same version (checked)
- Show pipx upgrade for releases, pipx install --force for a branch or local clone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@edoardopanichi
edoardopanichi merged commit dee273b into main Nov 27, 2026
5 checks passed
@edoardopanichi
edoardopanichi deleted the bugfix/windows-verification branch November 28, 2026 18:45
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