@andrioid/paseo-attention-span 0.1.2 → 0.2.0
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/OVERVIEW.md +116 -42
- package/README.md +12 -12
- package/client/attention-screen.tsx +232 -175
- package/client/card.tsx +141 -0
- package/client/coverage-settings.tsx +73 -20
- package/client/data.ts +2 -1
- package/client/icons.ts +3 -0
- package/client/next-up.tsx +266 -62
- package/client/session-menu.ts +45 -0
- package/client/sessions.ts +10 -8
- package/client/sheet.tsx +75 -3
- package/client/ui.tsx +91 -9
- package/docs/screenshots/desktop-dark-doing.png +0 -0
- package/docs/screenshots/desktop-dark-next-up.png +0 -0
- package/docs/screenshots/phone-dark-doing.png +0 -0
- package/index.server.ts +21 -19
- package/package.json +1 -1
- package/paseo-plugin.json +4 -2
- package/server/actions.ts +15 -1
- package/server/classify.ts +21 -13
- package/server/fixture.ts +34 -14
- package/server/github-types.ts +5 -1
- package/server/queries.ts +44 -13
- package/server/service.ts +90 -16
- package/server/setup.ts +12 -5
- package/server/store.ts +18 -2
- package/server/view.ts +72 -1
- package/shared/attention.ts +34 -2
- package/shared/config.ts +20 -3
- package/shared/format.ts +16 -0
- package/shared/rpc.ts +19 -11
- package/shared/setup.ts +2 -0
package/client/card.tsx
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { TextInput } from "@getpaseo/plugin/client/ui";
|
|
2
|
+
import { type ReactNode, useState } from "react";
|
|
3
|
+
import { ActivityIndicator, Pressable, Text, View } from "react-native";
|
|
4
|
+
import type { Chip } from "../shared/attention";
|
|
5
|
+
import type { IconName } from "./icons";
|
|
6
|
+
import { type Anchor, Button, Meta, SplitButton, TablerIcon, toneColor, useStyles } from "./ui";
|
|
7
|
+
|
|
8
|
+
// Every card in every list has this anatomy; tabs fill it in with data and slots, not layout [ATT-05].
|
|
9
|
+
//
|
|
10
|
+
// [mark] title (2 lines at most) [actions] ← desktop
|
|
11
|
+
// place · when · signals
|
|
12
|
+
// extra (slot)
|
|
13
|
+
// [actions] ← phone, labelled
|
|
14
|
+
// confirm bar
|
|
15
|
+
//
|
|
16
|
+
// Colors come only from tones, so a card can't pick a theme color that some themes render plain.
|
|
17
|
+
|
|
18
|
+
export type Tone = Chip["tone"];
|
|
19
|
+
|
|
20
|
+
export interface CardAction {
|
|
21
|
+
label: string;
|
|
22
|
+
icon: IconName;
|
|
23
|
+
onPress: () => void;
|
|
24
|
+
// Defaults to the label.
|
|
25
|
+
accessibilityLabel?: string;
|
|
26
|
+
// ▾ beside it, for the choices around it: a split button [SES-03].
|
|
27
|
+
menu?: { label: string; onPress: (anchor: Anchor | undefined) => void };
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ConfirmSpec {
|
|
31
|
+
text: string;
|
|
32
|
+
// A comment field whose text each choice receives.
|
|
33
|
+
comment?: boolean;
|
|
34
|
+
choices: { label: string; icon: IconName; solid?: boolean; onConfirm: (comment: string) => void }[];
|
|
35
|
+
onCancel: () => void;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface CardProps {
|
|
39
|
+
mark: { icon: IconName; tone: Tone };
|
|
40
|
+
title: string;
|
|
41
|
+
// "repo #number", then when it happened, then signals [ATT-05].
|
|
42
|
+
meta: { place: string; when?: string; signals: Chip[] };
|
|
43
|
+
// Defaults to "<title>, more".
|
|
44
|
+
accessibilityLabel?: string;
|
|
45
|
+
// Tapping the card opens its sheet [ATT-06].
|
|
46
|
+
onOpen: () => void;
|
|
47
|
+
// The labelled main action; secondary ones are icon-only (⋯, copy).
|
|
48
|
+
primary?: CardAction;
|
|
49
|
+
secondary: CardAction[];
|
|
50
|
+
// "working…" in place of the actions while a GitHub change runs.
|
|
51
|
+
busy?: boolean;
|
|
52
|
+
// Content only some lists have: tags, a quote, a stack line.
|
|
53
|
+
extra?: ReactNode;
|
|
54
|
+
confirm?: ConfirmSpec | null;
|
|
55
|
+
// Sheets and pickers opened from the card.
|
|
56
|
+
overlay?: ReactNode;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CardList({ children }: { children: ReactNode }) {
|
|
60
|
+
const styles = useStyles();
|
|
61
|
+
return <View style={styles.card}>{children}</View>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CardRow({ first, mark, title, meta, accessibilityLabel, onOpen, primary, secondary, busy, extra, confirm, overlay }: CardProps & { first: boolean }) {
|
|
65
|
+
const styles = useStyles();
|
|
66
|
+
const actions = (
|
|
67
|
+
<View style={styles.wrap}>
|
|
68
|
+
{primary?.menu ? (
|
|
69
|
+
<SplitButton
|
|
70
|
+
label={primary.label}
|
|
71
|
+
accessibilityLabel={primary.accessibilityLabel}
|
|
72
|
+
icon={primary.icon}
|
|
73
|
+
busy={busy}
|
|
74
|
+
onPress={primary.onPress}
|
|
75
|
+
menuLabel={primary.menu.label}
|
|
76
|
+
onMenu={primary.menu.onPress}
|
|
77
|
+
/>
|
|
78
|
+
) : primary ? (
|
|
79
|
+
<Button label={primary.label} accessibilityLabel={primary.accessibilityLabel} icon={primary.icon} variant="calm" busy={busy} onPress={primary.onPress} />
|
|
80
|
+
) : busy ? (
|
|
81
|
+
<ActivityIndicator size="small" color={styles.c.foregroundMuted} />
|
|
82
|
+
) : null}
|
|
83
|
+
{secondary.map((action) => (
|
|
84
|
+
<Button key={action.accessibilityLabel ?? action.label} icon={action.icon} variant="ghost" accessibilityLabel={action.accessibilityLabel ?? action.label} onPress={action.onPress} />
|
|
85
|
+
))}
|
|
86
|
+
</View>
|
|
87
|
+
);
|
|
88
|
+
return (
|
|
89
|
+
<View style={first ? null : styles.divider}>
|
|
90
|
+
<View style={styles.item}>
|
|
91
|
+
<Mark {...mark} />
|
|
92
|
+
<View style={styles.body}>
|
|
93
|
+
<Pressable accessibilityRole="button" accessibilityLabel={accessibilityLabel ?? `${title}, more`} onPress={onOpen} style={{ gap: 6 }}>
|
|
94
|
+
<Text style={styles.title} numberOfLines={2}>
|
|
95
|
+
{title}
|
|
96
|
+
</Text>
|
|
97
|
+
<Meta facts={meta.when ? [meta.place, meta.when] : [meta.place]} chips={meta.signals} />
|
|
98
|
+
{extra}
|
|
99
|
+
</Pressable>
|
|
100
|
+
{/* On phones the actions sit under the text, labelled, so mixed actions stay readable. */}
|
|
101
|
+
{styles.compact ? actions : null}
|
|
102
|
+
{confirm ? <ConfirmBar {...confirm} /> : null}
|
|
103
|
+
</View>
|
|
104
|
+
{styles.compact ? null : actions}
|
|
105
|
+
</View>
|
|
106
|
+
{overlay}
|
|
107
|
+
</View>
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// What the card is, as an icon on a softly tinted square.
|
|
112
|
+
export function Mark({ icon, tone }: { icon: IconName; tone: Tone }) {
|
|
113
|
+
const styles = useStyles();
|
|
114
|
+
const color = toneColor(styles, tone);
|
|
115
|
+
return (
|
|
116
|
+
<View style={{ width: 30, height: 30, borderRadius: 8, alignItems: "center", justifyContent: "center" }}>
|
|
117
|
+
<View style={{ position: "absolute", top: 0, left: 0, right: 0, bottom: 0, borderRadius: 8, backgroundColor: color, opacity: 0.16 }} />
|
|
118
|
+
<TablerIcon name={icon} size={17} color={color} />
|
|
119
|
+
</View>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// A change on GitHub asks first, on the card [SAFE-01].
|
|
124
|
+
export function ConfirmBar({ text, comment, choices, onCancel }: ConfirmSpec) {
|
|
125
|
+
const styles = useStyles();
|
|
126
|
+
const [value, setValue] = useState("");
|
|
127
|
+
return (
|
|
128
|
+
<View style={styles.panel}>
|
|
129
|
+
<Text style={styles.text}>{text}</Text>
|
|
130
|
+
{comment ? (
|
|
131
|
+
<TextInput style={styles.input} placeholder="Closing comment (optional)" placeholderTextColor={styles.c.foregroundMuted} value={value} onChangeText={setValue} multiline />
|
|
132
|
+
) : null}
|
|
133
|
+
<View style={styles.wrap}>
|
|
134
|
+
{choices.map((choice) => (
|
|
135
|
+
<Button key={choice.label} label={choice.label} icon={choice.icon} variant={choice.solid ? "solid" : "plain"} onPress={() => choice.onConfirm(value)} />
|
|
136
|
+
))}
|
|
137
|
+
<Button label="Cancel" variant="ghost" onPress={onCancel} />
|
|
138
|
+
</View>
|
|
139
|
+
</View>
|
|
140
|
+
);
|
|
141
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PluginSurfaceProps, useRpc } from "@getpaseo/plugin/client";
|
|
2
|
-
import { SettingsAction, SettingsCard, SettingsRow, SettingsSection, TextInput } from "@getpaseo/plugin/client/ui";
|
|
2
|
+
import { SettingsAction, SettingsCard, SettingsRow, SettingsSection, SettingsSelect, SettingsSwitch, TextInput } from "@getpaseo/plugin/client/ui";
|
|
3
3
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { Text, View } from "react-native";
|
|
@@ -9,8 +9,12 @@ import { VIEW_QUERY_KEY } from "./data";
|
|
|
9
9
|
import { Button, StylesProvider, useStyles } from "./ui";
|
|
10
10
|
|
|
11
11
|
const COVERAGE_QUERY_KEY = ["attention-span", "coverage"] as const;
|
|
12
|
+
const MY_ORGS_QUERY_KEY = ["attention-span", "my-orgs"] as const;
|
|
13
|
+
// A caption belongs to the card above it, so it sits closer to that card than to the next heading.
|
|
14
|
+
const CAPTION = { marginTop: -24, marginBottom: 16 };
|
|
12
15
|
|
|
13
|
-
// Settings → Plugins → Attention Span: which orgs and repos the lists cover,
|
|
16
|
+
// Settings → Plugins → Attention Span: which orgs and repos the lists cover, and where Next up looks,
|
|
17
|
+
// saved to config.json [SRC-02, NXT-04].
|
|
14
18
|
export function CoverageSettings({ theme, layout }: PluginSurfaceProps) {
|
|
15
19
|
return (
|
|
16
20
|
<StylesProvider theme={theme} compact={layout.compact}>
|
|
@@ -24,6 +28,7 @@ function Coverage() {
|
|
|
24
28
|
const queryClient = useQueryClient();
|
|
25
29
|
const fetchCoverage = useRpc(rpc.getCoverage);
|
|
26
30
|
const save = useRpc(rpc.setCoverage);
|
|
31
|
+
const saveNextUp = useRpc(rpc.setNextUpSources);
|
|
27
32
|
const coverage = useQuery({ queryKey: COVERAGE_QUERY_KEY, queryFn: () => fetchCoverage({}) });
|
|
28
33
|
const [saving, setSaving] = useState(false);
|
|
29
34
|
const [error, setError] = useState<string | null>(null);
|
|
@@ -36,7 +41,7 @@ function Coverage() {
|
|
|
36
41
|
</SettingsCard>
|
|
37
42
|
</SettingsSection>
|
|
38
43
|
);
|
|
39
|
-
const { orgs, repos } = coverage.data;
|
|
44
|
+
const { orgs, repos, nextUp } = coverage.data;
|
|
40
45
|
// A file that doesn't parse is left for the person who edited it.
|
|
41
46
|
if (coverage.data.error)
|
|
42
47
|
return (
|
|
@@ -48,11 +53,11 @@ function Coverage() {
|
|
|
48
53
|
);
|
|
49
54
|
|
|
50
55
|
// Saving refreshes the lists on the daemon; the screen picks them up on its next read.
|
|
51
|
-
async function
|
|
56
|
+
async function write(next: Partial<ConfigStatus>, send: () => Promise<unknown>) {
|
|
52
57
|
setSaving(true);
|
|
53
58
|
setError(null);
|
|
54
59
|
try {
|
|
55
|
-
await
|
|
60
|
+
await send();
|
|
56
61
|
queryClient.setQueryData(COVERAGE_QUERY_KEY, { ...coverage.data!, ...next });
|
|
57
62
|
await queryClient.invalidateQueries({ queryKey: VIEW_QUERY_KEY });
|
|
58
63
|
} catch (failure) {
|
|
@@ -61,6 +66,9 @@ function Coverage() {
|
|
|
61
66
|
setSaving(false);
|
|
62
67
|
}
|
|
63
68
|
}
|
|
69
|
+
const persist = (next: Pick<ConfigStatus, "orgs" | "repos">) => write(next, () => save(next));
|
|
70
|
+
const persistNextUp = (next: ConfigStatus["nextUp"]) => write({ nextUp: next }, () => saveNextUp(next));
|
|
71
|
+
const chosen = nextUp.mine || nextUp.orgs.length > 0 || nextUp.repos.length > 0;
|
|
64
72
|
|
|
65
73
|
return (
|
|
66
74
|
<View style={{ gap: 24 }}>
|
|
@@ -72,21 +80,33 @@ function Coverage() {
|
|
|
72
80
|
<AddRow kind="org" existing={orgs} disabled={saving} onAdd={(name) => persist({ orgs: [...orgs, name], repos })} />
|
|
73
81
|
</SettingsCard>
|
|
74
82
|
</SettingsSection>
|
|
75
|
-
<
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<Text style={styles.muted}>
|
|
83
|
+
<View style={{ gap: 8 }}>
|
|
84
|
+
<SettingsSection title="Repositories">
|
|
85
|
+
<SettingsCard>
|
|
86
|
+
{repos.map((repo) => (
|
|
87
|
+
<SettingsAction key={repo} label={repo} actionLabel="Remove" disabled={saving} onPress={() => void persist({ orgs, repos: repos.filter((other) => other !== repo) })} />
|
|
88
|
+
))}
|
|
89
|
+
<AddRow kind="repo" existing={repos} disabled={saving} onAdd={(name) => persist({ orgs, repos: [...repos, name] })} />
|
|
90
|
+
</SettingsCard>
|
|
91
|
+
</SettingsSection>
|
|
92
|
+
<Text style={[styles.muted, CAPTION]}>
|
|
86
93
|
{orgs.length || repos.length
|
|
87
|
-
? "Attention Span only shows pull requests and issues from the organizations and repositories above.
|
|
88
|
-
: "With none chosen, Attention Span shows everything on GitHub that involves you
|
|
94
|
+
? "Attention Span only shows pull requests and issues from the organizations and repositories above."
|
|
95
|
+
: "With none chosen, Attention Span shows everything on GitHub that involves you."}
|
|
96
|
+
</Text>
|
|
97
|
+
</View>
|
|
98
|
+
<View style={{ gap: 8 }}>
|
|
99
|
+
<NextUpSources value={nextUp} disabled={saving} onChange={persistNextUp} />
|
|
100
|
+
<Text style={[styles.muted, CAPTION]}>
|
|
101
|
+
{chosen
|
|
102
|
+
? "Next up suggests unclaimed issues from these."
|
|
103
|
+
: orgs.length || repos.length
|
|
104
|
+
? "None chosen: using the orgs and repos above."
|
|
105
|
+
: "None chosen: using your Paseo projects."}
|
|
89
106
|
</Text>
|
|
107
|
+
</View>
|
|
108
|
+
<View style={{ gap: 4 }}>
|
|
109
|
+
{error ? <Text style={styles.danger}>{error}</Text> : null}
|
|
90
110
|
{/* Until more moves here, point to the file for the rest. */}
|
|
91
111
|
<Text style={styles.muted}>Settings are not complete yet. Until then, check out your ~/.config/paseo-attention-span/config.json for more options.</Text>
|
|
92
112
|
</View>
|
|
@@ -94,8 +114,41 @@ function Coverage() {
|
|
|
94
114
|
);
|
|
95
115
|
}
|
|
96
116
|
|
|
117
|
+
// Where Next up looks [NXT-04]: my own repos, orgs I belong to, and single repos. Each is its own chip on Next up [NXT-09].
|
|
118
|
+
function NextUpSources({ value, disabled, onChange }: { value: ConfigStatus["nextUp"]; disabled: boolean; onChange: (next: ConfigStatus["nextUp"]) => Promise<void> }) {
|
|
119
|
+
const fetchOrgs = useRpc(rpc.myOrgs);
|
|
120
|
+
const myOrgs = useQuery({ queryKey: MY_ORGS_QUERY_KEY, queryFn: () => fetchOrgs({}) });
|
|
121
|
+
const choosable = (myOrgs.data?.orgs ?? []).filter((org) => !value.orgs.some((added) => added.toLowerCase() === org.toLowerCase()));
|
|
122
|
+
return (
|
|
123
|
+
<SettingsSection title="Next up">
|
|
124
|
+
<SettingsCard>
|
|
125
|
+
<SettingsSwitch label="My repos" value={value.mine} disabled={disabled} onValueChange={(mine) => void onChange({ ...value, mine })} />
|
|
126
|
+
{value.orgs.map((org) => (
|
|
127
|
+
<SettingsAction key={`org:${org}`} label={org} actionLabel="Remove" disabled={disabled} onPress={() => void onChange({ ...value, orgs: value.orgs.filter((other) => other !== org) })} />
|
|
128
|
+
))}
|
|
129
|
+
{value.repos.map((repo) => (
|
|
130
|
+
<SettingsAction key={`repo:${repo}`} label={repo} actionLabel="Remove" disabled={disabled} onPress={() => void onChange({ ...value, repos: value.repos.filter((other) => other !== repo) })} />
|
|
131
|
+
))}
|
|
132
|
+
{myOrgs.data && myOrgs.data.orgs.length === 0 ? (
|
|
133
|
+
<SettingsRow label="Add an organization" hint="You're not a member of any organizations" />
|
|
134
|
+
) : (
|
|
135
|
+
<SettingsSelect
|
|
136
|
+
label="Add an organization"
|
|
137
|
+
error={myOrgs.error ? (myOrgs.error as Error).message : null}
|
|
138
|
+
value=""
|
|
139
|
+
options={[{ label: myOrgs.isLoading ? "Loading…" : "Choose…", value: "" }, ...choosable.map((org) => ({ label: org, value: org }))]}
|
|
140
|
+
disabled={disabled || choosable.length === 0}
|
|
141
|
+
onValueChange={(org) => void (org && onChange({ ...value, orgs: [...value.orgs, org] }))}
|
|
142
|
+
/>
|
|
143
|
+
)}
|
|
144
|
+
<AddRow kind="repo" placeholder="owner/name" existing={value.repos} disabled={disabled} onAdd={(name) => onChange({ ...value, repos: [...value.repos, name] })} />
|
|
145
|
+
</SettingsCard>
|
|
146
|
+
</SettingsSection>
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
97
150
|
// Each name is checked on GitHub before it's saved; GitHub's exact name is what's kept.
|
|
98
|
-
function AddRow({ kind, existing, disabled, onAdd }: { kind: CoverageKind; existing: string[]; disabled: boolean; onAdd: (name: string) => Promise<void> }) {
|
|
151
|
+
function AddRow({ kind, placeholder, existing, disabled, onAdd }: { kind: CoverageKind; placeholder?: string; existing: string[]; disabled: boolean; onAdd: (name: string) => Promise<void> }) {
|
|
99
152
|
const styles = useStyles();
|
|
100
153
|
const check = useRpc(rpc.checkCoverage);
|
|
101
154
|
const [text, setText] = useState("");
|
|
@@ -130,7 +183,7 @@ function AddRow({ kind, existing, disabled, onAdd }: { kind: CoverageKind; exist
|
|
|
130
183
|
setText(value);
|
|
131
184
|
setError(null);
|
|
132
185
|
}}
|
|
133
|
-
placeholder={kind === "org" ? "acme" : "acme/shop"}
|
|
186
|
+
placeholder={placeholder ?? (kind === "org" ? "acme" : "acme/shop")}
|
|
134
187
|
placeholderTextColor={styles.c.foregroundMuted}
|
|
135
188
|
autoCapitalize="none"
|
|
136
189
|
autoCorrect={false}
|
package/client/data.ts
CHANGED
|
@@ -13,7 +13,8 @@ export function useAttention() {
|
|
|
13
13
|
const query = useQuery({
|
|
14
14
|
queryKey: VIEW_QUERY_KEY,
|
|
15
15
|
queryFn: () => fetchAttention({}),
|
|
16
|
-
|
|
16
|
+
// Sooner while a change waits on GitHub, so the list shows GitHub's own word on it soon after [FRESH-02].
|
|
17
|
+
refetchInterval: (query) => (query.state.data?.pending ? 10_000 : 60_000),
|
|
17
18
|
});
|
|
18
19
|
const setView = useCallback((view: AttentionView) => queryClient.setQueryData(VIEW_QUERY_KEY, view), [queryClient]);
|
|
19
20
|
// ⟳ fetches only the feed behind the tab I'm on.
|
package/client/icons.ts
CHANGED
|
@@ -37,8 +37,11 @@ export const ICONS = {
|
|
|
37
37
|
settings: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37c1 .608 2.296.07 2.572-1.065\"/><path d=\"M9 12a3 3 0 1 0 6 0a3 3 0 0 0-6 0\"/></g></svg>" },
|
|
38
38
|
reload: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M19.933 13.041a8 8 0 1 1-9.925-8.788c3.899-1 7.935 1.007 9.425 4.747M20 4v5h-5\"/></svg>" },
|
|
39
39
|
unclaim: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 7a4 4 0 1 0 8 0a4 4 0 0 0-8 0M6 21v-2a4 4 0 0 1 4-4h4c.348 0 .686.045 1.009.128M16 19h6\"/></svg>" },
|
|
40
|
+
filter: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 4h16v2.172a2 2 0 0 1-.586 1.414L15 12v7l-6 2v-8.5L4.52 7.572A2 2 0 0 1 4 6.227z\"/></svg>" },
|
|
40
41
|
square: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/></svg>" },
|
|
41
42
|
squareCheck: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm6 7l2 2l4-4\"/></svg>" },
|
|
43
|
+
chevronDown: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"/></svg>" },
|
|
44
|
+
check: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m5 12l5 5L20 7\"/></svg>" },
|
|
42
45
|
// Tabler message-ai: marks actions that start or continue an agent session.
|
|
43
46
|
agent: { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M8 9h8m-8 4h3.5m-1.506 6.804L8 21v-3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v4\"/><path d=\"M14 21v-4a2 2 0 1 1 4 0v4m-4-2h4m3-4v6\"/></g></svg>" },
|
|
44
47
|
} as const;
|