Skip to content

Open the chart on the ranking that is being read - #41

Merged
chr-hertel merged 1 commit into
mainfrom
worktree-ranking-chart-button
Aug 1, 2026
Merged

Open the chart on the ranking that is being read#41
chr-hertel merged 1 commit into
mainfrom
worktree-ranking-chart-button

Conversation

@chr-hertel

Copy link
Copy Markdown
Owner

The "Open the chart" button of the rankings section always opened the most starred repositories, no matter which ranking was on screen.

It moves out of the section header and into the tab panel, at the right end of the caption. Every panel renders its own link, drawn with the top repositories of that ranking, in that order, up to CHART_LIMIT - so the button opens what is being read, and nothing has to be rewritten when a tab is picked, since only the visible panel can be clicked. A ranking that came out empty (nothing got more complex in the last 12 months) has nothing to draw and gets no link.

.ranking__intro is the caption and the link on one line - it wraps and the link drops under the caption on a phone.

Checked: lint:twig, phpunit (126 tests), prettier, yarn build, plus screenshots of the start page at 1440 and 420 wide and of a panel with a two-line caption.

Not touched: CLAUDE.md. The paragraph describing the start page is being rewritten in the working copy right now, so a doc edit here would only collide - the rule is written down in the template at the place it applies.

🤖 Generated with Claude Code

The link stood in the section header, above the tabs, and always opened the
most starred repositories - whichever ranking someone was reading. It now sits
in the panel itself, at the right end of the caption, and every panel carries
its own: the chart it opens draws the repositories of that ranking, in that
order, as many as the chart has colours for.

Nothing to switch, since only the visible panel can be clicked - the link is
rendered per ranking rather than rewritten when a tab is picked. A ranking
that came out empty has nothing to draw and gets none.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chr-hertel
chr-hertel marked this pull request as ready for review August 1, 2026 14:27
@chr-hertel
chr-hertel merged commit 3a3450e into main Aug 1, 2026
2 checks passed
@chr-hertel
chr-hertel deleted the worktree-ranking-chart-button branch August 1, 2026 14:27
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