secubox-openwrt/.codex/WIP.md

51 lines
3.4 KiB
Markdown

# WIP Tracker (Codex)
## Completed Today
**SecuBox App Store Integration (luci-app-secubox v0.6.1):**
- ✅ Added 4 new RPC backend methods (get_appstore_apps, get_appstore_app, install_appstore_app, remove_appstore_app)
- ✅ Created frontend App Store view (apps.js) with category filters and install/remove functionality
- ✅ Added apps.css with SecuBox theme integration and responsive design
- ✅ Updated API module with app store method declarations
- ✅ Added "App Store" menu entry at admin/secubox/apps
- ✅ Updated ACL permissions for app store operations
- ✅ Integrated .appstore/apps.json metadata into package installation
- ✅ Package builds successfully (luci-app-secubox_0.6.1-r1_all.ipk - 65KB)
- ✅ Total: 58 packages now building
**Earlier Today - Build System Enhancement:**
- Enhanced local-build.sh to support secubox-app-* packages (6 locations updated)
- Renamed nodogsplash → secubox-app-nodogsplash with proper Makefile structure
- Created SecuBox App Store metadata structure (.appstore/apps.json with 5 apps, 4 categories)
- Fixed golang package build issues (include paths, Go version detection, install paths)
- All script-based secubox-app packages building successfully
- Documented build system in .codex/SECUBOX_APP_STORE.md
- Updated apps.json: CrowdSec marked as "dev" status (requires full build environment)
**Previous Work:**
- Introduced SecuBox cascade layout helper (CSS + JS) and migrated SecuNav + MQTT tabs to the new layered system.
- MQTT Bridge now exposes Zigbee/SMSC USB2134B presets with dmesg hints, tty detection, and documentation updates.
- New `mqtt-bridge` daemon keeps adapter metadata (port/bus/health) synced, updates stats, and runs automation rules/templates.
- Unified Monitoring + Modules filters and Help view with SecuNav styling.
- Added Bonus tab to navbar, refreshed alerts action buttons, removed legacy hero blocks.
- Verified on router (scp + cache reset) and tagged release v0.5.0-A.
- Settings now surface dark/light/system/cyberpunk themes with live preview + RPC persistence.
- Built `secubox-tools/quick-deploy.sh` with interactive `--src-select`, LuCI profiles, verification, and cache-bust helpers.
- System Hub ACL now lists diagnostics + remote RPC methods so those tabs load under proper permissions.
- Validator now resolves cross-module menu paths and JS/CSS permissions normalized to 644 so checks pass repo-wide.
- Quick deploy prompt now writes menus to stderr so capturing the choice works again for `--src-select`.
- System Hub views now import SecuBox theme CSS, hide default LuCI tabs, and respect `data-secubox-theme` for consistent styling.
## In Progress
- Preparing follow-up refactor to deduplicate Theme initialization logic.
- Evaluating automated deployment pipeline (rsync/scp wrappers) for `secubox-tools`.
- Enhancing SecuBox theme guidelines (see `.codex/THEME_CONTEXT.md`) to capture layout, state, and localization best practices before next UI sprint.
- Next TODO in focus: rewrite Network Modes views so each mode loads its config, reacts to preferences, and stays theme-aligned (per `.codex/TODO.md` #1).
- Scaffolded MQTT Bridge module (`luci-app-mqtt-bridge`) and tracking follow-up work under `.codex/apps/mqtt-bridge/`.
## Reminders
- After editing LuCI JS, always deploy via `secubox-tools/deploy-secubox-dashboard.sh` or targeted SCP + `rm -rf /tmp/luci-*`.
- Router currently lacks a root password; set one before exposing it to networks.