Skip to content

Improve Django admin: search, aggregations, bulk actions, and Commitment visibility#6

Merged
Fingolfin7 merged 2 commits intomasterfrom
codex/improve-admin-page-usability
Feb 23, 2026
Merged

Improve Django admin: search, aggregations, bulk actions, and Commitment visibility#6
Fingolfin7 merged 2 commits intomasterfrom
codex/improve-admin-page-usability

Conversation

@Fingolfin7
Copy link
Copy Markdown
Owner

Motivation

  • The admin UX was missing searchable/filterable views and the Commitment model wasn’t visible for quick management, making high-volume admin tasks slow and error-prone.
  • Operators need user-level aggregates and bulk operations to triage and update records efficiently.

Description

  • Reworked core/admin.py to register Projects, SubProjects, Sessions, Context, Tag, and Commitment with rich ModelAdmin configurations including list_display, list_filter, search_fields, autocomplete_fields, and list_editable.
  • Added bulk admin actions for projects (status transitions) and commitments (activate/deactivate, enable/disable banking) and exposed banking fields for quick edits.
  • Added per-row aggregations using annotated querysets (counts and total minutes) for projects, subprojects, sessions, contexts, and tags to surface user-level context.
  • Upgraded users/admin.py UserAdmin to display and annotate project_count, session_count, commitment_count, and total_logged_minutes, and added core/test_admin.py to validate admin registrations and the new user aggregation columns.

Testing

  • Ran SECRET_KEY=test GEMINI_API_KEY=test AUDIT_PERIOD=60 python manage.py check which completed with no issues.
  • Ran SECRET_KEY=test GEMINI_API_KEY=test AUDIT_PERIOD=60 python manage.py test core.test_admin which executed the admin tests (2 tests) and passed (OK).

Codex Task

@Fingolfin7 Fingolfin7 merged commit 1554348 into master Feb 23, 2026
3 checks passed
@Fingolfin7 Fingolfin7 deleted the codex/improve-admin-page-usability branch February 23, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant