Skip to content

Annual Report: chart alignment, sort, version grouping, freshness, nav link#72

Merged
Kitkatnik merged 1 commit into
mainfrom
Kitkatnik/report-polish
May 1, 2026
Merged

Annual Report: chart alignment, sort, version grouping, freshness, nav link#72
Kitkatnik merged 1 commit into
mainfrom
Kitkatnik/report-polish

Conversation

@Kitkatnik
Copy link
Copy Markdown
Collaborator

Summary

  • Bar charts (§3 Proficiency, §1 First Ruby Release) now share fixed-width grid columns (11rem 1fr 5.5rem) so labels start and values end at the same x — regardless of label length or value width.
  • §2 Sentiment and §3 Persona (Article II) render highest→lowest by percentage. Other sections keep their deliberate orderings (proficiency low→high, Ruby versions chronological).
  • Sentimental Ruby versions (2c) normalize to MAJOR.MINOR before tallying. Verified against production: 3.0 + 3.0.0 group to 5, and 3.4 + 3.4.0 + 3.4.6 + 3.4.9 group to 5 — Ruby 3.4 is now correctly tied for Bump actions/cache from 4 to 5 #1 instead of buried at 2 mentions. The 1.8.7 → 4 span subtitle still renders from raw versions.
  • EmbassyApplication busts the /report cache on after_update_commit when state changes to submitted, so new submissions surface immediately instead of waiting up to an hour.
  • "Annual Report" link added back to the top navbar in all four spots (logged-in/out × desktop/mobile).

Test plan

  • bin/rubocop -f github — clean
  • bin/brakeman --no-pager — 0 security warnings
  • bin/bundler-audit — clean
  • bin/importmap audit — clean
  • bin/rails db:test:prepare test — 362 runs, 1186 assertions, 0 failures
  • bin/rails test:system — 0 runs (none defined)
  • bin/rails runner simulation against the 30 production-extracted version strings produces the expected ranking: Ruby 3.0 (5), Ruby 3.4 (5), Ruby 1.9 (3), Ruby 2.7 (2), Ruby 3.2 (2)
  • After deploy: load /report on production, confirm bars align across both charts; confirm §2/§3 are sorted desc; confirm §2 sentimental list shows the new grouped tally; submit a fresh draft and confirm /report bumps without waiting on the cache TTL

…hness, nav link

- Bar charts (§3 Proficiency, §1 First Ruby) now share fixed column widths so they line up regardless of label or value text.
- §2 Sentiment and §3 Persona render highest→lowest by percentage.
- Sentimental Ruby versions normalize to MAJOR.MINOR before tallying so 3.4 / 3.4.0 / 3.4.6 / 3.4.9 group together.
- Submitting an application busts the /report cache via after_update_commit, so totals reflect new submissions immediately instead of waiting up to an hour.
- Adds "Annual Report" link back to the top navbar (logged-in and logged-out, desktop and mobile).
@railway-app
Copy link
Copy Markdown

railway-app Bot commented May 1, 2026

🚅 Deployed to the ruby-embassy-pr-72 environment in ruby-embassy

Service Status Web Updated (UTC)
ruby-embassy ✅ Success (View Logs) Web May 1, 2026 at 4:27 pm

@railway-app railway-app Bot temporarily deployed to ruby-embassy / ruby-embassy-pr-72 May 1, 2026 16:25 Destroyed
@Kitkatnik Kitkatnik merged commit 5533162 into main May 1, 2026
6 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.

1 participant