From 55f565c6192dab8bac848316fcd24af397ae033b Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Sat, 25 Apr 2026 20:35:29 -0600 Subject: [PATCH] feat(boards): unify homepage grid with flasher + clickable cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three changes, all from finally having working RAK4631 firmware and noticing the homepage grid was hand-coded, stale, and disconnected from the flasher. 1. RAK4631 display name. Silkscreen + RAK marketing call this module 'RAK4631'; 'WisBlock' is the ecosystem brand. The site was showing 'RAK WisBlock 4631', which matched neither the product name nor the firmware commit message ('RAK4631 WisBlock bring-up'). It also contradicted Uf2DownloadFlow.svelte, which already correctly told users 'A USB drive named RAK4631 should appear'. Renamed to 'RAK4631 WisBlock' in boards.ts. Stable identifiers (board id, asset filename pattern, driveName lookup) unchanged so v1.4.0 artifacts still resolve. 2. Homepage grid is now data-driven from boards.ts. Previously a hand-coded list that had silently drifted: missing the LilyGo T-Beam classic, LilyGo T-Beam S3 Supreme, and the Heltec V3 UART variant. Now maps over the same `boards` array the flasher uses, sorted case-insensitively by display name. Adding a board in one place updates both pages. `badgeText()` and `badgeColor()` lifted out of BoardSelector.svelte into boards.ts so the label and accent color have a single source of truth too. 3. Homepage cards are now links — clicking a card takes you to /flash?board= with that board pre-selected. Flasher.svelte reads the param on mount and sets selectedBoard if the id resolves, so the user lands on the version-picker step directly. The flasher's BoardSelector keeps its richer UI (search filter, MCU-family grouping) — only the simpler homepage grid was unified. --- src/components/BoardSelector.svelte | 24 +------------- src/components/Flasher.svelte | 9 ++++++ src/lib/boards.ts | 26 ++++++++++++++- src/pages/index.astro | 49 +++++++++++------------------ 4 files changed, 54 insertions(+), 54 deletions(-) diff --git a/src/components/BoardSelector.svelte b/src/components/BoardSelector.svelte index ee0dc78..d428229 100644 --- a/src/components/BoardSelector.svelte +++ b/src/components/BoardSelector.svelte @@ -1,6 +1,6 @@