Skip to content

feat: modernize UI, upgrade Fresh 2.2.0 + Tailwind v4#2

Merged
kt3k merged 11 commits intomainfrom
feat/accordion-categories-and-fresh-upgrade
Feb 6, 2026
Merged

feat: modernize UI, upgrade Fresh 2.2.0 + Tailwind v4#2
kt3k merged 11 commits intomainfrom
feat/accordion-categories-and-fresh-upgrade

Conversation

@bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Feb 6, 2026

Summary

Modernizes the Node Test Viewer with upgraded dependencies, new chart visualizations, and improved UI polish across all pages.

Screenshot 2026-02-06 at 12 26 14 Screenshot 2026-02-06 at 12 01 28 Screenshot 2026-02-06 at 12 01 23

Dependency upgrades

  • Fresh alpha.29 → 2.2.0 (fixed breaking API changes: fsRoutes, Builder.listen, tailwind(), jsxPrecompileSkipElements)
  • Tailwind CSS v3 → v4 (@import "tailwindcss", removed tailwind.config.ts, added nodeModulesDir: "auto")
  • Updated all other deps (@std/*, preact, @preact/signals)

Day page (/results/:date)

  • Accordion-style categories: collapsed by default showing pass rate, pass/total count, and fail count per OS; clickable to expand individual categories
  • Expand/Collapse all buttons
  • Heatmap chart: categories × OS grid with Overall row, color-coded by pass rate bands
  • Treemap chart: square-root scaled rectangles sized by test count, colored by health
  • Toggle to switch between heatmap and treemap views
  • Left-aligned columns, subtle hover highlights, increased row padding

Index page (/)

  • Chart: 200px → 500px height, shows pass rate % instead of raw count, auto-scaled y-axis, distinct muted colors per OS, smooth curves with zoom
  • Summary table: shows percentage diff and nominal test count change between consecutive runs (+0.11% / +2), left-aligned with consistent styling

Other

  • Added CLAUDE.md with project documentation and Fresh 2.2.0 patterns
  • Dark mode hover toned down across all tables

Test plan

  • deno task dev starts without errors
  • Home page loads with chart and summary table
  • Chart shows percentage pass rates with visible slope over 3 months
  • Summary table rows show diffs between runs (green/red)
  • Day page accordion: categories collapse/expand correctly
  • Heatmap/Treemap toggle works, both render correctly
  • Dark mode looks good (no overly bright hovers, readable text)
  • deno task check passes (except pre-existing Chart.tsx CDN import)

🤖 Generated with Claude Code

…o v4

Accordion-style category view on the day page:
- Categories collapsed by default with test count, pass rate, and fail count
- Clickable headers to expand/collapse individual categories
- Expand all / Collapse all buttons
- Removed flat category navigation links bar

Upgrade Fresh from alpha.29 to 2.2.0:
- Update all dependencies via deno update
- Fix fsRoutes: standalone import -> app.fsRoutes() method
- Fix Builder.listen: pass async function instead of app directly
- Fix tailwind(): 2 args (builder, options) instead of 3
- Add required jsxPrecompileSkipElements entries

Migrate Tailwind CSS from v3 to v4:
- Replace @tailwind directives with @import "tailwindcss"
- Remove tailwind.config.ts (v4 auto-detects content, media dark mode is default)
- Add nodeModulesDir: "auto" for PostCSS resolver compatibility
- Update tailwindcss dependency to ^4

Add project documentation (CLAUDE.md) and Deno skills (.deno-skills/).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bartlomieju bartlomieju force-pushed the feat/accordion-categories-and-fresh-upgrade branch from 6f59662 to 5805034 Compare February 6, 2026 10:33
bartlomieju and others added 3 commits February 6, 2026 12:03
ReportTable improvements:
- Left-align header and category columns with matching background
- Left-align expanded test result cells
- Category summary shows percentage and pass/total on separate lines
- Softer dark mode hover on category rows
- More padding on expanded test rows with subtle hover highlight

Replace dense stacked bar chart with two new chart types:
- Heatmap: categories × OS grid with Overall row, color-coded by pass rate
- Treemap: square-root scaled rectangles sized by test count, colored by health
- Toggle button to switch between heatmap and treemap views

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move content from .deno-skills/node-test-viewer.md into CLAUDE.md and
update outdated info (Fresh 2.2.0, Tailwind v4, chart descriptions).
Adds Fresh patterns, formatting gotchas, and common operations sections.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Chart:
- Increase height from 200px to 500px for visible slope
- Show pass rate percentage instead of raw count
- Auto-scaled y-axis, distinct muted colors per OS
- Smooth curves with markers, zoom enabled

SummaryTable:
- Show percentage diff and nominal test count change between runs
- Left-aligned columns with header background
- Consistent styling with day page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bartlomieju bartlomieju changed the title feat: add accordion categories and upgrade Fresh to 2.2.0 feat: modernize UI, upgrade Fresh 2.2.0 + Tailwind v4 Feb 6, 2026
bartlomieju and others added 3 commits February 6, 2026 12:29
Replace deprecated denoland/deployctl@v1 GitHub Action with the built-in
deno deploy CLI subcommand (requires Deno >= 2.4). Production deploys on
push to main, preview deploys on PRs. Add deploy config to deno.json.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
root: "."
- name: Deploy to production
if: github.event_name == 'push'
run: deno deploy --prod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's easier to use builtin git integration than deno deploy command. I'll update the deployment settings

Copy link
Contributor

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Treemap looks fun!

The switched the build setup to the new pattern (using vite directly)

Landing for testing the deployment in the main branch

@kt3k kt3k merged commit 8196cbf into main Feb 6, 2026
2 checks passed
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.

2 participants