@sentry/junior-dashboard 0.255.0 → 0.257.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/README.md +3 -2
- package/dist/app.js +54 -145
- package/dist/client.js +37 -37
- package/dist/index.d.ts +1 -2
- package/dist/index.js +54 -145
- package/dist/tailwind.css +1 -1
- package/package.json +3 -4
- package/src/app.ts +6 -18
- package/src/auth.ts +1 -127
- package/src/client/components/SearchInput.tsx +26 -4
- package/src/client/conversations/ConversationTranscript.tsx +11 -8
- package/src/client/conversations/TranscriptEventView.tsx +2 -1
- package/src/client/conversations/TranscriptMarkdown.tsx +31 -14
- package/src/client/conversations/eventTranscript.ts +1 -0
- package/src/client/conversations/transcriptMentions.tsx +104 -0
- package/src/client/pages/dev/ComponentsPage.tsx +8 -0
- package/src/client/pages/people/ProfileCodeActivity.tsx +9 -1
- package/src/client/pages/people/ProfileCodeChanges.tsx +104 -0
- package/src/client/types.ts +2 -0
- package/src/mock-reporting/fixtures.ts +15 -1
|
@@ -1397,6 +1397,13 @@ function simpleConversation(
|
|
|
1397
1397
|
});
|
|
1398
1398
|
}
|
|
1399
1399
|
|
|
1400
|
+
const MOCK_MENTION_MORGAN: ActorIdentity = {
|
|
1401
|
+
email: "dev@example.com",
|
|
1402
|
+
fullName: "Morgan Lee",
|
|
1403
|
+
slackUserId: "U123",
|
|
1404
|
+
slackUserName: "morgan",
|
|
1405
|
+
};
|
|
1406
|
+
|
|
1400
1407
|
function eventAutomationRunConversation(
|
|
1401
1408
|
nowMs: number,
|
|
1402
1409
|
): ConversationDetailReport {
|
|
@@ -1444,6 +1451,7 @@ function eventAutomationRunConversation(
|
|
|
1444
1451
|
"",
|
|
1445
1452
|
"End with `finishAutomationRun`.",
|
|
1446
1453
|
].join("\n"),
|
|
1454
|
+
mentions: [MOCK_MENTION_MORGAN],
|
|
1447
1455
|
}),
|
|
1448
1456
|
reportEvent(1, at(1_000), {
|
|
1449
1457
|
type: "turn_lifecycle",
|
|
@@ -1455,7 +1463,12 @@ function eventAutomationRunConversation(
|
|
|
1455
1463
|
type: "message",
|
|
1456
1464
|
messageId: `${EVENT_AUTOMATION_RUN_CONVERSATION_ID}:reply`,
|
|
1457
1465
|
role: "assistant",
|
|
1458
|
-
text: "ACME-42 is closed. The saved-card checkout failure was fixed by the token refresh change and verified in production.",
|
|
1466
|
+
text: "<@U123> ACME-42 is closed. The saved-card checkout failure was fixed by the token refresh change and verified in production. cc <@U456> and <@U999> in <#C42|proj-checkout>.",
|
|
1467
|
+
// U456 has no People profile, and U999 is not resolved.
|
|
1468
|
+
mentions: [
|
|
1469
|
+
MOCK_MENTION_MORGAN,
|
|
1470
|
+
{ fullName: "Casey Nguyen", slackUserId: "U456" },
|
|
1471
|
+
],
|
|
1459
1472
|
}),
|
|
1460
1473
|
reportEvent(3, at(14_000), {
|
|
1461
1474
|
type: "turn_lifecycle",
|
|
@@ -2682,6 +2695,7 @@ export function readMockPeopleCode(
|
|
|
2682
2695
|
const overview = readMockCodeOverview();
|
|
2683
2696
|
return {
|
|
2684
2697
|
activityDays: overview.activityDays,
|
|
2698
|
+
changes: overview.changes,
|
|
2685
2699
|
generatedAt: overview.generatedAt,
|
|
2686
2700
|
summary: overview.summary,
|
|
2687
2701
|
windowEnd: overview.windowEnd,
|