fix(ai): frontend console error — fix missing build artifact and admin list fetch warning (agent)

- Added `start` script to `package.json` to ensure `npm run build` is executed before serving, preventing 404 errors for `css/tailwind.generated.css`.
- Updated `js/adminListStore.js` to include the super admin pubkey (decoded from `ADMIN_SUPER_NPUB`) in the filter when fetching admin lists. This resolves the warning: `[adminListStore] Cannot use incremental fetch for editors without author.`
- Added `scripts/agent/debug_frontend.py` to diagnose frontend errors using Playwright.
- Verified fixes by running the debug script and confirming warnings are gone.
This commit is contained in:
google-labs-jules[bot] committed 2026-01-23 18:45:36 +00:00
1 parent 757c00d5c9
commit a731ef6887
4 files changed
+24 -579

No files matched your search

+6 -8
View File
@@ -1,25 +1,23 @@
from playwright.sync_api import sync_playwright
import time
import sys
from playwright.sync_api import sync_playwright
def run():
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
print("--- Console Messages ---")
# Listen for console messages
page.on("console", lambda msg: print(f"console:{msg.type}: {msg.text}"))
print("--- Page Errors ---")
# Listen for uncaught exceptions
page.on("pageerror", lambda exc: print(f"pageerror: {exc}"))
print("--- Failed Requests ---")
# Listen for failed network requests
page.on("requestfailed", lambda req: print(f"requestfailed: {req.url} {req.failure}"))
print("Navigating to http://localhost:8000 ...")
try:
page.goto("http://localhost:8000")
# Wait for potential initialization errors
time.sleep(5)
page.goto("http://localhost:8000", wait_until="networkidle")
except Exception as e:
print(f"Navigation failed: {e}")