Skip to content

Awards page polish: clean anchors, paper counts, name spacing; retire import_awards#1356

Merged
jonfroehlich merged 2 commits into
masterfrom
awards-followup
Jun 19, 2026
Merged

Awards page polish: clean anchors, paper counts, name spacing; retire import_awards#1356
jonfroehlich merged 2 commits into
masterfrom
awards-followup

Conversation

@jonfroehlich

Copy link
Copy Markdown
Member

Follow-up to #1355 (Awards redesign), addressing review feedback after it shipped to prod in 2.14.0.

Changes

  1. Clean, shareable section anchors — headings now use #student-awards, #faculty-honors, #project-awards, #best-paper-awards, #other-paper-awards instead of the verbose #section-…-heading. Nicer for sharing direct links.
  2. Counts on the paper sections — "Best Paper Awards (N)" / "Other Paper Awards (N)".
  3. Stray-space fix — recipient/project lists rendered as "Chu Li , AltGeoViz" (template whitespace between the two loops); now "Chu Li, AltGeoViz".
  4. Retire import_awards from the deploy — the one-time backfill has run on test + prod, so it's removed from docker-entrypoint.sh. It no longer re-runs every deploy (which would resurrect any award you delete in the admin). The command + tests stay in the repo, unwired and re-runnable.

Deploy notes

No schema change. Removing the entrypoint step just means the importer stops running on container start; existing award rows are untouched.

Tests

website/tests/test_award.py — added regression tests for the name spacing and the clean-anchor/count markup. Full award + import suites pass locally (--settings=makeabilitylab.settings_test).

Version

Bumps to 2.14.1 (patch).

🤖 Generated with Claude Code

jonfroehlich and others added 2 commits June 19, 2026 16:34
…pacing

- Section anchor IDs are now clean/shareable (#student-awards, #best-paper-awards)
  instead of #section-...-heading.
- Best/Other Paper Award headings show a count, e.g. 'Best Paper Awards (12)'.
- Recipient/project lists no longer render a stray space before the comma
  ('Name, Project' not 'Name , Project') — was template whitespace between the loops.
- Adds regression tests for the spacing and the anchor/count changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The one-time backfill has run on test + prod, so remove its docker-entrypoint.sh
step (stops re-running every deploy and resurrecting admin-deleted awards). The
import_awards command + tests stay in the repo, unwired and re-runnable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jonfroehlich jonfroehlich merged commit eb7d627 into master Jun 19, 2026
3 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