Skip to content

feat(cli): add HTML leaderboard generator#57

Merged
hummbl-dev merged 1 commit intomainfrom
feat/claude/leaderboard-html
Apr 19, 2026
Merged

feat(cli): add HTML leaderboard generator#57
hummbl-dev merged 1 commit intomainfrom
feat/claude/leaderboard-html

Conversation

@hummbl-dev
Copy link
Copy Markdown
Owner

Summary

  • New src/arbiter/leaderboard_html.py with generate_leaderboard_html() -- self-contained HTML page (inline CSS, dark theme, HUMMBL #166534 accent, responsive, XSS-safe)
  • Added --html flag to arbiter leaderboard subcommand (arbiter leaderboard --html -o leaderboard.html)
  • 12 tests covering valid HTML, repo names, scores, self-containment, responsive meta, branding, linking, escaping, empty report

Test plan

  • 12 new tests in tests/test_leaderboard_html.py all pass
  • Full suite (645 tests) passes with no regressions
  • Manual: arbiter leaderboard --html -o out.html && open out.html with a populated DB

🤖 Generated with Claude Code

Self-contained static HTML page from Arbiter scores with dark theme,
HUMMBL branding (#166534 forest green), responsive layout, color-coded
score badges, and XSS-safe escaping. 12 new tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hummbl-dev hummbl-dev merged commit a0f2da7 into main Apr 19, 2026
3 checks passed
@hummbl-dev hummbl-dev deleted the feat/claude/leaderboard-html branch April 19, 2026 03:02
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4702db3ec4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +67 to +69
grade = _grade_score(score, loc)
grade_color = _GRADE_COLORS.get(grade, "#6b7280")
sc = _score_color(score)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use neutral score color for unscorable repos

When total_loc is 0, _grade_score returns "N/A", but the score badge color is still computed from _score_color(score), so these rows render as a failing red score even though they are intentionally unscored. In datasets with non-analyzable repos, this visually misclassifies N/A entries as low quality and can mislead readers comparing leaderboard results; the score badge should use a neutral color when the grade is N/A.

Useful? React with 👍 / 👎.

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