diff --git a/Temporary/Webapp - Chirp Log Review.md b/Temporary/Webapp - Chirp Log Review.md index 484d0d7..4cb5ac2 100644 --- a/Temporary/Webapp - Chirp Log Review.md +++ b/Temporary/Webapp - Chirp Log Review.md @@ -56,6 +56,53 @@ flowchart TD ## Feature Implementation Plan +### Frontend prompt +``` +You are Claude Sonnet 4. Act as a senior full-stack architect (Flask + Jinja2 + Supabase Postgres). +Improve our existing web frontend and related backend APIs with the following requirements: + +1) Apply a **modern light theme** to the whole app. + +2) Add a **header** with: + - OneSec logo (logo.png, already available) + - Webapp title: “OneSec Log Server” + - A simple navigation bar with “Home” and “Logs” (both link to /web/logs) + +3) Add a **footer** showing the current app version (fetch from backend `/api/version` if available, otherwise use a placeholder like v0.1.0). + +4) Update `/web/logs`: + - Show a **mini calendar** to pick a date. + - Display **only logs of the selected day**. + - Each log entry should be more user-friendly: + • Friendly name (use placeholder_name_1/2/3 for now) + • Uploaded date + • Log date + • Software hash + • Total duration + • File size + • Filename in smaller, muted style + +5) Update `/web/logs/` (log detail view): + - Layout with header info (Log Name, Log Date, Uploaded Date) + - Summary Section: nicely formatted table of metadata + metrics + - Plot Section: placeholder with a friendly message + “⚠️ Plotting is coming soon. This section will display interactive charts in a future update.” + +6) If needed, adjust backend APIs to support: + - `GET /api/logs?date=YYYY-MM-DD` → logs for selected day + - `GET /api/logs/` → full log detail + - `GET /api/version` → return { "version": "v0.1.0" } + +7) At the end: + - Perform a cleanup (remove obsolete code if any) + - Update the README with new usage instructions, API endpoints, and screenshots if possible + - Ensure the codebase is consistent and documented + +Implement all of this in a clean, maintainable way. +``` + + + ## Future Feature Requests - [ ] download plotjuggler binaries for different chirp versions - [ ] download plotjuggler templates for different chirp versions