Gnome toolbar for Tangled code review.

feat(menu): list the longest-waiting PRs first, and say "waiting 3d" #32

Merged permadeath.com
targeting main from azurite-frogmouth.test.pds.did.bot/gnome-shell-extension-tangled-reviewer:claude/waiting-time
Merged opened by and assigned to permadeath.com
targeting main from azurite-frogmouth.test.pds.did.bot/gnome-shell-extension-tangled-reviewer:claude/waiting-time

This changes the order of the first view. When the menu lists PRs flat (8 or fewer), PRs within each verdict tier now go longest-waiting first instead of newest first. The tiers are ready, then no verdict yet (pending, checking or unknown), then conflicted, then failing. A PR's wait starts when its author last pushed or commented (lastAt). Ties go by URI, so a refresh never reshuffles the list. With more PRs, the first view is repo groups, still busiest first. Only groups of the same size change order, putting the one with the longest wait first. Inside a group, PRs follow the same rule as the flat list.

Once a PR has waited a day or more, its dim detail line starts with "waiting 3d" instead of "3d ago". It stays dim and takes no verdict color. Because it comes first, it lines up down the list and long handles can't cut it off. Two PRs in the every-verdict fixture now wait days, so the shots show it. No new settings, protocol messages or state.

The flat menu on main (left) and with this PR (right). The order changes within the ready tier and within the no-verdict tier:

flat menu before and after

A repo group, where only the "waiting 1d" label changes:

grouped menu before and after

🤖 Generated with Claude Code

Commits 0