@sentry/junior-dashboard 0.272.0 → 0.273.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/dist/app.js +2 -2
- package/dist/client.js +69 -67
- package/dist/index.js +2 -2
- package/dist/tailwind.css +1 -1
- package/package.json +4 -4
- package/src/client/App.tsx +440 -430
- package/src/client/components/JuniorLogo.tsx +1 -1
- package/src/client/components/ProfileMenu.tsx +4 -41
- package/src/client/components/layout/DashboardChrome.tsx +9 -4
- package/src/client/components/layout/DashboardHeader.tsx +11 -51
- package/src/client/components/layout/NavRail.tsx +156 -0
- package/src/client/components/ui/sidebar.tsx +336 -0
- package/src/client/conversations/ConversationPage.tsx +3 -0
- package/src/client/conversations/PendingMailboxStack.tsx +22 -9
- package/src/client/conversations/TranscriptMessageShell.tsx +19 -8
- package/src/client/conversations/TranscriptMessageView.tsx +8 -1
- package/src/client/conversations/TranscriptTurnContextView.tsx +1 -1
- package/src/client/conversations/conversationOutbox.ts +19 -0
- package/src/client/conversations/eventTranscript.ts +6 -0
- package/src/client/conversations/queries.ts +1 -17
- package/src/client/conversations/transcript.ts +12 -2
- package/src/client/format.ts +8 -1
- package/src/client/review-desk/ReviewDeskPage.tsx +5 -1
- package/src/client/review-desk/queries.ts +4 -1
- package/src/client/types.ts +2 -0
|
@@ -69,7 +69,11 @@ export function ReviewDeskPage() {
|
|
|
69
69
|
useDocumentTitle("Inbox");
|
|
70
70
|
const [searchParams] = useSearchParams();
|
|
71
71
|
const [search, setSearch, q] = useDebouncedSearchParam();
|
|
72
|
-
const {
|
|
72
|
+
const {
|
|
73
|
+
items: list,
|
|
74
|
+
moreArchived,
|
|
75
|
+
query: items,
|
|
76
|
+
} = useReviewItemsData({ forViewer: true, q });
|
|
73
77
|
const showBlocked = !q;
|
|
74
78
|
const blocked = useBlockedAutomationsData(showBlocked);
|
|
75
79
|
const blockedAutomations = showBlocked
|
|
@@ -26,16 +26,19 @@ const COUNT_REFRESH_MS = 60_000;
|
|
|
26
26
|
/**
|
|
27
27
|
* List the open Review items that the viewer can see, one page at a time.
|
|
28
28
|
* A search also finds archived items, with the first page. `items` holds the
|
|
29
|
-
* items of every loaded page, and `query` loads more.
|
|
29
|
+
* items of every loaded page, and `query` loads more. `forViewer` drops the
|
|
30
|
+
* items that are assigned only to other people.
|
|
30
31
|
*/
|
|
31
32
|
export function useReviewItemsData(filters: {
|
|
32
33
|
conversationId?: string;
|
|
34
|
+
forViewer?: boolean;
|
|
33
35
|
q?: string;
|
|
34
36
|
}) {
|
|
35
37
|
const params = new URLSearchParams();
|
|
36
38
|
if (filters.conversationId) {
|
|
37
39
|
params.set("conversationId", filters.conversationId);
|
|
38
40
|
}
|
|
41
|
+
if (filters.forViewer) params.set("for", "viewer");
|
|
39
42
|
if (filters.q) params.set("q", filters.q);
|
|
40
43
|
const search = params.toString();
|
|
41
44
|
const query = useInfiniteQuery({
|
package/src/client/types.ts
CHANGED
|
@@ -121,6 +121,8 @@ export type TranscriptViewMessage = {
|
|
|
121
121
|
actorIdentity?: ActorIdentity;
|
|
122
122
|
/** Agent invocation whose input this is. An agent wrote it, not a person. */
|
|
123
123
|
agentInvocationId?: string;
|
|
124
|
+
/** Identity id of the author. Conversation `authors` maps it to the person. */
|
|
125
|
+
actorIdentityId?: string;
|
|
124
126
|
contexts?: TranscriptViewTurnContext[];
|
|
125
127
|
/** Mailbox delivery mode while the message is still pending history commit. */
|
|
126
128
|
delivery?: "defer" | "interrupt";
|