refactor/design: adopt the updated Main-Theme visual language #5

Merged
BlackHatMagic merged 5 commits from refactor/main-theme-spec into master 2026-11-11 05:45:09 +00:00

Intent/Motivation/Rationale

Main-Theme was updated (08dcd6c, "adopt refined shared system and six interactive studies") after this site last aligned with it. That revision changes the shape, elevation, typography and control language: rounded surfaces, no hard offset shadows, sentence-case labels, a wider container and the 600/850/1100 breakpoints. This PR brings Lukeh.xyz up to that spec while leaving the page structure, content and behavior untouched.

Scope

  • static/css/main.css — tokens, base typography, header, nav, popovers, page scaffolding, inputs, buttons, notices, contact, math and stat-block demo wrappers
  • src/lib/Nav.svelte — skip link, label casing in the appearance popover
  • src/lib/Home.svelte, Contact.svelte, Other.svelte, Math.svelte, AgathosDemo.svelte, USTUMilestone1.svelte — scoped styles brought onto the shared tokens
  • src/lib/stat-blocks/preview/stat-block.css — radii only; the serif stat-block artifact is intentionally preserved
  • Page <main> elements — id="main" / tabindex="-1" as the skip-link target

Updates/Changes

  • Before: zero-radius surfaces, 8px 8px 0 offset shadows, 1152px container, 72px header, tracked uppercase classification labels, 560/820 breakpoints, 11px/12px nav and labels.
  • After: the shared 4/7/8/12/14px shape scale, soft shadows only on overlays, 1320px container with 16–40px gutters, 68px header (62px at 850px), sentence-case Figtree labels, 600/850/1100 breakpoints, 40px desktop / 44px mobile controls, 44px inputs and 2px accent focus rings with 4px offsets.
  • Key improvements: palette values are unchanged; every color still goes through the semantic roles; selected states now pair the accent tint with a border/marker; the decorative background gradient and all hard offset shadows are gone; controls meet the spec's mobile target sizes; a skip-to-content link is now present.

Checklist

  • No functional change intended
  • All existing tests pass unchanged (bun run check, bun run test, bun run test:e2e)
  • No dead code removed beyond .btn--caps, which no longer has a use
  • Behavior equivalence verified at 1440 / 850 / 600 / 390 / 320, light and dark, with zero horizontal overflow at 320px
  • Docs / comments updated where the design reference changed

Additional Notes

  • One deliberate conflict: DESIGN.md says motion should avoid ambient loops and typewriter effects, but the home page's rotating typewriter title is existing functionality and the request was to keep functionality the same. I left it in place (it already honors prefers-reduced-motion). Say the word and I will replace it with a static display heading in a follow-up.
  • The D&D stat block keeps its Noto Serif artifact styling and its upstream 720px two-column breakpoint; that renderer is a self-contained artifact, not shared chrome.
  • Palettes remain the twelve existing schemes with identical values.
## Intent/Motivation/Rationale Main-Theme was updated (`08dcd6c`, "adopt refined shared system and six interactive studies") after this site last aligned with it. That revision changes the shape, elevation, typography and control language: rounded surfaces, no hard offset shadows, sentence-case labels, a wider container and the 600/850/1100 breakpoints. This PR brings Lukeh.xyz up to that spec while leaving the page structure, content and behavior untouched. ## Scope - `static/css/main.css` — tokens, base typography, header, nav, popovers, page scaffolding, inputs, buttons, notices, contact, math and stat-block demo wrappers - `src/lib/Nav.svelte` — skip link, label casing in the appearance popover - `src/lib/Home.svelte`, `Contact.svelte`, `Other.svelte`, `Math.svelte`, `AgathosDemo.svelte`, `USTUMilestone1.svelte` — scoped styles brought onto the shared tokens - `src/lib/stat-blocks/preview/stat-block.css` — radii only; the serif stat-block artifact is intentionally preserved - Page `<main>` elements — `id="main"` / `tabindex="-1"` as the skip-link target ## Updates/Changes - **Before:** zero-radius surfaces, `8px 8px 0` offset shadows, 1152px container, 72px header, tracked uppercase classification labels, 560/820 breakpoints, 11px/12px nav and labels. - **After:** the shared 4/7/8/12/14px shape scale, soft shadows only on overlays, 1320px container with 16–40px gutters, 68px header (62px at 850px), sentence-case Figtree labels, 600/850/1100 breakpoints, 40px desktop / 44px mobile controls, 44px inputs and 2px accent focus rings with 4px offsets. - **Key improvements:** palette values are unchanged; every color still goes through the semantic roles; selected states now pair the accent tint with a border/marker; the decorative background gradient and all hard offset shadows are gone; controls meet the spec's mobile target sizes; a skip-to-content link is now present. ## Checklist - [x] No functional change intended - [x] All existing tests pass unchanged (`bun run check`, `bun run test`, `bun run test:e2e`) - [x] No dead code removed beyond `.btn--caps`, which no longer has a use - [x] Behavior equivalence verified at 1440 / 850 / 600 / 390 / 320, light and dark, with zero horizontal overflow at 320px - [x] Docs / comments updated where the design reference changed ## Additional Notes - **One deliberate conflict:** `DESIGN.md` says motion should avoid ambient loops and typewriter effects, but the home page's rotating typewriter title is existing functionality and the request was to keep functionality the same. I left it in place (it already honors `prefers-reduced-motion`). Say the word and I will replace it with a static display heading in a follow-up. - The D&D stat block keeps its Noto Serif artifact styling and its upstream 720px two-column breakpoint; that renderer is a self-contained artifact, not shared chrome. - Palettes remain the twelve existing schemes with identical values.
refactor/design: adopt the updated Main-Theme visual language
All checks were successful
/ deploy (push) Successful in 1m28s
93802edd5b
Bring the site in line with the latest BlackHatMagic DESIGN.md without
changing page structure or behavior.

- Shape: drop the global square-corner reset and the hard offset shadows;
  use the shared 4/7/8/12/14px radius scale and reserve soft shadows for
  overlays.
- Type: display headings move to Space Grotesk 600 with the new tracking
  and fluid display size; labels are sentence-case Figtree 600 instead of
  tracked all-caps; prose measure and body line-height follow the spec.
- Layout: 1320px container with 16-40px gutters, 68px header (62px and
  below 850px), and the 600/850/1100 breakpoints.
- Controls: 40px desktop / 44px at 850px and below, 44px inputs, 7px
  radius, accent focus rings with a 4px offset, and accent-tinted
  selected states paired with a border.
- Accessibility: add the skip-to-content link and make page mains
  focusable targets.
- Artifacts: update the milestone, stat-block, math and Agathos demos to
  the same tokens; the D&D stat block keeps its serif artifact styling.

Palette values are unchanged.
Code-Reviewer left a comment

Pi code review

1 new actionable finding

  • [P2] Skip link resets the selected Math tool — src/lib/Nav.svelte:148

Reviewed the Main-Theme visual refactor and skip-link changes, focusing on the hash-based Math page behavior. Repository inspection was read-only; tests and the PR’s visual-verification claims were not independently checked.

Change walkthrough
Area Files Changes
Other code (5) static/css/main.css, src/lib/Nav.svelte, src/lib/Math.svelte, src/lib/USTUMilestone1.svelte (+1 more) Updates shared design tokens, responsive breakpoints, typography, layout, controls, and surface styling. Adds a skip link and updates the appearance popover’s palette label. Adds the skip-link target and updates math tool styles. Updates the milestone page’s visual styles and label casing.

Review effort: 3/5.

Static observations (not validation results)
Observation Detail
Diff size 17 files, +253/-199.
Binary changes No binary changes reported by this diff.
Credential patterns No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit.

Reviewed 93802edd5babefb8b38e141a1e13d0040e39f14e with proxy/glm-5.3-flash + proxy/deepseek-v4.1-flash + proxy/muse-spark-1.3 → proxy/gpt-6-luna. Automated advisory review; no project commands or tests were executed.

<!-- forgejo-pi-review:3ff69ac1ca34f4c5db0269661db85953db8315aac5417b509af94e9b01a8d1df --> ## Pi code review **1 new actionable finding** - **[P2] Skip link resets the selected Math tool** — `src/lib/Nav.svelte:148` Reviewed the Main-Theme visual refactor and skip-link changes, focusing on the hash-based Math page behavior. Repository inspection was read-only; tests and the PR’s visual-verification claims were not independently checked. <details> <summary>Change walkthrough</summary> | Area | Files | Changes | | --- | --- | --- | | Other code (5) | `static/css/main.css`, `src/lib/Nav.svelte`, `src/lib/Math.svelte`, `src/lib/USTUMilestone1.svelte` (+1 more) | Updates shared design tokens, responsive breakpoints, typography, layout, controls, and surface styling. Adds a skip link and updates the appearance popover’s palette label. Adds the skip-link target and updates math tool styles. Updates the milestone page’s visual styles and label casing. | Review effort: **3/5**. </details> <details> <summary>Static observations (not validation results)</summary> | Observation | Detail | | --- | --- | | Diff size | 17 files, +253/-199. | | Binary changes | No binary changes reported by this diff. | | Credential patterns | No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit. | </details> --- Reviewed `93802edd5babefb8b38e141a1e13d0040e39f14e` with `proxy/glm-5.3-flash + proxy/deepseek-v4.1-flash + proxy/muse-spark-1.3 → proxy/gpt-6-luna`. Automated advisory review; no project commands or tests were executed.
@ -145,6 +145,8 @@
<svelte:window onkeydown={onWindowKeydown} onpointerdown={onWindowPointerdown} />
<a class="skip-link" href="#main">Skip to content</a>
Collaborator

[P2] Skip link resets the selected Math tool

Following the new skip link changes the URL fragment to #main. On the Math page, the fragment-change handler interprets that as a Math route and resets the selected tool to Vector Addition.

Trigger: On /projects/math, select a non-default vector tool, then activate the Skip to content link.

Impact: The user loses their current tool selection, and the fragment that preserves that selection is replaced, disrupting Math-page navigation and deep links.

Evidence: src/lib/Nav.svelte adds <a class="skip-link" href="#main">Skip to content</a>, and src/lib/Math.svelte registers readHash for hashchange. readHash treats any fragment other than Statistics as Vector Calculus and defaults an unrecognized subtab to Vector Addition; therefore #main resets the selection. No guard excludes the skip-link fragment.

**[P2] Skip link resets the selected Math tool** Following the new skip link changes the URL fragment to `#main`. On the Math page, the fragment-change handler interprets that as a Math route and resets the selected tool to Vector Addition. **Trigger:** On `/projects/math`, select a non-default vector tool, then activate the Skip to content link. **Impact:** The user loses their current tool selection, and the fragment that preserves that selection is replaced, disrupting Math-page navigation and deep links. **Evidence:** `src/lib/Nav.svelte` adds `<a class="skip-link" href="#main">Skip to content</a>`, and `src/lib/Math.svelte` registers `readHash` for `hashchange`. `readHash` treats any fragment other than `Statistics` as Vector Calculus and defaults an unrecognized subtab to Vector Addition; therefore `#main` resets the selection. No guard excludes the skip-link fragment.
fix/nav: keep the selected Math tool when the skip link is used
All checks were successful
/ deploy (push) Successful in 1m29s
453b51b073
The new skip link targets #main, which fires the Math page's hashchange
handler. That handler treated any unrecognized hash as a request to reset
to Vector Addition, so skipping to content silently discarded the tool the
visitor had selected.

Ignore in-page anchors that are not tool routes and cover both the skip
link target and the preserved Math selection with e2e tests.

Addresses the Code-Reviewer P2 finding on #5.
Author
Owner

Fixed in 453b51b. The skip link changes the URL hash to #main, and the Math page treated every unrecognized hash as a reset. It now ignores in-page anchors that are not tool routes, so the selected tool survives skipping to content. Added e2e coverage for the skip link target and for preserving the Math selection.

Fixed in 453b51b. The skip link changes the URL hash to `#main`, and the Math page treated every unrecognized hash as a reset. It now ignores in-page anchors that are not tool routes, so the selected tool survives skipping to content. Added e2e coverage for the skip link target and for preserving the Math selection.
Code-Reviewer left a comment

Pi code review

1 new actionable finding

  • [P2] Skip link can place the page heading behind the sticky header — static/css/main.css:564
Earlier findings: 1 rechecked
  • Resolved: Skip link resets the selected Math tool (src/lib/Nav.svelte:148, first reported in review #507) — src/lib/Math.svelte now returns early from readHash when the fragment is empty or 'main', before updating the selected tool. The added e2e test also checks that selecting Cross Product remains intact after activating the skip link.

Outside the diff

[P2] Skip link can place the page heading behind the sticky header

The skip link targets the top of

, but fragment navigation does not account for the sticky header. The main content's top padding can be shorter than the header, leaving the heading obscured after the link is activated.

Trigger: A keyboard user activates the Skip to content link on a page with the sticky header, particularly at viewports where the header wraps and grows taller.

Impact: The skip link can land users with the page heading hidden behind the header, reducing the usefulness of this accessibility feature.

Evidence: The new skip link in src/lib/Nav.svelte targets #main, and page components add that target to

. In static/css/main.css, .site-header is sticky and the main content uses top padding of clamp(32px, 6vw, 64px), reduced to 32px at widths up to 850px. The candidate review found no scroll-margin or scroll-padding rule to offset fragment navigation for the header.

Location: static/css/main.css:564 (outside the diff; posted here because it can't anchor inline).

Reviewed the visual-language refactor, skip-link changes, and Math hash handling. The candidate reviews report no checks run, and only one identified issue is supported by a candidate review.

Change walkthrough
Area Files Changes
Other code (4) static/css/main.css, src/lib/Nav.svelte, src/lib/Math.svelte, src/lib Updates shared design tokens, typography, layout, navigation, controls, and component styling. Adds the skip link and updates the palette heading casing. Ignores the #main fragment in the Math tool hash handler. Adds skip-link targets and updates scoped styles across page components.
Tests (1) tests/e2e/navigation.spec.ts Adds coverage for skip-link focus and preserving the selected Math tool.

Review effort: 3/5.

Static observations (not validation results)
Observation Detail
Diff size 19 files, +275/-199.
⚠️ Binary changes 1 binary file(s); their content was not inspected.
Credential patterns No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit.

Reviewed 453b51b073e5ccb1f50d6a95d9ad5999a348476b with proxy/glm-5.3-flash + proxy/deepseek-v4.1-flash + proxy/muse-spark-1.3 → proxy/gpt-6-luna. Automated advisory review; no project commands or tests were executed.

<!-- forgejo-pi-review:1fc85fc6cb64e632161c8db7891ffd2ada256b4cadc7d719fef2df4689bbd1db --> ## Pi code review **1 new actionable finding** - **[P2] Skip link can place the page heading behind the sticky header** — `static/css/main.css:564` <details> <summary>Earlier findings: 1 rechecked</summary> - **Resolved:** Skip link resets the selected Math tool (`src/lib/Nav.svelte:148`, first reported in review #507) — src/lib/Math.svelte now returns early from readHash when the fragment is empty or 'main', before updating the selected tool. The added e2e test also checks that selecting Cross Product remains intact after activating the skip link. </details> ### Outside the diff **[P2] Skip link can place the page heading behind the sticky header** The skip link targets the top of <main>, but fragment navigation does not account for the sticky header. The main content's top padding can be shorter than the header, leaving the heading obscured after the link is activated. **Trigger:** A keyboard user activates the Skip to content link on a page with the sticky header, particularly at viewports where the header wraps and grows taller. **Impact:** The skip link can land users with the page heading hidden behind the header, reducing the usefulness of this accessibility feature. **Evidence:** The new skip link in src/lib/Nav.svelte targets #main, and page components add that target to <main>. In static/css/main.css, .site-header is sticky and the main content uses top padding of clamp(32px, 6vw, 64px), reduced to 32px at widths up to 850px. The candidate review found no scroll-margin or scroll-padding rule to offset fragment navigation for the header. Location: `static/css/main.css:564` (outside the diff; posted here because it can't anchor inline). Reviewed the visual-language refactor, skip-link changes, and Math hash handling. The candidate reviews report no checks run, and only one identified issue is supported by a candidate review. <details> <summary>Change walkthrough</summary> | Area | Files | Changes | | --- | --- | --- | | Other code (4) | `static/css/main.css`, `src/lib/Nav.svelte`, `src/lib/Math.svelte`, `src/lib` | Updates shared design tokens, typography, layout, navigation, controls, and component styling. Adds the skip link and updates the palette heading casing. Ignores the #main fragment in the Math tool hash handler. Adds skip-link targets and updates scoped styles across page components. | | Tests (1) | `tests/e2e/navigation.spec.ts` | Adds coverage for skip-link focus and preserving the selected Math tool. | Review effort: **3/5**. </details> <details> <summary>Static observations (not validation results)</summary> | Observation | Detail | | --- | --- | | Diff size | 19 files, +275/-199. | | ⚠️ Binary changes | 1 binary file(s); their content was not inspected. | | Credential patterns | No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit. | </details> --- Reviewed `453b51b073e5ccb1f50d6a95d9ad5999a348476b` with `proxy/glm-5.3-flash + proxy/deepseek-v4.1-flash + proxy/muse-spark-1.3 → proxy/gpt-6-luna`. Automated advisory review; no project commands or tests were executed.
fix/nav: keep skip-link targets clear of the sticky header
All checks were successful
/ deploy (push) Successful in 1m13s
64a47df455
Fragment navigation lands the target at the top of the viewport, where the
sticky header covers it; on wrapped phones the header is 109px tall, so the
page heading could be hidden. Offset page targets by the header height plus
a 16px gap and cover the phone case with an e2e assertion.

Addresses the Code-Reviewer P2 finding on #5.
Author
Owner

Fixed in 64a47df. Page targets now use a scroll margin of the header height plus 16px (68px above 850px, 109px for the wrapped header at and below it), and a phone-viewport e2e assertion checks that the heading clears the header after activating the skip link.

Fixed in 64a47df. Page targets now use a scroll margin of the header height plus 16px (68px above 850px, 109px for the wrapped header at and below it), and a phone-viewport e2e assertion checks that the heading clears the header after activating the skip link.
Code-Reviewer left a comment

Pi code review

1 new actionable finding

  • [P2] Using the skip link can make the Math tab reset the selected tool — src/lib/Math.svelte:94
Earlier findings: 1 rechecked
  • Resolved: Skip link can place the page heading behind the sticky header (static/css/main.css:564, first reported in review #508) — static/css/main.css now sets main { scroll-margin-top: calc(var(--header-height) + 16px); }, with --header-height set to 68px and overridden to 109px at widths up to 850px, where the header wraps. The new navigation test also checks heading clearance at 390px.

Reviewed the visual-language refactor, skip-link behavior, and Math hash handling using the supplied diff and candidate reviews. Checks were not independently run; the review was limited to static evidence in the supplied materials and current Math component code.

Change walkthrough
Area Files Changes
Other code (3) static/css/main.css, src/lib/Nav.svelte, src/lib/Math.svelte Adds shared visual tokens and offsets fragment navigation for the sticky header. Adds a skip-to-content link and updates the palette heading casing. Adds the skip target and ignores #main in the hash-change handler.
Tests (1) tests/e2e/navigation.spec.ts Adds navigation tests for skip-link focus, header clearance, and Math selection.

Review effort: 3/5.

Static observations (not validation results)
Observation Detail
Diff size 19 files, +292/-199.
⚠️ Binary changes 1 binary file(s); their content was not inspected.
Credential patterns No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit.

Reviewed 64a47df4558200c60b0defa872d6c32e8bf51a8f with proxy/glm-5.3-flash + proxy/deepseek-v4.1-flash + proxy/muse-spark-1.3 → proxy/gpt-6-luna. Automated advisory review; no project commands or tests were executed.

<!-- forgejo-pi-review:9c4de4edb5795c9411c64d60d2546149161136fa7d45f07858a35363685a408c --> ## Pi code review **1 new actionable finding** - **[P2] Using the skip link can make the Math tab reset the selected tool** — `src/lib/Math.svelte:94` <details> <summary>Earlier findings: 1 rechecked</summary> - **Resolved:** Skip link can place the page heading behind the sticky header (`static/css/main.css:564`, first reported in review #508) — static/css/main.css now sets main { scroll-margin-top: calc(var(--header-height) + 16px); }, with --header-height set to 68px and overridden to 109px at widths up to 850px, where the header wraps. The new navigation test also checks heading clearance at 390px. </details> Reviewed the visual-language refactor, skip-link behavior, and Math hash handling using the supplied diff and candidate reviews. Checks were not independently run; the review was limited to static evidence in the supplied materials and current Math component code. <details> <summary>Change walkthrough</summary> | Area | Files | Changes | | --- | --- | --- | | Other code (3) | `static/css/main.css`, `src/lib/Nav.svelte`, `src/lib/Math.svelte` | Adds shared visual tokens and offsets fragment navigation for the sticky header. Adds a skip-to-content link and updates the palette heading casing. Adds the skip target and ignores #main in the hash-change handler. | | Tests (1) | `tests/e2e/navigation.spec.ts` | Adds navigation tests for skip-link focus, header clearance, and Math selection. | Review effort: **3/5**. </details> <details> <summary>Static observations (not validation results)</summary> | Observation | Detail | | --- | --- | | Diff size | 19 files, +292/-199. | | ⚠️ Binary changes | 1 binary file(s); their content was not inspected. | | Credential patterns | No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit. | </details> --- Reviewed `64a47df4558200c60b0defa872d6c32e8bf51a8f` with `proxy/glm-5.3-flash + proxy/deepseek-v4.1-flash + proxy/muse-spark-1.3 → proxy/gpt-6-luna`. Automated advisory review; no project commands or tests were executed.
@ -91,1 +91,4 @@
const raw = decodeURIComponent(location.hash.replace(/^#/, ''));
// In-page anchors such as the skip link's #main are not tool routes;
// leave the current selection alone instead of resetting it.
if (!raw || raw === 'main') return;
Collaborator

[P2] Using the skip link can make the Math tab reset the selected tool

After the skip link changes the URL hash to #main, clicking the Vector Calculus main tab parses that anchor as if it were a tool route and falls back to Vector Addition, discarding the selected tool.

Trigger: On the Math page, select a vector tool such as Cross Product, activate Skip to content, then click the Vector Calculus main tab.

Impact: The selected tool and its results are lost during ordinary navigation after using the skip link, contrary to the stated intent to preserve Math behavior.

Evidence: In src/lib/Math.svelte, readHash returns for raw === 'main', but selectMain separately parses the hash and sets tab to Vector Addition unless it matches a vector-tool route. The new e2e test checks selection immediately after skip-link activation but not after clicking the main tab.

**[P2] Using the skip link can make the Math tab reset the selected tool** After the skip link changes the URL hash to #main, clicking the Vector Calculus main tab parses that anchor as if it were a tool route and falls back to Vector Addition, discarding the selected tool. **Trigger:** On the Math page, select a vector tool such as Cross Product, activate Skip to content, then click the Vector Calculus main tab. **Impact:** The selected tool and its results are lost during ordinary navigation after using the skip link, contrary to the stated intent to preserve Math behavior. **Evidence:** In src/lib/Math.svelte, `readHash` returns for `raw === 'main'`, but `selectMain` separately parses the hash and sets `tab` to Vector Addition unless it matches a vector-tool route. The new e2e test checks selection immediately after skip-link activation but not after clicking the main tab.
fix/math: restore the tool hash after the skip link
All checks were successful
/ deploy (push) Successful in 1m17s
8a817531ca
Ignoring #main kept the current tool selected, but the foreign fragment
still sat in the URL, so clicking the Vector Calculus main tab resolved
the sub-tool from #main and reset it to Vector Addition. Replace the
fragment with the current tool route as soon as the skip link sets it,
then assert that switching main tabs keeps the selected tool.

Addresses the Code-Reviewer P2 finding on #5.
Author
Owner

Fixed in 8a81753. The Math page now replaces the skip link's #main fragment with the current tool hash, so the main-tab handler resolves the same tool instead of falling back to Vector Addition. The e2e test now checks the full path: select Cross Product → skip to content → switch main tabs.

Fixed in 8a81753. The Math page now replaces the skip link's `#main` fragment with the current tool hash, so the main-tab handler resolves the same tool instead of falling back to Vector Addition. The e2e test now checks the full path: select Cross Product → skip to content → switch main tabs.
Code-Reviewer left a comment

Pi code review

0 new actionable findings

No new actionable findings. Previously reported issues, if any, are tracked below.

Earlier findings: 1 rechecked
  • Resolved: Using the skip link can make the Math tab reset the selected tool (src/lib/Math.svelte:94, first reported in review #512) — Current src/lib/Math.svelte handles raw === 'main' in readHash by calling setHash with the current Math route before returning. Candidate reviews report that the navigation e2e test also selects Cross Product, activates the skip link, clicks the Vector Calculus tab, and verifies Cross Product remains selected.

Aggregated the candidate reviews of the Main-Theme refactor and its skip-link/Math navigation changes; no new evidence-supported defects were reported. Checks were not run, and this review relies on the candidate reviews’ current-code evidence.

Change walkthrough
Area Files Changes
Other code (3) static/css/main.css, src/lib/Nav.svelte, src/lib/Math.svelte Adopts the updated shared visual tokens, layout, typography, and control styles. Adds the skip-to-content link and updates the palette label casing. Adds the skip-link target and restores the current tool route when the skip-link fragment is encountered.
Tests (1) tests/e2e/navigation.spec.ts Adds coverage for skip-link focus, header clearance, and Math tool retention.

Review effort: 3/5.

Static observations (not validation results)
Observation Detail
Diff size 19 files, +297/-199.
⚠️ Binary changes 1 binary file(s); their content was not inspected.
Credential patterns No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit.

Reviewed 8a817531caea883296c626b7626f7937d179ca62 with proxy/glm-5.3-flash + proxy/deepseek-v4.1-flash + proxy/muse-spark-1.3 → proxy/gpt-6-luna. Automated advisory review; no project commands or tests were executed.

<!-- forgejo-pi-review:5687b5c0c54faa92536d500e149968d312f1ff7162d3722217a5a924ac26ddb8 --> ## Pi code review **0 new actionable findings** No new actionable findings. Previously reported issues, if any, are tracked below. <details> <summary>Earlier findings: 1 rechecked</summary> - **Resolved:** Using the skip link can make the Math tab reset the selected tool (`src/lib/Math.svelte:94`, first reported in review #512) — Current src/lib/Math.svelte handles raw === 'main' in readHash by calling setHash with the current Math route before returning. Candidate reviews report that the navigation e2e test also selects Cross Product, activates the skip link, clicks the Vector Calculus tab, and verifies Cross Product remains selected. </details> Aggregated the candidate reviews of the Main-Theme refactor and its skip-link/Math navigation changes; no new evidence-supported defects were reported. Checks were not run, and this review relies on the candidate reviews’ current-code evidence. <details> <summary>Change walkthrough</summary> | Area | Files | Changes | | --- | --- | --- | | Other code (3) | `static/css/main.css`, `src/lib/Nav.svelte`, `src/lib/Math.svelte` | Adopts the updated shared visual tokens, layout, typography, and control styles. Adds the skip-to-content link and updates the palette label casing. Adds the skip-link target and restores the current tool route when the skip-link fragment is encountered. | | Tests (1) | `tests/e2e/navigation.spec.ts` | Adds coverage for skip-link focus, header clearance, and Math tool retention. | Review effort: **3/5**. </details> <details> <summary>Static observations (not validation results)</summary> | Observation | Detail | | --- | --- | | Diff size | 19 files, +297/-199. | | ⚠️ Binary changes | 1 binary file(s); their content was not inspected. | | Credential patterns | No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit. | </details> --- Reviewed `8a817531caea883296c626b7626f7937d179ca62` with `proxy/glm-5.3-flash + proxy/deepseek-v4.1-flash + proxy/muse-spark-1.3 → proxy/gpt-6-luna`. Automated advisory review; no project commands or tests were executed.
chore: remove an accidentally committed preview screenshot
All checks were successful
/ deploy (push) Successful in 1m5s
eadc888af1
The local capture used while verifying the preview deployment was picked up
by a broad `git add`; it is not part of the change.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
BlackHatMagic/Lukeh.xyz!5
No description provided.