tractatus/public/admin
TheFlow 4e5fc013af fix(audit): fix timeline chart rendering with pixel heights and count labels
Fixed broken "Decisions Over Time" chart that wasn't displaying bars.

Root cause: Empty divs with percentage heights collapsed in flex containers.

Fixes applied:
1. **Pixel heights instead of percentages**
   - Calculate absolute pixel heights from h-48 container (192px)
   - Percentage heights don't work in flex containers with items-end

2. **Non-breaking space inside bars**
   - Added   to prevent empty div collapse
   - Even with height set, empty divs can collapse in some layouts

3. **Decision count labels**
   - Display count above each bar for exact numbers
   - Shows both visual proportion (bar height) and exact value (label)

4. **Minimum 10px height**
   - Ensures small values are always visible
   - Prevents bars from disappearing for low counts

5. **Wider bars**
   - Changed from max-w-16 (64px) to w-3/4 (75% width)
   - More visible and easier to interact with

Timeline modes working:
-  6-Hourly (24h) - 4 bars showing last 24 hours in 6-hour buckets
-  Daily (7d) - 7 bars showing last 7 days
-  Weekly (4w) - 4 bars showing last 4 weeks

All modes show current snapshot updated on refresh.

Files changed:
- public/js/admin/audit-analytics.js: Timeline rendering logic
- public/admin/audit-analytics.html: Updated cache version
- public/*.html: Cache version bump for consistency

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-25 12:22:55 +13:00
..
audit-analytics.html fix(audit): fix timeline chart rendering with pixel heights and count labels 2025-10-25 12:22:55 +13:00
blog-curation.html feat(blog): integrate Tractatus framework governance into blog publishing 2025-10-25 08:47:31 +13:00
blog-curation.html.backup fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
calendar.html fix(cache): standardize cache version across all HTML files 2025-10-24 12:34:39 +13:00
case-moderation.html fix(cache): standardize cache version across all HTML files 2025-10-24 12:34:39 +13:00
claude-md-migrator.html fix(cache): standardize cache version across all HTML files 2025-10-24 12:34:39 +13:00
contact-management.html feat(crm): complete Phase 3 multi-project CRM + critical bug fixes 2025-10-24 18:10:14 +13:00
crm-dashboard.html feat(crm): complete Phase 3 multi-project CRM + critical bug fixes 2025-10-24 18:10:14 +13:00
dashboard.html fix(cache): standardize cache version across all HTML files 2025-10-24 12:34:39 +13:00
editorial-guidelines.html feat(admin): add Editorial Guidelines Manager page 2025-10-24 13:05:47 +13:00
hooks-dashboard.html fix(cache): standardize cache version across all HTML files 2025-10-24 12:34:39 +13:00
login.html fix(cache): standardize cache version across all HTML files 2025-10-24 12:34:39 +13:00
media-triage.html fix(cache): standardize cache version across all HTML files 2025-10-24 12:34:39 +13:00
newsletter-management.html fix(newsletter): convert ObjectId to string in DELETE button data attributes 2025-10-24 20:24:54 +13:00
project-manager.html fix(cache): standardize cache version across all HTML files 2025-10-24 12:34:39 +13:00
rule-manager.html fix(cache): standardize cache version across all HTML files 2025-10-24 12:34:39 +13:00
unified-inbox.html feat(crm): complete Phase 3 multi-project CRM + critical bug fixes 2025-10-24 18:10:14 +13:00