Skip to content

feat(images): two-line boot-screen footer for the PR title#59

Merged
phorcys420 merged 1 commit into
mainfrom
boot-menu-resolution
Jul 1, 2026
Merged

feat(images): two-line boot-screen footer for the PR title#59
phorcys420 merged 1 commit into
mainfrom
boot-menu-resolution

Conversation

@phorcys420

@phorcys420 phorcys420 commented Jun 30, 2026

Copy link
Copy Markdown
Member

Problem

The single-line boot-screen footer overflowed the screen width for PR-preview builds with a long title (e.g. Coder Box - PR #47: fix(bootstrap): define CODER_ADMIN_* … (73fae985986d@admin-bootstrap-05…) ran off both edges).

Change

Split the footer across up to two GRUB labels so the title has its own line:

Coder Box - <short-sha>@<branch>
(PR #46: <title>)
  • Line 1 is always present (every build has a commit + branch), so the footer shows on local/non-PR builds too.
  • Line 2 (the parenthesised PR identity) is emitted only on PR builds.
  • box-turnkey.nix now exposes coderBox.bootLabelLine1 / bootLabelLine2 (replacing the single bootLabel); base/iso.nix stacks the second label ~1 line-height (font is 20px) below the first.

The earlier aspect-ratio experiment (patching nixpkgs' iso-image.nix to force a 4:3 GRUB resolution) was dropped — it was overkill and failed in CI — in favour of this.

Validation

  • make fmt / make lint / make check (nix flake check --all-systems) — all clean / passed.
  • Built the theme and confirmed:
    • PR build → two stacked labels (Coder Box - 73fae985986d@admin-bootstrap-05 and (PR #47: <full title>)).
    • Non-PR build → exactly one label (line 1 only).

⚠️ Needs a QEMU/hardware boot to confirm the two lines are spaced nicely; the +28px line gap is verified in the generated theme but not visually booted here.

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

📀 ISO build artifacts

Kind Arch Size Download
Installer aarch64 3.49 GB ⬇️ coder-box-installer-aarch64-linux.iso
Installer x86_64 3.67 GB ⬇️ coder-box-installer-x86_64-linux.iso

↻ Updated for bf7526c · run #85 · artifacts expire in ~1 day · sign in to GitHub to download.

Split the boot-screen footer across up to two GRUB labels so a long PR
title no longer overflows the screen width:

  line 1 (always):  Coder Box - <short-sha>@<branch>
  line 2 (PR only): (PR #46: <title>)

A non-PR build shows only line 1. box-turnkey.nix now exposes
coderBox.bootLabelLine1 / bootLabelLine2 (replacing the single-line
bootLabel), and base/iso.nix stacks the second label ~1 line-height below
the first (emitted only when line 2 is non-empty).
@phorcys420 phorcys420 changed the title feat(images): prefer a 4:3 GRUB resolution for the boot menu fix(images): prevent PR name overflow as much as possible Jul 1, 2026
@phorcys420 phorcys420 force-pushed the boot-menu-resolution branch from aa34644 to bf7526c Compare July 1, 2026 00:06
@phorcys420 phorcys420 changed the title fix(images): prevent PR name overflow as much as possible feat(images): two-line boot-screen footer for the PR title Jul 1, 2026
@phorcys420 phorcys420 merged commit c61feb1 into main Jul 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant