Skip to content

Sweat Equity 4.0.0

Choose a tag to compare

@kfraker kfraker released this 31 Oct 19:41
· 63 commits to main since this release

Sweat Equity is a retro-styled weight and workout tracker built with Flask and Postgres, live at sweatequity.kfraker.dev.

4.0 is a major release. The look changes, but most of the work is underneath: a new page architecture, and a new CI pipeline and automated test suite that now check every change.

A new page architecture

The header, footer, menus and custom cursor now load once, and moving between pages swaps in only what changes. The server still renders every page in full, so refreshes, bookmarks and direct links keep working, and anything unexpected falls back to a normal page load.

Because nothing gets wiped by a page load anymore, every page now follows a lifecycle: it starts through registerPage() and cleans up its listeners, charts, observers and late-arriving responses when you leave. Back and Forward, focus management and screen reader announcements all work with the new navigation.

A new CI pipeline, with tracked testing

Before 4.0 4.0
Tests About 390, server only 591 (435 API and server, 156 in a real browser)
Runs on Manual runs Every push, on GitHub Actions
Coverage tracking Python only, not run regularly Python and JavaScript on Codecov, 86% combined
Coverage guard None CI fails if coverage drops

Every push now runs through GitHub Actions, which sets up the app, runs the full suite against a throwaway Postgres database, reports coverage and fails the build if coverage drops. When a browser test fails, screenshots and traces are attached to the run.

The browser tests run real user flows in Chromium, and any JavaScript error or failed request fails the test. They found real bugs along the way, including a delete checklist that removed the workouts you hadn't ticked. It's fixed, along with the other bugs listed in the changelog.

A new look

New pixel-art backgrounds: a speedboat on Biscayne Bay at dusk for Home and sign-in, a boxing gym at sunrise for Weigh-ins, and a garage gym on a Miami afternoon for Workouts.

What's next

  • Database sandbox: a separate Neon branch for development and previews, isolated from production data.
  • Demo mode: one click from the sign-in page into a private, temporary account with realistic data and a guided tour. No sign-up, and it's wiped when you leave.
  • Mobile test coverage: extending the browser suite to phone and tablet sizes with touch input.