@startsimpli/integrations 0.2.137 → 0.2.138
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startsimpli/integrations",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.138",
|
|
4
4
|
"description": "Provider-agnostic types, API clients, hooks, and UI primitives for email + calendar integrations across StartSimpli apps, plus foundry customer email (subpath ./comms).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://startsimpli.com",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@startsimpli/ui-native": ">=0.1.12",
|
|
52
52
|
"react-native-safe-area-context": ">=4.0.0",
|
|
53
53
|
"@startsimpli/ui": "^0.4.171",
|
|
54
|
-
"@startsimpli/
|
|
55
|
-
"@startsimpli/
|
|
54
|
+
"@startsimpli/utils": "^0.4.17",
|
|
55
|
+
"@startsimpli/auth": "^0.4.50"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"react": {
|
|
@@ -98,11 +98,11 @@
|
|
|
98
98
|
"vitest": "^3.0.0",
|
|
99
99
|
"react-native": "0.85.3",
|
|
100
100
|
"react-native-safe-area-context": "~5.7.0",
|
|
101
|
+
"@startsimpli/llm": "0.4.31",
|
|
101
102
|
"@startsimpli/ui": "0.4.171",
|
|
102
103
|
"@startsimpli/ui-native": "0.1.14",
|
|
103
104
|
"@startsimpli/auth": "0.4.50",
|
|
104
|
-
"@startsimpli/utils": "0.4.17"
|
|
105
|
-
"@startsimpli/llm": "0.4.31"
|
|
105
|
+
"@startsimpli/utils": "0.4.17"
|
|
106
106
|
},
|
|
107
107
|
"scripts": {
|
|
108
108
|
"type-check": "tsc --noEmit && tsc --noEmit -p tsconfig.native.json",
|
|
@@ -613,3 +613,17 @@ describe('TrackerPage — watching a queued sweep', () => {
|
|
|
613
613
|
expect(await screen.findByText(/Read 1 meeting/)).toBeInTheDocument();
|
|
614
614
|
});
|
|
615
615
|
});
|
|
616
|
+
|
|
617
|
+
describe('TrackerPage — opening a to-do', () => {
|
|
618
|
+
it('opens the to-do itself, including one with no source meeting', async () => {
|
|
619
|
+
const onOpenItem = vi.fn();
|
|
620
|
+
const onOpenDocument = vi.fn();
|
|
621
|
+
const rows = [commitment({ externalId: 'commit:hand1', title: 'Pay the invoice', mentions: [] }), ...ROWS];
|
|
622
|
+
render(<TrackerPage api={makeApi({ rows })} scope={SCOPE} onOpenItem={onOpenItem} onOpenDocument={onOpenDocument} />);
|
|
623
|
+
await userEvent.click(await screen.findByRole('button', { name: 'Pay the invoice' }));
|
|
624
|
+
expect(onOpenItem).toHaveBeenCalledWith(expect.objectContaining({ externalId: 'commit:hand1' }));
|
|
625
|
+
await userEvent.click(await screen.findByRole('button', { name: 'Chase the inventor for comments on 2148' }));
|
|
626
|
+
expect(onOpenItem).toHaveBeenCalledWith(expect.objectContaining({ externalId: 'commit:open1' }));
|
|
627
|
+
expect(onOpenDocument).not.toHaveBeenCalled();
|
|
628
|
+
});
|
|
629
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clicking a to-do opens THAT to-do (not the Library): a detail view with the
|
|
3
|
+
* item's own fields, its tracker link, its source meetings, and the actions.
|
|
4
|
+
*/
|
|
5
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
6
|
+
import { render, screen, waitFor, fireEvent } from '@testing-library/react';
|
|
7
|
+
|
|
8
|
+
import { TaskDetailPage } from '../components/pages/TaskDetailPage';
|
|
9
|
+
import { toCommitment, type TenantEntity } from '../corpus/entities';
|
|
10
|
+
import type { Commitment, CommitmentApi } from '../corpus/types';
|
|
11
|
+
|
|
12
|
+
const make = (id: string, data: Record<string, unknown> = {}): Commitment =>
|
|
13
|
+
toCommitment({
|
|
14
|
+
id, external_id: `commit:${id}`, name: id, entity_type: 'commitment', version: 1,
|
|
15
|
+
data: { title: `Task ${id}`, status: 'open', subtype: 'action', mentions: [], ...data },
|
|
16
|
+
} as unknown as TenantEntity, { orgId: 'o' });
|
|
17
|
+
|
|
18
|
+
const scope = { orgId: 'o' } as never;
|
|
19
|
+
|
|
20
|
+
function apiWith(items: Commitment[]): CommitmentApi & { updateCommitment: ReturnType<typeof vi.fn> } {
|
|
21
|
+
return {
|
|
22
|
+
listCommitments: vi.fn(async (q: { page?: number } = {}) => ({
|
|
23
|
+
results: (q.page ?? 1) === 1 ? items : [], count: items.length,
|
|
24
|
+
})) as never,
|
|
25
|
+
updateCommitment: vi.fn(async (item: Commitment, patch: object) => ({ ...item, ...patch })) as never,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
describe('TaskDetailPage', () => {
|
|
30
|
+
it('shows the requested item, even with no source meeting', async () => {
|
|
31
|
+
const api = apiWith([make('a'), make('b', { detail: 'Bring the signed copy', owner_name: 'Megan' })]);
|
|
32
|
+
render(<TaskDetailPage api={api} scope={scope} itemId="commit:b" />);
|
|
33
|
+
expect(await screen.findByRole('heading', { name: 'Task b' })).toBeInTheDocument();
|
|
34
|
+
expect(screen.getByText('Bring the signed copy')).toBeInTheDocument();
|
|
35
|
+
expect(screen.getByText('Megan')).toBeInTheDocument();
|
|
36
|
+
expect(screen.getByText(/Added by hand|No meeting recorded/)).toBeInTheDocument();
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('says so when the item does not exist, with a way back', async () => {
|
|
40
|
+
const onBack = vi.fn();
|
|
41
|
+
render(<TaskDetailPage api={apiWith([make('a')])} scope={scope} itemId="commit:zzz" onBack={onBack} />);
|
|
42
|
+
expect(await screen.findByText(/couldn.t find that to-do/i)).toBeInTheDocument();
|
|
43
|
+
fireEvent.click(screen.getByRole('button', { name: /back to tracker/i }));
|
|
44
|
+
expect(onBack).toHaveBeenCalled();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it('completes the item through updateCommitment and shows it done', async () => {
|
|
48
|
+
const api = apiWith([make('a')]);
|
|
49
|
+
render(<TaskDetailPage api={api} scope={scope} itemId="commit:a" />);
|
|
50
|
+
fireEvent.click(await screen.findByRole('button', { name: /mark done/i }));
|
|
51
|
+
await waitFor(() => expect(api.updateCommitment).toHaveBeenCalledWith(expect.objectContaining({ externalId: 'commit:a' }), expect.objectContaining({ status: 'done' })));
|
|
52
|
+
expect(await screen.findByRole('button', { name: /reopen/i })).toBeInTheDocument();
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it('opens a source meeting through onOpenDocument', async () => {
|
|
56
|
+
const onOpenDocument = vi.fn();
|
|
57
|
+
const api = apiWith([make('a', { mentions: [{ document_id: 'doc-9', origin_key: 'k', occurred_at: '2026-11-01T00:00:00Z' }] })]);
|
|
58
|
+
render(<TaskDetailPage api={api} scope={scope} itemId="commit:a" onOpenDocument={onOpenDocument} />);
|
|
59
|
+
fireEvent.click(await screen.findByRole('button', { name: /\d+\/\d+\/\d{4}/ }));
|
|
60
|
+
expect(onOpenDocument).toHaveBeenCalledWith('doc-9');
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('shows the tracker link for a synced item', async () => {
|
|
64
|
+
const api = apiWith([make('a', { external_key: 'ENG-7', external_url: 'https://linear.app/x/ENG-7', sync_state: 'synced' })]);
|
|
65
|
+
render(<TaskDetailPage api={api} scope={scope} itemId="commit:a" trackerName="Linear" />);
|
|
66
|
+
expect(await screen.findByRole('link', { name: 'Open in Linear: ENG-7' })).toBeInTheDocument();
|
|
67
|
+
});
|
|
68
|
+
});
|
package/src/components/index.ts
CHANGED
|
@@ -42,6 +42,7 @@ export { FolderTree, folderTrail } from './FolderTree';
|
|
|
42
42
|
export type { FolderSource, FolderTreeProps, FolderTreeSlot } from './FolderTree';
|
|
43
43
|
export * from './pages/AskPage';
|
|
44
44
|
export * from './pages/TrackerPage';
|
|
45
|
+
export * from './pages/TaskDetailPage';
|
|
45
46
|
// Task-tracker pieces (bd startsim-2nn3h): the sync settings and the link chip.
|
|
46
47
|
export { TaskTrackerSettings } from './pages/task-tracker/TaskTrackerSettings';
|
|
47
48
|
export type { TaskTrackerSettingsApi, TaskTrackerSettingsProps } from './pages/task-tracker/TaskTrackerSettings';
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TASK DETAIL — one to-do, opened from the Home brief or the Tracker.
|
|
5
|
+
*
|
|
6
|
+
* A to-do used to open the Library record of the first meeting it was raised in,
|
|
7
|
+
* which is the wrong noun: the thing you clicked is a task, with an owner, a due
|
|
8
|
+
* date, a tracker link and a state to change. Items with no meeting (authored by
|
|
9
|
+
* hand, or synced in from the tracker) had nowhere to go at all. This screen is
|
|
10
|
+
* the task itself; the meetings it came from are one section of it.
|
|
11
|
+
*
|
|
12
|
+
* The api has no get-by-id (`external_id` cannot be pushed down to the data
|
|
13
|
+
* plane), so the item is found by paging the list, which is bounded.
|
|
14
|
+
*/
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
|
|
17
|
+
import type { Commitment, CommitmentApi, CommitmentStatus, CorpusScope } from '../../corpus/types';
|
|
18
|
+
import { isOverdue, priorityLabel } from '../../corpus/work-item-logic';
|
|
19
|
+
import { isAuthored } from '../../corpus/planning';
|
|
20
|
+
import { useTrackerName } from '../../task-tracker/useTrackerName';
|
|
21
|
+
import { ExternalLinkChip } from './task-tracker/ExternalLinkChip';
|
|
22
|
+
import { failureMessage } from './work-items';
|
|
23
|
+
import type { MemberConnectionsApi } from './types';
|
|
24
|
+
|
|
25
|
+
export interface TaskDetailPageProps {
|
|
26
|
+
api: Pick<CommitmentApi, 'listCommitments' | 'updateCommitment'>;
|
|
27
|
+
scope: CorpusScope;
|
|
28
|
+
/** The item's `externalId` (`commit:<dedupeKey>`), as it appears in the route. */
|
|
29
|
+
itemId: string;
|
|
30
|
+
onBack?: () => void;
|
|
31
|
+
onOpenDocument?: (documentId: string) => void;
|
|
32
|
+
trackerName?: string;
|
|
33
|
+
memberConnections?: Pick<MemberConnectionsApi, 'connections' | 'connectorCatalog'>;
|
|
34
|
+
projectNames?: Record<string, string>;
|
|
35
|
+
/** Injectable clock for "overdue". Frozen once when unset. */
|
|
36
|
+
now?: number;
|
|
37
|
+
classNames?: Partial<Record<'root' | 'card' | 'badge' | 'button' | 'secondaryButton' | 'muted' | 'error' | 'due' | 'heading', string>>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const DEFAULTS = {
|
|
41
|
+
root: 'space-y-4',
|
|
42
|
+
card: 'rounded-lg border border-gray-200 p-5',
|
|
43
|
+
badge: 'inline-flex items-center rounded-full border border-gray-300 px-2 py-0.5 text-xs text-gray-700',
|
|
44
|
+
button: 'rounded-md bg-gray-900 px-3 py-1.5 text-sm font-medium text-white disabled:opacity-50',
|
|
45
|
+
secondaryButton: 'rounded-md border border-gray-300 px-3 py-1.5 text-sm font-medium text-gray-800 disabled:opacity-50',
|
|
46
|
+
muted: 'text-sm text-gray-500',
|
|
47
|
+
error: 'text-sm text-red-600',
|
|
48
|
+
due: 'text-sm font-medium text-red-700',
|
|
49
|
+
heading: 'text-xl font-semibold text-gray-900',
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const PAGE_SIZE = 200;
|
|
53
|
+
const MAX_PAGES = 10;
|
|
54
|
+
|
|
55
|
+
async function findItem(api: TaskDetailPageProps['api'], itemId: string): Promise<Commitment | null> {
|
|
56
|
+
for (let page = 1; page <= MAX_PAGES; page += 1) {
|
|
57
|
+
const res = await api.listCommitments({ page, pageSize: PAGE_SIZE, withFocus: true });
|
|
58
|
+
const hit = res.results.find((r) => r.externalId === itemId || r.id === itemId);
|
|
59
|
+
if (hit) return hit;
|
|
60
|
+
if (res.results.length < PAGE_SIZE) return null;
|
|
61
|
+
}
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function TaskDetailPage({
|
|
66
|
+
api, itemId, onBack, onOpenDocument, trackerName: trackerNameProp, memberConnections,
|
|
67
|
+
projectNames = {}, now, classNames = {},
|
|
68
|
+
}: TaskDetailPageProps) {
|
|
69
|
+
const found = useTrackerName(trackerNameProp ? undefined : memberConnections);
|
|
70
|
+
const trackerName = trackerNameProp ?? found;
|
|
71
|
+
const cn = { ...DEFAULTS, ...classNames };
|
|
72
|
+
const [mountedAt] = React.useState(() => Date.now());
|
|
73
|
+
const clock = now ?? mountedAt;
|
|
74
|
+
const apiRef = React.useRef(api);
|
|
75
|
+
apiRef.current = api;
|
|
76
|
+
|
|
77
|
+
const [item, setItem] = React.useState<Commitment | null>(null);
|
|
78
|
+
const [loading, setLoading] = React.useState(true);
|
|
79
|
+
const [error, setError] = React.useState('');
|
|
80
|
+
const [busy, setBusy] = React.useState(false);
|
|
81
|
+
|
|
82
|
+
React.useEffect(() => {
|
|
83
|
+
let live = true;
|
|
84
|
+
setLoading(true);
|
|
85
|
+
setError('');
|
|
86
|
+
findItem(apiRef.current, itemId)
|
|
87
|
+
.then((hit) => { if (live) setItem(hit); })
|
|
88
|
+
.catch((err) => { if (live) setError(failureMessage(err)); })
|
|
89
|
+
.finally(() => { if (live) setLoading(false); });
|
|
90
|
+
return () => { live = false; };
|
|
91
|
+
}, [itemId]);
|
|
92
|
+
|
|
93
|
+
const setStatus = async (status: CommitmentStatus) => {
|
|
94
|
+
if (!item || !apiRef.current.updateCommitment) return;
|
|
95
|
+
setBusy(true);
|
|
96
|
+
setError('');
|
|
97
|
+
try {
|
|
98
|
+
const updated = await apiRef.current.updateCommitment(item, {
|
|
99
|
+
status,
|
|
100
|
+
...(status === 'done' ? { resolvedAt: new Date().toISOString() } : { resolvedAt: null }),
|
|
101
|
+
});
|
|
102
|
+
setItem({ ...item, ...updated, status });
|
|
103
|
+
} catch (err) {
|
|
104
|
+
setError(failureMessage(err));
|
|
105
|
+
} finally {
|
|
106
|
+
setBusy(false);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
const back = onBack ? (
|
|
111
|
+
<button type="button" className="text-sm text-blue-700 underline" onClick={onBack}>← Back to Tracker</button>
|
|
112
|
+
) : null;
|
|
113
|
+
|
|
114
|
+
if (loading) return <div className={cn.root}>{back}<p className={cn.muted}>Loading…</p></div>;
|
|
115
|
+
if (!item) {
|
|
116
|
+
return (
|
|
117
|
+
<div className={cn.root}>
|
|
118
|
+
{back}
|
|
119
|
+
{error ? <p className={cn.error} role="alert">{error}</p> : (
|
|
120
|
+
<p className={cn.muted}>We couldn’t find that to-do. It may have been removed or finished and archived.</p>
|
|
121
|
+
)}
|
|
122
|
+
</div>
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const canWrite = Boolean(api.updateCommitment);
|
|
127
|
+
const overdue = isOverdue(item, clock);
|
|
128
|
+
const priority = priorityLabel(item.priority);
|
|
129
|
+
const project = item.focusId ? projectNames[item.focusId] : undefined;
|
|
130
|
+
const closed = item.status === 'done' || item.status === 'dropped';
|
|
131
|
+
const authored = isAuthored(item);
|
|
132
|
+
|
|
133
|
+
return (
|
|
134
|
+
<div className={cn.root} data-testid="task-detail">
|
|
135
|
+
{back}
|
|
136
|
+
<article className={cn.card}>
|
|
137
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
138
|
+
<span className={cn.badge}>{item.status.replace('_', ' ')}</span>
|
|
139
|
+
{priority ? <span className={cn.badge}>{priority}</span> : null}
|
|
140
|
+
{project ? <span className={cn.badge}>{project}</span> : null}
|
|
141
|
+
{item.sync ? <ExternalLinkChip sync={item.sync} trackerName={trackerName} className={cn.badge} /> : null}
|
|
142
|
+
</div>
|
|
143
|
+
<h1 className={`mt-2 ${cn.heading}`}>{item.title}</h1>
|
|
144
|
+
|
|
145
|
+
<dl className="mt-3 grid grid-cols-[7rem_1fr] gap-y-1 text-sm">
|
|
146
|
+
<dt className={cn.muted}>Owner</dt>
|
|
147
|
+
<dd>{item.ownerName ? item.ownerName : <span className={cn.muted}>No owner named</span>}</dd>
|
|
148
|
+
<dt className={cn.muted}>Due</dt>
|
|
149
|
+
<dd>
|
|
150
|
+
{item.dueAt
|
|
151
|
+
? <span className={overdue ? cn.due : ''}>{overdue ? 'Overdue ' : ''}{new Date(item.dueAt).toLocaleDateString()}</span>
|
|
152
|
+
: <span className={cn.muted}>No due date</span>}
|
|
153
|
+
</dd>
|
|
154
|
+
{item.subject ? (<><dt className={cn.muted}>About</dt><dd>{item.subject}</dd></>) : null}
|
|
155
|
+
</dl>
|
|
156
|
+
|
|
157
|
+
{item.detail ? <p className="mt-3 whitespace-pre-wrap text-sm text-gray-700">{item.detail}</p> : null}
|
|
158
|
+
{item.statusReason ? (
|
|
159
|
+
<p className="mt-3 text-sm text-gray-600">{item.status === 'done' ? 'Closed by' : 'Blocked by'}: “{item.statusReason}”</p>
|
|
160
|
+
) : null}
|
|
161
|
+
|
|
162
|
+
{canWrite ? (
|
|
163
|
+
<div className="mt-4 flex flex-wrap gap-2">
|
|
164
|
+
{closed ? (
|
|
165
|
+
<button type="button" className={cn.secondaryButton} disabled={busy} onClick={() => void setStatus('open')}>Reopen</button>
|
|
166
|
+
) : (
|
|
167
|
+
<>
|
|
168
|
+
<button type="button" className={cn.button} disabled={busy} onClick={() => void setStatus('done')}>Mark done</button>
|
|
169
|
+
{item.status !== 'in_progress' ? (
|
|
170
|
+
<button type="button" className={cn.secondaryButton} disabled={busy} onClick={() => void setStatus('in_progress')}>Start</button>
|
|
171
|
+
) : null}
|
|
172
|
+
<button type="button" className={cn.secondaryButton} disabled={busy} onClick={() => void setStatus('dropped')}>Drop</button>
|
|
173
|
+
</>
|
|
174
|
+
)}
|
|
175
|
+
</div>
|
|
176
|
+
) : null}
|
|
177
|
+
{error ? <p className={`mt-2 ${cn.error}`} role="alert">{error}</p> : null}
|
|
178
|
+
</article>
|
|
179
|
+
|
|
180
|
+
<section className={cn.card}>
|
|
181
|
+
<h2 className="text-sm font-semibold text-gray-900">Where this came from</h2>
|
|
182
|
+
{item.mentions.length === 0 ? (
|
|
183
|
+
<p className={`mt-1 ${cn.muted}`}>{authored ? 'Added by hand' : 'No meeting recorded for this item'}</p>
|
|
184
|
+
) : (
|
|
185
|
+
<ul className="mt-2 space-y-1">
|
|
186
|
+
{item.mentions.map((m) => (
|
|
187
|
+
<li key={`${m.documentId}:${m.originKey}`}>
|
|
188
|
+
<button type="button" className="text-sm text-blue-700 underline" onClick={() => onOpenDocument?.(m.documentId)}>
|
|
189
|
+
{m.occurredAt ? new Date(m.occurredAt).toLocaleDateString() : 'Undated meeting'}
|
|
190
|
+
</button>
|
|
191
|
+
{m.quote ? <span className={`ml-2 ${cn.muted}`}>“{m.quote}”</span> : null}
|
|
192
|
+
</li>
|
|
193
|
+
))}
|
|
194
|
+
</ul>
|
|
195
|
+
)}
|
|
196
|
+
</section>
|
|
197
|
+
</div>
|
|
198
|
+
);
|
|
199
|
+
}
|
|
@@ -49,6 +49,8 @@ export interface TrackerPageProps {
|
|
|
49
49
|
scope: CorpusScope;
|
|
50
50
|
/** Click-through from a mention to the record, normally the Library route. */
|
|
51
51
|
onOpenDocument?: (documentId: string) => void;
|
|
52
|
+
/** Open a to-do's own detail view. When set, a row click goes here, not to the Library. */
|
|
53
|
+
onOpenItem?: (item: Commitment) => void;
|
|
52
54
|
/**
|
|
53
55
|
* Injectable clock, so "overdue" and "this week" are testable.
|
|
54
56
|
*
|
|
@@ -123,6 +125,7 @@ export function TrackerPage({
|
|
|
123
125
|
api,
|
|
124
126
|
scope,
|
|
125
127
|
onOpenDocument,
|
|
128
|
+
onOpenItem,
|
|
126
129
|
now,
|
|
127
130
|
pollMs = 3_000,
|
|
128
131
|
maxAutoResumes = 24,
|
|
@@ -333,6 +336,7 @@ export function TrackerPage({
|
|
|
333
336
|
}, [doneOpen, loadDone]);
|
|
334
337
|
const canWrite = Boolean(api.updateCommitment);
|
|
335
338
|
const open = (item: Commitment) => {
|
|
339
|
+
if (onOpenItem) { onOpenItem(item); return; }
|
|
336
340
|
const doc = item.mentions[0]?.documentId;
|
|
337
341
|
if (doc) onOpenDocument?.(doc);
|
|
338
342
|
};
|
|
@@ -357,7 +361,7 @@ export function TrackerPage({
|
|
|
357
361
|
item={entry.item} due={entry.due} days={entry.days}
|
|
358
362
|
project={extra?.chip ?? (entry.item.focusId ? projectNames[entry.item.focusId] : undefined)}
|
|
359
363
|
trackerName={trackerName}
|
|
360
|
-
onOpen={entry.item.mentions.length ? open : undefined}
|
|
364
|
+
onOpen={onOpenItem || entry.item.mentions.length ? open : undefined}
|
|
361
365
|
actions={extra?.actions}
|
|
362
366
|
/>
|
|
363
367
|
);
|