chore: initial project setup with AI usage dashboard for Codex and Devin
Add FastAPI-based monitoring dashboard with support for Codex CLI and Devin API v3 Enterprise consumption tracking. Includes Docker deployment, systemd service configuration, kiosk mode launcher, comprehensive documentation, and demo mode for testing without credentials.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).parents[1]
|
||||
|
||||
|
||||
def test_frontend_assets_exist_and_use_api():
|
||||
html = (ROOT / 'templates/index.html').read_text()
|
||||
script = (ROOT / 'static/app.js').read_text()
|
||||
css = (ROOT / 'static/style.css').read_text()
|
||||
assert '/static/style.css' in html
|
||||
assert '/static/app.js' in html
|
||||
assert "fetch('/api/usage'" in script
|
||||
assert 'entry.id === limit.id' in script
|
||||
assert 'requestAnimationFrame' in script
|
||||
assert 'grid-template-columns' in css
|
||||
Reference in New Issue
Block a user