Commit Graph

6 Commits

Author SHA1 Message Date
a05b76428f Update screenshots with stable portal service
All 45 modules captured with proper authentication.
Portal service now stable (watchdog fix applied).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 15:26:55 +01:00
c1e4b45d47 Fix screenshot tool login with aiohttp
- Use aiohttp to login via API (bypasses browser SSL issues)
- Inject JWT token into browser localStorage
- All 45 modules now captured with proper authentication
- Portal service watchdog needed (keeps dying)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 13:24:30 +01:00
1f2386b1a8 Update screenshots and wiki documentation
- Refreshed all 45 VM module screenshots
- Updated screenshot-tool.py with better login selectors
- Wiki documentation ready in docs/wiki/
  - secubox-debian-ui.md
  - secubox-openwrt-ui.md
  - UI-COMPARISON.md

Screenshots gallery: docs/SCREENSHOTS-VM.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 13:04:43 +01:00
482ffaf7aa Fix portal auth and add watchdog support
api/main.py:
- Persist default admin user on first load
- Add startup event to ensure users.json exists
- Better error handling for JSON decode errors

secubox-portal.service:
- Restart=always with WatchdogSec=30
- RuntimeDirectory=secubox ensures socket dir exists
- ExecStartPre creates /etc/secubox with proper ownership
- StartLimitBurst=5 prevents restart loops

Fixes authentication issues on fresh boot.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 12:54:04 +01:00
948003c307 Add screenshot tool and wiki documentation
scripts/screenshot-tool.py:
- Playwright-based screenshot capture for all 47 modules
- Supports VM (localhost:9443) and device (192.168.255.1)
- Auto-login with JWT token handling
- Generates markdown documentation per host
- Side-by-side comparison generator
- Wiki page generators for both repositories
- Module listing with categories and icons

docs/wiki/:
- secubox-openwrt-ui.md: OpenWRT LuCI documentation
- secubox-debian-ui.md: Debian CRT P31 theme documentation
- UI-COMPARISON.md: Side-by-side comparison guide

Usage:
  python3 scripts/screenshot-tool.py --host vm
  python3 scripts/screenshot-tool.py --host device
  python3 scripts/screenshot-tool.py --compare --all

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 12:36:19 +01:00
5d2264cadc Add comprehensive module documentation
- docs/MODULES.md: Complete documentation for all 46 modules
  - Organized by category (dashboard, security, network, etc.)
  - API endpoint counts and descriptions
  - CRT P31 phosphor theme documentation
  - Screenshot checklist for visual documentation
  - Module architecture and build instructions
- docs/screenshots/: Directory for module screenshots
- Updated WIP.md with Session 11 documentation work
- Updated MIGRATION-MAP.md with secubox-soc module

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 12:25:27 +01:00