courrier multi account restore compose

This commit is contained in:
alma 2025-04-27 19:45:43 +02:00
parent e4dbc6a5c9
commit e33be95516
4 changed files with 233 additions and 230 deletions

8
.env
View File

@ -77,6 +77,12 @@ IMAP_HOST=mail.infomaniak.com
IMAP_PORT=993
NEWS_API_URL="http://172.16.0.104:8000"
# Required Redis environment variables to add to .env
REDIS_URL=redis://:mySecretPassword@localhost:6379
REDIS_PASSWORD=mySecretPassword
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=mySecretPassword
# Add a secret key for encrypting sensitive data in Redis
REDIS_ENCRYPTION_KEY=your-random-32-char-encryption-key

View File

@ -11,7 +11,7 @@ import {
MoreHorizontal, FolderOpen, X, Paperclip, MessageSquare, Copy, EyeOff,
AlertOctagon, Archive, RefreshCw, Menu
} from 'lucide-react';
import { Dialog, DialogContent } from '@/components/ui/dialog';
import { Dialog, DialogContent, DialogTitle } from '@/components/ui/dialog';
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
import {
AlertDialog,
@ -976,7 +976,7 @@ export default function CourrierPage() {
</div>
{/* Main Content Area - conditionally show email list or detail view */}
<div className="flex-1 flex flex-col overflow-hidden" style={{ maxWidth: 'calc(100% - 240px)' }}>
<div className="flex-1 flex flex-col overflow-hidden">
{/* Header bar with search */}
<div className="p-2 border-b border-gray-100 bg-white flex items-center justify-between">
<Button
@ -1072,11 +1072,7 @@ export default function CourrierPage() {
) : selectedEmail ? (
<EmailDetailView
email={selectedEmail}
onBack={() => {
handleEmailSelect('');
// Ensure sidebar stays visible
setSidebarOpen(true);
}}
onBack={() => handleEmailSelect('')}
onReply={handleReply}
onReplyAll={handleReplyAll}
onForward={handleForward}
@ -1140,6 +1136,7 @@ export default function CourrierPage() {
<Dialog open={showComposeModal} onOpenChange={setShowComposeModal}>
<DialogContent className="sm:max-w-[800px] h-[80vh] p-0 overflow-hidden">
<DialogTitle className="sr-only">Compose Email</DialogTitle>
<ComposeEmail
type={composeType}
initialEmail={composeType !== 'new' ? selectedEmail : undefined}