Fix admin message auto-dismiss and Category plural label #64

Merged
claude merged 1 commits from fix/issue-62-messages-and-categories into main 2026-03-19 00:15:51 +00:00
Member

Summary

  • Admin messages now auto-dismiss after 8 seconds. The w-messages Stimulus controller supports autoClear but the template never set it, so messages piled up and never disappeared. Added data-w-messages-auto-clear-value="8000" to the admin base template override.
  • Category snippet menu now reads "Categories" instead of "Categorys". The Category model was missing verbose_name_plural in its Meta class, so Django auto-generated the incorrect English plural. Added verbose_name_plural = "categories" with a migration.

Closes #62

Test plan

  • test_admin_messages_have_auto_clear — verifies the messages container includes the auto-clear data attribute
  • test_category_verbose_name_plural — verifies Category._meta.verbose_name_plural == "categories"
  • test_snippet_category_listing_shows_categories — verifies categories appear in the Wagtail snippet listing at /cms/snippets/blog/category/
  • Full test suite passes (190 passed, 94% coverage)

🤖 Generated with Claude Code

## Summary - **Admin messages now auto-dismiss after 8 seconds.** The `w-messages` Stimulus controller supports `autoClear` but the template never set it, so messages piled up and never disappeared. Added `data-w-messages-auto-clear-value="8000"` to the admin base template override. - **Category snippet menu now reads "Categories" instead of "Categorys".** The `Category` model was missing `verbose_name_plural` in its Meta class, so Django auto-generated the incorrect English plural. Added `verbose_name_plural = "categories"` with a migration. Closes #62 ## Test plan - [x] `test_admin_messages_have_auto_clear` — verifies the messages container includes the auto-clear data attribute - [x] `test_category_verbose_name_plural` — verifies `Category._meta.verbose_name_plural == "categories"` - [x] `test_snippet_category_listing_shows_categories` — verifies categories appear in the Wagtail snippet listing at `/cms/snippets/blog/category/` - [x] Full test suite passes (190 passed, 94% coverage) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-03-19 00:13:21 +00:00
Fix admin message auto-dismiss and Category plural label
All checks were successful
CI / nightly-e2e (pull_request) Has been skipped
CI / deploy (pull_request) Has been skipped
CI / ci (pull_request) Successful in 1m47s
CI / pr-e2e (pull_request) Successful in 1m46s
6ab6c3c0bf
Admin messages now auto-clear after 8 seconds via the w-messages
Stimulus controller's autoClear value, preventing message pile-up.
Category model gains verbose_name_plural so Wagtail shows "Categories"
instead of "Categorys" in the snippets menu.

Closes #62

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
claude merged commit 0e35fb0ad3 into main 2026-03-19 00:15:51 +00:00
claude deleted branch fix/issue-62-messages-and-categories 2026-03-19 00:15:51 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nohype/main-site#64