Skip to content

Turn meetings into live agent loops. Record, transcribe, and analyze meetings with real-time AI intelligence — before, during, and after calls.

feat: home page updates

Om Gatebfbf4423ba5b
diff --git a/src/main/ipc/permissions.ts b/src/main/ipc/permissions.ts
index 04eb4f1..cc9f980 100644
--- a/src/main/ipc/permissions.ts
+++ b/src/main/ipc/permissions.ts
@@ -70,6 +70,7 @@ export function setupPermissionHandlers(): void {
screen: 'x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture',
accessibility: 'x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility',
camera: 'x-apple.systempreferences:com.apple.preference.security?Privacy_Camera',
+ notifications: 'x-apple.systempreferences:com.apple.preference.notifications',
};
const url = paneMap[pane];
@@ -78,6 +79,25 @@ export function setupPermissionHandlers(): void {
}
});
+ ipcMain.handle('check-notification-permission', async (): Promise<boolean> => {
+ if (process.platform !== 'darwin') return true;
+
+ // On macOS, check if notifications are enabled
+ // Notification.isSupported() checks if the system supports notifications
+ // We return true if supported, as macOS doesn't have a direct API to check permission
+ const { Notification } = await import('electron');
+ return Notification.isSupported();
+ });
+
+ ipcMain.handle('request-notification-permission', async (): Promise<boolean> => {
+ if (process.platform !== 'darwin') return true;
+
+ // On macOS, we can't programmatically request notification permission
+ // We need to open System Preferences
+ await shell.openExternal('x-apple.systempreferences:com.apple.preference.notifications');
+ return false;
+ });
+
ipcMain.handle('get-permission-status', async (): Promise<PermissionStatus> => {
if (process.platform !== 'darwin') {
return {
diff --git a/src/preload/index.ts b/src/preload/index.ts
index 29f338b..417b9a3 100644
--- a/src/preload/index.ts
+++ b/src/preload/index.ts
@@ -341,8 +341,10 @@ const api: IpcApi = {
checkMicPermission: () => ipcRenderer.invoke('check-mic-permission'),
checkScreenPermission: () => ipcRenderer.invoke('check-screen-permission'),
checkAccessibilityPermission: () => ipcRenderer.invoke('check-accessibility-permission'),
+ checkNotificationPermission: () => ipcRenderer.invoke('check-notification-permission'),
requestMicPermission: () => ipcRenderer.invoke('request-mic-permission'),
requestScreenPermission: () => ipcRenderer.invoke('request-screen-permission'),
+ requestNotificationPermission: () => ipcRenderer.invoke('request-notification-permission'),
openSystemSettings: (pane: string) => ipcRenderer.invoke('open-system-settings', pane),
getStatus: (): Promise<PermissionStatus> => ipcRenderer.invoke('get-permission-status'),
},
diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx
index 02067da..16a5cac 100644
--- a/src/renderer/App.tsx
+++ b/src/renderer/App.tsx
@@ -95,9 +95,58 @@ function PermissionToggle({ enabled, onClick }: { enabled: boolean; onClick?: ()
}
+// Notification icon for permissions
+function NotificationIcon({ color = "#969696" }: { color?: string }) {
+ return (
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path
+ d="M10 2.5C7.5 2.5 5.5 4.5 5.5 7v3.5l-1.25 1.25c-.417.417-.125 1.125.458 1.125h10.584c.583 0 .875-.708.458-1.125L14.5 10.5V7c0-2.5-2-4.5-4.5-4.5z"
+ stroke={color}
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ <path
+ d="M8.5 15.833a1.667 1.667 0 003.333 0"
+ stroke={color}
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ </svg>
+ );
+}
+
function PermissionsView({ onContinue }: { onContinue: () => void }) {
const { status, requestMicPermission, openSettings, checkPermissions } = usePermissions();
const configStore = useConfigStore();
+ const [notificationsEnabled, setNotificationsEnabled] = React.useState(false);
+
+ // Check notification permission on mount
+ React.useEffect(() => {
+ const checkNotifications = async () => {
+ try {
+ const enabled = await window.electronAPI.permissions.checkNotificationPermission();
+ setNotificationsEnabled(enabled);
+ } catch {
+ // Ignore errors
+ }
+ };
+ checkNotifications();
+ }, []);
+
+ const handleToggleNotifications = async () => {
+ await window.electronAPI.permissions.openSystemSettings('notifications');
+ // Re-check permission after a delay
+ setTimeout(async () => {
+ try {
+ const enabled = await window.electronAPI.permissions.checkNotificationPermission();
+ setNotificationsEnabled(enabled);
+ } catch {
+ // Ignore errors
+ }
+ }, 1000);
+ };
const allGranted = status.microphone && status.screen;
@@ -245,12 +294,33 @@ function PermissionsView({ onContinue }: { onContinue: () => void }) {
</div>
</div>
- {/* Notifications tip */}
- <div className="flex items-start gap-[10px] px-[14px] py-[12px] bg-[#f8f8fa] rounded-[12px] border border-[#efefef]">
- <p className="text-[13px] text-[#666666] leading-[18px]">
- <span className="font-medium">Tip:</span> Enable notifications for Notter in{' '}
- <span className="font-medium">System Settings → Notifications</span> to get alerts before your meetings start.
- </p>
+ {/* App notifications permission */}
+ <div
+ className={`flex gap-[14px] items-center px-[17px] py-[15px] rounded-[16px] border ${
+ notificationsEnabled
+ ? 'bg-[#fff5ec] border-[#ffe9d3]'
+ : 'bg-white border-[#efefef]'
+ }`}
+ >
+ <div
+ className={`size-[36px] rounded-[10px] flex items-center justify-center border ${
+ notificationsEnabled
+ ? 'bg-[rgba(236,91,22,0.1)] border-[rgba(236,91,22,0.3)]'
+ : 'bg-white border-[#ededf3]'
+ }`}
+ >
+ <NotificationIcon color={notificationsEnabled ? '#EC5B16' : '#969696'} />
+ </div>
+ <div className="flex-1 flex flex-col gap-[3px]">
+ <p className="text-[16px] font-medium text-[#141420] leading-[20px]">App notifications</p>
+ <p className="text-[13px] font-normal text-[#969696] leading-[18px]">
+ Get alerts before your meetings start.
+ </p>
+ </div>
+ <PermissionToggle
+ enabled={notificationsEnabled}
+ onClick={handleToggleNotifications}
+ />
</div>
{/* Buttons */}
diff --git a/src/renderer/components/history/RecordingCard.tsx b/src/renderer/components/history/RecordingCard.tsx
index 164d22f..53b418b 100644
--- a/src/renderer/components/history/RecordingCard.tsx
+++ b/src/renderer/components/history/RecordingCard.tsx
@@ -93,7 +93,7 @@ export function RecordingCard({ recording, onClick }: RecordingCardProps) {
className={cn(
'bg-[#f7f7f7] border border-[#efefef] rounded-[16px] pt-[20px] pb-[24px] px-[20px] cursor-pointer',
'transition-all duration-200',
- 'flex flex-col gap-[20px]',
+ 'flex flex-col gap-[20px] h-full',
config.hoverBg,
config.hoverBorder
)}
diff --git a/src/renderer/components/home/HomeView.tsx b/src/renderer/components/home/HomeView.tsx
index c9b8f2d..073fd34 100644
--- a/src/renderer/components/home/HomeView.tsx
+++ b/src/renderer/components/home/HomeView.tsx
@@ -95,6 +95,28 @@ function ScreenIcon({ enabled }: { enabled: boolean }) {
);
}
+function NotificationIcon({ enabled }: { enabled: boolean }) {
+ return (
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path
+ d="M10 2.5C7.5 2.5 5.5 4.5 5.5 7v3.5l-1.25 1.25c-.417.417-.125 1.125.458 1.125h10.584c.583 0 .875-.708.458-1.125L14.5 10.5V7c0-2.5-2-4.5-4.5-4.5z"
+ stroke={enabled ? '#ec5b16' : '#464646'}
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ fill={enabled ? 'rgba(236,91,22,0.2)' : 'none'}
+ />
+ <path
+ d="M8.5 15.833a1.667 1.667 0 003.333 0"
+ stroke={enabled ? '#ec5b16' : '#464646'}
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ </svg>
+ );
+}
+
function CalendarIcon() {
return (
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -309,8 +331,10 @@ function CalendarEventItem({
// MCP Server Item Component
function MCPServerItem({
server,
+ onRemove,
}: {
server: MCPServerConfig;
+ onRemove: () => void;
}) {
return (
<div className="bg-white border border-[#ededf3] rounded-[10px] px-[15px] py-[13px]">
@@ -324,6 +348,14 @@ function MCPServerItem({
{server.description || 'Sync meeting notes & summaries'}
</p>
</div>
+ <button
+ onClick={onRemove}
+ className="w-[24px] h-[24px] flex items-center justify-center hover:bg-[#f7f7f7] rounded-[6px] transition-colors"
+ >
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M4 4l8 8M12 4l-8 8" stroke="#969696" strokeWidth="1.5" strokeLinecap="round" />
+ </svg>
+ </button>
</div>
</div>
);
@@ -339,22 +371,14 @@ function WorkflowItem({
}) {
return (
<div className="bg-white border border-[#ededf3] rounded-[10px] px-[15px] py-[13px]">
- <div className="flex items-center gap-[12px]">
- <div className="w-[20px] h-[20px] flex items-center justify-center">
- <WorkflowIcon />
- </div>
- <div className="flex-1 flex flex-col gap-[2px]">
- <p className="text-[14px] font-medium text-black tracking-[0.07px]">{workflow.name}</p>
- <p className="text-[12px] text-[#969696]">
- {workflow.enabled ? 'Active' : 'Disabled'}
- </p>
- </div>
+ <div className="flex items-center gap-[6px]">
+ <p className="flex-1 text-[14px] font-medium text-black tracking-[0.07px]">{workflow.name}</p>
<button
onClick={onEdit}
- className="w-[24px] h-[24px] flex items-center justify-center hover:bg-[#f7f7f7] rounded-[6px] transition-colors"
+ className="w-[20px] h-[20px] flex items-center justify-center hover:opacity-70 transition-opacity"
>
- <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M10.5 1.75L12.25 3.5M1.75 12.25L2.333 9.833L10.083 2.083L11.917 3.917L4.167 11.667L1.75 12.25Z" stroke="#969696" strokeWidth="1.25" strokeLinecap="round" strokeLinejoin="round" />
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M14.167 2.5L17.5 5.833M2.5 17.5L3.333 14.167L14.167 3.333L16.667 5.833L5.833 16.667L2.5 17.5Z" stroke="#969696" strokeWidth="1.25" strokeLinecap="round" strokeLinejoin="round" />
</svg>
</button>
</div>
@@ -381,6 +405,7 @@ export function HomeView({ onStartRecording, onNavigateToHistory, onNavigateToSe
const [upcomingEvents, setUpcomingEvents] = useState<UpcomingMeeting[]>([]);
const [eventNotifications, setEventNotifications] = useState<Record<string, boolean>>({});
const [workflows, setWorkflows] = useState<WorkflowData[]>([]);
+ const [notificationsEnabled, setNotificationsEnabled] = useState(false);
// Session state for stream toggles
const sessionStore = useSessionStore();
@@ -473,6 +498,33 @@ export function HomeView({ onStartRecording, onNavigateToHistory, onNavigateToSe
loadWorkflows();
}, []);
+ // Check notification permission
+ useEffect(() => {
+ const checkNotifications = async () => {
+ try {
+ const enabled = await window.electronAPI.permissions.checkNotificationPermission();
+ setNotificationsEnabled(enabled);
+ } catch {
+ // Ignore errors
+ }
+ };
+ checkNotifications();
+ }, []);
+
+ const handleToggleNotifications = async () => {
+ // Open system settings for notifications
+ await window.electronAPI.permissions.openSystemSettings('notifications');
+ // Re-check permission after a delay (user may have changed it)
+ setTimeout(async () => {
+ try {
+ const enabled = await window.electronAPI.permissions.checkNotificationPermission();
+ setNotificationsEnabled(enabled);
+ } catch {
+ // Ignore errors
+ }
+ }, 1000);
+ };
+
const handleConnectCalendar = async () => {
try {
const result = await window.electronAPI.calendar.signIn();
@@ -511,30 +563,29 @@ export function HomeView({ onStartRecording, onNavigateToHistory, onNavigateToSe
return (
<div className="flex gap-[24px] h-full p-[24px] bg-white overflow-hidden">
{/* Left Column */}
- <div className="flex-1 flex flex-col gap-[60px] overflow-y-auto">
+ <div className="flex-1 flex flex-col gap-[40px] overflow-y-auto">
+ {/* Dashboard Header with Start Recording button */}
+ <div className="flex items-center justify-between">
+ <h1 className="text-[22px] font-semibold text-black tracking-[0.11px]">
+ Dashboard
+ </h1>
+ <button
+ onClick={onStartRecording}
+ disabled={!streams.systemAudio && !streams.microphone}
+ className="flex items-center gap-[4px] bg-[#ff4000] hover:bg-[#e63900] disabled:opacity-50 disabled:cursor-not-allowed px-[20px] py-[12px] rounded-[12px] shadow-[0px_1.272px_15.267px_0px_rgba(0,0,0,0.05)] transition-colors"
+ >
+ <RecordingIcon />
+ <span className="text-[14px] font-semibold text-white tracking-[-0.28px]">
+ Start Recording
+ </span>
+ </button>
+ </div>
+
{/* App Permissions Section */}
- <div className="flex flex-col gap-[24px]">
- {/* Header with Start Recording button */}
- <div className="flex items-center justify-between">
- <div className="flex flex-col gap-[4px]">
- <h2 className="text-[18px] font-semibold text-[#141420] tracking-[-0.17px] leading-[25.5px]">
- App permissions
- </h2>
- <p className="text-[13px] text-[#242424] leading-[18.75px]">
- Grant access so the copilot can capture your meetings.
- </p>
- </div>
- <button
- onClick={onStartRecording}
- disabled={!streams.systemAudio && !streams.microphone}
- className="flex items-center gap-[4px] bg-[#ff4000] hover:bg-[#e63900] disabled:opacity-50 disabled:cursor-not-allowed px-[20px] py-[12px] rounded-[12px] shadow-[0px_1.272px_15.267px_0px_rgba(0,0,0,0.05)] transition-colors"
- >
- <RecordingIcon />
- <span className="text-[14px] font-semibold text-white tracking-[-0.28px]">
- Start Recording
- </span>
- </button>
- </div>
+ <div className="bg-[#f7f7f7] border border-[#efefef] rounded-[12px] p-[16px] flex flex-col gap-[20px]">
+ <h2 className="text-[18px] font-semibold text-[#141420] tracking-[-0.17px] leading-[25.5px]">
+ App permissions
+ </h2>
{/* Permission Toggles */}
<div className="flex flex-col rounded-[12px] overflow-hidden">
@@ -561,27 +612,26 @@ export function HomeView({ onStartRecording, onNavigateToHistory, onNavigateToSe
description="Record your screen to capture visual context"
enabled={streams.screen}
onChange={(enabled) => setStreams({ screen: enabled })}
+ />
+ <div className="h-[1px] bg-[#ededf3]" />
+ <PermissionItem
+ icon={<NotificationIcon enabled={notificationsEnabled} />}
+ title="App notification"
+ description="Allow call.md to send notification and reminders"
+ enabled={notificationsEnabled}
+ onChange={handleToggleNotifications}
isLast
/>
</div>
</div>
{/* Recent Meetings Section */}
- <div className="flex flex-col gap-[14px]">
+ <div className="flex flex-col gap-[20px] items-center">
{/* Header */}
- <div className="flex items-center justify-between">
+ <div className="flex items-center justify-between w-full">
<h2 className="text-[18px] font-semibold text-[#141420] tracking-[-0.17px] leading-[25.5px]">
Recent meetings
</h2>
- {recordings && recordings.length > 0 && (
- <button
- onClick={onNavigateToHistory}
- className="flex items-center gap-[4px] text-[14px] font-semibold text-[#ec5b16] hover:opacity-80 transition-opacity"
- >
- View All Recordings
- <ChevronRight className="w-[12px] h-[12px]" />
- </button>
- )}
</div>
{/* Content */}
@@ -600,16 +650,25 @@ export function HomeView({ onStartRecording, onNavigateToHistory, onNavigateToSe
</div>
</div>
) : (
- <div className="flex gap-[20px]">
- {recentRecordings.map((recording) => (
- <div key={recording.id} className="flex-1">
+ <>
+ <div className="grid grid-cols-2 gap-[20px] w-full">
+ {recentRecordings.map((recording) => (
<RecordingCard
+ key={recording.id}
recording={recording}
onClick={() => setSelectedRecordingId(recording.id)}
/>
- </div>
- ))}
- </div>
+ ))}
+ </div>
+ <button
+ onClick={onNavigateToHistory}
+ className="flex items-center justify-center gap-[4px] bg-white border border-[rgba(150,150,150,0.3)] px-[20px] py-[12px] rounded-[12px] hover:bg-gray-50 transition-colors"
+ >
+ <span className="text-[14px] font-semibold text-black tracking-[-0.28px]">
+ View all
+ </span>
+ </button>
+ </>
)}
</div>
</div>
@@ -625,10 +684,13 @@ export function HomeView({ onStartRecording, onNavigateToHistory, onNavigateToSe
{calendarStatus === 'connected' && (
<button
onClick={handleDisconnectCalendar}
- className="flex items-center gap-[4px] text-[14px] font-medium text-[#ec5b16] hover:opacity-80"
+ className="flex items-center gap-[4px] text-[14px] font-semibold text-[#ec5b16] hover:opacity-80"
>
- <span className="text-[14px]">-</span>
- Disconnect
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <circle cx="8" cy="8" r="6" stroke="#ec5b16" strokeWidth="1.25" />
+ <path d="M5.5 8h5" stroke="#ec5b16" strokeWidth="1.25" strokeLinecap="round" />
+ </svg>
+ Disconnect Calendar
</button>
)}
</div>
@@ -723,7 +785,11 @@ export function HomeView({ onStartRecording, onNavigateToHistory, onNavigateToSe
) : (
<div className="flex flex-col gap-[12px]">
{connectedServers.map((server) => (
- <MCPServerItem key={server.id} server={server} />
+ <MCPServerItem
+ key={server.id}
+ server={server}
+ onRemove={() => window.electronAPI.mcp.disconnect(server.id)}
+ />
))}
</div>
)}
diff --git a/src/renderer/components/layout/NewSidebar.tsx b/src/renderer/components/layout/NewSidebar.tsx
index d47cfd9..ad26a84 100644
--- a/src/renderer/components/layout/NewSidebar.tsx
+++ b/src/renderer/components/layout/NewSidebar.tsx
@@ -46,6 +46,24 @@ function HomeIcon({ active }: { active: boolean }) {
);
}
+// Past Recordings Icon (clock with history arrow)
+function PastRecordingsIcon({ active }: { active: boolean }) {
+ const color = active ? '#ec5b16' : '#464646';
+ return (
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path
+ opacity="0.2"
+ d="M20.25 12C20.25 13.6317 19.7661 15.2267 18.8596 16.5835C17.9531 17.9402 16.6646 18.9976 15.1571 19.622C13.6497 20.2464 11.9909 20.4098 10.3905 20.0915C8.79017 19.7731 7.32016 18.9874 6.16637 17.8336C5.01259 16.6798 4.22685 15.2098 3.90853 13.6095C3.5902 12.0092 3.75357 10.3504 4.378 8.84286C5.00242 7.33537 6.05984 6.0469 7.41655 5.14038C8.77325 4.23385 10.3683 3.75 12 3.75C14.188 3.75 16.2865 4.61919 17.8336 6.16637C19.3808 7.71354 20.25 9.81196 20.25 12Z"
+ fill={active ? color : 'none'}
+ />
+ <path
+ d="M12.75 7.49997V11.5753L16.1362 13.6068C16.3068 13.7093 16.4297 13.8753 16.4779 14.0683C16.5261 14.2614 16.4956 14.4656 16.3931 14.6362C16.2907 14.8068 16.1247 14.9297 15.9316 14.9778C15.7386 15.026 15.5343 14.9955 15.3637 14.8931L11.6137 12.6431C11.5028 12.5764 11.4109 12.4821 11.3472 12.3694C11.2834 12.2567 11.25 12.1294 11.25 12V7.49997C11.25 7.30105 11.329 7.11029 11.4697 6.96964C11.6103 6.82898 11.8011 6.74997 12 6.74997C12.1989 6.74997 12.3897 6.82898 12.5303 6.96964C12.671 7.11029 12.75 7.30105 12.75 7.49997ZM12 2.99997C10.8169 2.99702 9.6449 3.22875 8.55193 3.68174C7.45895 4.13474 6.46666 4.8 5.6325 5.63903C4.95094 6.32903 4.34531 6.99278 3.75 7.68747V5.99997C3.75 5.80105 3.67098 5.61029 3.53033 5.46964C3.38968 5.32898 3.19891 5.24997 3 5.24997C2.80109 5.24997 2.61032 5.32898 2.46967 5.46964C2.32902 5.61029 2.25 5.80105 2.25 5.99997V9.74997C2.25 9.94888 2.32902 10.1396 2.46967 10.2803C2.61032 10.4209 2.80109 10.5 3 10.5H6.75C6.94891 10.5 7.13968 10.4209 7.28033 10.2803C7.42098 10.1396 7.5 9.94888 7.5 9.74997C7.5 9.55105 7.42098 9.36029 7.28033 9.21964C7.13968 9.07898 6.94891 8.99997 6.75 8.99997H4.59375C5.26406 8.21059 5.93156 7.46715 6.69281 6.69653C7.73517 5.65417 9.0616 4.9421 10.5063 4.64929C11.9511 4.35648 13.4501 4.49591 14.816 5.05017C16.182 5.60443 17.3543 6.54893 18.1866 7.76566C19.0188 8.98239 19.474 10.4174 19.4953 11.8914C19.5166 13.3653 19.1031 14.8129 18.3064 16.0532C17.5098 17.2935 16.3652 18.2715 15.0159 18.865C13.6665 19.4586 12.1722 19.6413 10.7196 19.3904C9.26698 19.1395 7.92052 18.4661 6.84844 17.4543C6.77678 17.3866 6.6925 17.3337 6.60039 17.2986C6.50828 17.2634 6.41014 17.2468 6.3116 17.2495C6.21305 17.2523 6.11602 17.2745 6.02604 17.3148C5.93606 17.3551 5.8549 17.4127 5.78719 17.4843C5.71947 17.556 5.66654 17.6403 5.6314 17.7324C5.59626 17.8245 5.57961 17.9226 5.5824 18.0212C5.58518 18.1197 5.60735 18.2168 5.64763 18.3067C5.68792 18.3967 5.74553 18.4779 5.81719 18.5456C6.88542 19.5537 8.18414 20.285 9.6 20.6757C11.0159 21.0664 12.5058 21.1047 13.9399 20.7871C15.3739 20.4696 16.7085 19.8059 17.827 18.854C18.9456 17.9021 19.8142 16.6908 20.357 15.326C20.8998 13.9612 21.1003 12.4843 20.9411 11.0242C20.7818 9.56408 20.2677 8.16511 19.4434 6.9494C18.6192 5.73369 17.5099 4.73819 16.2125 4.04976C14.915 3.36134 13.4688 3.00092 12 2.99997Z"
+ fill={color}
+ />
+ </svg>
+ );
+}
+
// Recording Indicator Icon - shown when recording is in progress
function RecordingIndicatorIcon() {
return (
@@ -71,46 +89,6 @@ function RecordingIndicatorIcon() {
);
}
-// History Icon (clock with counterclockwise arrow)
-function HistoryIcon({ active }: { active: boolean }) {
- const color = active ? '#ec5b16' : '#464646';
- return (
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
- {/* Clock circle */}
- <circle
- cx="12"
- cy="13"
- r="7.5"
- stroke={color}
- strokeWidth="1.5"
- fill={active ? 'rgba(236,91,22,0.15)' : 'none'}
- />
- {/* Clock hands */}
- <path
- d="M12 9v4l2.5 1.5"
- stroke={color}
- strokeWidth="1.5"
- strokeLinecap="round"
- strokeLinejoin="round"
- />
- {/* Counterclockwise arrow */}
- <path
- d="M7.5 3.5L4.5 6.5L7.5 9.5"
- stroke={color}
- strokeWidth="1.5"
- strokeLinecap="round"
- strokeLinejoin="round"
- />
- <path
- d="M4.5 6.5H12C14.5 6.5 16.5 7.5 18 9"
- stroke={color}
- strokeWidth="1.5"
- strokeLinecap="round"
- strokeLinejoin="round"
- />
- </svg>
- );
-}
// Settings Icon
function SettingsIcon({ active }: { active: boolean }) {
@@ -177,7 +155,11 @@ export function NewSidebar({ activeTab, onTabChange }: NewSidebarProps) {
icon: (a) => isRecording ? <RecordingIndicatorIcon /> : <HomeIcon active={a} />,
label: isRecording ? 'Recording' : 'Home',
},
- { id: 'history', icon: (a) => <HistoryIcon active={a} />, label: 'Past Recordings' },
+ {
+ id: 'history',
+ icon: (a) => <PastRecordingsIcon active={a} />,
+ label: 'Past Recordings',
+ },
{ id: 'settings', icon: (a) => <SettingsIcon active={a} />, label: 'Settings' },
];
diff --git a/src/shared/types/ipc.types.ts b/src/shared/types/ipc.types.ts
index 369e214..5f0f388 100644
--- a/src/shared/types/ipc.types.ts
+++ b/src/shared/types/ipc.types.ts
@@ -202,8 +202,10 @@ export interface IpcApi {
checkMicPermission: () => Promise<boolean>;
checkScreenPermission: () => Promise<boolean>;
checkAccessibilityPermission: () => Promise<boolean>;
+ checkNotificationPermission: () => Promise<boolean>;
requestMicPermission: () => Promise<boolean>;
requestScreenPermission: () => Promise<boolean>;
+ requestNotificationPermission: () => Promise<boolean>;
openSystemSettings: (pane: string) => Promise<void>;
getStatus: () => Promise<PermissionStatus>;
};
@@ -278,8 +280,10 @@ export type IpcChannel =
| 'check-mic-permission'
| 'check-screen-permission'
| 'check-accessibility-permission'
+ | 'check-notification-permission'
| 'request-mic-permission'
| 'request-screen-permission'
+ | 'request-notification-permission'
| 'open-system-settings'
| 'get-permission-status'
| 'get-settings'