- {formattedDate}
+ {/* Checkbox column */}
+
+ {
+ e.preventDefault()
+ e.stopPropagation()
+ }}
+ aria-label='Select email'
+ />
+
+
+ {/* Star column */}
+
+
+ {isStarred ? '★' : '☆'}
+
+
+
+ {/* Sender column with thread count */}
+
+
+ {senderName}
+ {threadCount > 1 && (
+ <>
+ {' '}
+ {threadCount}
+ >
+ )}
+
+
+ {/* Subject and preview column */}
+
+
+
+ {subject}
+
+ {previewSnippet && (
+ <>
+ -
+
+ {previewSnippet}
+
+ >
+ )}
+
+
+
+ {/* Attachment indicator column */}
+
+ {hasAttachments && 📎}
+
+
+ {/* Date column */}
+
{formattedDate}
)
}
diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts
index 105077c..43089de 100644
--- a/frontend/src/lib/api.ts
+++ b/frontend/src/lib/api.ts
@@ -93,6 +93,10 @@ export interface Thread {
subject: string
user_id: string
first_message_from_address?: string
+ preview_snippet?: string
+ has_attachments: boolean
+ message_count?: number
+ last_sent_at?: string
messages?: Message[]
}