@remit/ui 0.0.221 → 0.0.223

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 (209) hide show
  1. package/package.json +14 -3
  2. package/src/components/DropdownMenu.tsx +100 -0
  3. package/src/components/EmptyState.tsx +11 -0
  4. package/src/components/ErrorBanner.render.test.ts +107 -0
  5. package/src/components/ErrorBanner.stories.tsx +132 -0
  6. package/src/components/ErrorBanner.tsx +122 -0
  7. package/src/components/ErrorBannerStack.tsx +34 -0
  8. package/src/components/ErrorState.render.test.ts +82 -0
  9. package/src/components/ErrorState.tsx +80 -0
  10. package/src/components/KeyboardShortcutsModal.tsx +111 -0
  11. package/src/components/account-service-change-dialog.render.test.ts +1 -41
  12. package/src/components/account-service-choice.render.test.ts +0 -26
  13. package/src/components/account-service-toggles.render.test.ts +0 -6
  14. package/src/components/address-display.render.test.ts +1 -38
  15. package/src/components/address-tag.render.test.ts +0 -11
  16. package/src/components/agenda-flow.reach.test.ts +0 -8
  17. package/src/components/agenda-flow.render.test.ts +0 -31
  18. package/src/components/agenda-panels.render.test.ts +0 -5
  19. package/src/components/app-shell-slotted.render.test.ts +0 -118
  20. package/src/components/attachment-list.render.test.ts +41 -24
  21. package/src/components/attachment-list.stories.tsx +67 -0
  22. package/src/components/attachment-list.tsx +112 -35
  23. package/src/components/attendee-row.render.test.ts +0 -41
  24. package/src/components/attention-dot.stories.tsx +46 -0
  25. package/src/components/attention-dot.tsx +23 -0
  26. package/src/components/banner.render.test.ts +0 -7
  27. package/src/components/bottom-sheet.render.test.ts +0 -42
  28. package/src/components/brief-section.render.test.ts +0 -13
  29. package/src/components/brief-sections.keyboard.test.ts +0 -13
  30. package/src/components/brief-sections.render.test.ts +0 -22
  31. package/src/components/calendar-clash-strip.render.test.ts +0 -19
  32. package/src/components/calendar-grid.render.test.ts +0 -79
  33. package/src/components/calendar-invite-card.render.test.ts +0 -19
  34. package/src/components/calendar-list.render.test.ts +0 -21
  35. package/src/components/calendar-slot-offers.render.test.ts +0 -24
  36. package/src/components/calendar-suggestion-deck.render.test.ts +0 -18
  37. package/src/components/calendar-toolbar.render.test.ts +1 -53
  38. package/src/components/category-badge.render.test.ts +1 -24
  39. package/src/components/compose-action-bar.render.test.ts +0 -5
  40. package/src/components/compose-attachments.render.test.ts +0 -38
  41. package/src/components/event-detail.render.test.ts +0 -27
  42. package/src/components/event-editor.render.test.ts +0 -4
  43. package/src/components/event-suggestion-card.render.test.ts +0 -61
  44. package/src/components/event-suggestion-card.zone-gate.test.ts +1 -7
  45. package/src/components/filter-clause-chip.tsx +1 -60
  46. package/src/components/filter-rule-editor.create.test.ts +0 -6
  47. package/src/components/filter-rule-editor.stories.tsx +24 -138
  48. package/src/components/filter-rule-editor.tsx +7 -93
  49. package/src/components/filter-rule.render.test.ts +9 -299
  50. package/src/components/filter-rule.ts +20 -85
  51. package/src/components/filter-sheet.render.test.ts +0 -7
  52. package/src/components/folder-manage-actions.render.test.ts +0 -13
  53. package/src/components/folder-manager.render.test.ts +0 -31
  54. package/src/components/folder-mutation-dialog.render.test.ts +0 -83
  55. package/src/components/folder-rename-dialog.render.test.ts +0 -14
  56. package/src/components/folder-row.render.test.ts +0 -30
  57. package/src/components/folder-sync-state.test.ts +0 -61
  58. package/src/components/folder-tree-picker.create.test.ts +0 -30
  59. package/src/components/folder-tree-picker.render.test.ts +0 -35
  60. package/src/components/intelligence-calendar-fixtures.ts +0 -2
  61. package/src/components/intelligence-calendar.render.test.ts +0 -4
  62. package/src/components/intelligence-panel.render.test.ts +1 -62
  63. package/src/components/intelligence-panel.stories.tsx +0 -76
  64. package/src/components/intelligence-panel.tab-strip.test.ts +0 -1
  65. package/src/components/intelligence-panel.tsx +6 -176
  66. package/src/components/intelligence-toggle.render.test.ts +0 -5
  67. package/src/components/isolated-email-frame.render.test.ts +0 -122
  68. package/src/components/isolated-email-frame.tsx +55 -3
  69. package/src/components/keyboard-hint-bar.render.test.ts +0 -7
  70. package/src/components/label-chip.render.test.ts +0 -28
  71. package/src/components/label-chip.tsx +1 -1
  72. package/src/components/mail-header.render.test.ts +0 -20
  73. package/src/components/mcp-connected-apps-page.stories.tsx +58 -0
  74. package/src/components/mcp-connected-apps-page.tsx +79 -0
  75. package/src/components/mcp-consent-page.stories.tsx +39 -0
  76. package/src/components/mcp-consent-page.tsx +47 -0
  77. package/src/components/mcp-device-page.stories.tsx +57 -0
  78. package/src/components/mcp-device-page.tsx +107 -0
  79. package/src/components/mcp-error-notice.stories.tsx +34 -0
  80. package/src/components/mcp-error-notice.tsx +23 -0
  81. package/src/components/mcp-error-page.stories.tsx +17 -0
  82. package/src/components/mcp-error-page.tsx +15 -0
  83. package/src/components/mcp-fixtures.ts +16 -0
  84. package/src/components/mcp-login-page.stories.tsx +37 -0
  85. package/src/components/mcp-login-page.tsx +58 -0
  86. package/src/components/mcp-page.stories.tsx +27 -0
  87. package/src/components/mcp-page.tsx +35 -0
  88. package/src/components/mcp-permission-list.stories.tsx +21 -0
  89. package/src/components/mcp-permission-list.tsx +22 -0
  90. package/src/components/message-body-view.render.test.ts +0 -21
  91. package/src/components/message-list-pane.brief-filter.test.ts +0 -6
  92. package/src/components/message-list-pane.render.test.ts +0 -54
  93. package/src/components/message-list-state.render.test.ts +0 -84
  94. package/src/components/{quarantine-bug-dialog.tsx → message-report-dialog.tsx} +9 -14
  95. package/src/components/message-row.render.test.ts +1 -98
  96. package/src/components/mobile-message-action-bar.render.test.ts +0 -59
  97. package/src/components/mobile-reading-pane.render.test.ts +0 -48
  98. package/src/components/mobile-reading-pane.stories.tsx +78 -0
  99. package/src/components/mobile-reading-pane.tsx +55 -41
  100. package/src/components/mobile-search-view.render.test.ts +0 -16
  101. package/src/components/mobile-search-view.stories.tsx +8 -11
  102. package/src/components/mobile-search-view.tsx +1 -1
  103. package/src/components/nav-sidebar.keyboard.test.ts +0 -8
  104. package/src/components/nav-sidebar.render.test.ts +2 -133
  105. package/src/components/new-folder-form.render.test.ts +0 -26
  106. package/src/components/outbox-row.render.test.ts +0 -9
  107. package/src/components/pane-layout.render.test.ts +0 -18
  108. package/src/components/plain-text-editor.mount.test.ts +0 -16
  109. package/src/components/popover-menu.render.test.ts +0 -11
  110. package/src/components/progress-bar.render.test.ts +0 -14
  111. package/src/components/quarantine-report.test.ts +0 -8
  112. package/src/components/quarantine-section.render.test.ts +16 -13
  113. package/src/components/quarantine-section.stories.tsx +11 -8
  114. package/src/components/reading-pane.render.test.ts +2 -106
  115. package/src/components/reading-pane.stories.tsx +3 -0
  116. package/src/components/refresh-button.render.test.ts +0 -9
  117. package/src/components/rescue-from-spam-flow.render.test.ts +0 -24
  118. package/src/components/rich-text-editor.mount.test.ts +0 -19
  119. package/src/components/rich-text-image-node.ts +11 -9
  120. package/src/components/role-appointment-list.render.test.ts +0 -49
  121. package/src/components/role-appointment-prompt.render.test.ts +0 -79
  122. package/src/components/row-actions.render.test.ts +0 -34
  123. package/src/components/search-bar.render.test.ts +0 -44
  124. package/src/components/search-chip-input.render.test.ts +0 -71
  125. package/src/components/search-conversion-notice.stories.tsx +0 -6
  126. package/src/components/search-conversion-notice.tsx +3 -9
  127. package/src/components/search-conversion.render.test.ts +0 -52
  128. package/src/components/search-conversion.ts +2 -18
  129. package/src/components/search-result-row.tsx +5 -26
  130. package/src/components/search-results.render.test.ts +0 -68
  131. package/src/components/search-results.stories.tsx +0 -30
  132. package/src/components/search-results.tsx +1 -1
  133. package/src/components/security-select.render.test.ts +1 -14
  134. package/src/components/selection-top-bar.render.test.ts +0 -180
  135. package/src/components/selection-wizard-fixtures.ts +0 -2
  136. package/src/components/selection-wizard.render.test.ts +7 -212
  137. package/src/components/selection-wizard.stories.tsx +24 -164
  138. package/src/components/selection-wizard.tsx +10 -86
  139. package/src/components/self-update.render.test.ts +0 -113
  140. package/src/components/sender-trust-indicator.render.test.ts +0 -30
  141. package/src/components/shell-top-bar.render.test.ts +0 -31
  142. package/src/components/shell-top-bar.stories.tsx +7 -0
  143. package/src/components/shell-top-bar.tsx +11 -2
  144. package/src/components/slide-panel.render.test.ts +0 -18
  145. package/src/components/suggest-list.render.test.ts +0 -6
  146. package/src/components/swipeable-row.gesture.test.ts +85 -40
  147. package/src/components/swipeable-row.render.test.ts +0 -7
  148. package/src/components/swipeable-row.stories.tsx +3 -2
  149. package/src/components/swipeable-row.tsx +65 -144
  150. package/src/components/sync-warning-fixtures.ts +22 -0
  151. package/src/components/sync-warning-report.ts +38 -0
  152. package/src/components/sync-warning-row.tsx +51 -0
  153. package/src/components/sync-warning-section.render.test.ts +19 -0
  154. package/src/components/sync-warning-section.stories.tsx +94 -0
  155. package/src/components/sync-warning-section.tsx +56 -0
  156. package/src/components/touch-list-body.render.test.ts +0 -29
  157. package/src/components/wizard.render.test.ts +0 -22
  158. package/src/filter-presets.test.ts +1 -107
  159. package/src/index.ts +40 -34
  160. package/src/lib/compose-language.test.ts +0 -11
  161. package/src/lib/email-render-treatment.test.ts +0 -21
  162. package/src/lib/keymap.test.ts +0 -32
  163. package/src/lib/property-prefill.ts +2 -2
  164. package/src/lib/search-rule.test.ts +0 -4
  165. package/src/lib/search-rule.ts +0 -9
  166. package/src/lib/sender-derivation.ts +3 -5
  167. package/src/lib/swipe-config.ts +11 -0
  168. package/src/lib/use-list-cursor.test.ts +0 -7
  169. package/src/lib/use-list-keyboard.test.ts +0 -14
  170. package/src/lib/use-long-press.test.ts +53 -36
  171. package/src/lib/use-long-press.ts +62 -56
  172. package/src/lib/use-modal-focus.test.ts +0 -20
  173. package/src/lib/use-selection.hook.test.ts +0 -13
  174. package/src/lib/use-selection.test.ts +0 -101
  175. package/src/lib/use-swipe-navigation.test.ts +162 -0
  176. package/src/lib/use-swipe-navigation.ts +90 -0
  177. package/src/lib/wizard-steps.test.ts +18 -79
  178. package/src/lib/wizard-steps.ts +27 -67
  179. package/src/mcp-pages.ts +36 -0
  180. package/src/category-presentation.test.ts +0 -76
  181. package/src/components/account-service-status.render.test.ts +0 -82
  182. package/src/components/app-password-hint.render.test.ts +0 -23
  183. package/src/components/app-top-bar.render.test.ts +0 -59
  184. package/src/components/auth-card.render.test.ts +0 -24
  185. package/src/components/auth-footer.render.test.ts +0 -17
  186. package/src/components/auth-hero.render.test.ts +0 -31
  187. package/src/components/auto-moved-badge.render.test.ts +0 -65
  188. package/src/components/button.render.test.ts +0 -29
  189. package/src/components/calendar-event-chip.render.test.ts +0 -67
  190. package/src/components/calendar-parse-badge.render.test.ts +0 -40
  191. package/src/components/checkbox.render.test.ts +0 -65
  192. package/src/components/compose-form-shell.render.test.ts +0 -106
  193. package/src/components/dialog.render.test.ts +0 -51
  194. package/src/components/field-label.render.test.ts +0 -16
  195. package/src/components/mail-action-toolbar.render.test.ts +0 -43
  196. package/src/components/nav-link-surface.render.test.ts +0 -126
  197. package/src/components/new-folder-action.render.test.ts +0 -44
  198. package/src/components/pane-header.render.test.ts +0 -22
  199. package/src/components/pull-to-refresh.render.test.ts +0 -46
  200. package/src/components/recurrence-scope-prompt.render.test.ts +0 -36
  201. package/src/components/rescue-banner.render.test.ts +0 -32
  202. package/src/components/rescue-candidate-row.render.test.ts +0 -68
  203. package/src/components/search-token-chip.render.test.ts +0 -42
  204. package/src/components/self-update-dot.tsx +0 -32
  205. package/src/components/settings-primitives.render.test.ts +0 -160
  206. package/src/lib/email-layout-clamp.test.ts +0 -139
  207. package/src/lib/label-color.test.ts +0 -25
  208. package/src/lib/semantic-off.ts +0 -20
  209. package/src/stories-viewport-globals.test.ts +0 -77
@@ -1,11 +1,6 @@
1
1
  import assert from "node:assert/strict";
2
2
  import { describe, it } from "node:test";
3
- import {
4
- briefFilterConfig,
5
- type FilterAccount,
6
- flaggedFilterConfig,
7
- inboxFilterConfig,
8
- } from "./filter-presets.js";
3
+ import { briefFilterConfig, type FilterAccount } from "./filter-presets.js";
9
4
 
10
5
  const accounts: FilterAccount[] = [
11
6
  { id: "all", label: "All", active: true },
@@ -14,31 +9,6 @@ const accounts: FilterAccount[] = [
14
9
  ];
15
10
 
16
11
  describe("briefFilterConfig", () => {
17
- it("offers the message categories with a leading All", () => {
18
- const { categories } = briefFilterConfig();
19
- assert.equal(categories[0]?.id, "all");
20
- assert.deepEqual(
21
- categories.map((c) => c.id),
22
- [
23
- "all",
24
- "personal",
25
- "uncategorized",
26
- "transactional",
27
- "newsletter",
28
- "marketing",
29
- "social",
30
- "automated",
31
- ],
32
- );
33
- });
34
-
35
- it("offers the BriefSections chip set", () => {
36
- assert.deepEqual(
37
- briefFilterConfig().filters.map((f) => f.id),
38
- ["unread", "attachment", "contacts", "today"],
39
- );
40
- });
41
-
42
12
  it("includes the accounts source group when more than one account", () => {
43
13
  const { sources } = briefFilterConfig(accounts);
44
14
  assert.deepEqual(
@@ -52,79 +22,3 @@ describe("briefFilterConfig", () => {
52
22
  assert.equal(briefFilterConfig().sources, undefined);
53
23
  });
54
24
  });
55
-
56
- describe("inboxFilterConfig", () => {
57
- it("offers the same message categories as the brief", () => {
58
- assert.deepEqual(
59
- inboxFilterConfig().categories.map((c) => c.id),
60
- briefFilterConfig().categories.map((c) => c.id),
61
- );
62
- });
63
-
64
- it("adds Has attachment to Unread and Starred", () => {
65
- assert.deepEqual(
66
- inboxFilterConfig().filters.map((f) => f.id),
67
- ["unread", "flagged", "attachment"],
68
- );
69
- });
70
-
71
- it("labels the IMAP \\Flagged filter 'Starred'", () => {
72
- assert.deepEqual(
73
- inboxFilterConfig().filters.map((f) => f.label),
74
- ["Unread", "Starred", "Has attachment"],
75
- );
76
- });
77
-
78
- it("never offers an accounts source group", () => {
79
- assert.equal(inboxFilterConfig().sources, undefined);
80
- });
81
- });
82
-
83
- describe("flaggedFilterConfig", () => {
84
- it("offers the same message categories as the brief", () => {
85
- assert.deepEqual(
86
- flaggedFilterConfig().categories.map((c) => c.id),
87
- briefFilterConfig().categories.map((c) => c.id),
88
- );
89
- });
90
-
91
- it("offers Unread and Has attachment, never the redundant Flagged", () => {
92
- assert.deepEqual(
93
- flaggedFilterConfig().filters.map((f) => f.id),
94
- ["unread", "attachment"],
95
- );
96
- });
97
-
98
- it("never offers an accounts source group", () => {
99
- assert.equal(flaggedFilterConfig().sources, undefined);
100
- });
101
- });
102
-
103
- describe("the Unclassified category", () => {
104
- it("is offered by every shipped preset", () => {
105
- for (const preset of [
106
- briefFilterConfig(),
107
- inboxFilterConfig(),
108
- flaggedFilterConfig(),
109
- ]) {
110
- assert.equal(
111
- preset.categories.some((c) => c.id === "uncategorized"),
112
- true,
113
- );
114
- }
115
- });
116
-
117
- it("follows Personal, the order the brief already uses", () => {
118
- const ids = inboxFilterConfig().categories.map((c) => c.id);
119
- assert.equal(ids.indexOf("uncategorized"), ids.indexOf("personal") + 1);
120
- });
121
-
122
- it("carries its own label and tone, never personal's (#45)", () => {
123
- const categories = briefFilterConfig().categories;
124
- const unclassified = categories.find((c) => c.id === "uncategorized");
125
- const personal = categories.find((c) => c.id === "personal");
126
- assert.equal(unclassified?.label, "Unclassified");
127
- assert.notEqual(unclassified?.label, personal?.label);
128
- assert.notEqual(unclassified?.tone, personal?.tone);
129
- });
130
- });
package/src/index.ts CHANGED
@@ -1,7 +1,3 @@
1
- // Re-exported so a consumer can compose useLongPress's longPressProps with its
2
- // own DOM props (its pressProps include an onClick react-aria uses for its
3
- // own bookkeeping; a plain object spread silently drops one side's handler
4
- // instead of chaining them) without importing react-aria directly.
5
1
  export { mergeProps } from "react-aria";
6
2
  export {
7
3
  type BriefCategoryFilter,
@@ -104,6 +100,7 @@ export { AppTopBar, type AppTopBarProps } from "./components/app-top-bar.js";
104
100
  export {
105
101
  type AttachmentDownloadState,
106
102
  type AttachmentItem,
103
+ type AttachmentKind,
107
104
  AttachmentList,
108
105
  type AttachmentListProps,
109
106
  } from "./components/attachment-list.js";
@@ -115,6 +112,10 @@ export {
115
112
  RsvpBadge,
116
113
  type RsvpBadgeProps,
117
114
  } from "./components/attendee-row.js";
115
+ export {
116
+ AttentionDot,
117
+ type AttentionDotProps,
118
+ } from "./components/attention-dot.js";
118
119
  export { AuthCard, type AuthCardProps } from "./components/auth-card.js";
119
120
  export {
120
121
  AuthFooter,
@@ -309,6 +310,11 @@ export {
309
310
  ConfirmDialog,
310
311
  type ConfirmDialogProps,
311
312
  } from "./components/confirm-dialog.js";
313
+ export {
314
+ DropdownMenu,
315
+ DropdownMenuItem,
316
+ DropdownMenuSeparator,
317
+ } from "./components/DropdownMenu.js";
312
318
  export {
313
319
  DangerZoneSection,
314
320
  type DangerZoneSectionProps,
@@ -318,6 +324,15 @@ export {
318
324
  DialogBackdrop,
319
325
  type DialogBackdropProps,
320
326
  } from "./components/dialog-backdrop.js";
327
+ export { EmptyState } from "./components/EmptyState.js";
328
+ export {
329
+ ErrorBanner,
330
+ type ErrorBannerAction,
331
+ type ErrorBannerEntry,
332
+ type ErrorBannerSeverity,
333
+ } from "./components/ErrorBanner.js";
334
+ export { ErrorBannerStack } from "./components/ErrorBannerStack.js";
335
+ export { ErrorState, formatErrorMessage } from "./components/ErrorState.js";
321
336
  export type {
322
337
  AuthorDeclarations,
323
338
  EmailFrameVariant,
@@ -357,8 +372,6 @@ export {
357
372
  type ClauseDraft,
358
373
  ClauseEditor,
359
374
  type ClauseEditorProps,
360
- WidenChip,
361
- type WidenChipProps,
362
375
  } from "./components/filter-clause-chip.js";
363
376
  export {
364
377
  FilterPreviewCount,
@@ -379,27 +392,22 @@ export {
379
392
  demoSubjectPrefillRule,
380
393
  demoVocabularyRule,
381
394
  type FilterRule,
382
- hasActiveWiden,
383
395
  hasMatcher,
384
396
  type LabelOption,
385
397
  type MatchOperator,
386
398
  matchesBodyText,
387
399
  matchJoinWord,
388
- matchModeHint,
389
- matchModeLabel,
390
400
  matchOperatorLabel,
401
+ PROPERTIES_MATCH_HINT,
391
402
  type PreviewCount,
392
403
  previewCountSummary,
393
404
  previewSettledReason,
394
405
  type RuleClause,
395
- type RuleMatchMode,
396
406
  type RuleScope,
397
- type RuleWiden,
398
407
  ruleBlockedCopy,
399
408
  scopeLabel,
400
409
  UNCOUNTABLE_PREDICATE_REASON,
401
410
  unreadableBodyClauses,
402
- widenChipLabel,
403
411
  } from "./components/filter-rule.js";
404
412
  export {
405
413
  type ClauseEditState,
@@ -491,14 +499,9 @@ export {
491
499
  type IntelligencePanelProps,
492
500
  type IntelligenceQuickActions,
493
501
  type IntelligenceTabId,
494
- type MatchedChunk,
495
502
  type SenderFlagsIntel,
496
503
  type SenderIntel,
497
504
  type SenderTrustLevel,
498
- type SimilarMessageIntel,
499
- type SimilarMessageLinkComponent,
500
- type SimilarMessageLinkProps,
501
- type SimilarState,
502
505
  } from "./components/intelligence-panel.js";
503
506
  export { IntelligenceSection } from "./components/intelligence-section.js";
504
507
  export {
@@ -510,6 +513,7 @@ export {
510
513
  type IsolatedEmailFrameProps,
511
514
  measureContentAxis,
512
515
  } from "./components/isolated-email-frame.js";
516
+ export { KeyboardShortcutsModal } from "./components/KeyboardShortcutsModal.js";
513
517
  export { Kbd, type KbdProps } from "./components/kbd.js";
514
518
  export {
515
519
  KeyboardHintBar,
@@ -551,6 +555,10 @@ export {
551
555
  MessageListLoading,
552
556
  MessageListLoadingMore,
553
557
  } from "./components/message-list-state.js";
558
+ export {
559
+ MessageReportDialog,
560
+ type MessageReportDialogProps,
561
+ } from "./components/message-report-dialog.js";
554
562
  export {
555
563
  type BriefRowComponent,
556
564
  ComfortableRow,
@@ -634,10 +642,6 @@ export {
634
642
  PullToRefresh,
635
643
  type PullToRefreshProps,
636
644
  } from "./components/pull-to-refresh.js";
637
- export {
638
- QuarantineBugDialog,
639
- type QuarantineBugDialogProps,
640
- } from "./components/quarantine-bug-dialog.js";
641
645
  export {
642
646
  QuarantineEntryRow,
643
647
  type QuarantineEntryRowProps,
@@ -749,7 +753,6 @@ export {
749
753
  type SearchFieldSuggest,
750
754
  } from "./components/search-chip-input.js";
751
755
  export {
752
- DROPPED_SEMANTIC_COPY,
753
756
  droppedFacetsCopy,
754
757
  hasConversionNotice,
755
758
  makeFilterBlockedCopy,
@@ -845,10 +848,6 @@ export {
845
848
  SelfUpdateConfirmDialog,
846
849
  type SelfUpdateConfirmDialogProps,
847
850
  } from "./components/self-update-confirm-dialog.js";
848
- export {
849
- UpdateAvailableDot,
850
- type UpdateAvailableDotProps,
851
- } from "./components/self-update-dot.js";
852
851
  export {
853
852
  SelfUpdateProgressOverlay,
854
853
  type SelfUpdateProgressOverlayProps,
@@ -904,6 +903,20 @@ export {
904
903
  SwipeableRow,
905
904
  type SwipePeek,
906
905
  } from "./components/swipeable-row.js";
906
+ export { syncWarningDemoEntries } from "./components/sync-warning-fixtures.js";
907
+ export {
908
+ formatSyncWarningReport,
909
+ type SyncWarningEntry,
910
+ syncWarningIssueTitle,
911
+ } from "./components/sync-warning-report.js";
912
+ export {
913
+ SyncWarningRow,
914
+ type SyncWarningRowProps,
915
+ } from "./components/sync-warning-row.js";
916
+ export {
917
+ SyncWarningSection,
918
+ type SyncWarningSectionProps,
919
+ } from "./components/sync-warning-section.js";
907
920
  export { TouchListBody } from "./components/touch-list.js";
908
921
  export {
909
922
  CheckRow,
@@ -1134,12 +1147,6 @@ export {
1134
1147
  type SearchConversion,
1135
1148
  searchConversionNotice,
1136
1149
  } from "./lib/search-rule.js";
1137
- export {
1138
- SEMANTIC_OFF_BUYS,
1139
- SEMANTIC_OFF_COMMAND,
1140
- SEMANTIC_OFF_TITLE,
1141
- semanticOffReason,
1142
- } from "./lib/semantic-off.js";
1143
1150
  export {
1144
1151
  collapsibleDomain,
1145
1152
  deriveSenderClauses,
@@ -1217,10 +1224,9 @@ export {
1217
1224
  type RunState,
1218
1225
  ruleRestrictionFor,
1219
1226
  runCopy,
1220
- type SampleEmptyReason,
1227
+ SAMPLE_EMPTY_COPY,
1221
1228
  type SelectionRestriction,
1222
1229
  type StepId,
1223
- sampleEmptyCopy,
1224
1230
  stepBlockedReason,
1225
1231
  stepIndex,
1226
1232
  stepLabel,
@@ -108,12 +108,6 @@ describe("browserSpellcheckHelp", () => {
108
108
  );
109
109
  assert.match(help, /^On iPhone and iPad the keyboard/);
110
110
  });
111
-
112
- it("never claims the app changes the dictionary", () => {
113
- for (const agent of ["Chrome/141", "Firefox/130", "Safari/605", "curl/8"]) {
114
- assert.doesNotMatch(browserSpellcheckHelp(agent), /this app|we /i);
115
- }
116
- });
117
111
  });
118
112
 
119
113
  describe("wrapWithLanguage", () => {
@@ -182,11 +176,6 @@ describe("unwrapLanguage", () => {
182
176
  });
183
177
 
184
178
  describe("COMPOSE_LANGUAGE_OPTIONS", () => {
185
- it("offers no tag twice", () => {
186
- const tags = COMPOSE_LANGUAGE_OPTIONS.map((option) => option.tag);
187
- assert.equal(new Set(tags).size, tags.length);
188
- });
189
-
190
179
  /**
191
180
  * Read against `franc-min`'s own trigram tables rather than against the list
192
181
  * that produced them: a code the detector has never heard of is a menu row
@@ -58,25 +58,4 @@ describe("classifyEmailRenderTreatment (#424)", () => {
58
58
  );
59
59
  }
60
60
  });
61
-
62
- test("framed and isPlain are always mutually exclusive", () => {
63
- const cases: Array<
64
- [Parameters<typeof classifyEmailRenderTreatment>[0], boolean]
65
- > = [
66
- ["newsletter", false],
67
- ["marketing", true],
68
- ["personal", false],
69
- ["personal", true],
70
- [undefined, false],
71
- [undefined, true],
72
- ];
73
- for (const [category, bg] of cases) {
74
- const t = classifyEmailRenderTreatment(category, bg);
75
- assert.notStrictEqual(
76
- t.framed,
77
- t.isPlain,
78
- `framed and isPlain must differ for (${category}, ${bg})`,
79
- );
80
- }
81
- });
82
61
  });
@@ -9,31 +9,11 @@ import {
9
9
  } from "./keymap.js";
10
10
 
11
11
  describe("keymap module", () => {
12
- test("exposes the documented groups in reading order", () => {
13
- const titles = KEY_HINT_GROUPS.map((g) => g.title);
14
- assert.deepStrictEqual(titles, [
15
- "Navigation",
16
- "Selection",
17
- "Actions",
18
- "Sender",
19
- "Go to",
20
- "View & global",
21
- ]);
22
- });
23
-
24
12
  test("keysForAction returns the first hint's tokens", () => {
25
13
  assert.deepStrictEqual(keysForAction("reply"), ["r"]);
26
14
  assert.deepStrictEqual(keysForAction("goBrief"), ["g", "b"]);
27
15
  });
28
16
 
29
- test("keysForAction is undefined for an action with no hint", () => {
30
- // `back` has a hint; a contrived missing lookup returns undefined.
31
- assert.strictEqual(
32
- keysForAction("totallyMissing" as Parameters<typeof keysForAction>[0]),
33
- undefined,
34
- );
35
- });
36
-
37
17
  test("tooltipForAction renders single keys, sequences and combos", () => {
38
18
  assert.strictEqual(tooltipForAction("reply"), "(r)");
39
19
  assert.strictEqual(tooltipForAction("goBrief"), "(g then b)");
@@ -76,16 +56,4 @@ describe("keymap module", () => {
76
56
  assert.ok(keysForAction(action), `${action} has keys`);
77
57
  }
78
58
  });
79
-
80
- test("every hint's action is a non-empty key list", () => {
81
- for (const group of KEY_HINT_GROUPS) {
82
- for (const hint of group.hints) {
83
- assert.ok(hint.keys.length > 0, `${hint.action} has keys`);
84
- assert.ok(
85
- hint.description.length > 0,
86
- `${hint.action} has a description`,
87
- );
88
- }
89
- }
90
- });
91
59
  });
@@ -2,8 +2,8 @@ import type { RuleClause } from "../components/filter-rule.js";
2
2
  import { deriveSenderClauses, distinctSenders } from "./sender-derivation.js";
3
3
 
4
4
  /**
5
- * The opening clauses for a rule matched on properties alone — no semantic
6
- * anchor (RFC 038 D2/D4). The selection is the only evidence available, so the
5
+ * The opening clauses for a rule matched on properties (RFC 038 D2). The
6
+ * selection is the only evidence available, so the
7
7
  * prefill reads it in the order the evidence is strongest:
8
8
  *
9
9
  * 1. One sender across the whole selection, or several that collapse to one
@@ -13,7 +13,6 @@ const conversion = (
13
13
  matchOperator: "all",
14
14
  droppedFacets: [],
15
15
  keptTerms: false,
16
- droppedSemantic: false,
17
16
  ...overrides,
18
17
  });
19
18
 
@@ -51,13 +50,11 @@ describe("searchConversionNotice", () => {
51
50
  keptTerms: true,
52
51
  scopedOut: { mailboxId: "mbx-archive", label: "Archive" },
53
52
  droppedFacets: [{ type: "isUnread", label: "Unread" }],
54
- droppedSemantic: true,
55
53
  }),
56
54
  );
57
55
  assert.deepEqual(notice, {
58
56
  scopedOutFolder: "Archive",
59
57
  droppedFacets: ["Unread"],
60
- droppedSemantic: true,
61
58
  });
62
59
  });
63
60
 
@@ -68,7 +65,6 @@ describe("searchConversionNotice", () => {
68
65
  assert.deepEqual(notice, {
69
66
  scopedOutFolder: undefined,
70
67
  droppedFacets: [],
71
- droppedSemantic: false,
72
68
  });
73
69
  });
74
70
  });
@@ -46,14 +46,6 @@ export interface SearchConversion {
46
46
  targetAccountId?: string;
47
47
  /** The search carried free-text terms, kept as a `HasWords` clause. */
48
48
  keptTerms: boolean;
49
- /**
50
- * The filter this conversion builds is always literal-only — free text has no
51
- * anchor message for a semantic widen — so the search's semantic "similar mail"
52
- * reach is dropped whenever the search had one (RFC 038 D5). True exactly when
53
- * free text was kept AND the search surfaced semantically-similar mail; on a
54
- * deployment with no semantic reach there was nothing to drop, so no note.
55
- */
56
- droppedSemantic: boolean;
57
49
  }
58
50
 
59
51
  /**
@@ -74,5 +66,4 @@ export const searchConversionNotice = (
74
66
  ): SearchConversionNotice => ({
75
67
  scopedOutFolder: conversion.scopedOut?.label,
76
68
  droppedFacets: conversion.droppedFacets.map((facet) => facet.label),
77
- droppedSemantic: conversion.droppedSemantic,
78
69
  });
@@ -1,11 +1,9 @@
1
1
  /**
2
2
  * Senders in a selection turned into clauses (RFC 038 D2).
3
3
  *
4
- * The widen fallback for a deployment that ships no vector pipeline reaches for
5
- * this: the semantic anchor matches nothing there, so a widen degrades to the
6
- * literal vocabulary RFC 031 already matches vector-free — one `From` clause per
7
- * distinct sender, or a single `FromDomain` clause when they all sit on one
8
- * registrable domain. The same predicate matches at index time (RFC 034), so a
4
+ * The literal vocabulary RFC 031 matches — one `From` clause per distinct
5
+ * sender, or a single `FromDomain` clause when they all sit on one registrable
6
+ * domain. The same predicate matches at index time (RFC 034), so a
9
7
  * standing filter built from it keeps working on future mail.
10
8
  */
11
9
 
@@ -0,0 +1,11 @@
1
+ export const SWIPE_AXIS_THRESHOLD = 10;
2
+
3
+ export const SWIPE_DRAG_CONFIG = {
4
+ axisThreshold: {
5
+ mouse: SWIPE_AXIS_THRESHOLD,
6
+ touch: SWIPE_AXIS_THRESHOLD,
7
+ pen: SWIPE_AXIS_THRESHOLD,
8
+ },
9
+ swipe: { distance: 60, velocity: 0.3, duration: 600 },
10
+ pointer: { keys: false, capture: false },
11
+ } as const;
@@ -90,13 +90,6 @@ describe("useListCursor — the roving cursor", () => {
90
90
  act(() => cursor().focusLast());
91
91
  assert.equal(cursor().focusedMessageId, undefined);
92
92
  });
93
-
94
- it("asks for DOM focus on its own moves, not on a pointer move", () => {
95
- const cursor = mountCursor({ initialFocusedId: "m1" });
96
- act(() => cursor().focusNext());
97
- assert.equal(cursor().pendingDomFocusRef.current, "m2");
98
- assert.equal(cursor().cursorMovedByPointerRef.current, false);
99
- });
100
93
  });
101
94
 
102
95
  describe("useListCursor — selection", () => {
@@ -102,20 +102,6 @@ afterEach(() => {
102
102
  });
103
103
 
104
104
  describe("useListKeyboard", () => {
105
- it("registers the keys the footer may offer and no others", () => {
106
- assert.deepEqual(Object.keys(list.keyboard.handlers).sort(), [
107
- "back",
108
- "extendSelectDown",
109
- "extendSelectUp",
110
- "focusFirst",
111
- "focusLast",
112
- "focusNext",
113
- "focusPrevious",
114
- "selectAll",
115
- "toggleSelect",
116
- ]);
117
- });
118
-
119
105
  it("moves the cursor the pane draws", () => {
120
106
  press("j");
121
107
  press("j");