Skip to content

Fix #1: 💰 Bounty: Web UI for Email Inbox (200 tokens)#6

Open
danielalanbates wants to merge 1 commit intodmb4086:masterfrom
danielalanbates:fix/issue-1
Open

Fix #1: 💰 Bounty: Web UI for Email Inbox (200 tokens)#6
danielalanbates wants to merge 1 commit intodmb4086:masterfrom
danielalanbates:fix/issue-1

Conversation

@danielalanbates
Copy link

Fixes #1

Summary

This PR addresses: 💰 Bounty: Web UI for Email Inbox (200 tokens)

Changes

app/main.py           |  39 +++
 app/static/app.js     | 549 ++++++++++++++++++++++++++++++++++++++++
 app/static/index.html |  50 ++++
 app/static/style.css  | 684 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/test_api.py     |  61 ++++-
 5 files changed, 1381 insertions(+), 2 deletions(-)

Testing

Please review the changes carefully. The fix was verified against the existing test suite.


This PR was created with the assistance of Claude Opus 4.6 by Anthropic | effort: high (extended thinking). Happy to make any adjustments!

By submitting this pull request, I confirm that my contribution is made under the terms of the project's license (contributor license agreement).

Implements a responsive, dark-themed single-page application for
browsing and composing emails, served as static files from FastAPI.

Features:
- /inbox page listing all received messages with pagination
- Click-through message detail view (sender, subject, body, date)
- /compose page with form validation (to, subject, body)
- API key settings modal (stored in localStorage)
- Error handling with toast notifications for failed requests
- Client-side routing with browser history support
- Responsive design with mobile breakpoints
- Dark mode UI matching modern agent aesthetic

Technical approach:
- Vanilla JS SPA with no framework dependencies
- Static files (HTML, CSS, JS) mounted via FastAPI StaticFiles
- FileResponse serves index.html for all page routes
- Web UI routes excluded from OpenAPI schema (include_in_schema=False)
- 6 new tests covering page routes, static assets, and HTML content

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💰 Bounty: Web UI for Email Inbox (200 tokens)

1 participant