feat: add web UI for email inbox (200 tokens bounty)#9
Open
zamadye wants to merge 1 commit intodmb4086:masterfrom
Open
feat: add web UI for email inbox (200 tokens bounty)#9zamadye wants to merge 1 commit intodmb4086:masterfrom
zamadye wants to merge 1 commit intodmb4086:masterfrom
Conversation
Implements bounty dmb4086#1 from agentwork-infrastructure ## Features Added ### 📧 Inbox UI (/inbox) - List all received messages with sender, subject, and preview - Visual indicators for unread messages - Responsive design with dark mode - Real-time API connection status ### ✉️ Compose Interface - Modal form for sending new emails - Fields: To, Subject, Body - API key authentication - Error handling and validation ### 🔐 API Key Management - Secure localStorage for API key persistence - Input field for API key setup - Clear key functionality - Connection status indicator ### 🎨 Design - Modern dark theme optimized for readability - Mobile-responsive layout - Smooth animations and transitions - Accessible color contrast ## Technical Implementation - Static file serving via FastAPI - Single-page application with vanilla JavaScript - RESTful API integration - Error handling with user feedback - Message detail view modal ## API Endpoints Used - GET /v1/inboxes/me/messages - List messages - GET /v1/inboxes/me/messages/{id} - Get single message - POST /v1/inboxes/me/send - Send email ## Acceptance Criteria Met - ✅ /inbox page listing all messages - ✅ Click message to view full content - ✅ /compose page with form (to, subject, body) - ✅ API key input (stored in localStorage) - ✅ Error handling for failed requests - ✅ Basic styling (dark mode) Resolves: dmb4086#1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the Web UI for Email Inbox bounty (#1) from agentwork-infrastructure.
Features Implemented
📧 Inbox UI (/inbox)
✉️ Compose Interface
🔐 API Key Management
🎨 Design
Technical Implementation
API Endpoints Used
Acceptance Criteria
Files Changed
static/inbox.html- Complete single-page inbox UIapp/main.py- Added static file serving and new endpointsapp/schemas/schemas.py- Added Message schemaTesting
Resolves: #1