Drops views/dev/agent-dashboard.html (iframed the external TORCH dashboard,
now defunct), its sidebar nav link, and the unused DEV_DASHBOARD view constant.
No dangling references; build green.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
The TORCH dashboard was filtering events using `since: <today 00:00 UTC>`, which excluded active locks created on the previous day (e.g., late-night daily locks or weekly locks).
This change updates the `since` filter to look back 7 days, ensuring that all potentially active locks (including weekly cadence) are retrieved and displayed.
Steps:
1. Modified `views/dev/agent-dashboard.html` to set `since` to `Date.now() - 7 days`.
2. Verified the fix by creating a reproduction script `reproduce_issue.py` (which confirmed the issue) and a verification script `verify_dashboard.py` (which confirmed the fix).
3. Verified the visual output with `verification.png`.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Add "Dev Tools" button to the sidebar footer menu.
- Configure `js/constants.js` with `DEV_DASHBOARD` view type.
- Refactor `views/dev/agent-dashboard.html` to be compatible with `loadView` (moved styles to body, updated links).
- Add cleanup logic to dashboard script to prevent memory leaks when navigating away.
- Fix duplicate import in `js/nostr/reactionEvents.js`.
Co-authored-by: PR0M3TH3AN <[email protected]>
Standalone HTML page at views/dev/agent-dashboard.html that connects
directly to the same three Nostr relays agents use (relay.damus.io,
nos.lol, relay.primal.net), subscribes to kind 30078 events tagged
with #bitvid-agent-lock, and renders a live dashboard of active
agent locks with TTL bars, platform badges, and a raw event log.
https://claude.ai/code/session_017hmikBS4vBXtFWCsdkkQv8
- Fix broken `SearchFiltersPopover.js` import in `views/dev/popover-demo.html` by replacing it with a local `wirePopover` implementation, resolving `tests/e2e/popover.spec.ts` failures.
- Update `.gitignore` to exclude `*.log` files to prevent accidental commits of local log files.
- Remove accidental `server.log` from the repository.
- Attempted to fix `tests/visual/moderation.spec.ts` but confirmed "element not found" issues in fixture environment; reverted to preserve passing state.
- Formatted code.