@company-semantics/contracts 86.1.0 → 87.0.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/package.json +8 -8
- package/src/api/generated-spec-hash.ts +2 -2
- package/src/api/generated.ts +50 -262
- package/src/chat/README.md +8 -20
- package/src/chat/__tests__/compaction-boundary.test.ts +1 -0
- package/src/chat/__tests__/continuity.test.ts +1 -0
- package/src/chat/__tests__/discussion-scope.test.ts +0 -7
- package/src/chat/__tests__/message-mentions.test.ts +1 -12
- package/src/chat/__tests__/multi-party.test.ts +15 -6
- package/src/chat/__tests__/page-context.test.ts +3 -3
- package/src/chat/enums.ts +24 -11
- package/src/chat/index.ts +4 -16
- package/src/chat/schemas.ts +9 -71
- package/src/chat/types.ts +25 -77
- package/src/generated/openapi-routes.ts +1 -4
- package/src/guards/config.ts +1 -1
- package/src/index.ts +4 -6
- package/src/notifications/__tests__/__snapshots__/monospace-budget.test.ts.snap +4 -4
- package/src/notifications/__tests__/__snapshots__/render-snapshot.test.ts.snap +50 -49
- package/src/notifications/__tests__/fixtures.ts +7 -7
- package/src/notifications/__tests__/render-snapshot.test.ts +7 -7
- package/src/notifications/kinds/chat-shared.ts +11 -5
- package/src/notifications/payloads.ts +5 -5
- package/src/org/__tests__/view-scopes.test.ts +0 -2
- package/src/org/view-scopes.ts +0 -1
package/src/chat/types.ts
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import {
|
|
11
|
-
ChatVisibilitySchema,
|
|
12
11
|
TitleSourceSchema,
|
|
13
12
|
InvalidationReasonSchema,
|
|
14
13
|
ChatChangedFieldSchema,
|
|
@@ -17,9 +16,6 @@ import {
|
|
|
17
16
|
ChatSummaryExtendedSchema,
|
|
18
17
|
ProactiveChatResolutionSchema,
|
|
19
18
|
TitleGenerationResponseSchema,
|
|
20
|
-
ChatShareInfoSchema,
|
|
21
|
-
SharedChatViewSchema,
|
|
22
|
-
SharedChatMessageSchema,
|
|
23
19
|
BaseEventSchema,
|
|
24
20
|
ChatCreatedEventSchema,
|
|
25
21
|
ChatUpdatedEventSchema,
|
|
@@ -33,13 +29,11 @@ import {
|
|
|
33
29
|
ChatByInteractionResponseSchema,
|
|
34
30
|
ChatListResponseSchema,
|
|
35
31
|
CreateChatResponseSchema,
|
|
36
|
-
CreateShareResponseSchema,
|
|
37
|
-
ListSharesResponseSchema,
|
|
38
|
-
UpdateShareResponseSchema,
|
|
39
32
|
ChatMessageSchema,
|
|
40
33
|
ChatMessageMentionSchema,
|
|
41
34
|
ChatMentionableResponseSchema,
|
|
42
35
|
ChatParticipantRoleSchema,
|
|
36
|
+
ChatGrantableRoleSchema,
|
|
43
37
|
ChatParticipantSchema,
|
|
44
38
|
ChatParticipantsResponseSchema,
|
|
45
39
|
ChatDetailSchema,
|
|
@@ -48,17 +42,6 @@ import {
|
|
|
48
42
|
ChatPageContextSchema,
|
|
49
43
|
} from "./schemas";
|
|
50
44
|
|
|
51
|
-
// =============================================================================
|
|
52
|
-
// Visibility
|
|
53
|
-
// =============================================================================
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Chat share visibility.
|
|
57
|
-
* - private: Token exists but access requires authentication as chat owner
|
|
58
|
-
* - public: Token grants anonymous access to anyone with the link
|
|
59
|
-
*/
|
|
60
|
-
export type ChatVisibility = z.infer<typeof ChatVisibilitySchema>;
|
|
61
|
-
|
|
62
45
|
// =============================================================================
|
|
63
46
|
// Chat Summary
|
|
64
47
|
// =============================================================================
|
|
@@ -68,53 +51,6 @@ export type ChatVisibility = z.infer<typeof ChatVisibilitySchema>;
|
|
|
68
51
|
*/
|
|
69
52
|
export type ChatSummary = z.infer<typeof ChatSummarySchema>;
|
|
70
53
|
|
|
71
|
-
// =============================================================================
|
|
72
|
-
// Share Types
|
|
73
|
-
// =============================================================================
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Chat share record with snapshot metadata.
|
|
77
|
-
*
|
|
78
|
-
* CRITICAL INVARIANT (SNAPSHOT-1):
|
|
79
|
-
* A chat share must never expose messages with sequenceNumber > messageCountAtShare.
|
|
80
|
-
* Enforced in ChatShareService.viewSharedChat() only.
|
|
81
|
-
*/
|
|
82
|
-
export type ChatShareInfo = z.infer<typeof ChatShareInfoSchema>;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Shared chat view returned to viewers.
|
|
86
|
-
* Messages are limited by the snapshot boundary.
|
|
87
|
-
*/
|
|
88
|
-
export type SharedChatView = z.infer<typeof SharedChatViewSchema>;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Individual message in a shared chat view.
|
|
92
|
-
*/
|
|
93
|
-
export type SharedChatMessage = z.infer<typeof SharedChatMessageSchema>;
|
|
94
|
-
|
|
95
|
-
// =============================================================================
|
|
96
|
-
// API Request/Response Types
|
|
97
|
-
// =============================================================================
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Request to create a new share for a chat.
|
|
101
|
-
*/
|
|
102
|
-
export interface CreateShareRequest {
|
|
103
|
-
chatId: string;
|
|
104
|
-
visibility: ChatVisibility;
|
|
105
|
-
/** Optional: send email notification to this address */
|
|
106
|
-
recipientEmail?: string;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Request to update an existing share.
|
|
111
|
-
*/
|
|
112
|
-
export interface UpdateShareRequest {
|
|
113
|
-
visibility?: ChatVisibility;
|
|
114
|
-
/** If true, update snapshot to include new messages added since share creation */
|
|
115
|
-
updateSnapshot?: boolean;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
54
|
// =============================================================================
|
|
119
55
|
// Chat Lifecycle Types
|
|
120
56
|
// =============================================================================
|
|
@@ -288,15 +224,6 @@ export type ChatListResponse = z.infer<typeof ChatListResponseSchema>;
|
|
|
288
224
|
/** Response for POST /api/chats */
|
|
289
225
|
export type CreateChatResponse = z.infer<typeof CreateChatResponseSchema>;
|
|
290
226
|
|
|
291
|
-
/** Response for POST /api/chats/:chatId/shares */
|
|
292
|
-
export type CreateShareResponse = z.infer<typeof CreateShareResponseSchema>;
|
|
293
|
-
|
|
294
|
-
/** Response for GET /api/chats/:chatId/shares */
|
|
295
|
-
export type ListSharesResponse = z.infer<typeof ListSharesResponseSchema>;
|
|
296
|
-
|
|
297
|
-
/** Response for PATCH /api/shares/:shareId */
|
|
298
|
-
export type UpdateShareResponse = z.infer<typeof UpdateShareResponseSchema>;
|
|
299
|
-
|
|
300
227
|
/** Individual message in a chat response (GET /api/chats/:id). */
|
|
301
228
|
export type ChatMessage = z.infer<typeof ChatMessageSchema>;
|
|
302
229
|
|
|
@@ -316,12 +243,33 @@ export type ChatMentionableResponse = z.infer<
|
|
|
316
243
|
// =============================================================================
|
|
317
244
|
|
|
318
245
|
/**
|
|
319
|
-
* What one person is to a chat: `owner
|
|
320
|
-
*
|
|
321
|
-
*
|
|
246
|
+
* What one person is to a chat: `owner`, `participant` (Collaborate) or
|
|
247
|
+
* `viewer` (Read only). Whole-chat access, never a per-participant scope
|
|
248
|
+
* (ADR-CONTRACTS-206).
|
|
322
249
|
*/
|
|
323
250
|
export type ChatParticipantRole = z.infer<typeof ChatParticipantRoleSchema>;
|
|
324
251
|
|
|
252
|
+
/** A role a share can grant: `participant` (Collaborate) or `viewer` (Read only). */
|
|
253
|
+
export type ChatGrantableRole = z.infer<typeof ChatGrantableRoleSchema>;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Request for POST /api/chats/:chatId/participants — sharing the chat with one
|
|
257
|
+
* org member at a grantable role. A request-only type (no runtime schema), like
|
|
258
|
+
* the other chat requests.
|
|
259
|
+
*/
|
|
260
|
+
export interface AddChatParticipantRequest {
|
|
261
|
+
userId: string;
|
|
262
|
+
role: ChatGrantableRole;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Request for PATCH /api/chats/:chatId/participants/:userId — the owner moving
|
|
267
|
+
* someone between Read only and Collaborate.
|
|
268
|
+
*/
|
|
269
|
+
export interface UpdateChatParticipantRequest {
|
|
270
|
+
role: ChatGrantableRole;
|
|
271
|
+
}
|
|
272
|
+
|
|
325
273
|
/**
|
|
326
274
|
* One ACTIVE participant of a chat — a user id, a role, a read-time display
|
|
327
275
|
* name and when they joined. Never a `PrincipalRef`: the agent takes part in
|
|
@@ -21,13 +21,12 @@ export const openApiRoutes = {
|
|
|
21
21
|
'/api/chats/mentionable': ['GET'],
|
|
22
22
|
'/api/chats/proactive/{eventId}': ['GET'],
|
|
23
23
|
'/api/chats/resolve-launch': ['POST'],
|
|
24
|
-
'/api/chats/{chatId}/shares': ['GET', 'POST'],
|
|
25
24
|
'/api/chats/{id}': ['DELETE', 'GET', 'PATCH'],
|
|
26
25
|
'/api/chats/{id}/generate-title': ['POST'],
|
|
27
26
|
'/api/chats/{id}/messages': ['POST'],
|
|
28
27
|
'/api/chats/{id}/messages/{messageId}': ['DELETE'],
|
|
29
28
|
'/api/chats/{id}/participants': ['GET', 'POST'],
|
|
30
|
-
'/api/chats/{id}/participants/{userId}': ['DELETE'],
|
|
29
|
+
'/api/chats/{id}/participants/{userId}': ['DELETE', 'PATCH'],
|
|
31
30
|
'/api/chats/{id}/pin': ['DELETE', 'POST'],
|
|
32
31
|
'/api/chats/{id}/start-fresh': ['POST'],
|
|
33
32
|
'/api/comments': ['GET'],
|
|
@@ -186,8 +185,6 @@ export const openApiRoutes = {
|
|
|
186
185
|
'/api/reporting/positions/{positionId}/manager': ['PUT'],
|
|
187
186
|
'/api/scope/check': ['GET'],
|
|
188
187
|
'/api/scope/check-batch': ['POST'],
|
|
189
|
-
'/api/shared/{token}': ['GET'],
|
|
190
|
-
'/api/shares/{shareId}': ['DELETE', 'PATCH'],
|
|
191
188
|
'/api/source-sync/candidate-sets/current': ['GET'],
|
|
192
189
|
'/api/source-sync/candidate-sets/{setId}/approve': ['POST'],
|
|
193
190
|
'/api/source-sync/candidate-sets/{setId}/items': ['POST'],
|
package/src/guards/config.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -587,13 +587,7 @@ export type {
|
|
|
587
587
|
// Chat domain types
|
|
588
588
|
// @see PRD-00142 for share chat design rationale
|
|
589
589
|
export type {
|
|
590
|
-
ChatVisibility,
|
|
591
590
|
ChatSummary,
|
|
592
|
-
ChatShareInfo,
|
|
593
|
-
SharedChatView,
|
|
594
|
-
SharedChatMessage,
|
|
595
|
-
CreateShareRequest,
|
|
596
|
-
UpdateShareRequest,
|
|
597
591
|
// Chat lifecycle types
|
|
598
592
|
TitleSource,
|
|
599
593
|
ChatListFilters,
|
|
@@ -637,6 +631,9 @@ export type {
|
|
|
637
631
|
// Participation, not an ACL entity — two roles, one owner, and the agent is
|
|
638
632
|
// mentionable but never a member.
|
|
639
633
|
ChatParticipantRole,
|
|
634
|
+
ChatGrantableRole,
|
|
635
|
+
AddChatParticipantRequest,
|
|
636
|
+
UpdateChatParticipantRequest,
|
|
640
637
|
ChatParticipant,
|
|
641
638
|
ChatParticipantsResponse,
|
|
642
639
|
// Chat continuity (chat-continuity-wire-vocabulary): the subject a chat
|
|
@@ -675,6 +672,7 @@ export {
|
|
|
675
672
|
// Multi-party chat: the role vocabulary, one participant row, and the list
|
|
676
673
|
// envelope for GET /api/chats/:chatId/participants.
|
|
677
674
|
ChatParticipantRoleSchema,
|
|
675
|
+
ChatGrantableRoleSchema,
|
|
678
676
|
ChatParticipantSchema,
|
|
679
677
|
ChatParticipantsResponseSchema,
|
|
680
678
|
// Chat continuity: the closed subject-kind and continuation-reason
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
exports[`monospace budget > overhangs only where content is atomic 1`] = `
|
|
4
4
|
[
|
|
5
5
|
"Device: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
|
|
6
|
+
"https://app.companysemantics.ai/chat/abc123",
|
|
7
|
+
"https://app.companysemantics.ai/chat/long456",
|
|
8
|
+
"https://app.companysemantics.ai/chat/preview789",
|
|
9
|
+
"https://app.companysemantics.ai/chat/short123",
|
|
6
10
|
"https://app.companysemantics.ai/doc/handbook",
|
|
7
11
|
"https://app.companysemantics.ai/doc/handbook?request=req_123",
|
|
8
12
|
"https://app.companysemantics.ai/doc/handbook?request=req_456",
|
|
@@ -16,9 +20,5 @@ exports[`monospace budget > overhangs only where content is atomic 1`] = `
|
|
|
16
20
|
"https://app.companysemantics.ai/org/unit/42",
|
|
17
21
|
"https://app.companysemantics.ai/owner-transfer/accept/tok123",
|
|
18
22
|
"https://app.companysemantics.ai/owner-transfer/accept/tok456",
|
|
19
|
-
"https://app.companysemantics.ai/share/abc123",
|
|
20
|
-
"https://app.companysemantics.ai/share/long456",
|
|
21
|
-
"https://app.companysemantics.ai/share/preview789",
|
|
22
|
-
"https://app.companysemantics.ai/share/short123",
|
|
23
23
|
]
|
|
24
24
|
`;
|
|
@@ -1200,7 +1200,7 @@ exports[`email render > chat.shared · Default 1`] = `
|
|
|
1200
1200
|
<body class="csr-body">
|
|
1201
1201
|
<div class="csr-frame">
|
|
1202
1202
|
<p class="csr-p-normal">Hi there,</p>
|
|
1203
|
-
<p class="csr-p-normal">A chat was shared with you.</p>
|
|
1203
|
+
<p class="csr-p-normal">A chat was shared with you to read.</p>
|
|
1204
1204
|
<hr class="cs-faint csr-chat-rule-top">
|
|
1205
1205
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="csr-chat-row-24">
|
|
1206
1206
|
<tr>
|
|
@@ -1230,7 +1230,7 @@ exports[`email render > chat.shared · Default 1`] = `
|
|
|
1230
1230
|
<td class="csr-chat-avatar-left-hidden">[c_S]</td>
|
|
1231
1231
|
<td class="csr-chat-channel-left"><div class="csr-cta-stack"><div class="cs-dots csr-dots-over-cta">⋮</div><table cellpadding="0" cellspacing="0" border="0" class="cs-cta cs-cta-hover csr-cta-box-none">
|
|
1232
1232
|
<tr><td class="csr-cta-cell-linked">
|
|
1233
|
-
<a href="https://app.companysemantics.ai/
|
|
1233
|
+
<a href="https://app.companysemantics.ai/chat/abc123" class="cs-link csr-cta-anchor">>> <span class="csr-cta-label">OPEN CHAT</span> <<</a>
|
|
1234
1234
|
</td></tr>
|
|
1235
1235
|
</table></div></td>
|
|
1236
1236
|
<td class="csr-chat-avatar-right-hidden">(•̀_ರ╮)</td>
|
|
@@ -1264,7 +1264,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1264
1264
|
<body style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; color: #1a1a1a; background-color: #ffffff; margin: 0; padding: 0;">
|
|
1265
1265
|
<div style="max-width: 520px;">
|
|
1266
1266
|
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">Hi there,</p>
|
|
1267
|
-
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">A chat was shared with you.</p>
|
|
1267
|
+
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">A chat was shared with you to read.</p>
|
|
1268
1268
|
<hr class="cs-faint" style="border: none; border-top: 1px solid #bbb; margin: 12px 0 24px 0;">
|
|
1269
1269
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin: 0 0 24px 0;">
|
|
1270
1270
|
<tr>
|
|
@@ -1294,7 +1294,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1294
1294
|
<td style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; padding-right: 8px; vertical-align: bottom; visibility: hidden; white-space: nowrap;">[c_S]</td>
|
|
1295
1295
|
<td style="width: 100%; text-align: left;"><div style="display: inline-block; text-align: left;"><div class="cs-dots" style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 20px; font-weight: bold; color: #666; text-align: center; margin: 0 0 16px 0;">⋮</div><table cellpadding="0" cellspacing="0" border="0" class="cs-cta cs-cta-hover" style="display: inline-block; border: 1px solid #0047FF; border-radius: 2px; margin: 0; max-width: 220px;">
|
|
1296
1296
|
<tr><td style="text-align: center; font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px;">
|
|
1297
|
-
<a href="https://app.companysemantics.ai/
|
|
1297
|
+
<a href="https://app.companysemantics.ai/chat/abc123" class="cs-link" style="display: block; padding: 16px 24px; color: #0047FF; text-decoration: none;">>> <span style="text-decoration: underline;">OPEN CHAT</span> <<</a>
|
|
1298
1298
|
</td></tr>
|
|
1299
1299
|
</table></div></td>
|
|
1300
1300
|
<td style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; padding-left: 8px; vertical-align: bottom; visibility: hidden; white-space: nowrap;">(•̀_ರ╮)</td>
|
|
@@ -1309,7 +1309,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1309
1309
|
"subject": "A chat has been shared with you",
|
|
1310
1310
|
"text": "Hi there,
|
|
1311
1311
|
|
|
1312
|
-
A chat was shared with you.
|
|
1312
|
+
A chat was shared with you to read.
|
|
1313
1313
|
|
|
1314
1314
|
────────────────────────────────────────────────
|
|
1315
1315
|
|
|
@@ -1324,13 +1324,13 @@ A chat was shared with you.
|
|
|
1324
1324
|
[c_S] │ authentication endpoints. │
|
|
1325
1325
|
└──────────────────────────────┘
|
|
1326
1326
|
|
|
1327
|
-
|
|
1327
|
+
⋮
|
|
1328
1328
|
|
|
1329
|
-
|
|
1330
|
-
| >>
|
|
1331
|
-
|
|
1329
|
+
*---------------------*
|
|
1330
|
+
| >> OPEN CHAT << |
|
|
1331
|
+
*---------------------*
|
|
1332
1332
|
|
|
1333
|
-
https://app.companysemantics.ai/
|
|
1333
|
+
https://app.companysemantics.ai/chat/abc123
|
|
1334
1334
|
────────────────────────────────────────────────
|
|
1335
1335
|
|
|
1336
1336
|
This share was sent via Company Semantics.
|
|
@@ -1395,7 +1395,7 @@ exports[`email render > chat.shared · Long preview 1`] = `
|
|
|
1395
1395
|
<body class="csr-body">
|
|
1396
1396
|
<div class="csr-frame">
|
|
1397
1397
|
<p class="csr-p-normal">Hi there,</p>
|
|
1398
|
-
<p class="csr-p-normal">A chat was shared with you.</p>
|
|
1398
|
+
<p class="csr-p-normal">A chat was shared with you to read.</p>
|
|
1399
1399
|
<hr class="cs-faint csr-chat-rule-top">
|
|
1400
1400
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="csr-chat-row-24">
|
|
1401
1401
|
<tr>
|
|
@@ -1425,7 +1425,7 @@ exports[`email render > chat.shared · Long preview 1`] = `
|
|
|
1425
1425
|
<td class="csr-chat-avatar-left-hidden">[c_S]</td>
|
|
1426
1426
|
<td class="csr-chat-channel-left"><div class="csr-cta-stack"><div class="cs-dots csr-dots-over-cta">⋮</div><table cellpadding="0" cellspacing="0" border="0" class="cs-cta cs-cta-hover csr-cta-box-none">
|
|
1427
1427
|
<tr><td class="csr-cta-cell-linked">
|
|
1428
|
-
<a href="https://app.companysemantics.ai/
|
|
1428
|
+
<a href="https://app.companysemantics.ai/chat/preview789" class="cs-link csr-cta-anchor">>> <span class="csr-cta-label">OPEN CHAT</span> <<</a>
|
|
1429
1429
|
</td></tr>
|
|
1430
1430
|
</table></div></td>
|
|
1431
1431
|
<td class="csr-chat-avatar-right-hidden">(•̀_ರ╮)</td>
|
|
@@ -1459,7 +1459,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1459
1459
|
<body style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; color: #1a1a1a; background-color: #ffffff; margin: 0; padding: 0;">
|
|
1460
1460
|
<div style="max-width: 520px;">
|
|
1461
1461
|
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">Hi there,</p>
|
|
1462
|
-
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">A chat was shared with you.</p>
|
|
1462
|
+
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">A chat was shared with you to read.</p>
|
|
1463
1463
|
<hr class="cs-faint" style="border: none; border-top: 1px solid #bbb; margin: 12px 0 24px 0;">
|
|
1464
1464
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin: 0 0 24px 0;">
|
|
1465
1465
|
<tr>
|
|
@@ -1489,7 +1489,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1489
1489
|
<td style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; padding-right: 8px; vertical-align: bottom; visibility: hidden; white-space: nowrap;">[c_S]</td>
|
|
1490
1490
|
<td style="width: 100%; text-align: left;"><div style="display: inline-block; text-align: left;"><div class="cs-dots" style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 20px; font-weight: bold; color: #666; text-align: center; margin: 0 0 16px 0;">⋮</div><table cellpadding="0" cellspacing="0" border="0" class="cs-cta cs-cta-hover" style="display: inline-block; border: 1px solid #0047FF; border-radius: 2px; margin: 0; max-width: 220px;">
|
|
1491
1491
|
<tr><td style="text-align: center; font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px;">
|
|
1492
|
-
<a href="https://app.companysemantics.ai/
|
|
1492
|
+
<a href="https://app.companysemantics.ai/chat/preview789" class="cs-link" style="display: block; padding: 16px 24px; color: #0047FF; text-decoration: none;">>> <span style="text-decoration: underline;">OPEN CHAT</span> <<</a>
|
|
1493
1493
|
</td></tr>
|
|
1494
1494
|
</table></div></td>
|
|
1495
1495
|
<td style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; padding-left: 8px; vertical-align: bottom; visibility: hidden; white-space: nowrap;">(•̀_ರ╮)</td>
|
|
@@ -1504,7 +1504,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1504
1504
|
"subject": "A chat has been shared with you",
|
|
1505
1505
|
"text": "Hi there,
|
|
1506
1506
|
|
|
1507
|
-
A chat was shared with you.
|
|
1507
|
+
A chat was shared with you to read.
|
|
1508
1508
|
|
|
1509
1509
|
────────────────────────────────────────────────
|
|
1510
1510
|
|
|
@@ -1519,13 +1519,13 @@ A chat was shared with you.
|
|
|
1519
1519
|
[c_S] │ need improvement. The... │
|
|
1520
1520
|
└──────────────────────────────┘
|
|
1521
1521
|
|
|
1522
|
-
|
|
1522
|
+
⋮
|
|
1523
1523
|
|
|
1524
|
-
|
|
1525
|
-
| >>
|
|
1526
|
-
|
|
1524
|
+
*---------------------*
|
|
1525
|
+
| >> OPEN CHAT << |
|
|
1526
|
+
*---------------------*
|
|
1527
1527
|
|
|
1528
|
-
https://app.companysemantics.ai/
|
|
1528
|
+
https://app.companysemantics.ai/chat/preview789
|
|
1529
1529
|
────────────────────────────────────────────────
|
|
1530
1530
|
|
|
1531
1531
|
This share was sent via Company Semantics.
|
|
@@ -1590,7 +1590,7 @@ exports[`email render > chat.shared · Long title 1`] = `
|
|
|
1590
1590
|
<body class="csr-body">
|
|
1591
1591
|
<div class="csr-frame">
|
|
1592
1592
|
<p class="csr-p-normal">Hi there,</p>
|
|
1593
|
-
<p class="csr-p-normal">A chat was shared with you.</p>
|
|
1593
|
+
<p class="csr-p-normal">A chat was shared with you. You can take part in it.</p>
|
|
1594
1594
|
<hr class="cs-faint csr-chat-rule-top">
|
|
1595
1595
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="csr-chat-row-24">
|
|
1596
1596
|
<tr>
|
|
@@ -1620,7 +1620,7 @@ exports[`email render > chat.shared · Long title 1`] = `
|
|
|
1620
1620
|
<td class="csr-chat-avatar-left-hidden">[c_S]</td>
|
|
1621
1621
|
<td class="csr-chat-channel-left"><div class="csr-cta-stack"><div class="cs-dots csr-dots-over-cta">⋮</div><table cellpadding="0" cellspacing="0" border="0" class="cs-cta cs-cta-hover csr-cta-box-none">
|
|
1622
1622
|
<tr><td class="csr-cta-cell-linked">
|
|
1623
|
-
<a href="https://app.companysemantics.ai/
|
|
1623
|
+
<a href="https://app.companysemantics.ai/chat/long456" class="cs-link csr-cta-anchor">>> <span class="csr-cta-label">OPEN CHAT</span> <<</a>
|
|
1624
1624
|
</td></tr>
|
|
1625
1625
|
</table></div></td>
|
|
1626
1626
|
<td class="csr-chat-avatar-right-hidden">(•̀_ರ╮)</td>
|
|
@@ -1654,7 +1654,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1654
1654
|
<body style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; color: #1a1a1a; background-color: #ffffff; margin: 0; padding: 0;">
|
|
1655
1655
|
<div style="max-width: 520px;">
|
|
1656
1656
|
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">Hi there,</p>
|
|
1657
|
-
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">A chat was shared with you.</p>
|
|
1657
|
+
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">A chat was shared with you. You can take part in it.</p>
|
|
1658
1658
|
<hr class="cs-faint" style="border: none; border-top: 1px solid #bbb; margin: 12px 0 24px 0;">
|
|
1659
1659
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin: 0 0 24px 0;">
|
|
1660
1660
|
<tr>
|
|
@@ -1684,7 +1684,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1684
1684
|
<td style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; padding-right: 8px; vertical-align: bottom; visibility: hidden; white-space: nowrap;">[c_S]</td>
|
|
1685
1685
|
<td style="width: 100%; text-align: left;"><div style="display: inline-block; text-align: left;"><div class="cs-dots" style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 20px; font-weight: bold; color: #666; text-align: center; margin: 0 0 16px 0;">⋮</div><table cellpadding="0" cellspacing="0" border="0" class="cs-cta cs-cta-hover" style="display: inline-block; border: 1px solid #0047FF; border-radius: 2px; margin: 0; max-width: 220px;">
|
|
1686
1686
|
<tr><td style="text-align: center; font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px;">
|
|
1687
|
-
<a href="https://app.companysemantics.ai/
|
|
1687
|
+
<a href="https://app.companysemantics.ai/chat/long456" class="cs-link" style="display: block; padding: 16px 24px; color: #0047FF; text-decoration: none;">>> <span style="text-decoration: underline;">OPEN CHAT</span> <<</a>
|
|
1688
1688
|
</td></tr>
|
|
1689
1689
|
</table></div></td>
|
|
1690
1690
|
<td style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; padding-left: 8px; vertical-align: bottom; visibility: hidden; white-space: nowrap;">(•̀_ರ╮)</td>
|
|
@@ -1699,7 +1699,8 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1699
1699
|
"subject": "A chat has been shared with you",
|
|
1700
1700
|
"text": "Hi there,
|
|
1701
1701
|
|
|
1702
|
-
A chat was shared with you.
|
|
1702
|
+
A chat was shared with you. You can take part in
|
|
1703
|
+
it.
|
|
1703
1704
|
|
|
1704
1705
|
────────────────────────────────────────────────
|
|
1705
1706
|
|
|
@@ -1715,13 +1716,13 @@ A chat was shared with you.
|
|
|
1715
1716
|
[c_S] │ preview text. │
|
|
1716
1717
|
└──────────────────────────────┘
|
|
1717
1718
|
|
|
1718
|
-
|
|
1719
|
+
⋮
|
|
1719
1720
|
|
|
1720
|
-
|
|
1721
|
-
| >>
|
|
1722
|
-
|
|
1721
|
+
*---------------------*
|
|
1722
|
+
| >> OPEN CHAT << |
|
|
1723
|
+
*---------------------*
|
|
1723
1724
|
|
|
1724
|
-
https://app.companysemantics.ai/
|
|
1725
|
+
https://app.companysemantics.ai/chat/long456
|
|
1725
1726
|
────────────────────────────────────────────────
|
|
1726
1727
|
|
|
1727
1728
|
This share was sent via Company Semantics.
|
|
@@ -1786,7 +1787,7 @@ exports[`email render > chat.shared · No preview 1`] = `
|
|
|
1786
1787
|
<body class="csr-body">
|
|
1787
1788
|
<div class="csr-frame">
|
|
1788
1789
|
<p class="csr-p-normal">Hi there,</p>
|
|
1789
|
-
<p class="csr-p-normal">A chat was shared with you.</p>
|
|
1790
|
+
<p class="csr-p-normal">A chat was shared with you to read.</p>
|
|
1790
1791
|
<hr class="cs-faint csr-chat-rule-top">
|
|
1791
1792
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="csr-chat-row-16">
|
|
1792
1793
|
<tr>
|
|
@@ -1807,7 +1808,7 @@ exports[`email render > chat.shared · No preview 1`] = `
|
|
|
1807
1808
|
<td class="csr-chat-avatar-left-hidden">[c_S]</td>
|
|
1808
1809
|
<td class="csr-chat-channel-right"><div class="csr-cta-stack"><div class="cs-dots csr-dots-over-cta">⋮</div><table cellpadding="0" cellspacing="0" border="0" class="cs-cta cs-cta-hover csr-cta-box-none">
|
|
1809
1810
|
<tr><td class="csr-cta-cell-linked">
|
|
1810
|
-
<a href="https://app.companysemantics.ai/
|
|
1811
|
+
<a href="https://app.companysemantics.ai/chat/xyz789" class="cs-link csr-cta-anchor">>> <span class="csr-cta-label">OPEN CHAT</span> <<</a>
|
|
1811
1812
|
</td></tr>
|
|
1812
1813
|
</table></div></td>
|
|
1813
1814
|
<td class="csr-chat-avatar-right-hidden">(•̀_ರ╮)</td>
|
|
@@ -1841,7 +1842,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1841
1842
|
<body style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; color: #1a1a1a; background-color: #ffffff; margin: 0; padding: 0;">
|
|
1842
1843
|
<div style="max-width: 520px;">
|
|
1843
1844
|
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">Hi there,</p>
|
|
1844
|
-
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">A chat was shared with you.</p>
|
|
1845
|
+
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">A chat was shared with you to read.</p>
|
|
1845
1846
|
<hr class="cs-faint" style="border: none; border-top: 1px solid #bbb; margin: 12px 0 24px 0;">
|
|
1846
1847
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin: 0 0 16px 0;">
|
|
1847
1848
|
<tr>
|
|
@@ -1862,7 +1863,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1862
1863
|
<td style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; padding-right: 8px; vertical-align: bottom; visibility: hidden; white-space: nowrap;">[c_S]</td>
|
|
1863
1864
|
<td style="width: 100%; text-align: right;"><div style="display: inline-block; text-align: left;"><div class="cs-dots" style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 20px; font-weight: bold; color: #666; text-align: center; margin: 0 0 16px 0;">⋮</div><table cellpadding="0" cellspacing="0" border="0" class="cs-cta cs-cta-hover" style="display: inline-block; border: 1px solid #0047FF; border-radius: 2px; margin: 0; max-width: 220px;">
|
|
1864
1865
|
<tr><td style="text-align: center; font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px;">
|
|
1865
|
-
<a href="https://app.companysemantics.ai/
|
|
1866
|
+
<a href="https://app.companysemantics.ai/chat/xyz789" class="cs-link" style="display: block; padding: 16px 24px; color: #0047FF; text-decoration: none;">>> <span style="text-decoration: underline;">OPEN CHAT</span> <<</a>
|
|
1866
1867
|
</td></tr>
|
|
1867
1868
|
</table></div></td>
|
|
1868
1869
|
<td style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; padding-left: 8px; vertical-align: bottom; visibility: hidden; white-space: nowrap;">(•̀_ರ╮)</td>
|
|
@@ -1877,7 +1878,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
1877
1878
|
"subject": "A chat has been shared with you",
|
|
1878
1879
|
"text": "Hi there,
|
|
1879
1880
|
|
|
1880
|
-
A chat was shared with you.
|
|
1881
|
+
A chat was shared with you to read.
|
|
1881
1882
|
|
|
1882
1883
|
────────────────────────────────────────────────
|
|
1883
1884
|
|
|
@@ -1888,11 +1889,11 @@ A chat was shared with you.
|
|
|
1888
1889
|
|
|
1889
1890
|
⋮
|
|
1890
1891
|
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1892
|
+
*---------------------*
|
|
1893
|
+
| >> OPEN CHAT << |
|
|
1894
|
+
*---------------------*
|
|
1894
1895
|
|
|
1895
|
-
https://app.companysemantics.ai/
|
|
1896
|
+
https://app.companysemantics.ai/chat/xyz789
|
|
1896
1897
|
────────────────────────────────────────────────
|
|
1897
1898
|
|
|
1898
1899
|
This share was sent via Company Semantics.
|
|
@@ -1957,7 +1958,7 @@ exports[`email render > chat.shared · Short 1`] = `
|
|
|
1957
1958
|
<body class="csr-body">
|
|
1958
1959
|
<div class="csr-frame">
|
|
1959
1960
|
<p class="csr-p-normal">Hi there,</p>
|
|
1960
|
-
<p class="csr-p-normal">A chat was shared with you.</p>
|
|
1961
|
+
<p class="csr-p-normal">A chat was shared with you to read.</p>
|
|
1961
1962
|
<hr class="cs-faint csr-chat-rule-top">
|
|
1962
1963
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="csr-chat-row-24">
|
|
1963
1964
|
<tr>
|
|
@@ -1987,7 +1988,7 @@ exports[`email render > chat.shared · Short 1`] = `
|
|
|
1987
1988
|
<td class="csr-chat-avatar-left-hidden">[c_S]</td>
|
|
1988
1989
|
<td class="csr-chat-channel-left"><div class="csr-cta-stack"><div class="cs-dots csr-dots-over-cta">⋮</div><table cellpadding="0" cellspacing="0" border="0" class="cs-cta cs-cta-hover csr-cta-box-none">
|
|
1989
1990
|
<tr><td class="csr-cta-cell-linked">
|
|
1990
|
-
<a href="https://app.companysemantics.ai/
|
|
1991
|
+
<a href="https://app.companysemantics.ai/chat/short123" class="cs-link csr-cta-anchor">>> <span class="csr-cta-label">OPEN CHAT</span> <<</a>
|
|
1991
1992
|
</td></tr>
|
|
1992
1993
|
</table></div></td>
|
|
1993
1994
|
<td class="csr-chat-avatar-right-hidden">(•̀_ರ╮)</td>
|
|
@@ -2021,7 +2022,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
2021
2022
|
<body style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; color: #1a1a1a; background-color: #ffffff; margin: 0; padding: 0;">
|
|
2022
2023
|
<div style="max-width: 520px;">
|
|
2023
2024
|
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">Hi there,</p>
|
|
2024
|
-
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">A chat was shared with you.</p>
|
|
2025
|
+
<p style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; margin: 0 0 20px 0;">A chat was shared with you to read.</p>
|
|
2025
2026
|
<hr class="cs-faint" style="border: none; border-top: 1px solid #bbb; margin: 12px 0 24px 0;">
|
|
2026
2027
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin: 0 0 24px 0;">
|
|
2027
2028
|
<tr>
|
|
@@ -2051,7 +2052,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
2051
2052
|
<td style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; padding-right: 8px; vertical-align: bottom; visibility: hidden; white-space: nowrap;">[c_S]</td>
|
|
2052
2053
|
<td style="width: 100%; text-align: left;"><div style="display: inline-block; text-align: left;"><div class="cs-dots" style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 20px; font-weight: bold; color: #666; text-align: center; margin: 0 0 16px 0;">⋮</div><table cellpadding="0" cellspacing="0" border="0" class="cs-cta cs-cta-hover" style="display: inline-block; border: 1px solid #0047FF; border-radius: 2px; margin: 0; max-width: 220px;">
|
|
2053
2054
|
<tr><td style="text-align: center; font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px;">
|
|
2054
|
-
<a href="https://app.companysemantics.ai/
|
|
2055
|
+
<a href="https://app.companysemantics.ai/chat/short123" class="cs-link" style="display: block; padding: 16px 24px; color: #0047FF; text-decoration: none;">>> <span style="text-decoration: underline;">OPEN CHAT</span> <<</a>
|
|
2055
2056
|
</td></tr>
|
|
2056
2057
|
</table></div></td>
|
|
2057
2058
|
<td style="font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; padding-left: 8px; vertical-align: bottom; visibility: hidden; white-space: nowrap;">(•̀_ರ╮)</td>
|
|
@@ -2066,7 +2067,7 @@ body { background-color: #1a1a1a !important; color: #e8e8e8 !important; }
|
|
|
2066
2067
|
"subject": "A chat has been shared with you",
|
|
2067
2068
|
"text": "Hi there,
|
|
2068
2069
|
|
|
2069
|
-
A chat was shared with you.
|
|
2070
|
+
A chat was shared with you to read.
|
|
2070
2071
|
|
|
2071
2072
|
────────────────────────────────────────────────
|
|
2072
2073
|
|
|
@@ -2079,13 +2080,13 @@ A chat was shared with you.
|
|
|
2079
2080
|
[c_S] │ Hello! │
|
|
2080
2081
|
└──────────────────────────────┘
|
|
2081
2082
|
|
|
2082
|
-
|
|
2083
|
+
⋮
|
|
2083
2084
|
|
|
2084
|
-
|
|
2085
|
-
| >>
|
|
2086
|
-
|
|
2085
|
+
*---------------------*
|
|
2086
|
+
| >> OPEN CHAT << |
|
|
2087
|
+
*---------------------*
|
|
2087
2088
|
|
|
2088
|
-
https://app.companysemantics.ai/
|
|
2089
|
+
https://app.companysemantics.ai/chat/short123
|
|
2089
2090
|
────────────────────────────────────────────────
|
|
2090
2091
|
|
|
2091
2092
|
This share was sent via Company Semantics.
|
|
@@ -144,39 +144,39 @@ add("security.alert", "Unusual login location", {
|
|
|
144
144
|
|
|
145
145
|
const CHAT_BASE = {
|
|
146
146
|
sharedByName: "Alex Rivera",
|
|
147
|
-
|
|
147
|
+
access: "read",
|
|
148
148
|
} as const;
|
|
149
149
|
add("chat.shared", "Default", {
|
|
150
150
|
...CHAT_BASE,
|
|
151
151
|
chatTitle: "API design discussion",
|
|
152
|
-
|
|
152
|
+
chatUrl: `${APP}/chat/abc123`,
|
|
153
153
|
previewText:
|
|
154
154
|
"Here are my thoughts on the REST API design for the new authentication endpoints.",
|
|
155
155
|
});
|
|
156
156
|
add("chat.shared", "No preview", {
|
|
157
157
|
...CHAT_BASE,
|
|
158
158
|
chatTitle: "Quick sync notes",
|
|
159
|
-
|
|
159
|
+
chatUrl: `${APP}/chat/xyz789`,
|
|
160
160
|
});
|
|
161
161
|
add("chat.shared", "Long title", {
|
|
162
162
|
...CHAT_BASE,
|
|
163
|
-
|
|
163
|
+
access: "collaborate",
|
|
164
164
|
chatTitle:
|
|
165
165
|
"This is a very long chat title that should be truncated to fit the layout properly",
|
|
166
|
-
|
|
166
|
+
chatUrl: `${APP}/chat/long456`,
|
|
167
167
|
previewText: "The assistant response preview text.",
|
|
168
168
|
});
|
|
169
169
|
add("chat.shared", "Long preview", {
|
|
170
170
|
...CHAT_BASE,
|
|
171
171
|
chatTitle: "Code review feedback",
|
|
172
|
-
|
|
172
|
+
chatUrl: `${APP}/chat/preview789`,
|
|
173
173
|
previewText:
|
|
174
174
|
"I reviewed the pull request and found several areas that need improvement. The authentication logic needs better error handling, and the database queries could be optimized.",
|
|
175
175
|
});
|
|
176
176
|
add("chat.shared", "Short", {
|
|
177
177
|
...CHAT_BASE,
|
|
178
178
|
chatTitle: "Hi",
|
|
179
|
-
|
|
179
|
+
chatUrl: `${APP}/chat/short123`,
|
|
180
180
|
previewText: "Hello!",
|
|
181
181
|
});
|
|
182
182
|
|