@remit/ui 0.0.5 → 0.0.6
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.
package/package.json
CHANGED
|
@@ -161,6 +161,7 @@ export interface NavLinkRenderProps {
|
|
|
161
161
|
export type NavLinkComponent = (props: NavLinkRenderProps) => ReactElement;
|
|
162
162
|
|
|
163
163
|
export type ThreadCategory =
|
|
164
|
+
| "uncategorized"
|
|
164
165
|
| "personal"
|
|
165
166
|
| "newsletter"
|
|
166
167
|
| "marketing"
|
|
@@ -182,6 +183,7 @@ export const briefCategories: ReadonlyArray<{
|
|
|
182
183
|
}> = [
|
|
183
184
|
{ id: "all", label: "All" },
|
|
184
185
|
{ id: "personal", label: "Personal" },
|
|
186
|
+
{ id: "uncategorized", label: "Unclassified" },
|
|
185
187
|
{ id: "newsletter", label: "Newsletters" },
|
|
186
188
|
{ id: "marketing", label: "Marketing" },
|
|
187
189
|
{ id: "automated", label: "Automated" },
|
|
@@ -319,6 +321,7 @@ export const categoryTone: Record<
|
|
|
319
321
|
ThreadCategory,
|
|
320
322
|
"neutral" | "accent" | "positive" | "warning"
|
|
321
323
|
> = {
|
|
324
|
+
uncategorized: "neutral",
|
|
322
325
|
personal: "accent",
|
|
323
326
|
newsletter: "neutral",
|
|
324
327
|
marketing: "neutral",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
2
|
|
|
3
3
|
export type MessageCategory =
|
|
4
|
+
| "uncategorized"
|
|
4
5
|
| "personal"
|
|
5
6
|
| "newsletter"
|
|
6
7
|
| "marketing"
|
|
@@ -15,8 +16,14 @@ export type MessageCategory =
|
|
|
15
16
|
* so it has no entry here. `transactional` shows as "receipt" and `automated`
|
|
16
17
|
* shows as "notification" — wording chosen so the badge reads naturally next
|
|
17
18
|
* to a subject line.
|
|
19
|
+
*
|
|
20
|
+
* `uncategorized` does render a badge. It used to be displayed as `personal`,
|
|
21
|
+
* which made "the classifier never ran on this message" indistinguishable from
|
|
22
|
+
* "the classifier decided this is a person writing to you" — a classification
|
|
23
|
+
* gap presented as a full personal inbox (issue #45).
|
|
18
24
|
*/
|
|
19
25
|
const CATEGORY_LABELS: Record<Exclude<MessageCategory, "personal">, string> = {
|
|
26
|
+
uncategorized: "unclassified",
|
|
20
27
|
newsletter: "newsletter",
|
|
21
28
|
marketing: "marketing",
|
|
22
29
|
automated: "notification",
|