Repository navigation
v0.4.1.0: admin About page (app / base versions, release dates) - #25
Merged
Merged
Conversation
/admin/about/ (sidebar System -> About) shows the application version, release date and build (VERSION, RELEASE_DATE, BUILD_ID, extra rows from APP_INFO_CALLBACK) and the django-whiteneuron version and release date. Superusers also see runtime details (Python, OS, host, database, cache, uptime) and dependency versions. whiteneuron.__version__ / __release_date__ are defined and checked against pyproject.toml and CHANGELOG.md. Vietnamese translations and compiled CSS updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WwbZYokwaW48quNjW9XBCX
Review of the About page with sensitive data in mind: - runtime card (superusers) no longer shows host name, OS/kernel, database server version, cache backend or the dependency list; it keeps Python/Django/Unfold versions, database engine, debug mode, time zone, server time and uptime - debug mode moved from the staff-visible card to the superuser card - BUILD_ID is cut to 12 characters - APP_INFO_CALLBACK is a setting only (no import path from the environment); docs warn that its rows are visible to all staff - process start time comes from psutil (was the first page view) and the uptime is translated (Django's timesince has no Vietnamese) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WwbZYokwaW48quNjW9XBCX
Unfold's card `icon` option places a large icon past the card's left edge, so overflow-hidden cut it in half. The headline cards now use a tinted icon tile next to the text (shared about_stat.html), and the Base platform card no longer reuses the "layers" icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WwbZYokwaW48quNjW9XBCX
- version 0.4.1.0 (2026-10-16) in pyproject.toml, uv.lock, whiteneuron/__init__.py, CHANGELOG.md and README.md - release notes docs/reports/releases/2026-10-16-v0.4.1.0.md - base version on the About page is whiteneuron.__version__ (the code that runs), so it always matches __release_date__ on editable installs - non-string BUILD_ID no longer raises (was a 500) - Vietnamese catalog: duplicate fuzzy flag lines on the uptime plurals removed by makemessages Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WwbZYokwaW48quNjW9XBCX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an About page to the admin (
/admin/about/, sidebar System → About / Hệ thống → Thông tin ứng dụng). It shows which version of the application and of django-whiteneuron is running, and when each was released. This PR also cuts release v0.4.1.0.NAME,VERSION,RELEASE_DATE,BUILD_ID(cut to 12 characters), rows fromAPP_INFO_CALLBACKSettings (all optional)
RELEASE_DATE(env, ISO date)BUILD_ID(env, falls back toGIT_COMMIT)APP_INFO_CALLBACK(settings only,func(request) -> [(label, value), ...]). These rows are visible to all staff, so the docs warn against returning secrets. If the callback raises, the error is logged and its rows are skipped.Information disclosure
These are never shown to anyone: host name, OS/kernel, CPU architecture, IP addresses, paths, database server version, connection settings, cache backend, or the dependency list. Runtime details and debug mode are visible to superusers only. Tests enforce this.
Other changes
whiteneuron.__version__/__release_date__added. A test keeps them in sync withpyproject.tomlandCHANGELOG.md.timesincehas no Vietnamese translation, so the package formats the uptime itself with its own msgids.pyproject.toml,uv.lock,__init__.py,CHANGELOG.md,README.md. Release notes are indocs/reports/releases/2026-10-16-v0.4.1.0.md.Upgrade
pip install -U django-whiteneuron==0.4.1.0, thencollectstatic. No migrations. Projects that define their ownUNFOLD["SIDEBAR"]need to add the link themselves:reverse_lazy("admin:about").Test plan
manage.py test whiteneuron: 57 tests pass (9 new inbase/tests_about.py)checkclean;makemigrations --checkreports no changesmsgfmt --check;makemessagesleaves no untranslated or fuzzy entriesuv build: the wheel includes the new module and templates🤖 Generated with Claude Code
https://claude.ai/code/session_01WwbZYokwaW48quNjW9XBCX
Generated by Claude Code