Skip to content

Releases: Move the release and tag page styles into a page stylesheet - #85

Merged
whereareiam merged 1 commit into
devfrom
refactor/releases-page-stylesheet
Oct 4, 2026
Merged

whereareiam merged 1 commit into
devfrom
refactor/releases-page-stylesheet

Conversation

@whereareiam

Copy link
Copy Markdown
Owner

Stacked on #84 (base is its branch).

Why

The largest theme file was 224,682 bytes against the 225,280 limit the build test enforces, so the next styling change would have failed the build.

What

githubReleasePage, releaseRefinements and githubTagPage in styles/components/repo/release.ts were already plain CSS (one theme variable reference, replaced by its CSS variable). They move unchanged to styles/pages/releases.css, which is copied and linked like the other page stylesheets. The remaining upstream release rules stay in release.ts.

Before After
Largest theme file 224,682 bytes 208,322 bytes
styles/pages/releases.css — 21,469 bytes

Verification

A before/after comparison of every element's position, size, colours, font and borders on 21 preview pages (releases, single release, new release, tags, issue and pull request lists and pages, dashboard lists, organization, repository home). 17 pages are identical. The other four differ only by run-to-run noise that also appears between two runs of the same build (asynchronously decorated release rows, a hover-only copy button, file-tree state). bun vitest (403 passed), bun check and Prettier pass.

🤖 Generated with Claude Code

The theme files were about 600 bytes under the size limit the build test
enforces. The release list, release form and tag list rules (21 KB) are
page-specific and already plain CSS, so they move to
styles/pages/releases.css, loaded with the other page stylesheets. The
largest theme file drops from 224.7 KB to 208.3 KB.

No visual change: the affected and unaffected pages render identically
before and after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@whereareiam whereareiam added the skip-changelog Internal change excluded from release notes label Oct 4, 2026
Base automatically changed from fix/update-branch-menu to dev October 4, 2026 15:42
@whereareiam
whereareiam merged commit f962282 into dev Oct 4, 2026
7 checks passed
@whereareiam
whereareiam deleted the refactor/releases-page-stylesheet branch October 4, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Internal change excluded from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant