Repository navigation
Releases
v4.3.0
Added
- Added a health check address that shows whether the site and its database are up.
- Added a daily check of the live site that emails the owner if a page is down or showing an error.
- Added a daily backup of the database, kept on top of the 6 hours of history the database host already keeps.
- Added step-by-step instructions for restoring the database.
Behind the scenes
- Tested restoring the database both ways, from an earlier moment and from the daily backup. Every table matched the live data, and each restore took about 11 to 13 seconds.
- The restore instructions now warn that the database also holds another app's data, so a full restore would undo changes there too.
- Raised the test coverage minimum to match the latest results.
The technical details are in the changelog.
v4.2.1
Fixed
- Fixed the profile picture picker hanging off the edge of phone screens, which hid its Save button.
Behind the scenes
- Added a list of every user flow, with the tests that prove each one on desktop, phone and tablet. It's reported alongside code coverage on every test run.
- Added touch tests for the 10 flows that were only tested on desktop, so every flow is now proven on desktop, phone and tablet.
- Fixed the flow coverage report crashing on Windows.
The technical details are in the changelog.
v4.2.0
Fixed
- Fixed the Weigh-ins page freezing for visitors in Europe, Asia and anywhere else ahead of UTC.
- Fixed the Weigh-ins charts, 7-day average and weekly views showing weigh-ins a day early for visitors ahead of UTC.
- Fixed the Weigh-ins streak dropping to 0 every evening in the US, and the 7-day average and weekly calorie burn shifting a day in the evening.
- Fixed Insights "Largest Weekly Loss" and "Avg Daily Fluctuation" missing days around daylight saving clock changes.
- Fixed the Workouts "this week" count starting a day off late in the evening during a clock-change week.
- Fixed "+ Add Activity" starting out of sight when logging a workout from Home on a small phone.
- Fixed the sign-in card touching the edges of the screen on phones.
Behind the scenes
- Added a performance budget: the tests now fail if a page gets too heavy or too slow to load.
- Added tests that use the app on phones and tablets by touch.
- Added tests that run the app in four time zones and across daylight saving clock changes.
- Added a code check that stops the time zone mistake behind the freeze from coming back.
The technical details are in the changelog.
v4.1.5
Sweat Equity 4.1.4
Faster
- Home now loads much faster: its first download fell from 4.57 MB to 0.69 MB.
- Profile pictures, the weight plates and the page backgrounds are now sized and compressed for how they're displayed, with no visible difference.
- Images that aren't on screen, like the other profile pictures in the picker, no longer download until they're needed.
- Returning visitors can reuse files their browser already has, instead of downloading them again.
Fixed
- Fixed the weight plates briefly showing as empty outlines while the page loaded.
- Fixed Insights streaks resetting when the clocks changed for daylight saving time.
Behind the scenes
- Added tests for the faster loading, the plate reveal and the daylight saving fix.
- Kept the full-size original artwork safe in the project, with a script that rebuilds the smaller versions.
The technical details are in the changelog.
Sweat Equity 4.1.3
A behind-the-scenes release focused on code quality. Nothing changes for visitors to the site.
Code quality
- Added automatic formatting and code quality checks, so inconsistent or problematic code now fails the build.
- Formatted all of the app's Python and JavaScript code to one consistent style.
- Removed old code that nothing used anymore: a previous way of editing table rows, its confirmation window, and an unused calculation.
Testing
- Added a test for clicking a Weigh-ins table row to edit it, which wasn't covered before.
- Corrected the reported JavaScript test coverage from 84.5% to 75.4%. Compressed code had been making the number look higher than it really was. No tests were removed, and the new figure is the accurate one.
Maintenance
- Dependency checks now cover the new code quality tools too.
- Added a decision log entry explaining the coverage correction, and marked this work done on the roadmap.
The technical details are in the changelog.
Sweat Equity 4.1.2
Security
- Updated the packages behind Google sign-in, encryption and web requests to fix known security issues.
- Updated the trusted security certificates the app relies on.
- Updated other packages to their current versions.
- Fixed a security issue in a developer-only testing tool.
Reliability
- Production deploys now wait for the full test suite to pass, and a failed test can no longer reach the live site.
- The main branch is now protected, so every change has to pass the tests first.
- Proved all of this with deliberate failures, and documented how it works.
- Updated the automated test pipeline's tools to their current versions.
The technical details are in the changelog.
Sweat Equity 4.1.1
- Fixed a bug where a weight entered right as the weigh-in or weight card window opened could be lost, leaving Save doing nothing.
- Added a test to make sure that bug stays fixed.
- Added user flow coverage to the published roadmap and decision log.
The technical details are in the changelog.
Sweat Equity 4.1.0
A behind-the-scenes release that makes the project safer to develop and easier to review. Nothing changes for visitors to the site.
Safer development
- Added a separate sandbox database, so development and testing no longer touch real data.
- Preview versions of the site now use the sandbox and can no longer reach the real database.
- Added a badge that shows when the app is running on the sandbox.
- Added a warning for when a developer's copy is in debug mode and not set up to use the sandbox.
- Added a one-command way to fill a sandbox account with realistic test data, which refuses to run anywhere else.
- Removed leftover temporary test data from the production database. Real data wasn't changed.
Project foundations
- The project is now open source under the MIT license.
- Turned on automatic alerts and fixes for vulnerable dependencies.
- Added weekly checks for outdated dependencies, which go through the full test suite first.
- Published the roadmap, with upcoming work written up as epics, stories and acceptance criteria.
- Added a decision log explaining the big technical choices and why they were made.
- Wrote and tested steps for quickly undoing a bad release.
- Fixed the repository's website link, which pointed to an old address.
- Added instructions for setting up and resetting the sandbox.
Testing
- Added tests for the new badge, warning and test-data safety checks, for 610 tests in total.
- Fixed coverage reports counting developer tools as part of the app.
The technical details are in the changelog.
Sweat Equity 4.0.0
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.