vault backup: 2025-09-20 15:28:13
Affected files: Temporary/Webapp - Chirp Log Review.md
This commit is contained in:
@@ -56,6 +56,53 @@ flowchart TD
|
|||||||
## Feature Implementation Plan
|
## 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/<id>` (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/<id>` → 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
|
## Future Feature Requests
|
||||||
- [ ] download plotjuggler binaries for different chirp versions
|
- [ ] download plotjuggler binaries for different chirp versions
|
||||||
- [ ] download plotjuggler templates for different chirp versions
|
- [ ] download plotjuggler templates for different chirp versions
|
||||||
|
|||||||
Reference in New Issue
Block a user