tractatus/public/js/admin
TheFlow cc4ff46191 feat(bi): add period selector dropdown to cost avoidance metric
Added time period filtering to cost avoidance calculation:

HTML changes:
- Added dropdown selector next to "Cost Avoidance" title
- Options: 7 days, 30 days (default), 90 days, 1 year, all time
- Green focus ring matching metric theme

JavaScript changes:
- Filter audit data by selected time period before calculating costs
- Event listener updates calculation when period changes
- Cutoff date logic for temporal filtering
- Defaults to 30 days if selector not found

Users can now see cost avoidance for different time windows to track
governance ROI trends over various periods.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 11:20:11 +13:00
..
analytics.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
audit-analytics.js feat(bi): add period selector dropdown to cost avoidance metric 2025-10-27 11:20:11 +13:00
auth-check.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
blog-curation-enhanced.js fix(admin): force fresh API requests to prevent cached 500 errors 2025-10-24 11:02:43 +13:00
blog-curation.js feat(cultural-sensitivity): implement Phase 2 - admin UI with cultural flags (inst_081) 2025-10-25 11:22:42 +13:00
blog-validation.js feat(admin): add standalone submission package modal support 2025-10-24 11:06:22 +13:00
calendar.js fix(calendar): Add cache-busting and better error handling 2025-10-24 12:13:21 +13:00
case-moderation.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
claude-md-migrator.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
contact-management.js feat(crm): complete Phase 3 multi-project CRM + critical bug fixes 2025-10-24 18:10:14 +13:00
dashboard.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
editorial-guidelines.js feat(admin): add Editorial Guidelines Manager page 2025-10-24 13:05:47 +13:00
hooks-dashboard.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
login.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
media-triage.js feat(cultural-sensitivity): implement Phase 2 - admin UI with cultural flags (inst_081) 2025-10-25 11:22:42 +13:00
newsletter-management.js fix(newsletter): convert ObjectId to string in DELETE button data attributes 2025-10-24 20:24:54 +13:00
project-editor.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
project-manager.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
project-selector.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
rule-editor.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
rule-manager.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
submission-modal-enhanced.js fix(submissions): extract data from API response wrappers 2025-10-24 16:35:10 +13:00
submission-modal-old.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
unified-inbox.js feat(crm): complete Phase 3 multi-project CRM + critical bug fixes 2025-10-24 18:10:14 +13:00