Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix([issue-1850]): enforce 44px minimum touch targets on above-the-fold calendar/message controls

[._.]/ Adam Eivy0cc9e58314b9
diff --git a/client/src/components/calendar/DayView.jsx b/client/src/components/calendar/DayView.jsx
index 3273d1297e..a00de19cb3 100644
--- a/client/src/components/calendar/DayView.jsx
+++ b/client/src/components/calendar/DayView.jsx
@@ -157,10 +157,10 @@ export default function DayView({ accounts }) {
{/* Nav header */}
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
- <button onClick={() => navigate(-1)} className="p-1.5 text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
+ <button onClick={() => navigate(-1)} className="p-1.5 min-w-[44px] min-h-[44px] flex items-center justify-center text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
<ChevronLeft size={18} />
</button>
- <button onClick={() => navigate(1)} className="p-1.5 text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
+ <button onClick={() => navigate(1)} className="p-1.5 min-w-[44px] min-h-[44px] flex items-center justify-center text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
<ChevronRight size={18} />
</button>
<h2 className="text-lg font-semibold text-white ml-2">{formatDateFull(date)}</h2>
diff --git a/client/src/components/calendar/EventDetail.jsx b/client/src/components/calendar/EventDetail.jsx
index ca64b85393..54e381fb21 100644
--- a/client/src/components/calendar/EventDetail.jsx
+++ b/client/src/components/calendar/EventDetail.jsx
@@ -24,7 +24,7 @@ export default function EventDetail({ event, onClose }) {
<h2 className="text-lg font-semibold text-white truncate">{event.title}</h2>
<button
onClick={onClose}
- className="p-1 text-gray-400 hover:text-white transition-colors"
+ className="p-1 min-w-[44px] min-h-[44px] flex items-center justify-center text-gray-400 hover:text-white rounded transition-colors"
aria-label="Close"
>
<X size={20} />
diff --git a/client/src/components/calendar/EventDetail.test.jsx b/client/src/components/calendar/EventDetail.test.jsx
new file mode 100644
index 0000000000..7fbc80f99d
--- /dev/null
+++ b/client/src/components/calendar/EventDetail.test.jsx
@@ -0,0 +1,30 @@
+import { describe, it, expect, vi } from 'vitest';
+import { render, screen, fireEvent } from '@testing-library/react';
+
+import EventDetail from './EventDetail';
+
+const baseEvent = {
+ title: 'Standup',
+ startTime: '2026-06-30T15:00:00.000Z',
+ endTime: '2026-06-30T15:30:00.000Z',
+ isAllDay: false,
+};
+
+describe('EventDetail', () => {
+ it('renders a close button that meets the 44px minimum touch target', () => {
+ render(<EventDetail event={baseEvent} onClose={() => {}} />);
+ const closeBtn = screen.getByRole('button', { name: 'Close' });
+ expect(closeBtn.className).toContain('min-w-[44px]');
+ expect(closeBtn.className).toContain('min-h-[44px]');
+ // icon stays visually centered
+ expect(closeBtn.className).toContain('items-center');
+ expect(closeBtn.className).toContain('justify-center');
+ });
+
+ it('invokes onClose when the close button is clicked', () => {
+ const onClose = vi.fn();
+ render(<EventDetail event={baseEvent} onClose={onClose} />);
+ fireEvent.click(screen.getByRole('button', { name: 'Close' }));
+ expect(onClose).toHaveBeenCalledTimes(1);
+ });
+});
diff --git a/client/src/components/calendar/MonthView.jsx b/client/src/components/calendar/MonthView.jsx
index 3c0c64ea89..68b82d2b23 100644
--- a/client/src/components/calendar/MonthView.jsx
+++ b/client/src/components/calendar/MonthView.jsx
@@ -91,10 +91,10 @@ export default function MonthView({ accounts }) {
{/* Nav header */}
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
- <button onClick={() => navigate(-1)} className="p-1.5 text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
+ <button onClick={() => navigate(-1)} className="p-1.5 min-w-[44px] min-h-[44px] flex items-center justify-center text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
<ChevronLeft size={18} />
</button>
- <button onClick={() => navigate(1)} className="p-1.5 text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
+ <button onClick={() => navigate(1)} className="p-1.5 min-w-[44px] min-h-[44px] flex items-center justify-center text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
<ChevronRight size={18} />
</button>
<h2 className="text-lg font-semibold text-white ml-2">{monthLabel}</h2>
diff --git a/client/src/components/calendar/WeekView.jsx b/client/src/components/calendar/WeekView.jsx
index 52d91e809a..6cf20d5ecc 100644
--- a/client/src/components/calendar/WeekView.jsx
+++ b/client/src/components/calendar/WeekView.jsx
@@ -180,10 +180,10 @@ export default function WeekView({ accounts }) {
{/* Nav header */}
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
- <button onClick={() => navigate(-1)} className="p-1.5 text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
+ <button onClick={() => navigate(-1)} className="p-1.5 min-w-[44px] min-h-[44px] flex items-center justify-center text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
<ChevronLeft size={18} />
</button>
- <button onClick={() => navigate(1)} className="p-1.5 text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
+ <button onClick={() => navigate(1)} className="p-1.5 min-w-[44px] min-h-[44px] flex items-center justify-center text-gray-400 hover:text-white rounded hover:bg-port-border transition-colors">
<ChevronRight size={18} />
</button>
<h2 className="text-lg font-semibold text-white ml-2">{weekLabel}</h2>
diff --git a/client/src/components/messages/MessageDetail.jsx b/client/src/components/messages/MessageDetail.jsx
index 22a1cea29c..32ae6fcf0d 100644
--- a/client/src/components/messages/MessageDetail.jsx
+++ b/client/src/components/messages/MessageDetail.jsx
@@ -188,13 +188,13 @@ export default function MessageDetail({ message, accounts, onBack }) {
)}
</div>
<div className="flex items-center gap-1 shrink-0">
- <button onClick={() => setShowReply(!showReply)} className="p-1.5 text-port-accent hover:bg-port-accent/10 rounded transition-colors" title="Reply"><Reply size={14} /></button>
- <button onClick={() => setUseVoice(v => !v)} className={`p-1.5 rounded transition-colors ${useVoice ? 'text-purple-400 bg-purple-500/10' : 'text-gray-500 hover:text-gray-300'}`} title={useVoice ? 'Voice mode ON — replies use your Digital Twin voice' : 'Voice mode OFF — replies use generic tone'}><User size={14} /></button>
- <button onClick={handleGenerateReply} disabled={generating} className="p-1.5 text-purple-400 hover:bg-purple-500/10 rounded transition-colors disabled:opacity-50" title="AI Reply"><Sparkles size={14} className={generating ? 'animate-pulse' : ''} /></button>
- <button onClick={handleRefresh} disabled={refreshing} className="p-1.5 text-port-accent hover:bg-port-accent/10 rounded transition-colors disabled:opacity-50" title="Refresh"><RefreshCw size={14} className={refreshing ? 'animate-spin' : ''} /></button>
+ <button onClick={() => setShowReply(!showReply)} className="p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center text-port-accent hover:bg-port-accent/10 rounded transition-colors" title="Reply"><Reply size={14} /></button>
+ <button onClick={() => setUseVoice(v => !v)} className={`p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center rounded transition-colors ${useVoice ? 'text-purple-400 bg-purple-500/10' : 'text-gray-500 hover:text-gray-300'}`} title={useVoice ? 'Voice mode ON — replies use your Digital Twin voice' : 'Voice mode OFF — replies use generic tone'}><User size={14} /></button>
+ <button onClick={handleGenerateReply} disabled={generating} className="p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center text-purple-400 hover:bg-purple-500/10 rounded transition-colors disabled:opacity-50" title="AI Reply"><Sparkles size={14} className={generating ? 'animate-pulse' : ''} /></button>
+ <button onClick={handleRefresh} disabled={refreshing} className="p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center text-port-accent hover:bg-port-accent/10 rounded transition-colors disabled:opacity-50" title="Refresh"><RefreshCw size={14} className={refreshing ? 'animate-spin' : ''} /></button>
<span className="w-px h-4 bg-port-border mx-0.5" />
- <button onClick={() => handleAction('archive')} disabled={!!actioning} className="p-1.5 text-port-warning hover:bg-port-warning/10 rounded transition-colors disabled:opacity-50" title="Archive"><Archive size={14} /></button>
- <button onClick={() => handleAction('delete')} disabled={!!actioning} className="p-1.5 text-port-error hover:bg-port-error/10 rounded transition-colors disabled:opacity-50" title="Delete"><Trash2 size={14} /></button>
+ <button onClick={() => handleAction('archive')} disabled={!!actioning} className="p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center text-port-warning hover:bg-port-warning/10 rounded transition-colors disabled:opacity-50" title="Archive"><Archive size={14} /></button>
+ <button onClick={() => handleAction('delete')} disabled={!!actioning} className="p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center text-port-error hover:bg-port-error/10 rounded transition-colors disabled:opacity-50" title="Delete"><Trash2 size={14} /></button>
</div>
</div>