Skip to content

Add awards page with Snapmaker Innovation Fund winner badge - #126

Merged
vycdev merged 1 commit into
developfrom
feat/awards-page
Nov 3, 2026
Merged

vycdev merged 1 commit into
developfrom
feat/awards-page

Conversation

@vycdev

@vycdev vycdev commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Summary

Kromacut is a Snapmaker Innovation Fund winner. Snapmaker approved showing the winner badges on the website, the app and the GitHub page. This PR adds them:

  • Awards page: a new /awards page in the style of the Privacy and Terms pages, showing the medal and linking to the Snapmaker Innovation Fund. It's translated into all 12 languages, prerendered as static HTML that works without JavaScript, and listed in the sitemap with hreflang alternates.
  • Website: an Awards section above the closing "Ready to make a flat image physical?" band, plus an Awards link in the footer next to Privacy and Terms.
  • App: an Awards link in Settings next to the legal links. The desktop app opens it in the system browser; /awards is added to the Rust opener's allowlist.
  • README: an Awards section before License.

Snapmaker's rules

  • The badges embed Snapmaker's official logo files byte for byte, scaled only.
  • The only claim is "Snapmaker Innovation Fund Winner", with no "official", "partner" or "endorsed".
  • The badges stay away from pricing and sponsorship asks such as the Patreon links.
  • The approved badge designs are unchanged.

Why PNGs

scripts/build-winner-badges.mjs regenerates the approved SVGs and renders 2x PNGs from them with Playwright Chromium. The pages use the PNGs. The SVGs load fine under GitHub's CSP and the Tauri CSP in Chromium, Firefox and WebKit. However, WebKit (Safari, GitHub's iOS app, the macOS/Linux webviews) ignores variable-font weights inside SVG images and draws the lettering at Oxanium's thinnest weight.

Tests

  • Unit: route tests for /awards, and the Rust allowlist test.
  • Browser: the landing awards section, the Awards page in English and Romanian, and the Settings Awards link (web and desktop).
  • Static: no-JS checks for the Awards page in every language, plus generator assertions for canonical URLs, sitemap entries and translated text.
  • Updated: the sticky-CTA footer link count went from 7 to 8.
  • Passing locally after rebasing onto develop: lint, check:i18n, build, test:e2e:landing, test:e2e:i18n:build, settings-legal-links.spec.ts and cargo test legal_page_urls.

Add a localized, prerendered /awards page that shows the Snapmaker
Innovation Fund Winner medal, an Awards section near the bottom of the
website and the README, and Awards links in the website footer and the
Settings links. The desktop app opens the page in the system browser.

The badges embed Snapmaker's official logo files unaltered and state only
"Snapmaker Innovation Fund Winner". A maintenance script regenerates the
badge SVGs and Chromium-rendered PNGs; pages use the PNGs because WebKit
draws variable-font lettering inside SVG images at the wrong weight.
@vycdev
vycdev merged commit 2894f46 into develop Nov 3, 2026
vycdev added a commit that referenced this pull request Nov 7, 2026
At narrow widths the landing footer test pinned Privacy as the first link
in the utility row. The Awards link from #126 now comes first, so check
whichever link starts the row.

Closes #136

Co-Authored-By: Claude Opus 5.5 <[email protected]>
officialasishkumar added a commit to officialasishkumar/Kromacut that referenced this pull request Nov 11, 2026
The Awards link from vycdev#126 added an eighth link to the landing footer.
The narrow-screen footer tests in privacy.spec.ts and terms.spec.ts
still expected seven, so `npm run test:e2e:privacy` and
`npm run test:e2e:terms` failed all four width/theme cases on develop,
and their CI jobs failed on every pull request. These suites have their
own Playwright configs, so the i18n footer fix in vycdev#137 did not reach
them.

- Expect eight footer links in both tests. Every link, Awards included,
  is still checked to be fully in the viewport, at least 44px tall,
  above the sticky launch bar, and not covered at its centre.
- The privacy test tabbed once from "Support Kromacut" and expected
  Privacy to take focus. Awards now opens the utility row, so assert
  that Tab reaches Awards first and Privacy on the next Tab, keeping
  the keyboard-order check instead of skipping over the new link.
- The terms test tabs from Privacy to Terms, which are still adjacent,
  so only its count changes.

Closes vycdev#143
vycdev pushed a commit that referenced this pull request Nov 15, 2026
The Awards link added in #126 is the eighth link in the landing footer
navigation, so the narrow-screen footer tests in the privacy and terms
suites failed on `toHaveCount(7)` at 320px and 390px in both themes.
#137 fixed the same cause in the i18n suite, but these suites run under
their own Playwright configs and were missed.

Both tests now expect eight links, so their per-link checks (fully in
view, 44px tall, above the sticky call to action, not covered) run for
the Awards link too. In the privacy test, Awards now sits between
Support and Privacy in the tab order: the test checks its name and
href and tabs through it before reaching Privacy. The terms test tabs
from Privacy to Terms, which the new link does not affect.

Fixes #143
@vycdev vycdev mentioned this pull request Nov 22, 2026
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