@remit/web-client 0.0.343 → 0.0.345

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/harness/vite-preset.js +0 -10
  2. package/dist/src/components/calendar/CalendarLoadFailed.js +2 -2
  3. package/dist/src/components/calendar/CalendarScreen.js +2 -2
  4. package/dist/src/components/calendar/CalendarWaiting.js +1 -1
  5. package/dist/src/components/calendar/EventMoves.js +1 -1
  6. package/dist/src/components/compose/FullCompose.js +1 -1
  7. package/dist/src/components/config-import/ConfigImportWizard.js +1 -1
  8. package/dist/src/components/config-import/steps.js +6 -6
  9. package/dist/src/components/layout/CalendarTopBar.js +1 -1
  10. package/dist/src/components/layout/Drawer.js +1 -1
  11. package/dist/src/components/mail/AuthenticityBanner.js +1 -1
  12. package/dist/src/components/mail/DailyBrief.js +3 -3
  13. package/dist/src/components/mail/DraftsView.js +2 -2
  14. package/dist/src/components/mail/EmptyTrashBar.js +2 -2
  15. package/dist/src/components/mail/IntelligencePane.js +1 -1
  16. package/dist/src/components/mail/LabelApplyTrigger.js +1 -1
  17. package/dist/src/components/mail/MailListHeader.js +1 -1
  18. package/dist/src/components/mail/MailNav.js +1 -1
  19. package/dist/src/components/mail/MessageActionMenu.js +2 -2
  20. package/dist/src/components/mail/MessageBodyErrorBanner.js +2 -2
  21. package/dist/src/components/mail/MessageCard.js +1 -1
  22. package/dist/src/components/mail/MobileMessageBar.js +1 -1
  23. package/dist/src/components/mail/MoveToTrigger.js +1 -1
  24. package/dist/src/components/mail/NavMenuButton.js +1 -1
  25. package/dist/src/components/mail/OutboxPane.js +6 -6
  26. package/dist/src/components/onboarding/OnboardingWizard.js +6 -6
  27. package/dist/src/components/settings/AccountFormPanel.js +3 -3
  28. package/dist/src/components/settings/AdvancedNavIcon.js +1 -1
  29. package/dist/src/components/settings/CalendarCreateCard.js +1 -1
  30. package/dist/src/components/settings/CalendarDetailsForm.js +2 -2
  31. package/dist/src/components/settings/CalendarFeedCard.js +2 -2
  32. package/dist/src/components/settings/CalendarSubscribeCard.js +1 -1
  33. package/dist/src/components/settings/CalendarSubscriptionStatus.js +1 -1
  34. package/dist/src/components/settings/ConfigExportCard.js +2 -2
  35. package/dist/src/components/settings/DeleteAccountDialog.js +2 -2
  36. package/dist/src/components/settings/DeleteFolderDialog.js +8 -8
  37. package/dist/src/components/settings/FilterEditor.js +5 -5
  38. package/dist/src/components/settings/FiltersList.js +2 -2
  39. package/dist/src/components/settings/LabelsList.js +2 -2
  40. package/dist/src/components/settings/TlsRootCaDownload.js +1 -1
  41. package/dist/src/components/settings/WarningsNavIcon.js +1 -1
  42. package/dist/src/components/settings/WarningsPanel.js +1 -1
  43. package/dist/src/components/settings/people/PeoplePanel.js +2 -2
  44. package/dist/src/components/settings/people/PersonActionDialog.js +1 -1
  45. package/dist/src/components/settings/people/ResetLinkDialog.js +1 -1
  46. package/dist/src/components/ui/BugReportButton.js +1 -1
  47. package/dist/src/components/ui/FatalErrorOverlay.js +2 -2
  48. package/dist/src/components/ui/SignedOutOverlay.js +1 -1
  49. package/dist/src/routes/settings/accounts.js +3 -3
  50. package/dist/src/routes/settings/senders.js +1 -1
  51. package/dist/src/routes/settings.js +2 -2
  52. package/package.json +2 -3
@@ -113,15 +113,6 @@ const backendProxy = () => {
113
113
  };
114
114
  };
115
115
  const allowedHosts = () => process.env.VITE_ALLOWED_HOST ? [process.env.VITE_ALLOWED_HOST] : undefined;
116
- /**
117
- * Rollup keeps up to `maxParallelFileOps` module reads in flight, and each one
118
- * holds a file descriptor. Its default of 1000 is above the 1024 `RLIMIT_NOFILE`
119
- * soft limit that container runtimes hand a build step, and the icon barrels this
120
- * app imports (lucide-react re-exports ~1500 single-icon modules) give rollup
121
- * enough sibling modules to saturate the ceiling, so the default reliably fails
122
- * with EMFILE inside an image build while passing on a developer machine.
123
- */
124
- const MAX_PARALLEL_FILE_OPS = 64;
125
116
  export const webClientPreset = ({ entry, runtimeConfig, commit, }) => ({
126
117
  plugins: [
127
118
  indexHtml(entry),
@@ -137,7 +128,6 @@ export const webClientPreset = ({ entry, runtimeConfig, commit, }) => ({
137
128
  __APP_SHA__: JSON.stringify(commit ?? resolveGitSha()),
138
129
  __APP_BUILD_TIME__: JSON.stringify(new Date().toISOString()),
139
130
  },
140
- build: { rollupOptions: { maxParallelFileOps: MAX_PARALLEL_FILE_OPS } },
141
131
  server: {
142
132
  host: "0.0.0.0",
143
133
  allowedHosts: allowedHosts(),
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { formatErrorMessage } from "@remit/ui";
3
- import { AlertCircle } from "lucide-react";
3
+ import { CircleAlert } from "@remit/ui/icons";
4
4
  import { calendarEventReportHref } from "../../lib/calendar-report";
5
5
  /** A read that failed, said where it was asked for, with Retry and a prefilled report. */
6
6
  export function CalendarLoadFailed({ title, error, onRetry, compact = false, }) {
7
7
  const message = formatErrorMessage(error);
8
8
  return (_jsxs("div", { role: "alert", className: compact
9
9
  ? "flex flex-col gap-2 rounded-md border border-danger/40 bg-danger-soft p-3 text-sm"
10
- : "flex h-full flex-col items-center justify-center gap-3 p-8 text-center", children: [!compact && (_jsx(AlertCircle, { className: "size-8 text-danger", "aria-hidden": "true" })), _jsxs("div", { children: [_jsx("p", { className: "font-medium text-danger", children: title }), _jsx("p", { className: "mt-1 break-words text-sm text-fg-muted", children: message })] }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("button", { type: "button", onClick: onRetry, className: "inline-flex items-center rounded-md border border-line bg-canvas px-3 py-1.5 text-sm font-medium hover:bg-surface-raised", children: "Retry" }), _jsx("a", { href: calendarEventReportHref(`${title}: ${message}`), target: "_blank", rel: "noreferrer", className: "text-sm font-medium text-accent hover:underline", children: "Report an issue" })] })] }));
10
+ : "flex h-full flex-col items-center justify-center gap-3 p-8 text-center", children: [!compact && (_jsx(CircleAlert, { className: "size-8 text-danger", "aria-hidden": "true" })), _jsxs("div", { children: [_jsx("p", { className: "font-medium text-danger", children: title }), _jsx("p", { className: "mt-1 break-words text-sm text-fg-muted", children: message })] }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("button", { type: "button", onClick: onRetry, className: "inline-flex items-center rounded-md border border-line bg-canvas px-3 py-1.5 text-sm font-medium hover:bg-surface-raised", children: "Retry" }), _jsx("a", { href: calendarEventReportHref(`${title}: ${message}`), target: "_blank", rel: "noreferrer", className: "text-sm font-medium text-accent hover:underline", children: "Report an issue" })] })] }));
11
11
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { CalendarCancellationsSent, CalendarFailureBlock, CalendarGrid, CalendarInvitationsNotSent, CalendarScreenToolbar, CalendarTimeGrid, CalendarYear, calendarRangeTitle, clickRange, Dialog, datesFrom, initialFocus, isoWeek, NewEventSquare, Segmented, weekStart, zonedMoment, } from "@remit/ui";
3
- import { Loader2 } from "lucide-react";
3
+ import { LoaderCircle } from "@remit/ui/icons";
4
4
  import { useCallback, useMemo, useRef, useState } from "react";
5
5
  import { calendarInstanceId, deviceTimeZone, useCalendarTaskWrites, useSendsFollowUp, } from "../../hooks/calendar";
6
6
  import { drawnRange } from "../../hooks/calendar/draft-session";
@@ -166,7 +166,7 @@ export function CalendarScreen({ isPhone, detail }) {
166
166
  const weekNumber = shown === "week" || shown === "day"
167
167
  ? isoWeek(shown === "week" ? weekStart(date) : date)
168
168
  : undefined;
169
- const body = calendarViewMountsAgenda(view) ? (_jsx(AgendaView, { density: density, onPickSlot: pickSlot })) : error !== undefined && error !== null ? (_jsx(CalendarLoadFailed, { title: FAILED_TITLE[view], error: error, onRetry: retry })) : isLoading ? (_jsx("div", { role: "status", "aria-label": "Loading the calendar", className: "flex h-full items-center justify-center bg-surface", children: _jsx(Loader2, { className: "size-6 animate-spin text-fg-subtle" }) })) : shown === "year" ? (_jsx(CalendarYear, { date: date, today: isoDate(new Date()), counts: yearCounts, onPickDay: zoomToDay })) : timeGridDays ? (_jsx(CalendarTimeGrid, { days: timeGridDays, events: events, colorByCalendarId: colorByCalendarId, density: density, timeZone: deviceTimeZone(), now: now, selectedEventId: selectedEventId, draft: gridDraft, onGesture: takeGesture, onSelectEvent: selectEvent, onOpenDay: zoomToDay, touch: isPhone, canMove: moves.canMove, onMoveEvent: moves.onMoveEvent, tasks: tasks, selectedTaskId: openedTask ?? "", onSelectTask: openTask, onToggleTask: toggleTask })) : (_jsx(CalendarGrid, { date: date, events: events, colorByCalendarId: colorByCalendarId, density: density, selectedEventId: selectedEventId, timeZone: deviceTimeZone(), now: now, onSelectEvent: selectEvent, onPickSlot: pickSlot, dayHref: dayHref, onZoomDay: zoomToDay, canMove: moves.canMove, onMoveEvent: moves.onMoveEvent, tasks: tasks, onSelectTask: openTask }));
169
+ const body = calendarViewMountsAgenda(view) ? (_jsx(AgendaView, { density: density, onPickSlot: pickSlot })) : error !== undefined && error !== null ? (_jsx(CalendarLoadFailed, { title: FAILED_TITLE[view], error: error, onRetry: retry })) : isLoading ? (_jsx("div", { role: "status", "aria-label": "Loading the calendar", className: "flex h-full items-center justify-center bg-surface", children: _jsx(LoaderCircle, { className: "size-6 animate-spin text-fg-subtle" }) })) : shown === "year" ? (_jsx(CalendarYear, { date: date, today: isoDate(new Date()), counts: yearCounts, onPickDay: zoomToDay })) : timeGridDays ? (_jsx(CalendarTimeGrid, { days: timeGridDays, events: events, colorByCalendarId: colorByCalendarId, density: density, timeZone: deviceTimeZone(), now: now, selectedEventId: selectedEventId, draft: gridDraft, onGesture: takeGesture, onSelectEvent: selectEvent, onOpenDay: zoomToDay, touch: isPhone, canMove: moves.canMove, onMoveEvent: moves.onMoveEvent, tasks: tasks, selectedTaskId: openedTask ?? "", onSelectTask: openTask, onToggleTask: toggleTask })) : (_jsx(CalendarGrid, { date: date, events: events, colorByCalendarId: colorByCalendarId, density: density, selectedEventId: selectedEventId, timeZone: deviceTimeZone(), now: now, onSelectEvent: selectEvent, onPickSlot: pickSlot, dayHref: dayHref, onZoomDay: zoomToDay, canMove: moves.canMove, onMoveEvent: moves.onMoveEvent, tasks: tasks, onSelectTask: openTask }));
170
170
  return (_jsxs(CalendarSessionContext.Provider, { value: sessionValue, children: [_jsxs("div", { className: "flex h-full min-h-0 flex-col bg-surface text-fg", children: [_jsx(CalendarScreenToolbar, { view: shown, views: isPhone ? PHONE_VIEWS : undefined, title: isPhone && shown === "day"
171
171
  ? new Intl.DateTimeFormat(undefined, {
172
172
  weekday: "short",
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CalendarFailureNote, CalendarSuggestionList, EventSuggestionCard, } from "@remit/ui";
3
- import { Sparkles } from "lucide-react";
3
+ import { Sparkles } from "@remit/ui/icons";
4
4
  export function CalendarWaiting({ suggestions, busy, failure, reportHref, addBlocked, onAdd, onChangeFirst, onDismiss, }) {
5
5
  return (_jsxs("aside", { "aria-label": "Waiting for you", className: "hidden w-72 shrink-0 flex-col gap-2 overflow-y-auto border-r border-line bg-surface-sunken py-3 lg:flex", children: [_jsxs("h3", { className: "flex items-center gap-1.5 px-row-inset text-2xs font-semibold uppercase tracking-wider text-fg-subtle", children: [_jsx(Sparkles, { className: "size-3", "aria-hidden": true }), "Waiting for you"] }), failure !== "" && (_jsx(CalendarFailureNote, { text: failure, reportHref: reportHref, className: "mx-row-inset" })), addBlocked !== undefined && (_jsx("div", { className: "mx-row-inset rounded-md border border-warning/40 bg-warning-soft p-2 text-xs text-fg", children: addBlocked })), _jsx(CalendarSuggestionList, { className: "px-row-inset", items: suggestions.map(({ suggestion, whenText }) => ({
6
6
  id: suggestion.id,
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CalendarFailureBlock, Dialog, RecurrenceScopePrompt, } from "@remit/ui";
3
- import { X } from "lucide-react";
3
+ import { X } from "@remit/ui/icons";
4
4
  import { useCallback, useMemo, useRef, useState } from "react";
5
5
  import { deviceTimeZone, isoAtInZone, useMoveEvent, } from "../../hooks/calendar";
6
6
  import { formatEventWhen } from "../../lib/calendar-format";
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { configOperationsGetConfigOptions } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
3
3
  import { ErrorState } from "@remit/ui";
4
+ import { X } from "@remit/ui/icons";
4
5
  import { useQuery } from "@tanstack/react-query";
5
- import { X } from "lucide-react";
6
6
  import { useKeyboardNavigation } from "../../hooks/useKeyboardNavigation";
7
7
  import { useIsDesktop } from "../../hooks/useMediaQuery";
8
8
  import { useAdoptComposeDraft, useCloseCompose, useComposeDraftId, } from "../../routing";
@@ -16,8 +16,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  */
17
17
  import { accountDetailOperationsUpdateAccountMutation, configOperationsGetConfigOptions, configOperationsGetConfigQueryKey, configOperationsImportConfigMutation, microsoftOAuthOperationsMicrosoftOAuthStartMutation, syncOperationsTriggerSyncMutation, } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
18
18
  import { Banner } from "@remit/ui";
19
+ import { Server } from "@remit/ui/icons";
19
20
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
20
- import { Server } from "lucide-react";
21
21
  import { useCallback, useMemo, useState } from "react";
22
22
  import { REDIRECT_STALL_MESSAGE, useRedirectEnded, } from "../../hooks/useRedirectEnded";
23
23
  import { useReturnFromRedirect } from "../../hooks/useReturnFromRedirect";
@@ -8,7 +8,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
8
8
  * against the same components the app runs.
9
9
  */
10
10
  import { Badge, Banner, Button, CheckRow, ConnectorTile, WizardShell, } from "@remit/ui";
11
- import { FileJson, FolderClock, Inbox, KeyRound, Loader2, Merge, Upload, X, } from "lucide-react";
11
+ import { FileBraces, FolderClock, Inbox, KeyRound, LoaderCircle, Merge, Upload, X, } from "@remit/ui/icons";
12
12
  import { useId, useRef } from "react";
13
13
  import { countVerdicts, formatFileSize, verdictTone, } from "../../lib/config-import";
14
14
  export const IMPORT_STEPS = ["File", "Review", "Credentials", "Folders"];
@@ -29,7 +29,7 @@ export function StepChooseFile({ state = "idle", file, ready = false, failure, o
29
29
  if (dropped)
30
30
  onChoose?.(dropped);
31
31
  };
32
- return (_jsx(WizardShell, { steps: IMPORT_STEPS, activeStep: 0, title: "Import a config file", subtitle: "Accounts, folder roles, rules, senders and appearance \u2014 everything except passwords.", footer: _jsxs(_Fragment, { children: [_jsx("span", { className: "text-2xs text-fg-subtle", children: "Nothing is written until you have seen what will change." }), _jsx(Button, { variant: "primary", disabled: busy || !ready, icon: busy ? _jsx(Loader2, { className: "size-3.5 animate-spin" }) : undefined, onClick: onNext, children: reading ? "Reading…" : checking ? "Checking…" : "Check the file" })] }), children: _jsxs("div", { className: "space-y-4", children: [failure && (_jsxs("div", { className: "space-y-2", children: [_jsx(Banner, { tone: "danger", children: failure.title }), _jsx("p", { className: "text-sm text-fg", children: failure.explanation }), _jsx("p", { className: "text-sm text-fg-muted", children: failure.fix }), _jsx(RawError, { children: failure.raw })] })), _jsxs("div", { onDragOver: (event) => {
32
+ return (_jsx(WizardShell, { steps: IMPORT_STEPS, activeStep: 0, title: "Import a config file", subtitle: "Accounts, folder roles, rules, senders and appearance \u2014 everything except passwords.", footer: _jsxs(_Fragment, { children: [_jsx("span", { className: "text-2xs text-fg-subtle", children: "Nothing is written until you have seen what will change." }), _jsx(Button, { variant: "primary", disabled: busy || !ready, icon: busy ? (_jsx(LoaderCircle, { className: "size-3.5 animate-spin" })) : undefined, onClick: onNext, children: reading ? "Reading…" : checking ? "Checking…" : "Check the file" })] }), children: _jsxs("div", { className: "space-y-4", children: [failure && (_jsxs("div", { className: "space-y-2", children: [_jsx(Banner, { tone: "danger", children: failure.title }), _jsx("p", { className: "text-sm text-fg", children: failure.explanation }), _jsx("p", { className: "text-sm text-fg-muted", children: failure.fix }), _jsx(RawError, { children: failure.raw })] })), _jsxs("div", { onDragOver: (event) => {
33
33
  event.preventDefault();
34
34
  onDragStateChange?.(true);
35
35
  }, onDragLeave: () => onDragStateChange?.(false), onDrop: handleDrop, className: dragging
@@ -40,7 +40,7 @@ export function StepChooseFile({ state = "idle", file, ready = false, failure, o
40
40
  const picked = event.target.files?.item(0);
41
41
  if (picked)
42
42
  onChoose?.(picked);
43
- } }), _jsx(Button, { variant: "secondary", size: "sm", onClick: () => inputRef.current?.click(), children: "Choose file" })] }), file && (_jsxs("div", { className: "flex items-start gap-3 rounded-sm border border-line px-3 py-2.5", children: [_jsx(FileJson, { className: "mt-0.5 size-4 shrink-0 text-fg-muted" }), _jsxs("div", { className: "min-w-0", children: [_jsx("p", { className: "truncate text-sm text-fg", children: file.name }), _jsxs("p", { className: "mt-0.5 text-xs text-fg-subtle", children: [formatFileSize(file.size), " \u00B7", " ", reading
43
+ } }), _jsx(Button, { variant: "secondary", size: "sm", onClick: () => inputRef.current?.click(), children: "Choose file" })] }), file && (_jsxs("div", { className: "flex items-start gap-3 rounded-sm border border-line px-3 py-2.5", children: [_jsx(FileBraces, { className: "mt-0.5 size-4 shrink-0 text-fg-muted" }), _jsxs("div", { className: "min-w-0", children: [_jsx("p", { className: "truncate text-sm text-fg", children: file.name }), _jsxs("p", { className: "mt-0.5 text-xs text-fg-subtle", children: [formatFileSize(file.size), " \u00B7", " ", reading
44
44
  ? "reading it from disk"
45
45
  : checking
46
46
  ? "checking it against this instance"
@@ -71,7 +71,7 @@ export function StepDryRunReport({ sections, fileName, warnings = [], applying =
71
71
  }))));
72
72
  const willWrite = counts.created + counts.updated;
73
73
  const held = counts.skipped + counts.rejected;
74
- return (_jsx(WizardShell, { steps: IMPORT_STEPS, activeStep: 1, title: "What this file will change", subtitle: `${fileName} · nothing has been written yet.`, footer: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", onClick: onBack, children: "Choose another file" }), _jsx(Button, { variant: "primary", disabled: applying, icon: applying ? (_jsx(Loader2, { className: "size-3.5 animate-spin" })) : undefined, onClick: onNext, children: applying ? "Importing…" : `Import ${willWrite} changes` })] }), children: _jsxs("div", { className: "space-y-5", children: [_jsx(VerdictSummary, { sections: sections }), held > 0 && (_jsxs(Banner, { tone: "warning", children: [held, " entries will not be imported. Each says why below \u2014 read them before you continue, because nothing here retries on its own."] })), warnings.length > 0 && (_jsx("ul", { className: "space-y-1 text-xs text-warning", children: warnings.map((warning) => (_jsx("li", { children: warning }, warning))) })), sections.map((section) => (_jsx(SectionReport, { section: section }, section.id)))] }) }));
74
+ return (_jsx(WizardShell, { steps: IMPORT_STEPS, activeStep: 1, title: "What this file will change", subtitle: `${fileName} · nothing has been written yet.`, footer: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", onClick: onBack, children: "Choose another file" }), _jsx(Button, { variant: "primary", disabled: applying, icon: applying ? (_jsx(LoaderCircle, { className: "size-3.5 animate-spin" })) : undefined, onClick: onNext, children: applying ? "Importing…" : `Import ${willWrite} changes` })] }), children: _jsxs("div", { className: "space-y-5", children: [_jsx(VerdictSummary, { sections: sections }), held > 0 && (_jsxs(Banner, { tone: "warning", children: [held, " entries will not be imported. Each says why below \u2014 read them before you continue, because nothing here retries on its own."] })), warnings.length > 0 && (_jsx("ul", { className: "space-y-1 text-xs text-warning", children: warnings.map((warning) => (_jsx("li", { children: warning }, warning))) })), sections.map((section) => (_jsx(SectionReport, { section: section }, section.id)))] }) }));
75
75
  }
76
76
  export function StepInstanceAlreadyConfigured({ choice, held, onChoose, onBack, onNext, }) {
77
77
  return (_jsx(WizardShell, { steps: IMPORT_STEPS, activeStep: 1, title: "This instance already has configuration", subtitle: held, footer: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", onClick: onBack, children: "Choose another file" }), _jsx(Button, { variant: "primary", disabled: !choice, onClick: onNext, children: choice === "merge" ? "Continue with merge" : "Continue" })] }), children: _jsxs("div", { className: "space-y-4", children: [_jsx(Banner, { tone: "warning", children: "An import into a configured instance can only add and update \u2014 it never deletes what is here. Pick how the two should meet." }), _jsxs("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: [_jsx(ConnectorTile, { name: "Stop, keep this instance", description: "Nothing is written. Use this if you meant to import into a fresh instance.", icon: _jsx(X, { className: "size-5" }), selected: choice === "abort", onSelect: () => onChoose?.("abort") }), _jsx(ConnectorTile, { name: "Merge the file in", description: "Adds what is missing and updates what differs. Existing accounts keep their server settings.", icon: _jsx(Merge, { className: "size-5" }), selected: choice === "merge", onSelect: () => onChoose?.("merge") })] }), choice === "merge" && (_jsx("p", { className: "text-xs text-fg-muted", children: "The next screen lists every add and update before anything is written." }))] }) }));
@@ -91,7 +91,7 @@ export function AccountCredentialsList({ accounts, busyAccountId, onOpen, }) {
91
91
  : "IMAP / SMTP", " ", "\u00B7 ", account.server] }), account.state !== "entered" && (_jsx("p", { className: "mt-1 text-xs text-danger", children: account.failure ??
92
92
  (account.connector === "microsoft"
93
93
  ? "Config files never carry OAuth tokens. Reconnect with Microsoft to start syncing this account."
94
- : "Config files never carry passwords. Enter this mailbox's password to start syncing.") }))] }), account.state !== "entered" && (_jsx(Button, { variant: "primary", size: "sm", disabled: busyAccountId === account.accountId, icon: busyAccountId === account.accountId ? (_jsx(Loader2, { className: "size-3.5 animate-spin" })) : account.connector === "microsoft" ? (_jsx(Inbox, { className: "size-3.5" })) : (_jsx(KeyRound, { className: "size-3.5" })), onClick: () => onOpen?.(account), children: busyAccountId === account.accountId
94
+ : "Config files never carry passwords. Enter this mailbox's password to start syncing.") }))] }), account.state !== "entered" && (_jsx(Button, { variant: "primary", size: "sm", disabled: busyAccountId === account.accountId, icon: busyAccountId === account.accountId ? (_jsx(LoaderCircle, { className: "size-3.5 animate-spin" })) : account.connector === "microsoft" ? (_jsx(Inbox, { className: "size-3.5" })) : (_jsx(KeyRound, { className: "size-3.5" })), onClick: () => onOpen?.(account), children: busyAccountId === account.accountId
95
95
  ? "Redirecting…"
96
96
  : account.connector === "microsoft"
97
97
  ? "Reconnect"
@@ -106,7 +106,7 @@ export function StepCredentialsOverview({ accounts, busyAccountId, error, onOpen
106
106
  : "Every account can sync." }), _jsx(Button, { variant: "primary", onClick: onNext, children: outstanding > 0 ? "Finish later" : "All accounts connected" })] }), children: _jsxs("div", { className: "space-y-4", children: [error && _jsx(Banner, { tone: "danger", children: error }), outstanding > 0 && (_jsxs(Banner, { tone: "danger", children: [outstanding, " of ", accounts.length, " accounts cannot sync yet. They stay listed in Settings, marked like this, until you sign in \u2014 no mail arrives for them in the meantime."] })), _jsx(AccountCredentialsList, { accounts: accounts, busyAccountId: busyAccountId, onOpen: onOpen })] }) }));
107
107
  }
108
108
  export function StepAccountReconnectMicrosoft({ account, position, total, error, busy = false, onBack, onNext, }) {
109
- return (_jsx(WizardShell, { steps: IMPORT_STEPS, activeStep: 2, title: `Reconnect ${account.address}`, subtitle: `Account ${position} of ${total} · Microsoft 365`, footer: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", onClick: onBack, children: "Back" }), _jsx(Button, { variant: "primary", disabled: busy, icon: busy ? _jsx(Loader2, { className: "size-3.5 animate-spin" }) : undefined, onClick: onNext, children: busy ? "Redirecting…" : "Sign in with Microsoft" })] }), children: _jsxs("div", { className: "space-y-4", children: [error && _jsx(Banner, { tone: "danger", children: error }), _jsx(Banner, { tone: "info", children: "A config file never carries an OAuth token \u2014 one only works for the instance it was granted to. Signing in here mints a fresh one for this instance." }), _jsxs("div", { className: "rounded-sm border border-line px-3 py-2.5", children: [_jsx("p", { className: "text-sm text-fg", children: account.displayName }), _jsxs("p", { className: "mt-0.5 text-xs text-fg-subtle", children: [account.address, " \u00B7 ", account.server] })] }), _jsx("p", { className: "text-2xs text-fg-subtle", children: "You will be sent to Microsoft and returned here. If your organisation requires admin approval, the sign-in stops there and this account keeps waiting." })] }) }));
109
+ return (_jsx(WizardShell, { steps: IMPORT_STEPS, activeStep: 2, title: `Reconnect ${account.address}`, subtitle: `Account ${position} of ${total} · Microsoft 365`, footer: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", onClick: onBack, children: "Back" }), _jsx(Button, { variant: "primary", disabled: busy, icon: busy ? (_jsx(LoaderCircle, { className: "size-3.5 animate-spin" })) : undefined, onClick: onNext, children: busy ? "Redirecting…" : "Sign in with Microsoft" })] }), children: _jsxs("div", { className: "space-y-4", children: [error && _jsx(Banner, { tone: "danger", children: error }), _jsx(Banner, { tone: "info", children: "A config file never carries an OAuth token \u2014 one only works for the instance it was granted to. Signing in here mints a fresh one for this instance." }), _jsxs("div", { className: "rounded-sm border border-line px-3 py-2.5", children: [_jsx("p", { className: "text-sm text-fg", children: account.displayName }), _jsxs("p", { className: "mt-0.5 text-xs text-fg-subtle", children: [account.address, " \u00B7 ", account.server] })] }), _jsx("p", { className: "text-2xs text-fg-subtle", children: "You will be sent to Microsoft and returned here. If your organisation requires admin approval, the sign-in stops there and this account keeps waiting." })] }) }));
110
110
  }
111
111
  export function StepPendingFolders({ folders, onNext, }) {
112
112
  return (_jsx(WizardShell, { steps: IMPORT_STEPS, activeStep: 3, title: folders.length > 0 ? "Creating folders" : "Import finished", subtitle: folders.length > 0
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { AppTopBar, Button } from "@remit/ui";
3
- import { Settings } from "lucide-react";
3
+ import { Settings } from "@remit/ui/icons";
4
4
  import { AccountMenu } from "../../auth/AccountMenu";
5
5
  import { useGoToSection } from "../../routing";
6
6
  export function CalendarTopBar() {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn, useModalFocus, useOverlayScope, } from "@remit/ui";
3
- import { X } from "lucide-react";
3
+ import { X } from "@remit/ui/icons";
4
4
  import { useEffect, useRef } from "react";
5
5
  /**
6
6
  * Modal navigation drawer. Slides in from the side with a scrim behind.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ShieldAlert } from "lucide-react";
2
+ import { ShieldAlert } from "@remit/ui/icons";
3
3
  /**
4
4
  * Danger banner rendered above the thread body when DKIM mismatch is detected.
5
5
  * Design spec (03-reading-and-intelligence.md): "a danger banner renders above
@@ -58,8 +58,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
58
58
  */
59
59
  import { mailboxOperationsListMailboxesOptions } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
60
60
  import { BriefEmpty, BriefSections, briefChipCategory, briefChipFilters, briefFilterConfig, briefFilterHasTerm, clearBriefFiltersInQuery, FilterPanelProvider, isBriefCategory, KeyboardHintBar, matchesBriefFilters, partitionSpamResults, RefreshButton, SECTION_ROW_CAP, SelectionTopBar, SpamResultsOffer, setBriefCategoryInQuery, toggleBriefFilterInQuery, } from "@remit/ui";
61
+ import { CircleAlert, RefreshCw } from "@remit/ui/icons";
61
62
  import { useQueries } from "@tanstack/react-query";
62
- import { AlertCircle, RefreshCw } from "lucide-react";
63
63
  import { useCallback, useMemo, useState, } from "react";
64
64
  import { useJunkMailbox } from "../../hooks/useArchiveMailbox";
65
65
  import { useBriefSearchRows, useBriefSections, } from "../../hooks/useBriefSections";
@@ -107,7 +107,7 @@ const NO_CATEGORIES = [];
107
107
  const SectionSkeleton = () => (_jsx("div", { className: "animate-pulse", children: Array.from({ length: 3 }).map((_, i) => (_jsxs("div", { className: "flex items-start gap-3 py-2 pl-5 pr-4 border-b border-line", children: [_jsx("div", { className: "size-7 rounded-full bg-surface-sunken shrink-0 mt-0.5" }), _jsxs("div", { className: "flex-1 space-y-1.5", children: [_jsxs("div", { className: "flex justify-between gap-2", children: [_jsx("div", { className: "h-3.5 bg-surface-sunken rounded w-28" }), _jsx("div", { className: "h-3 bg-surface-sunken rounded w-12" })] }), _jsx("div", { className: "h-3.5 bg-surface-sunken rounded w-48" }), _jsx("div", { className: "h-3 bg-surface-sunken rounded w-full" })] })] }, i))) }));
108
108
  const ErrorBanner = ({ accountEmail }) => {
109
109
  const goToSection = useGoToSection();
110
- return (_jsxs("div", { className: "flex items-center gap-2 px-row-inset py-2 border-b border-line bg-danger-soft/40 text-xs text-danger", children: [_jsx(AlertCircle, { className: "size-3.5 shrink-0" }), _jsxs("span", { className: "flex-1 truncate", children: [accountEmail, " can't connect"] }), _jsx("button", { type: "button", onClick: () => goToSection("accounts"), className: "shrink-0 underline text-danger hover:opacity-80", children: "Reconnect" })] }));
110
+ return (_jsxs("div", { className: "flex items-center gap-2 px-row-inset py-2 border-b border-line bg-danger-soft/40 text-xs text-danger", children: [_jsx(CircleAlert, { className: "size-3.5 shrink-0" }), _jsxs("span", { className: "flex-1 truncate", children: [accountEmail, " can't connect"] }), _jsx("button", { type: "button", onClick: () => goToSection("accounts"), className: "shrink-0 underline text-danger hover:opacity-80", children: "Reconnect" })] }));
111
111
  };
112
112
  /**
113
113
  * The account and source folder a brief selection resolves to.
@@ -553,7 +553,7 @@ export function DailyBrief({ accounts, selectedMessageId, onOpenThread, commands
553
553
  hasCommittedQuery: searchQuery.trim().length > 0,
554
554
  bodyRendersCommittedResults: true,
555
555
  });
556
- const stateBody = showsRows ? (_jsxs("div", { className: "flex h-full min-h-0 flex-col", children: [briefSpamOffer && (_jsx(SpamResultsOffer, { count: briefSpamOffer.count, onScopeToSpam: () => scopeSearchToMailbox(briefSpamOffer.mailboxId, searchQuery) })), _jsx("div", { className: "min-h-0 flex-1", children: _jsx(BriefSections, { sections: sections, briefCategory: chipCategory, Row: MessageRow, selectedThreadId: selectedMessageId, onSelectThread: openRow, onShowAllSection: showAllSection, onRetrySection: retrySection, flat: underQuery, onSelectBriefCategory: selectChipCategory, sources: accountSources, sourcesNote: mutedCount > 0 ? `+${mutedCount} muted` : undefined, onSelectSource: setSelectedAccountId, activeFilters: chipFilters, onToggleFilter: toggleChip, onClearFilters: clearChips }) })] })) : isLoading ? (briefSkeleton) : isError ? (_jsxs("div", { className: "flex h-full flex-col items-center justify-center gap-3 py-12 text-sm text-fg-muted", children: [_jsx(AlertCircle, { className: "size-8 text-danger" }), _jsx("p", { children: "Couldn't load your messages" }), _jsxs("button", { type: "button", onClick: () => refetch(), className: "flex items-center gap-1 text-accent underline text-xs", children: [_jsx(RefreshCw, { className: "size-3.5" }), "Try again"] })] })) : syncProgress.resolved ? (_jsx(BriefEmpty, { sync: syncProgress.syncing
556
+ const stateBody = showsRows ? (_jsxs("div", { className: "flex h-full min-h-0 flex-col", children: [briefSpamOffer && (_jsx(SpamResultsOffer, { count: briefSpamOffer.count, onScopeToSpam: () => scopeSearchToMailbox(briefSpamOffer.mailboxId, searchQuery) })), _jsx("div", { className: "min-h-0 flex-1", children: _jsx(BriefSections, { sections: sections, briefCategory: chipCategory, Row: MessageRow, selectedThreadId: selectedMessageId, onSelectThread: openRow, onShowAllSection: showAllSection, onRetrySection: retrySection, flat: underQuery, onSelectBriefCategory: selectChipCategory, sources: accountSources, sourcesNote: mutedCount > 0 ? `+${mutedCount} muted` : undefined, onSelectSource: setSelectedAccountId, activeFilters: chipFilters, onToggleFilter: toggleChip, onClearFilters: clearChips }) })] })) : isLoading ? (briefSkeleton) : isError ? (_jsxs("div", { className: "flex h-full flex-col items-center justify-center gap-3 py-12 text-sm text-fg-muted", children: [_jsx(CircleAlert, { className: "size-8 text-danger" }), _jsx("p", { children: "Couldn't load your messages" }), _jsxs("button", { type: "button", onClick: () => refetch(), className: "flex items-center gap-1 text-accent underline text-xs", children: [_jsx(RefreshCw, { className: "size-3.5" }), "Try again"] })] })) : syncProgress.resolved ? (_jsx(BriefEmpty, { sync: syncProgress.syncing
557
557
  ? { synced: syncProgress.synced, total: syncProgress.total }
558
558
  : undefined })) : (briefSkeleton);
559
559
  // The cursor and selection wrap the whole pane, not just the list body: the
@@ -24,8 +24,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  */
25
25
  import { outboxDetailOperationsDeleteOutboxMessageMutation, outboxOperationsListOutboxMessagesOptions, outboxOperationsListOutboxMessagesQueryKey, } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
26
26
  import { Avatar, ComfortableRowTextContent, cn, comfortableRowClass, PaneHeader, } from "@remit/ui";
27
+ import { FileText, Inbox, Trash } from "@remit/ui/icons";
27
28
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
28
- import { FileText, Inbox, Trash2 } from "lucide-react";
29
29
  import { useMemo } from "react";
30
30
  import { groupDraftSections } from "../../lib/drafts";
31
31
  import { useComposeDraftId, useEditDraft, useOpenThread } from "../../routing";
@@ -37,7 +37,7 @@ const SectionHeader = ({ label, count }) => (_jsxs("div", { className: "sticky t
37
37
  const RemitDraftRow = ({ row, isSelected, onOpen, onDelete, isDeleting, }) => (_jsxs("button", { type: "button", onClick: () => onOpen(row.id), className: cn("group", comfortableRowClass({ active: isSelected })), children: [_jsx(FileText, { className: "size-7 shrink-0 text-fg-muted mt-0.5" }), _jsx(ComfortableRowTextContent, { thread: row }), _jsx("div", { className: "flex items-center gap-1 shrink-0", children: _jsx("button", { type: "button", onClick: (e) => {
38
38
  e.stopPropagation();
39
39
  onDelete(row.id);
40
- }, disabled: isDeleting, className: "p-1.5 rounded-md text-fg-muted hover:text-danger hover:bg-surface-raised transition-colors opacity-0 group-hover:opacity-100 focus:opacity-100", title: "Delete draft", children: _jsx(Trash2, { className: "size-3.5" }) }) })] }));
40
+ }, disabled: isDeleting, className: "p-1.5 rounded-md text-fg-muted hover:text-danger hover:bg-surface-raised transition-colors opacity-0 group-hover:opacity-100 focus:opacity-100", title: "Delete draft", children: _jsx(Trash, { className: "size-3.5" }) }) })] }));
41
41
  const ImapDraftRow = ({ row, isSelected, onOpen }) => {
42
42
  const unread = !row.isRead;
43
43
  return (_jsxs("button", { type: "button", onClick: () => onOpen(row.id), className: cn("group", comfortableRowClass({ active: isSelected })), children: [unread && (_jsx("span", { className: "absolute left-1.5 top-1/2 size-1.5 -translate-y-1/2 rounded-full bg-accent" })), _jsx(Avatar, { name: row.fromName, email: row.fromEmail, size: "sm" }), _jsx(ComfortableRowTextContent, { thread: row })] }));
@@ -1,6 +1,6 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Banner, Button, ConfirmDialog } from "@remit/ui";
3
- import { Trash2 } from "lucide-react";
3
+ import { Trash } from "@remit/ui/icons";
4
4
  import { useState } from "react";
5
5
  import { deleteConfirmationCopy, formatNumber } from "../../lib/format";
6
6
  const quantified = (count) => count === 1 ? "1 message" : `${formatNumber(count)} messages`;
@@ -63,7 +63,7 @@ export function EmptyTrashBar({ messageCount, isEmptying, deletedCount, refusalR
63
63
  })
64
64
  : undefined;
65
65
  const confirm = emptyTrashConfirmCopy(messageCount);
66
- return (_jsxs("div", { className: "relative flex h-full min-h-0 flex-col", children: [_jsx("div", { className: "shrink-0 px-row-inset pt-2", children: _jsxs("div", { className: "flex flex-col gap-2 rounded-md border border-line px-3 py-2", children: [_jsxs("div", { className: "flex items-center justify-end gap-2", children: [deletedCount !== undefined && (_jsx("p", { className: "mr-auto text-2xs text-fg-subtle", role: "status", children: `${quantified(deletedCount)} erased from the mail server.` })), _jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(Trash2, { className: "size-3.5", "aria-hidden": true }), disabled: isEmptying || messageCount < 1, "aria-busy": isEmptying, onClick: () => setConfirming(true), children: isEmptying ? "Emptying…" : "Empty Trash" })] }), refusal && (_jsx(Banner, { tone: "warning", variant: "soft", children: _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("p", { className: "font-semibold text-fg", children: refusal.headline }), _jsx("p", { className: "text-sm", children: refusal.body }), _jsx(Button, { variant: "primary", size: "sm", className: "self-start", onClick: onRepair, children: refusal.actionLabel })] }) }))] }) }), _jsx("div", { className: "min-h-0 flex-1", children: children }), _jsx(ConfirmDialog, { isOpen: confirming, title: confirm.title, description: confirm.description, confirmLabel: confirm.confirmLabel, destructive: true,
66
+ return (_jsxs("div", { className: "relative flex h-full min-h-0 flex-col", children: [_jsx("div", { className: "shrink-0 px-row-inset pt-2", children: _jsxs("div", { className: "flex flex-col gap-2 rounded-md border border-line px-3 py-2", children: [_jsxs("div", { className: "flex items-center justify-end gap-2", children: [deletedCount !== undefined && (_jsx("p", { className: "mr-auto text-2xs text-fg-subtle", role: "status", children: `${quantified(deletedCount)} erased from the mail server.` })), _jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(Trash, { className: "size-3.5", "aria-hidden": true }), disabled: isEmptying || messageCount < 1, "aria-busy": isEmptying, onClick: () => setConfirming(true), children: isEmptying ? "Emptying…" : "Empty Trash" })] }), refusal && (_jsx(Banner, { tone: "warning", variant: "soft", children: _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("p", { className: "font-semibold text-fg", children: refusal.headline }), _jsx("p", { className: "text-sm", children: refusal.body }), _jsx(Button, { variant: "primary", size: "sm", className: "self-start", onClick: onRepair, children: refusal.actionLabel })] }) }))] }) }), _jsx("div", { className: "min-h-0 flex-1", children: children }), _jsx(ConfirmDialog, { isOpen: confirming, title: confirm.title, description: confirm.description, confirmLabel: confirm.confirmLabel, destructive: true,
67
67
  // The dialog hands the decision over and closes; the in-flight state
68
68
  // lives on the strip's own button, which is where the verb is.
69
69
  onConfirm: () => {
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { threadDetailOperationsListThreadMessagesOptions } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
3
3
  import { CATEGORY_PRESENTATION, categoryLabels, DialogBackdrop, IntelligencePanel, useModalFocus, } from "@remit/ui";
4
+ import { Sparkles } from "@remit/ui/icons";
4
5
  import { useQueryClient } from "@tanstack/react-query";
5
- import { Sparkles } from "lucide-react";
6
6
  import { useCallback, useMemo, useRef, useState } from "react";
7
7
  import { useJunkMailbox } from "../../hooks/useArchiveMailbox";
8
8
  import { useIntelligenceCalendar } from "../../hooks/useIntelligenceCalendar";
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { isLabelColorValue, labelDotClass, PopoverMenu, } from "@remit/ui";
3
- import { Tag } from "lucide-react";
3
+ import { Tag } from "@remit/ui/icons";
4
4
  import { useMemo } from "react";
5
5
  import { useApplyLabel } from "../../hooks/useApplyLabel";
6
6
  import { useLabelList } from "../../hooks/useLabels";
@@ -35,7 +35,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
35
35
  * `resultsScopeForRoute` and `lib/spam-offer.ts`.
36
36
  */
37
37
  import { Button, FilterToggle, isConvertible, MakeFilterAction, MobileSearchView, makeFilterBlockedCopy, SearchBar, SearchResults, SuggestList, useAppShellLayout, useSuggestList, } from "@remit/ui";
38
- import { Menu, Search, X } from "lucide-react";
38
+ import { Menu, Search, X } from "@remit/ui/icons";
39
39
  import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, } from "react";
40
40
  import { isSinglePaneTier, useLayoutTier } from "../../hooks/useLayoutTier";
41
41
  import { useSearchScope } from "../../hooks/useSearchScope";
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { AttentionDot, useAppShellLayout } from "@remit/ui";
3
- import { LogOut, Settings } from "lucide-react";
3
+ import { LogOut, Settings } from "@remit/ui/icons";
4
4
  import { AccountSession } from "../../auth/AccountSession";
5
5
  import { useWarningsAttention } from "../../hooks/useWarningsAttention";
6
6
  import { NavLink } from "../../routing";
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { messageBulkOperationsUpdateFlagsMutation, threadDetailOperationsListThreadMessagesQueryKey, } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
3
3
  import { DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, ErrorState, } from "@remit/ui";
4
+ import { BadgeCheck, Check, Code, EllipsisVertical, MailOpen, Trash, } from "@remit/ui/icons";
4
5
  import { useMutation, useQueryClient } from "@tanstack/react-query";
5
- import { BadgeCheck, Check, Code, MailOpen, MoreVertical, Trash2, } from "lucide-react";
6
6
  import { useCallback } from "react";
7
7
  import { useDeleteMessages } from "../../hooks/useDeleteMessages";
8
8
  import { setReadOnItems } from "../../hooks/useMarkAsRead";
@@ -122,7 +122,7 @@ export const MessageActionMenu = ({ messageId, threadId, mailboxId, isRead, acco
122
122
  const trustedItemTitle = !fromAddressId
123
123
  ? "Sender has no parseable address"
124
124
  : undefined;
125
- return (_jsxs("div", { className: "flex flex-col items-end gap-1", children: [_jsxs("div", { className: "flex items-center gap-1", children: [accountId && (_jsx(MoveToTrigger, { accountId: accountId, currentMailboxId: mailboxId, onMove: handleMove, disabled: isDisabled, label: "Move this message" })), _jsxs(DropdownMenu, { trigger: _jsx(MoreVertical, { className: "size-4" }), children: [_jsxs(DropdownMenuItem, { onClick: handleToggleTrusted, disabled: trustedItemDisabled, children: [isTrusted ? (_jsx(BadgeCheck, { className: "size-4 text-positive" })) : (_jsx(Check, { className: "size-4 opacity-0" })), _jsx("span", { title: trustedItemTitle, children: "Trusted sender" })] }), isRead && (_jsxs(DropdownMenuItem, { onClick: handleMarkAsUnread, disabled: isDisabled, children: [_jsx(MailOpen, { className: "size-4" }), "Mark as unread"] })), onToggleRaw && (_jsxs(DropdownMenuItem, { onClick: onToggleRaw, children: [_jsx(Code, { className: "size-4" }), showRaw ? "Show formatted" : "Show raw email"] })), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { onClick: handleDelete, disabled: isDisabled, destructive: true, children: [_jsx(Trash2, { className: "size-4" }), "Delete"] })] })] }), trustedError && (_jsx("div", { className: "w-64", children: _jsx(ErrorState, { variant: "inline", title: "Couldn't update trust", error: trustedError, onRetry: () => {
125
+ return (_jsxs("div", { className: "flex flex-col items-end gap-1", children: [_jsxs("div", { className: "flex items-center gap-1", children: [accountId && (_jsx(MoveToTrigger, { accountId: accountId, currentMailboxId: mailboxId, onMove: handleMove, disabled: isDisabled, label: "Move this message" })), _jsxs(DropdownMenu, { trigger: _jsx(EllipsisVertical, { className: "size-4" }), children: [_jsxs(DropdownMenuItem, { onClick: handleToggleTrusted, disabled: trustedItemDisabled, children: [isTrusted ? (_jsx(BadgeCheck, { className: "size-4 text-positive" })) : (_jsx(Check, { className: "size-4 opacity-0" })), _jsx("span", { title: trustedItemTitle, children: "Trusted sender" })] }), isRead && (_jsxs(DropdownMenuItem, { onClick: handleMarkAsUnread, disabled: isDisabled, children: [_jsx(MailOpen, { className: "size-4" }), "Mark as unread"] })), onToggleRaw && (_jsxs(DropdownMenuItem, { onClick: onToggleRaw, children: [_jsx(Code, { className: "size-4" }), showRaw ? "Show formatted" : "Show raw email"] })), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { onClick: handleDelete, disabled: isDisabled, destructive: true, children: [_jsx(Trash, { className: "size-4" }), "Delete"] })] })] }), trustedError && (_jsx("div", { className: "w-64", children: _jsx(ErrorState, { variant: "inline", title: "Couldn't update trust", error: trustedError, onRetry: () => {
126
126
  resetTrustedError();
127
127
  handleToggleTrusted();
128
128
  } }) }))] }));
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { AlertCircle, X } from "lucide-react";
2
+ import { CircleAlert, X } from "@remit/ui/icons";
3
3
  import { useState } from "react";
4
4
  import { useAuthProvider } from "../../auth/provider";
5
5
  import { contentForReason, extractFallbackDetail, extractReason, } from "./message-body-error-banner-content";
@@ -25,5 +25,5 @@ export const MessageBodyErrorBanner = ({ error, onRetry, }) => {
25
25
  const { Account } = useAuthProvider();
26
26
  if (dismissed)
27
27
  return null;
28
- return (_jsxs("div", { role: "alert", "data-testid": "message-body-error-banner", "data-reason": reason, className: "flex items-start gap-2 rounded-md border border-danger/40 bg-danger-soft px-3 py-2 text-sm", children: [_jsx(AlertCircle, { className: "size-4 shrink-0 text-danger mt-0.5", "aria-hidden": "true" }), _jsxs("div", { className: "flex-1 min-w-0", children: [_jsx("p", { className: "font-medium text-danger", children: title }), _jsx("p", { className: "text-fg-muted mt-1 break-words", children: detail })] }), _jsxs("div", { className: "flex shrink-0 items-center gap-3", children: [reason === "auth" && (_jsx(Account, { children: ({ signOut }) => (_jsx("button", { type: "button", onClick: () => signOut(), className: "text-sm font-medium text-accent hover:underline", children: "Sign in again" })) })), onRetry && (_jsx("button", { type: "button", onClick: onRetry, className: "text-sm font-medium text-accent hover:underline", children: "Retry" })), _jsx("button", { type: "button", onClick: () => setDismissed(true), "aria-label": "Dismiss message body error", className: "rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors", children: _jsx(X, { className: "size-4", "aria-hidden": "true" }) })] })] }));
28
+ return (_jsxs("div", { role: "alert", "data-testid": "message-body-error-banner", "data-reason": reason, className: "flex items-start gap-2 rounded-md border border-danger/40 bg-danger-soft px-3 py-2 text-sm", children: [_jsx(CircleAlert, { className: "size-4 shrink-0 text-danger mt-0.5", "aria-hidden": "true" }), _jsxs("div", { className: "flex-1 min-w-0", children: [_jsx("p", { className: "font-medium text-danger", children: title }), _jsx("p", { className: "text-fg-muted mt-1 break-words", children: detail })] }), _jsxs("div", { className: "flex shrink-0 items-center gap-3", children: [reason === "auth" && (_jsx(Account, { children: ({ signOut }) => (_jsx("button", { type: "button", onClick: () => signOut(), className: "text-sm font-medium text-accent hover:underline", children: "Sign in again" })) })), onRetry && (_jsx("button", { type: "button", onClick: onRetry, className: "text-sm font-medium text-accent hover:underline", children: "Retry" })), _jsx("button", { type: "button", onClick: () => setDismissed(true), "aria-label": "Dismiss message body error", className: "rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors", children: _jsx(X, { className: "size-4", "aria-hidden": "true" }) })] })] }));
29
29
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { messageOperationsDescribeMessageOptions } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
3
3
  import { AddressList, CollapsedMessage, cn, EmptyState, ErrorState, ExpandedMessage, } from "@remit/ui";
4
+ import { BadgeCheck, Paperclip, Star } from "@remit/ui/icons";
4
5
  import { useQuery } from "@tanstack/react-query";
5
- import { BadgeCheck, Paperclip, Star } from "lucide-react";
6
6
  import { useState } from "react";
7
7
  import { toDisplayCategory } from "../../lib/display-category";
8
8
  import { formatDatePreset } from "../../lib/format";
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { messageBulkOperationsUpdateFlagsMutation, threadDetailOperationsListThreadMessagesQueryKey, } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
3
3
  import { MobileMessageActionBar } from "@remit/ui";
4
+ import { BadgeCheck, Check, Code } from "@remit/ui/icons";
4
5
  import { useMutation, useQueryClient } from "@tanstack/react-query";
5
- import { BadgeCheck, Check, Code } from "lucide-react";
6
6
  import { useCallback } from "react";
7
7
  import { useDeleteMessages } from "../../hooks/useDeleteMessages";
8
8
  import { useMoveMessages } from "../../hooks/useMoveMessages";
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { mailboxOperationsListMailboxesOptions } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
3
3
  import { Button, cn, ErrorState, FolderTreePicker, PopoverMenuPortal, useOverlayScope, } from "@remit/ui";
4
+ import { FolderInput } from "@remit/ui/icons";
4
5
  import { useQuery } from "@tanstack/react-query";
5
- import { FolderInput } from "lucide-react";
6
6
  import { useCallback, useEffect, useId, useMemo, useRef, useState, } from "react";
7
7
  import { Drawer } from "vaul";
8
8
  import { useFolderAppointments } from "../../hooks/useArchiveMailbox";
@@ -8,7 +8,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
8
8
  * where the nav is a persistent pane, there is nothing to open.
9
9
  */
10
10
  import { Button, useAppShellLayout } from "@remit/ui";
11
- import { Menu } from "lucide-react";
11
+ import { Menu } from "@remit/ui/icons";
12
12
  export function NavMenuButton() {
13
13
  const layout = useAppShellLayout();
14
14
  if (!layout || layout.showNavPane)
@@ -15,8 +15,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  */
16
16
  import { outboxDetailOperationsDeleteOutboxMessageMutation, outboxDetailOperationsSendOutboxMessageMutation, outboxOperationsListOutboxMessagesOptions, outboxOperationsListOutboxMessagesQueryKey, } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
17
17
  import { cn, LIST_ROW_SELECTOR, OutboxRow, PaneHeader, ReadingPaneEmpty, useRovingFocus, } from "@remit/ui";
18
+ import { ArrowLeft, CircleAlert, CircleCheckBig, Clock, LoaderCircle, Send, TriangleAlert, } from "@remit/ui/icons";
18
19
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
19
- import { AlertCircle, AlertTriangle, ArrowLeft, CheckCircle, Clock, Loader2, Send, } from "lucide-react";
20
20
  import { createContext, useCallback, useContext, useMemo, useRef, } from "react";
21
21
  import { useSearchTokenContext } from "../../hooks/useSearchTokenContext";
22
22
  import { formatDate as formatLocaleDate, toDate } from "../../lib/format";
@@ -40,27 +40,27 @@ const STATUS_CONFIG = {
40
40
  className: "text-warning",
41
41
  },
42
42
  sending: {
43
- icon: Loader2,
43
+ icon: LoaderCircle,
44
44
  label: "Sending…",
45
45
  className: "text-accent-2",
46
46
  },
47
47
  sent: {
48
- icon: CheckCircle,
48
+ icon: CircleCheckBig,
49
49
  label: "Sent",
50
50
  className: "text-positive",
51
51
  },
52
52
  unfiled: {
53
- icon: AlertTriangle,
53
+ icon: TriangleAlert,
54
54
  label: "Sent, not filed",
55
55
  className: "text-warning",
56
56
  },
57
57
  failed: {
58
- icon: AlertCircle,
58
+ icon: CircleAlert,
59
59
  label: "Failed",
60
60
  className: "text-danger",
61
61
  },
62
62
  blocked: {
63
- icon: AlertTriangle,
63
+ icon: TriangleAlert,
64
64
  label: "Blocked",
65
65
  className: "text-warning",
66
66
  },
@@ -19,8 +19,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
19
19
  */
20
20
  import { accountOperationsCreateAccountMutation, configOperationsGetConfigOptions, configOperationsGetConfigQueryKey, microsoftOAuthOperationsMicrosoftOAuthStartMutation, syncOperationsGetSyncStatusOptions, } from "@remit/api-http-client/@tanstack/react-query.gen.ts";
21
21
  import { ACCOUNT_SERVICE_EMPTY_MESSAGE, ACCOUNT_SERVICE_ROWS, AccountServiceChoice, Banner, Button, CheckRow, ConnectorTile, FieldLabel, Input, Kbd, Select, ServerFields, securityToApi, WizardShell, } from "@remit/ui";
22
+ import { AtSign, FileBraces, Inbox, LoaderCircle, Mail, Server, } from "@remit/ui/icons";
22
23
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
23
- import { AtSign, FileJson, Inbox, Loader2, Mail, Server } from "lucide-react";
24
24
  import { useCallback, useEffect, useRef, useState } from "react";
25
25
  import { REDIRECT_STALL_MESSAGE, useRedirectEnded, } from "../../hooks/useRedirectEnded.js";
26
26
  // useRef is kept for the hasCreatedRef guard — not for DOM refs
@@ -74,7 +74,7 @@ export function StepWelcome({ onStart, onImportConfig, }) {
74
74
  }, [onStart]);
75
75
  return (_jsx(WizardShell, { steps: STEP_LABELS, activeStep: 0, hideSteps: true, title: "Welcome to Remit", subtitle: onImportConfig
76
76
  ? "Set up your first account, or bring the settings from another Reader."
77
- : "One inbox for all your mail, with context about every message.", footer: _jsxs(_Fragment, { children: [onImportConfig ? (_jsx(Button, { variant: "secondary", icon: _jsx(FileJson, { className: "size-4" }), onClick: onImportConfig, children: "Import a config file" })) : (_jsxs("span", { className: "text-2xs text-fg-subtle", children: [_jsx(Kbd, { children: "Enter" }), " to continue"] })), _jsx(Button, { variant: "primary", onClick: onStart, children: "Add your first account" })] }), children: _jsxs("div", { className: "flex flex-col items-start py-5", children: [_jsx("span", { className: "flex size-14 items-center justify-center rounded-md bg-accent-soft", children: _jsx(Mail, { className: "size-7 text-accent" }) }), _jsx("p", { className: "mt-5 max-w-sm text-sm leading-relaxed text-fg-muted", children: "Remit syncs your existing mailboxes and tells you who is really writing to you \u2014 sender history, authenticity checks, and similar messages, right next to every email." }), onImportConfig && (_jsx("p", { className: "mt-3 max-w-sm text-sm leading-relaxed text-fg-muted", children: "A config file carries your accounts, folder roles, rules, flagged senders and appearance from another Reader. It never carries passwords, so you sign in again here." }))] }) }));
77
+ : "One inbox for all your mail, with context about every message.", footer: _jsxs(_Fragment, { children: [onImportConfig ? (_jsx(Button, { variant: "secondary", icon: _jsx(FileBraces, { className: "size-4" }), onClick: onImportConfig, children: "Import a config file" })) : (_jsxs("span", { className: "text-2xs text-fg-subtle", children: [_jsx(Kbd, { children: "Enter" }), " to continue"] })), _jsx(Button, { variant: "primary", onClick: onStart, children: "Add your first account" })] }), children: _jsxs("div", { className: "flex flex-col items-start py-5", children: [_jsx("span", { className: "flex size-14 items-center justify-center rounded-md bg-accent-soft", children: _jsx(Mail, { className: "size-7 text-accent" }) }), _jsx("p", { className: "mt-5 max-w-sm text-sm leading-relaxed text-fg-muted", children: "Remit syncs your existing mailboxes and tells you who is really writing to you \u2014 sender history, authenticity checks, and similar messages, right next to every email." }), onImportConfig && (_jsx("p", { className: "mt-3 max-w-sm text-sm leading-relaxed text-fg-muted", children: "A config file carries your accounts, folder roles, rules, flagged senders and appearance from another Reader. It never carries passwords, so you sign in again here." }))] }) }));
78
78
  }
79
79
  function StepConnector({ onContinue, onMicrosoft, onBack, showBack, }) {
80
80
  const [selected, setSelected] = useState("imap");
@@ -221,7 +221,7 @@ export function StepMicrosoftEmail({ refusal, onBack, onConnected, }) {
221
221
  }, [onBack]);
222
222
  return (_jsx(WizardShell, { steps: STEP_LABELS, activeStep: STEP_INDEX.connector, title: refusal?.reconnect && refusal.email
223
223
  ? `Reconnect ${refusal.email}`
224
- : "Sign in with Microsoft", subtitle: "Microsoft is asked for the mail and calendar access you pick here.", footer: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", onClick: onBack, children: "Back" }), _jsx(Button, { variant: "primary", onClick: handleSubmit, disabled: redirecting, icon: redirecting ? (_jsx(Loader2, { className: "size-4 animate-spin" })) : undefined, children: redirecting
224
+ : "Sign in with Microsoft", subtitle: "Microsoft is asked for the mail and calendar access you pick here.", footer: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", onClick: onBack, children: "Back" }), _jsx(Button, { variant: "primary", onClick: handleSubmit, disabled: redirecting, icon: redirecting ? (_jsx(LoaderCircle, { className: "size-4 animate-spin" })) : undefined, children: redirecting
225
225
  ? "Redirecting…"
226
226
  : awaitingReturn
227
227
  ? "Start over"
@@ -238,7 +238,7 @@ export function StepMicrosoftGranted({ accountId, onSignInAgain, onContinue, })
238
238
  return (_jsx(WizardShell, { steps: STEP_LABELS, activeStep: STEP_INDEX["microsoft-granted"], title: "Couldn't read the new account", subtitle: "Microsoft finished, but this instance did not answer.", footer: _jsxs(_Fragment, { children: [_jsx("span", {}), _jsx(Button, { variant: "primary", onClick: () => void refetch(), disabled: isFetching, children: "Retry" })] }), children: _jsx(Banner, { tone: "danger", children: "Couldn't load the account Microsoft just connected. Check your connection and retry, or open Settings \u203A Accounts to see it." }) }));
239
239
  }
240
240
  if (!config || (!account && isFetching)) {
241
- return (_jsx(WizardShell, { steps: STEP_LABELS, activeStep: STEP_INDEX["microsoft-granted"], title: "Reading the new account", subtitle: "Checking what Microsoft granted.", footer: _jsxs(_Fragment, { children: [_jsx("span", { className: "text-2xs text-fg-subtle", children: "Loading\u2026" }), _jsx("span", {})] }), children: _jsxs("div", { className: "flex items-center gap-2 py-4 text-sm text-fg-muted", children: [_jsx(Loader2, { className: "size-4 animate-spin text-accent" }), "Loading the account\u2026"] }) }));
241
+ return (_jsx(WizardShell, { steps: STEP_LABELS, activeStep: STEP_INDEX["microsoft-granted"], title: "Reading the new account", subtitle: "Checking what Microsoft granted.", footer: _jsxs(_Fragment, { children: [_jsx("span", { className: "text-2xs text-fg-subtle", children: "Loading\u2026" }), _jsx("span", {})] }), children: _jsxs("div", { className: "flex items-center gap-2 py-4 text-sm text-fg-muted", children: [_jsx(LoaderCircle, { className: "size-4 animate-spin text-accent" }), "Loading the account\u2026"] }) }));
242
242
  }
243
243
  if (!account) {
244
244
  return (_jsx(WizardShell, { steps: STEP_LABELS, activeStep: STEP_INDEX["microsoft-granted"], title: "The account is not here", subtitle: "Microsoft sent the sign-in back, but no account was kept.", footer: _jsxs(_Fragment, { children: [_jsx("span", {}), _jsx(Button, { variant: "primary", onClick: onSignInAgain, children: "Sign in again" })] }), children: _jsx(Banner, { tone: "danger", children: "This instance holds no account from that sign-in. Sign in with Microsoft again to connect it." }) }));
@@ -288,7 +288,7 @@ function StepAddress({ initialEmail, initialDisplayName, onContinue, onBack, })
288
288
  return (_jsx(WizardShell, { steps: STEP_LABELS, activeStep: STEP_INDEX.address, title: "What's the email address?", subtitle: "We'll detect the server settings for you.", footer: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", onClick: onBack, children: "Back" }), _jsx(Button, { variant: "primary", disabled: discovering, onClick: () => void handleSubmit(), children: "Continue" })] }), children: _jsxs("div", { className: "space-y-4", children: [_jsxs("div", { children: [_jsx(FieldLabel, { htmlFor: "onboarding-email", children: "Email address" }), _jsx(Input, { id: "onboarding-email", icon: _jsx(AtSign, { className: "size-4" }), placeholder: "you@example.com", value: email, onChange: (e) => {
289
289
  setEmail(e.target.value);
290
290
  setError(null);
291
- }, type: "email", autoComplete: "email" })] }), _jsxs("div", { children: [_jsx(FieldLabel, { htmlFor: "onboarding-display-name", children: "Display name (optional)" }), _jsx(Input, { id: "onboarding-display-name", placeholder: "Alice", value: displayName, onChange: (e) => setDisplayName(e.target.value) }), _jsx("p", { className: "mt-1.5 text-2xs text-fg-subtle", children: "What to call this account in Remit. Leave blank to use a name derived from the address." })] }), discovering && (_jsxs("div", { className: "mt-3 flex items-center gap-2 text-xs text-fg-muted", children: [_jsx(Loader2, { className: "size-3.5 animate-spin text-accent" }), statusMsg] })), error && !discovering && (_jsx("div", { className: "mt-3", children: _jsx(Banner, { tone: "danger", children: error }) }))] }) }));
291
+ }, type: "email", autoComplete: "email" })] }), _jsxs("div", { children: [_jsx(FieldLabel, { htmlFor: "onboarding-display-name", children: "Display name (optional)" }), _jsx(Input, { id: "onboarding-display-name", placeholder: "Alice", value: displayName, onChange: (e) => setDisplayName(e.target.value) }), _jsx("p", { className: "mt-1.5 text-2xs text-fg-subtle", children: "What to call this account in Remit. Leave blank to use a name derived from the address." })] }), discovering && (_jsxs("div", { className: "mt-3 flex items-center gap-2 text-xs text-fg-muted", children: [_jsx(LoaderCircle, { className: "size-3.5 animate-spin text-accent" }), statusMsg] })), error && !discovering && (_jsx("div", { className: "mt-3", children: _jsx(Banner, { tone: "danger", children: error }) }))] }) }));
292
292
  }
293
293
  export function StepServers({ email, imapConfig, smtpConfig, discovered, onContinue, onBack, onChange, }) {
294
294
  const [imap, setImap] = useState(imapConfig);
@@ -529,7 +529,7 @@ function StepSync({ email, displayName, imapConfig, smtpConfig, username, passwo
529
529
  });
530
530
  }, children: "Retry" })] }), children: _jsx("code", { className: "block rounded bg-surface-sunken px-2.5 py-2 text-2xs text-fg-muted", children: createError }) }));
531
531
  }
532
- return (_jsx(WizardShell, { steps: STEP_LABELS, activeStep: STEP_INDEX.sync, title: `Syncing ${email}`, subtitle: "Newest mail first \u2014 you can start reading right away.", footer: _jsxs(_Fragment, { children: [_jsx("span", { className: "text-2xs text-fg-subtle", children: "Sync continues in the background" }), canGoToInbox ? (_jsx(Button, { variant: "primary", onClick: () => accountId && onGoToInbox(accountId), children: "Go to inbox" })) : (_jsx(Button, { variant: "primary", disabled: true, icon: _jsx(Loader2, { className: "size-3.5 animate-spin" }), children: "Getting your mail\u2026" }))] }), children: createMutation.isPending ? (_jsxs("div", { className: "flex items-center gap-2 py-4 text-sm text-fg-muted", children: [_jsx(Loader2, { className: "size-4 animate-spin text-accent" }), "Creating your account\u2026"] })) : (_jsxs("div", { className: "space-y-3", children: [inboxTotal > 0 && (_jsxs("div", { children: [_jsxs("div", { className: "flex items-baseline justify-between text-xs", children: [_jsx("span", { className: "font-medium text-fg", children: "INBOX" }), _jsxs("span", { className: "text-fg-subtle tabular-nums", children: [inboxSynced.toLocaleString(), " / ", inboxTotal.toLocaleString(), " ", "messages"] })] }), _jsx("div", { className: "mt-1 h-1.5 overflow-hidden rounded-full bg-surface-sunken", children: _jsx("div", { className: "h-full rounded-full bg-accent transition-all duration-500", style: { width: `${Math.max(2, inboxProgress * 100)}%` } }) })] })), _jsxs("div", { className: "divide-y divide-line", children: [_jsx(CheckRow, { label: "Mailboxes discovered", detail: totalMailboxes > 0
532
+ return (_jsx(WizardShell, { steps: STEP_LABELS, activeStep: STEP_INDEX.sync, title: `Syncing ${email}`, subtitle: "Newest mail first \u2014 you can start reading right away.", footer: _jsxs(_Fragment, { children: [_jsx("span", { className: "text-2xs text-fg-subtle", children: "Sync continues in the background" }), canGoToInbox ? (_jsx(Button, { variant: "primary", onClick: () => accountId && onGoToInbox(accountId), children: "Go to inbox" })) : (_jsx(Button, { variant: "primary", disabled: true, icon: _jsx(LoaderCircle, { className: "size-3.5 animate-spin" }), children: "Getting your mail\u2026" }))] }), children: createMutation.isPending ? (_jsxs("div", { className: "flex items-center gap-2 py-4 text-sm text-fg-muted", children: [_jsx(LoaderCircle, { className: "size-4 animate-spin text-accent" }), "Creating your account\u2026"] })) : (_jsxs("div", { className: "space-y-3", children: [inboxTotal > 0 && (_jsxs("div", { children: [_jsxs("div", { className: "flex items-baseline justify-between text-xs", children: [_jsx("span", { className: "font-medium text-fg", children: "INBOX" }), _jsxs("span", { className: "text-fg-subtle tabular-nums", children: [inboxSynced.toLocaleString(), " / ", inboxTotal.toLocaleString(), " ", "messages"] })] }), _jsx("div", { className: "mt-1 h-1.5 overflow-hidden rounded-full bg-surface-sunken", children: _jsx("div", { className: "h-full rounded-full bg-accent transition-all duration-500", style: { width: `${Math.max(2, inboxProgress * 100)}%` } }) })] })), _jsxs("div", { className: "divide-y divide-line", children: [_jsx(CheckRow, { label: "Mailboxes discovered", detail: totalMailboxes > 0
533
533
  ? `${totalMailboxes} mailbox${totalMailboxes === 1 ? "" : "es"} found`
534
534
  : "Discovering…", state: mailboxState }), _jsx(CheckRow, { label: "INBOX", detail: inboxSyncState === "ok"
535
535
  ? `${inboxSynced.toLocaleString()} messages synced`