{/* Auth UI */}
{authUI}
{/* Connection status and refresh */}
{ifElse(
isReady,
Connected
{noteCount} notes found
,
null,
)}
{/* Label status - only show when there's a problem or loading */}
{ifElse(
derive(
{ isReady, taskCurrentLabelId, loadingLabels },
({ isReady, taskCurrentLabelId, loadingLabels }) =>
isReady && (!taskCurrentLabelId || loadingLabels),
),
{ifElse(
loadingLabels,
Loading labels...,
task-current label not found - click Load Labels
,
)}
Send yourself an email with no subject and the label
"task-current" to see it here.
,
{notes.map((note) => {
// Check if this note is being processed
// Extract noteId before computed to avoid OpaqueRef issues
const noteId = note.id;
const isProcessing = computed(() =>
(processingNotes.get() || []).includes(noteId)
);
return (
{/* Header with date and actions */}
{derive(note, (n) => formatDate(n.date))}
{/* Copy button - copies both plain text and HTML for rich pasting */}
({
"text/plain": n.content,
"text/html": n.htmlContent,
}))}
variant="outline"
size="sm"
/>
{/* Mark as Done button */}