Skip to content

Conversation

@vaclisinc
Copy link
Contributor

Summary

This PR addresses issue #6 by implementing a terminal-style UI design for email notifications, making them more technical and modern-looking while solving the Claude response truncation issue.

Changes Made

1. Terminal-Style Email Template

  • Redesigned email template with a terminal/console aesthetic
  • Used monospace fonts (Consolas, Monaco, Courier New)
  • Implemented dark theme with classic terminal colors
  • Added macOS-style traffic light buttons (red, yellow, green)

2. Fixed Claude Response Truncation

  • Removed the 500-character limit in tmux-monitor.js
  • Increased tmux buffer capture from 50 to 200 lines
  • Preserved code formatting by not collapsing multiple spaces

3. Visual Improvements

  • Background color changed from pure black to softer tones (#f5f5f5 outer, #1a1a1a terminal)
  • Code blocks use #262626 background for better contrast
  • Command prompts and outputs styled like real terminal sessions
  • Traffic light buttons properly spaced using table layout for email client compatibility

Screenshots

Mobile Version

The terminal UI looks great on mobile devices, maintaining readability and the tech aesthetic:

  • Clean monospace font rendering
  • Proper spacing and hierarchy
  • Full content display without truncation

Desktop Version

On desktop, the UI provides an authentic terminal experience:

  • Full-width terminal window appearance
  • Clear separation between user input and Claude's response
  • Syntax highlighting for commands
  • Professional, technical appearance

Testing

  • ✅ Tested with long Claude responses (no truncation)
  • ✅ Tested on Gmail (desktop and mobile)
  • ✅ Traffic light buttons render correctly across email clients
  • ✅ Code formatting preserved in responses
  • ✅ Created test-long-email.js for validation

Technical Details

  • Used table layout instead of flexbox for better email client compatibility
  • Inline styles to ensure consistent rendering
  • Preserved original email functionality while enhancing appearance

Closes #6


🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

vaclisinc and others added 6 commits July 31, 2025 12:53
- Add Message-ID tracking to prevent processing system-sent emails
- Track sent emails in sent-messages.json with auto-cleanup
- Skip system emails in both email-listener.js and relay-pty.js
- Extract session from token/headers/body for proper reply routing
- Reduce verbose logging in tmux-injector to debug level

Fixes JessyTsui#3

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
…rectory

- Use absolute path to load .env file instead of relying on current working directory
- Fix environment variable loading in both main program and relay service
- Now claude-remote can be executed from any directory

Fixes JessyTsui#5
…tions

- Redesigned email template with terminal/console aesthetic
- Used monospace fonts and dark theme for tech look
- Fixed Claude response truncation issue (removed 500 char limit)
- Increased tmux buffer capture from 50 to 200 lines
- Preserved code formatting (removed space collapsing)
- Added terminal-style command prompts and colored output
- Created test script for long content validation
- Fixed traffic light buttons spacing (now properly separated)
- Changed background from pure black to lighter gray (#f5f5f5)
- Terminal content background changed to softer dark (#1a1a1a)
- Code blocks background changed to #262626 for better contrast
- Improved overall visual hierarchy and readability
- Adjusted spacing between buttons from 8px to 6px
- Reduced gap after buttons from 20px to 12px
- Achieved more natural macOS-like appearance
- Changed from inline-flex to table layout for traffic light buttons
- Set explicit 5px spacing between buttons using table cells
- This ensures consistent rendering across different email clients
@vaclisinc
Copy link
Contributor Author

it looks like this in computer:
image

and it also looks good in mobile:

image

@JessyTsui
Copy link
Owner

Very nice PR!LGTM

@JessyTsui JessyTsui merged commit 0eb01e6 into JessyTsui:master Aug 1, 2025
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.

[suggestion] ui design improvement

2 participants