$ show assem-ch/django-jet-reboot
django-jet-reboot is a modern, feature-rich Django admin interface enhancement and reusable app. It replaces the default Django admin templates with a fully themed, responsive interface featuring a sidebar with bookmarks and application pinning, a customizable dashboard with drag-and-drop widgets (recent actions, app list, model list, link list, RSS feed, Google Analytics, Yandex Metrika), compact inline editing, AJAX-powered list filters (RelatedFieldAjaxListFilter, DateRangeFilter), and multiple built-in color themes. The architecture is a standard Django reusable app with a sub-app for the dashboard, providing its own URL endpoints for AJAX operations, bookmarks, and sidebar management. It integrates with external analytics APIs and uses a legacy frontend build pipeline (Gulp, Browserify, jQuery, jQuery UI, Select2). While functional and popular (496 stars), the codebase shows signs of technical drift: outdated frontend dependencies, compatibility shims for very old Django versions, and duplicated theme assets. The dashboard module system and filter components are well-structured and potentially reusable in other Django projects.
The LLM identified 4 files worth highlighting for reuse:
A standalone implementation of an OrderedSet (ordered set) data structure, preserving insertion order while maintaining set uniqueness semantics. It implements the MutableSet abstract base class and provides standard set operations (add, discard, __contains__, __iter__, __len__) alongside sequence-like access via __getitem__ and index(). The implementation is clean, well-tested, and can be extracted into any Python project requiring an ordered set without any dependencies beyond the standard library.
Contains two reusable Django admin list filters: RelatedFieldAjaxListFilter and DateRangeFilter. RelatedFieldAjaxListFilter provides an AJAX-powered drop-down for filtering by foreign key or many-to-many fields, dynamically loading options based on the current queryset, improving performance on large relationships. DateRangeFilter allows filtering by date ranges with a date picker. Both filters are self-contained, follow Django's admin filter API, and can be extracted into any Django project to enhance changelist filtering without tight coupling to other jet components.
Implements a Google Analytics client with OAuth2 authentication for fetching visitor statistics (totals, chart data, period visitors). It handles token storage using Django models, provides settings forms with credential display, and manages the OAuth2 callback flow. The client is well-structured with error handling and can be extracted as a reusable component for any Django application needing Google Analytics API integration, separate from the dashboard module system.
A JavaScript utility that uses the window.name property as a cross-page storage mechanism to manage the stack of related-object popup windows in Django admin. It provides push/pop operations to track opened popups and supports returning the opener window's storage. This pattern elegantly solves the problem of nested related popups without relying on cookies or local storage, and can be extracted into any Django admin project to improve the user experience of related-object lookups.