Skip to content

feat(app): add parse boss with a stand-alone statistics page - #48

Merged
danifischer merged 1 commit into
masterfrom
claude/cm-boss-dps-stats-0d5bfb
Nov 30, 2026
Merged

danifischer merged 1 commit into
masterfrom
claude/cm-boss-dps-stats-0d5bfb

Conversation

@danifischer

Copy link
Copy Markdown
Owner

What

rta parse boss <name|id> [--cm] [--from] [--to] [--phases 70,40,10] [--refresh] [-k] [-r] loads all logs of one boss from dps.report (e.g. every try at a challenge mode over several weeks) and writes:

  • boss-<name>.html: the usual timeline
  • boss-<name>-stats.html: a stand-alone statistics page with a scrollable chart of the boss health left per try (coloured by day, best try per day, optional phase bands), phase and per-day tables, wipe distribution, players and the latest tries. Works on desktop and phone, dark and light.

A console summary prints tries, kills, fastest kill, best wipe and one line per day.

Details

  • The list of uploads (slimmed down, keyed by a hash of the token) and the Elite Insights json of every log are cached in <log folder>/dpsreport-cache. Later runs read pages only until the first known upload and load only new logs; --refresh reads the whole list again.
  • Bosses dps.report has no name for (listed as "DPS.Report") can be selected by id, decimal or hex (28106, 0x6DCA).
  • Fix: dps.report reports the page count only on page 1 (0 afterwards), so the upload list was read for two pages at most. This also affected parse report.
  • Without a boss definition the mechanics column is shown as "Mechanic hits / try" instead of "fails".

Testing

  • New tests for the filter (boss, id, cm, date range), paging, cache, incremental index and the console summary; all tests pass (126 + 59).
  • Run against real uploads (Nexus of Eternity CM, 95 tries) and checked the page in a browser (desktop dark/light, mobile).

🤖 Generated with Claude Code

rta parse boss <name|id> [--cm] [--from] [--to] [--phases] [--refresh] loads all
logs of one boss from dps.report and writes a timeline (boss-<name>.html) and a
statistics page (boss-<name>-stats.html) with a scrollable chart of the boss
health left per try, phase bands, per-day and per-phase tables and players.

The list of uploads and the logs are cached, so later runs only read the new
uploads. Bosses dps.report has no name for can be selected by id. Also fixes
the paging of the upload list: dps.report reports the page count only on the
first page, so only two pages were read before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@danifischer
danifischer merged commit 1d3ad4d into master Nov 30, 2026
1 check 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.

1 participant