@flamingo-stack/openframe-frontend-core 0.0.701 → 0.0.702
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/{chunk-MFORWVGD.js → chunk-2V4Z44G6.js} +4 -4
- package/dist/{chunk-GFXZMFDX.cjs → chunk-3G76LRGL.cjs} +9 -9
- package/dist/{chunk-65YVUYWJ.cjs → chunk-3WSFIV5G.cjs} +32 -32
- package/dist/{chunk-GD4JALTR.js → chunk-446KS5BG.js} +1 -1
- package/dist/{chunk-BRQY2HKD.cjs → chunk-AEQANLBW.cjs} +17 -17
- package/dist/{chunk-ZSPHOHOW.cjs → chunk-ASN65P3F.cjs} +2 -2
- package/dist/{chunk-YBC346FY.cjs → chunk-B3LZJ6J3.cjs} +12 -12
- package/dist/{chunk-JPVDJB27.js → chunk-BO5ZHDA4.js} +3 -3
- package/dist/{chunk-2CSYUMNM.cjs → chunk-CXDJUKC6.cjs} +2 -2
- package/dist/{chunk-QPNR4N7N.cjs → chunk-CYYTD5ZK.cjs} +16 -16
- package/dist/{chunk-B7M6QEEM.js → chunk-CZ34HXDW.js} +661 -275
- package/dist/{chunk-4H5Q6MQG.cjs → chunk-E3DH543A.cjs} +35 -35
- package/dist/{chunk-BZYMGI4L.js → chunk-ETFFEA3J.js} +1 -1
- package/dist/{chunk-QDIX2ZRL.cjs → chunk-FD4DBTFO.cjs} +430 -44
- package/dist/{chunk-BPS7JQCI.cjs → chunk-FHM7GD5B.cjs} +2 -2
- package/dist/{chunk-QZGFJBG5.cjs → chunk-HIXGAY2L.cjs} +50 -50
- package/dist/{chunk-V5QNDOEL.js → chunk-HPJ4XS2L.js} +3 -3
- package/dist/{chunk-DJLZXJYB.js → chunk-HYFLTFFB.js} +1 -1
- package/dist/{chunk-CUPJCGLB.js → chunk-IZKOQVXO.js} +1 -1
- package/dist/{chunk-N7DPIH57.js → chunk-JOY6HVPV.js} +1 -1
- package/dist/{chunk-NIT257DV.cjs → chunk-L7KZA7ZD.cjs} +2 -2
- package/dist/{chunk-BQ34PIFC.cjs → chunk-LZNJH23A.cjs} +3 -3
- package/dist/{chunk-EONNPRAW.js → chunk-MWUBBBWZ.js} +1 -1
- package/dist/{chunk-N7HMUQRV.js → chunk-PLK6GHN7.js} +1 -1
- package/dist/{chunk-DG2I57UM.cjs → chunk-QFW3RUZS.cjs} +16 -16
- package/dist/{chunk-S4ADN25W.js → chunk-RS7HWAYX.js} +1 -1
- package/dist/{chunk-PNWIVND4.js → chunk-SAA7B3DA.js} +2 -2
- package/dist/{chunk-6JG75WVO.js → chunk-UJJWTJ6S.js} +4 -4
- package/dist/{chunk-7ZDTAABP.cjs → chunk-YGRHITPY.cjs} +3 -3
- package/dist/{chunk-A5ZGKBN2.js → chunk-Z5HDCZAS.js} +1 -1
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +22 -2
- package/dist/components/features/index.js +21 -1
- package/dist/components/features/remote-session/index.d.ts +9 -1
- package/dist/components/features/remote-session/index.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-block.d.ts +4 -2
- package/dist/components/features/remote-session/remote-session-block.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-chat-panel.d.ts +4 -2
- package/dist/components/features/remote-session/remote-session-chat-panel.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-events.d.ts +24 -0
- package/dist/components/features/remote-session/remote-session-events.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-session-keep-modals.d.ts +41 -0
- package/dist/components/features/remote-session/remote-session-keep-modals.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-session-parts.d.ts +13 -2
- package/dist/components/features/remote-session/remote-session-parts.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-status.d.ts +34 -0
- package/dist/components/features/remote-session/remote-session-status.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-session-viewers.d.ts +15 -0
- package/dist/components/features/remote-session/remote-session-viewers.d.ts.map +1 -0
- package/dist/components/features/remote-session/types.d.ts +22 -0
- package/dist/components/features/remote-session/types.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +49 -49
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +53 -33
- package/dist/components/index.js +32 -12
- package/dist/components/meeting-scheduler/index.cjs +22 -22
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +26 -6
- package/dist/index.js +25 -5
- package/dist/tailwind.config.cjs +7 -1
- package/dist/tailwind.config.js +7 -1
- package/package.json +1 -1
- package/src/components/features/remote-session/index.ts +28 -0
- package/src/components/features/remote-session/remote-session-block.tsx +6 -3
- package/src/components/features/remote-session/remote-session-chat-panel.tsx +11 -7
- package/src/components/features/remote-session/remote-session-events.tsx +93 -0
- package/src/components/features/remote-session/remote-session-keep-modals.tsx +208 -0
- package/src/components/features/remote-session/remote-session-parts.tsx +32 -3
- package/src/components/features/remote-session/remote-session-status.tsx +102 -0
- package/src/components/features/remote-session/remote-session-viewers.tsx +103 -0
- package/src/components/features/remote-session/types.ts +26 -0
- package/tailwind.config.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
SoftwareInfo,
|
|
10
10
|
SoftwareSourceBadge,
|
|
11
11
|
ToolBadge
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PLK6GHN7.js";
|
|
13
13
|
import {
|
|
14
14
|
AppHeader,
|
|
15
15
|
AppLayout,
|
|
@@ -29,14 +29,14 @@ import {
|
|
|
29
29
|
SlidingSidebar,
|
|
30
30
|
TicketAlertsButton,
|
|
31
31
|
TopNavigation
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-SAA7B3DA.js";
|
|
33
33
|
import {
|
|
34
34
|
MobileNavigationDropdown,
|
|
35
35
|
MultiLevelNavigation,
|
|
36
36
|
StickySectionNav,
|
|
37
37
|
useSectionNavigation
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-HYFLTFFB.js";
|
|
39
|
+
import "./chunk-RS7HWAYX.js";
|
|
40
40
|
import {
|
|
41
41
|
AIEnrichButton,
|
|
42
42
|
AIEnrichSection,
|
|
@@ -233,6 +233,7 @@ import {
|
|
|
233
233
|
InputTrigger,
|
|
234
234
|
InviteLinkInvalidModal,
|
|
235
235
|
JsonDetailList,
|
|
236
|
+
KeepRecordingModal,
|
|
236
237
|
KnowledgeBaseLinksManager,
|
|
237
238
|
LabeledDivider,
|
|
238
239
|
LazyMount,
|
|
@@ -334,6 +335,7 @@ import {
|
|
|
334
335
|
QueryReportTableRow,
|
|
335
336
|
QueryReportTableSkeleton,
|
|
336
337
|
REMOTE_SESSION_DRAG_HANDLE_CLASS,
|
|
338
|
+
REMOTE_SESSION_KEEP_REASON_LABELS,
|
|
337
339
|
ROADMAP_STATUS_OPTIONS,
|
|
338
340
|
ROW_HEIGHT_DESKTOP,
|
|
339
341
|
ROW_HEIGHT_MOBILE,
|
|
@@ -342,6 +344,7 @@ import {
|
|
|
342
344
|
RadioGroupBlock,
|
|
343
345
|
RadioGroupItem,
|
|
344
346
|
ReleaseChangelogSection,
|
|
347
|
+
ReleaseKeepingModal,
|
|
345
348
|
RemoteAccessRequestCard,
|
|
346
349
|
RemoteSessionBlockFrame,
|
|
347
350
|
RemoteSessionBorder,
|
|
@@ -349,12 +352,18 @@ import {
|
|
|
349
352
|
RemoteSessionDialog,
|
|
350
353
|
RemoteSessionDragger,
|
|
351
354
|
RemoteSessionEndButton,
|
|
355
|
+
RemoteSessionEventList,
|
|
356
|
+
RemoteSessionExpiry,
|
|
352
357
|
RemoteSessionMinimizedChip,
|
|
353
358
|
RemoteSessionOrgLogo,
|
|
354
359
|
RemoteSessionPill,
|
|
355
360
|
RemoteSessionRecordingTag,
|
|
356
361
|
RemoteSessionScope,
|
|
362
|
+
RemoteSessionStatusTag,
|
|
363
|
+
RemoteSessionStorageAlert,
|
|
357
364
|
RemoteSessionSummary,
|
|
365
|
+
RemoteSessionTimelineMarkers,
|
|
366
|
+
RemoteSessionViewers,
|
|
358
367
|
ReopenTicketModal,
|
|
359
368
|
ReopenTicketRequestModal,
|
|
360
369
|
RichMarkdownRenderer,
|
|
@@ -528,6 +537,7 @@ import {
|
|
|
528
537
|
formatDocName,
|
|
529
538
|
formatPhoneE164,
|
|
530
539
|
formatRemoteSessionElapsed,
|
|
540
|
+
formatRemoteSessionOffset,
|
|
531
541
|
formatTestRunDuration,
|
|
532
542
|
generateBiteId,
|
|
533
543
|
getApprovalMeta,
|
|
@@ -655,7 +665,7 @@ import {
|
|
|
655
665
|
withFirstTouchAttribution,
|
|
656
666
|
withWalkthroughOpenParam,
|
|
657
667
|
writeDismissCookie
|
|
658
|
-
} from "./chunk-
|
|
668
|
+
} from "./chunk-CZ34HXDW.js";
|
|
659
669
|
import "./chunk-LQYXMEYF.js";
|
|
660
670
|
import "./chunk-4JPLYOS6.js";
|
|
661
671
|
import {
|
|
@@ -2390,6 +2400,7 @@ export {
|
|
|
2390
2400
|
InviteLinkInvalidModal,
|
|
2391
2401
|
JsonDetailList,
|
|
2392
2402
|
JumpInIcon,
|
|
2403
|
+
KeepRecordingModal,
|
|
2393
2404
|
KnowledgeBaseLinksManager,
|
|
2394
2405
|
LOG_SEVERITY_COLORS,
|
|
2395
2406
|
LOG_SEVERITY_LABELS,
|
|
@@ -2620,6 +2631,7 @@ export {
|
|
|
2620
2631
|
RATIO_GRID_CLASS,
|
|
2621
2632
|
RATIO_TO_CSS_ASPECT,
|
|
2622
2633
|
REMOTE_SESSION_DRAG_HANDLE_CLASS,
|
|
2634
|
+
REMOTE_SESSION_KEEP_REASON_LABELS,
|
|
2623
2635
|
RESCUE_FORMS,
|
|
2624
2636
|
RESYNC_AFTER_HIDDEN_MS,
|
|
2625
2637
|
ROADMAP_STATUS_OPTIONS,
|
|
@@ -2634,6 +2646,7 @@ export {
|
|
|
2634
2646
|
ReclaimProfitsIcon,
|
|
2635
2647
|
RedditIcon,
|
|
2636
2648
|
ReleaseChangelogSection,
|
|
2649
|
+
ReleaseKeepingModal,
|
|
2637
2650
|
RemoteAccessRequestCard,
|
|
2638
2651
|
RemoteControlIcon,
|
|
2639
2652
|
RemoteSessionBlockFrame,
|
|
@@ -2642,12 +2655,18 @@ export {
|
|
|
2642
2655
|
RemoteSessionDialog,
|
|
2643
2656
|
RemoteSessionDragger,
|
|
2644
2657
|
RemoteSessionEndButton,
|
|
2658
|
+
RemoteSessionEventList,
|
|
2659
|
+
RemoteSessionExpiry,
|
|
2645
2660
|
RemoteSessionMinimizedChip,
|
|
2646
2661
|
RemoteSessionOrgLogo,
|
|
2647
2662
|
RemoteSessionPill,
|
|
2648
2663
|
RemoteSessionRecordingTag,
|
|
2649
2664
|
RemoteSessionScope,
|
|
2665
|
+
RemoteSessionStatusTag,
|
|
2666
|
+
RemoteSessionStorageAlert,
|
|
2650
2667
|
RemoteSessionSummary,
|
|
2668
|
+
RemoteSessionTimelineMarkers,
|
|
2669
|
+
RemoteSessionViewers,
|
|
2651
2670
|
RenameChatModal,
|
|
2652
2671
|
ReopenTicketModal,
|
|
2653
2672
|
ReopenTicketRequestModal,
|
|
@@ -3105,6 +3124,7 @@ export {
|
|
|
3105
3124
|
formatRelativeTime,
|
|
3106
3125
|
formatReleaseDate,
|
|
3107
3126
|
formatRemoteSessionElapsed,
|
|
3127
|
+
formatRemoteSessionOffset,
|
|
3108
3128
|
formatSingularLookupInvocation,
|
|
3109
3129
|
formatTestRunDuration,
|
|
3110
3130
|
formatTicketFullTimestamp,
|
package/dist/tailwind.config.cjs
CHANGED
|
@@ -486,6 +486,11 @@ var config = {
|
|
|
486
486
|
"dot-pulse": {
|
|
487
487
|
"0%, 80%, 100%": { transform: "scale(1)", opacity: "0.7" },
|
|
488
488
|
"40%": { transform: "scale(1.5)", opacity: "1" }
|
|
489
|
+
},
|
|
490
|
+
// The dot on a LIVE tag: opacity only, so it reads as "on air" without moving.
|
|
491
|
+
"live-pulse": {
|
|
492
|
+
"0%, 100%": { opacity: "1" },
|
|
493
|
+
"50%": { opacity: "0.25" }
|
|
489
494
|
}
|
|
490
495
|
},
|
|
491
496
|
animation: {
|
|
@@ -493,7 +498,8 @@ var config = {
|
|
|
493
498
|
"accordion-up": "accordion-up 0.2s ease-out",
|
|
494
499
|
"fade-in": "fade-in 0.3s ease-out",
|
|
495
500
|
"cursor-blink": "cursor-blink 1s steps(1) infinite",
|
|
496
|
-
"dot-pulse": "dot-pulse 1.4s ease-in-out infinite"
|
|
501
|
+
"dot-pulse": "dot-pulse 1.4s ease-in-out infinite",
|
|
502
|
+
"live-pulse": "live-pulse 1.6s ease-in-out infinite"
|
|
497
503
|
}
|
|
498
504
|
}
|
|
499
505
|
},
|
package/dist/tailwind.config.js
CHANGED
|
@@ -479,6 +479,11 @@ var config = {
|
|
|
479
479
|
"dot-pulse": {
|
|
480
480
|
"0%, 80%, 100%": { transform: "scale(1)", opacity: "0.7" },
|
|
481
481
|
"40%": { transform: "scale(1.5)", opacity: "1" }
|
|
482
|
+
},
|
|
483
|
+
// The dot on a LIVE tag: opacity only, so it reads as "on air" without moving.
|
|
484
|
+
"live-pulse": {
|
|
485
|
+
"0%, 100%": { opacity: "1" },
|
|
486
|
+
"50%": { opacity: "0.25" }
|
|
482
487
|
}
|
|
483
488
|
},
|
|
484
489
|
animation: {
|
|
@@ -486,7 +491,8 @@ var config = {
|
|
|
486
491
|
"accordion-up": "accordion-up 0.2s ease-out",
|
|
487
492
|
"fade-in": "fade-in 0.3s ease-out",
|
|
488
493
|
"cursor-blink": "cursor-blink 1s steps(1) infinite",
|
|
489
|
-
"dot-pulse": "dot-pulse 1.4s ease-in-out infinite"
|
|
494
|
+
"dot-pulse": "dot-pulse 1.4s ease-in-out infinite",
|
|
495
|
+
"live-pulse": "live-pulse 1.6s ease-in-out infinite"
|
|
490
496
|
}
|
|
491
497
|
}
|
|
492
498
|
},
|
package/package.json
CHANGED
|
@@ -16,6 +16,30 @@ export type { RemoteSessionChatPanelProps } from './remote-session-chat-panel';
|
|
|
16
16
|
export { RemoteSessionDialog } from './remote-session-dialog';
|
|
17
17
|
export type { RemoteSessionDialogProps } from './remote-session-dialog';
|
|
18
18
|
export { RemoteSessionBorder, RemoteSessionPill } from './remote-session-overlay';
|
|
19
|
+
export {
|
|
20
|
+
REMOTE_SESSION_KEEP_REASON_LABELS,
|
|
21
|
+
KeepRecordingModal,
|
|
22
|
+
ReleaseKeepingModal,
|
|
23
|
+
} from './remote-session-keep-modals';
|
|
24
|
+
export type {
|
|
25
|
+
KeepRecordingModalProps,
|
|
26
|
+
KeepRecordingSelection,
|
|
27
|
+
ReleaseKeepingModalProps,
|
|
28
|
+
} from './remote-session-keep-modals';
|
|
29
|
+
export {
|
|
30
|
+
RemoteSessionEventList,
|
|
31
|
+
RemoteSessionTimelineMarkers,
|
|
32
|
+
formatRemoteSessionOffset,
|
|
33
|
+
} from './remote-session-events';
|
|
34
|
+
export type { RemoteSessionEventListProps, RemoteSessionTimelineMarkersProps } from './remote-session-events';
|
|
35
|
+
export { RemoteSessionExpiry, RemoteSessionStatusTag, RemoteSessionStorageAlert } from './remote-session-status';
|
|
36
|
+
export type {
|
|
37
|
+
RemoteSessionExpiryProps,
|
|
38
|
+
RemoteSessionStatusTagProps,
|
|
39
|
+
RemoteSessionStorageAlertProps,
|
|
40
|
+
} from './remote-session-status';
|
|
41
|
+
export { RemoteSessionViewers } from './remote-session-viewers';
|
|
42
|
+
export type { RemoteSessionViewersProps } from './remote-session-viewers';
|
|
19
43
|
export {
|
|
20
44
|
REMOTE_SESSION_DRAG_HANDLE_CLASS,
|
|
21
45
|
RemoteSessionDragger,
|
|
@@ -32,5 +56,9 @@ export type {
|
|
|
32
56
|
RemoteSessionChatMessage,
|
|
33
57
|
RemoteSessionDialogVariant,
|
|
34
58
|
RemoteSessionDragHandlers,
|
|
59
|
+
RemoteSessionEvent,
|
|
60
|
+
RemoteSessionKeepReason,
|
|
35
61
|
RemoteSessionParty,
|
|
62
|
+
RemoteSessionStatus,
|
|
63
|
+
RemoteSessionViewer,
|
|
36
64
|
} from './types';
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
REMOTE_SESSION_DRAG_HANDLE_CLASS,
|
|
11
11
|
RemoteSessionDragger,
|
|
12
12
|
RemoteSessionOrgLogo,
|
|
13
|
-
|
|
13
|
+
RemoteSessionStatusRow,
|
|
14
14
|
} from './remote-session-parts';
|
|
15
|
-
import type { RemoteSessionDragHandlers, RemoteSessionParty } from './types';
|
|
15
|
+
import type { RemoteSessionDragHandlers, RemoteSessionParty, RemoteSessionViewer } from './types';
|
|
16
16
|
|
|
17
17
|
export interface RemoteSessionBlockFrameProps {
|
|
18
18
|
/** The summary or the chat panel. */
|
|
@@ -74,6 +74,8 @@ export interface RemoteSessionSummaryProps {
|
|
|
74
74
|
/** Elapsed session time, e.g. from `useRemoteSessionTimer`. */
|
|
75
75
|
elapsed: string;
|
|
76
76
|
showRecordingTag?: boolean;
|
|
77
|
+
/** Everyone in the session while colleagues watch it, the host included; hidden when empty. */
|
|
78
|
+
viewers?: RemoteSessionViewer[];
|
|
77
79
|
onOpenChat: () => void;
|
|
78
80
|
onEndSession: () => void;
|
|
79
81
|
/** Makes the header row and the dragger move the window. */
|
|
@@ -85,6 +87,7 @@ export function RemoteSessionSummary({
|
|
|
85
87
|
party,
|
|
86
88
|
elapsed,
|
|
87
89
|
showRecordingTag = false,
|
|
90
|
+
viewers,
|
|
88
91
|
onOpenChat,
|
|
89
92
|
onEndSession,
|
|
90
93
|
dragHandlers,
|
|
@@ -118,7 +121,7 @@ export function RemoteSessionSummary({
|
|
|
118
121
|
<p className="w-full truncate text-ods-text-secondary text-h4">{party.organizationName}</p>
|
|
119
122
|
</div>
|
|
120
123
|
</div>
|
|
121
|
-
{showRecordingTag
|
|
124
|
+
<RemoteSessionStatusRow showRecordingTag={showRecordingTag} viewers={viewers} />
|
|
122
125
|
<div className="flex w-full items-stretch gap-[var(--spacing-system-m)]">
|
|
123
126
|
<Button
|
|
124
127
|
variant="outline"
|
|
@@ -6,12 +6,13 @@ import { MessageOffIcon, Send03Icon } from '../../icons-v2-generated';
|
|
|
6
6
|
import { Button } from '../../ui/button/button';
|
|
7
7
|
import { SquareAvatar } from '../../ui/square-avatar';
|
|
8
8
|
import { RemoteSessionEndButton } from './remote-session-block';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
import { REMOTE_SESSION_DRAG_HANDLE_CLASS, RemoteSessionDragger, RemoteSessionStatusRow } from './remote-session-parts';
|
|
10
|
+
import type {
|
|
11
|
+
RemoteSessionChatMessage,
|
|
12
|
+
RemoteSessionDragHandlers,
|
|
13
|
+
RemoteSessionParty,
|
|
14
|
+
RemoteSessionViewer,
|
|
15
|
+
} from './types';
|
|
15
16
|
|
|
16
17
|
export interface RemoteSessionChatPanelProps {
|
|
17
18
|
party: RemoteSessionParty;
|
|
@@ -19,6 +20,8 @@ export interface RemoteSessionChatPanelProps {
|
|
|
19
20
|
elapsed: string;
|
|
20
21
|
messages: RemoteSessionChatMessage[];
|
|
21
22
|
showRecordingTag?: boolean;
|
|
23
|
+
/** Everyone in the session while colleagues watch it, the host included; hidden when empty. */
|
|
24
|
+
viewers?: RemoteSessionViewer[];
|
|
22
25
|
/** The composer's text; owned by the host so it survives hiding the block. */
|
|
23
26
|
draft: string;
|
|
24
27
|
onDraftChange: (draft: string) => void;
|
|
@@ -43,6 +46,7 @@ export function RemoteSessionChatPanel({
|
|
|
43
46
|
elapsed,
|
|
44
47
|
messages,
|
|
45
48
|
showRecordingTag = false,
|
|
49
|
+
viewers,
|
|
46
50
|
draft,
|
|
47
51
|
onDraftChange,
|
|
48
52
|
onSend,
|
|
@@ -83,7 +87,7 @@ export function RemoteSessionChatPanel({
|
|
|
83
87
|
</p>
|
|
84
88
|
<p className="w-full truncate text-ods-text-secondary text-h4">You can end this session at any time</p>
|
|
85
89
|
</div>
|
|
86
|
-
{showRecordingTag
|
|
90
|
+
<RemoteSessionStatusRow showRecordingTag={showRecordingTag} viewers={viewers} />
|
|
87
91
|
<div className="flex w-full items-stretch gap-[var(--spacing-system-m)]">
|
|
88
92
|
<Button
|
|
89
93
|
variant="outline"
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { cn } from '../../../utils/cn';
|
|
4
|
+
import type { RemoteSessionEvent } from './types';
|
|
5
|
+
|
|
6
|
+
/** `mm:ss` from the start of a recording; `h:mm:ss` from the first hour on. */
|
|
7
|
+
export function formatRemoteSessionOffset(offsetMs: number): string {
|
|
8
|
+
const total = Math.max(0, Math.floor(offsetMs / 1000));
|
|
9
|
+
const hours = Math.floor(total / 3600);
|
|
10
|
+
const minutes = String(Math.floor((total % 3600) / 60)).padStart(2, '0');
|
|
11
|
+
const seconds = String(total % 60).padStart(2, '0');
|
|
12
|
+
return hours > 0 ? `${hours}:${minutes}:${seconds}` : `${minutes}:${seconds}`;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface RemoteSessionEventListProps {
|
|
16
|
+
events: RemoteSessionEvent[];
|
|
17
|
+
/** The event the playhead is on; highlighted. */
|
|
18
|
+
activeEventId?: string | null;
|
|
19
|
+
/** Seek the player to the event. */
|
|
20
|
+
onSelect?: (event: RemoteSessionEvent) => void;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** SESSION EVENTS under the recording player: each event with its time, newest last. */
|
|
25
|
+
export function RemoteSessionEventList({ events, activeEventId, onSelect, className }: RemoteSessionEventListProps) {
|
|
26
|
+
return (
|
|
27
|
+
<section className={cn('flex w-full flex-col gap-[var(--spacing-system-xxs)]', className)}>
|
|
28
|
+
<h2 className="text-ods-text-secondary text-h5">Session Events</h2>
|
|
29
|
+
<ol className="flex w-full flex-col gap-[var(--spacing-system-xxs)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-m)]">
|
|
30
|
+
{events.map(event => (
|
|
31
|
+
<li key={event.id}>
|
|
32
|
+
<button
|
|
33
|
+
type="button"
|
|
34
|
+
aria-current={event.id === activeEventId || undefined}
|
|
35
|
+
onClick={() => onSelect?.(event)}
|
|
36
|
+
className={cn(
|
|
37
|
+
'flex w-full items-start gap-[var(--spacing-system-xxs)] rounded-md p-[var(--spacing-system-xxs)] text-left outline-none transition-colors',
|
|
38
|
+
'hover:bg-ods-bg-hover focus-visible:ring-2 focus-visible:ring-ods-focus',
|
|
39
|
+
event.id === activeEventId && 'bg-ods-border hover:bg-ods-border',
|
|
40
|
+
)}
|
|
41
|
+
>
|
|
42
|
+
<span className="w-[84px] shrink-0 text-ods-text-secondary text-h4">
|
|
43
|
+
{formatRemoteSessionOffset(event.offsetMs)}
|
|
44
|
+
</span>
|
|
45
|
+
<span className="flex min-w-0 flex-1 flex-col">
|
|
46
|
+
<span className="text-ods-text-primary text-h4">{event.title}</span>
|
|
47
|
+
{event.detail && <span className="text-ods-text-secondary text-h6">{event.detail}</span>}
|
|
48
|
+
</span>
|
|
49
|
+
</button>
|
|
50
|
+
</li>
|
|
51
|
+
))}
|
|
52
|
+
</ol>
|
|
53
|
+
</section>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface RemoteSessionTimelineMarkersProps {
|
|
58
|
+
events: RemoteSessionEvent[];
|
|
59
|
+
/** Length of the recording; events past it are pinned to the end. */
|
|
60
|
+
durationMs: number;
|
|
61
|
+
/** Seek the player to the event. */
|
|
62
|
+
onSelect?: (event: RemoteSessionEvent) => void;
|
|
63
|
+
className?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** The event marks above the player's track, one per event, at its share of the recording. */
|
|
67
|
+
export function RemoteSessionTimelineMarkers({
|
|
68
|
+
events,
|
|
69
|
+
durationMs,
|
|
70
|
+
onSelect,
|
|
71
|
+
className,
|
|
72
|
+
}: RemoteSessionTimelineMarkersProps) {
|
|
73
|
+
if (durationMs <= 0) return null;
|
|
74
|
+
return (
|
|
75
|
+
<div className={cn('relative h-4 w-full', className)}>
|
|
76
|
+
{events.map(event => {
|
|
77
|
+
const share = Math.min(1, Math.max(0, event.offsetMs / durationMs));
|
|
78
|
+
const label = `${event.title} at ${formatRemoteSessionOffset(event.offsetMs)}`;
|
|
79
|
+
return (
|
|
80
|
+
<button
|
|
81
|
+
key={event.id}
|
|
82
|
+
type="button"
|
|
83
|
+
aria-label={label}
|
|
84
|
+
title={label}
|
|
85
|
+
onClick={() => onSelect?.(event)}
|
|
86
|
+
style={{ left: `${share * 100}%` }}
|
|
87
|
+
className="absolute top-0 h-4 w-1 -translate-x-1/2 rounded-md bg-ods-text-secondary outline-none transition-colors hover:bg-ods-text-primary focus-visible:ring-2 focus-visible:ring-ods-focus"
|
|
88
|
+
/>
|
|
89
|
+
);
|
|
90
|
+
})}
|
|
91
|
+
</div>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { type ReactNode, useState } from 'react';
|
|
4
|
+
import { HourglassIcon, InfoCircleIcon } from '../../icons-v2-generated';
|
|
5
|
+
import { Button } from '../../ui/button/button';
|
|
6
|
+
import { Input } from '../../ui/input';
|
|
7
|
+
import { ModalV2, ModalV2Footer, ModalV2Header, ModalV2Title } from '../../ui/modal-v2';
|
|
8
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../../ui/select';
|
|
9
|
+
import type { RemoteSessionKeepReason } from './types';
|
|
10
|
+
|
|
11
|
+
/** How each Keep reason reads in the dialog, the session list and the release notice. */
|
|
12
|
+
export const REMOTE_SESSION_KEEP_REASON_LABELS: Record<RemoteSessionKeepReason, string> = {
|
|
13
|
+
CLIENT_DISPUTE: 'Client dispute',
|
|
14
|
+
INTERNAL_REVIEW: 'Internal review',
|
|
15
|
+
LEGAL_OR_COMPLIANCE: 'Legal or compliance request',
|
|
16
|
+
OTHER: 'Other',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const KEEP_REASONS = Object.keys(REMOTE_SESSION_KEEP_REASON_LABELS) as RemoteSessionKeepReason[];
|
|
20
|
+
|
|
21
|
+
const DESCRIPTION_MAX_LENGTH = 500;
|
|
22
|
+
|
|
23
|
+
/** A notice inside the Keep dialogs: an icon, a bold line and the explanation under it. */
|
|
24
|
+
function KeepNotice({ icon, title, children }: { icon: ReactNode; title: string; children: ReactNode }) {
|
|
25
|
+
return (
|
|
26
|
+
<div className="flex w-full items-start gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-m)]">
|
|
27
|
+
<span className="flex shrink-0 text-ods-text-secondary">{icon}</span>
|
|
28
|
+
<div className="flex min-w-0 flex-1 flex-col">
|
|
29
|
+
<p className="text-ods-text-primary text-h3">{title}</p>
|
|
30
|
+
<p className="text-ods-text-secondary text-h4">{children}</p>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface KeepRecordingSelection {
|
|
37
|
+
reason: RemoteSessionKeepReason;
|
|
38
|
+
/** Trimmed; set for `OTHER` only. */
|
|
39
|
+
description: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface KeepRecordingModalProps {
|
|
43
|
+
isOpen: boolean;
|
|
44
|
+
onClose: () => void;
|
|
45
|
+
/** What kept recordings take of the tenant's allowance, e.g. "612 MB of 50 GB". */
|
|
46
|
+
keptUsage: string;
|
|
47
|
+
/** The Keep is in flight: the button spins and the dialog refuses to close. */
|
|
48
|
+
isPending?: boolean;
|
|
49
|
+
onConfirm: (selection: KeepRecordingSelection) => void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Keep this recording: exempts it from automatic deletion until someone releases it. */
|
|
53
|
+
export function KeepRecordingModal({
|
|
54
|
+
isOpen,
|
|
55
|
+
onClose,
|
|
56
|
+
keptUsage,
|
|
57
|
+
isPending = false,
|
|
58
|
+
onConfirm,
|
|
59
|
+
}: KeepRecordingModalProps) {
|
|
60
|
+
const [reason, setReason] = useState<RemoteSessionKeepReason | ''>('');
|
|
61
|
+
const [description, setDescription] = useState('');
|
|
62
|
+
|
|
63
|
+
// Every opening starts blank. Reset while rendering, not from an effect: the
|
|
64
|
+
// modal stays mounted when it closes, so an effect would paint the opening
|
|
65
|
+
// frame with the previous answer still filled in.
|
|
66
|
+
const [seededOpen, setSeededOpen] = useState(isOpen);
|
|
67
|
+
if (seededOpen !== isOpen) {
|
|
68
|
+
setSeededOpen(isOpen);
|
|
69
|
+
if (isOpen) {
|
|
70
|
+
setReason('');
|
|
71
|
+
setDescription('');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const trimmed = description.trim();
|
|
76
|
+
const canKeep = reason !== '' && (reason !== 'OTHER' || trimmed !== '');
|
|
77
|
+
|
|
78
|
+
const handleKeep = () => {
|
|
79
|
+
if (!canKeep || isPending) return;
|
|
80
|
+
onConfirm({ reason, description: reason === 'OTHER' ? trimmed : null });
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<ModalV2 isOpen={isOpen} onClose={isPending ? () => {} : onClose} className="text-left md:max-w-[600px]">
|
|
85
|
+
<ModalV2Header>
|
|
86
|
+
<ModalV2Title>Keep this recording</ModalV2Title>
|
|
87
|
+
</ModalV2Header>
|
|
88
|
+
|
|
89
|
+
<KeepNotice
|
|
90
|
+
icon={<InfoCircleIcon size={24} color="currentColor" />}
|
|
91
|
+
title="This recording won't be deleted automatically"
|
|
92
|
+
>
|
|
93
|
+
It stays until you stop keeping it. Kept recordings use {keptUsage}.
|
|
94
|
+
</KeepNotice>
|
|
95
|
+
|
|
96
|
+
<div className="flex w-full flex-col gap-[var(--spacing-system-xs)]">
|
|
97
|
+
<Select
|
|
98
|
+
value={reason}
|
|
99
|
+
onValueChange={value => setReason(value as RemoteSessionKeepReason)}
|
|
100
|
+
disabled={isPending}
|
|
101
|
+
>
|
|
102
|
+
<SelectTrigger label="Reason" labelVariant="large">
|
|
103
|
+
<SelectValue placeholder="Select Reason" />
|
|
104
|
+
</SelectTrigger>
|
|
105
|
+
<SelectContent>
|
|
106
|
+
{KEEP_REASONS.map(value => (
|
|
107
|
+
<SelectItem key={value} value={value}>
|
|
108
|
+
{REMOTE_SESSION_KEEP_REASON_LABELS[value]}
|
|
109
|
+
</SelectItem>
|
|
110
|
+
))}
|
|
111
|
+
</SelectContent>
|
|
112
|
+
</Select>
|
|
113
|
+
{reason === 'OTHER' && (
|
|
114
|
+
<Input
|
|
115
|
+
aria-label="Reason description"
|
|
116
|
+
value={description}
|
|
117
|
+
onChange={event => setDescription(event.target.value)}
|
|
118
|
+
placeholder="Briefly describe what's going on"
|
|
119
|
+
maxLength={DESCRIPTION_MAX_LENGTH}
|
|
120
|
+
disabled={isPending}
|
|
121
|
+
/>
|
|
122
|
+
)}
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<ModalV2Footer>
|
|
126
|
+
<Button type="button" variant="outline" onClick={onClose} disabled={isPending} className="flex-1 md:hidden">
|
|
127
|
+
Cancel
|
|
128
|
+
</Button>
|
|
129
|
+
<div className="hidden flex-1 md:block" />
|
|
130
|
+
<Button
|
|
131
|
+
type="button"
|
|
132
|
+
variant="accent"
|
|
133
|
+
onClick={handleKeep}
|
|
134
|
+
loading={isPending}
|
|
135
|
+
disabled={!canKeep}
|
|
136
|
+
className="flex-1"
|
|
137
|
+
>
|
|
138
|
+
Keep
|
|
139
|
+
</Button>
|
|
140
|
+
</ModalV2Footer>
|
|
141
|
+
</ModalV2>
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface ReleaseKeepingModalProps {
|
|
146
|
+
isOpen: boolean;
|
|
147
|
+
onClose: () => void;
|
|
148
|
+
/** Who placed the Keep. */
|
|
149
|
+
keptBy: string;
|
|
150
|
+
/** When the Keep was placed, formatted, e.g. "27 Jul 2026". */
|
|
151
|
+
keptOn: string;
|
|
152
|
+
/** The reason as it reads in the sentence, e.g. "Client dispute". */
|
|
153
|
+
reason: string;
|
|
154
|
+
/** The ticket or reference the Keep was placed for. */
|
|
155
|
+
ticket?: string | null;
|
|
156
|
+
/** When the recording will be deleted once released, formatted. */
|
|
157
|
+
expiresOn: string;
|
|
158
|
+
/** The original expiry date when it has already passed, so the release adds the grace period. */
|
|
159
|
+
dueOn?: string | null;
|
|
160
|
+
/** The release is in flight: the button spins and the dialog refuses to close. */
|
|
161
|
+
isPending?: boolean;
|
|
162
|
+
onConfirm: () => void;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** Release Keeping: hands the recording back to the normal expiry, nothing is deleted on the spot. */
|
|
166
|
+
export function ReleaseKeepingModal({
|
|
167
|
+
isOpen,
|
|
168
|
+
onClose,
|
|
169
|
+
keptBy,
|
|
170
|
+
keptOn,
|
|
171
|
+
reason,
|
|
172
|
+
ticket,
|
|
173
|
+
expiresOn,
|
|
174
|
+
dueOn,
|
|
175
|
+
isPending = false,
|
|
176
|
+
onConfirm,
|
|
177
|
+
}: ReleaseKeepingModalProps) {
|
|
178
|
+
return (
|
|
179
|
+
<ModalV2 isOpen={isOpen} onClose={isPending ? () => {} : onClose} className="text-left md:max-w-[600px]">
|
|
180
|
+
<ModalV2Header>
|
|
181
|
+
<ModalV2Title>Release Keeping</ModalV2Title>
|
|
182
|
+
</ModalV2Header>
|
|
183
|
+
|
|
184
|
+
<div className="flex w-full flex-col gap-[var(--spacing-system-xsf)] text-ods-text-primary text-h4">
|
|
185
|
+
<p>
|
|
186
|
+
Kept by {keptBy} on {keptOn} for {reason}.
|
|
187
|
+
</p>
|
|
188
|
+
{ticket && <p>Ticket: {ticket}</p>}
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
<KeepNotice icon={<HourglassIcon size={24} color="currentColor" />} title={`It will expire on ${expiresOn}`}>
|
|
192
|
+
{dueOn
|
|
193
|
+
? `It was due to expire on ${dueOn}. Releasing gives it 3 days' grace, and it shows amber until then. Whoever placed the Keep is reminded the day before it goes. Nothing is deleted now.`
|
|
194
|
+
: 'Nothing is deleted now.'}
|
|
195
|
+
</KeepNotice>
|
|
196
|
+
|
|
197
|
+
<ModalV2Footer>
|
|
198
|
+
<Button type="button" variant="outline" onClick={onClose} disabled={isPending} className="flex-1 md:hidden">
|
|
199
|
+
Cancel
|
|
200
|
+
</Button>
|
|
201
|
+
<div className="hidden flex-1 md:block" />
|
|
202
|
+
<Button type="button" variant="accent" onClick={onConfirm} loading={isPending} className="flex-1">
|
|
203
|
+
Release Keeping
|
|
204
|
+
</Button>
|
|
205
|
+
</ModalV2Footer>
|
|
206
|
+
</ModalV2>
|
|
207
|
+
);
|
|
208
|
+
}
|
|
@@ -5,7 +5,8 @@ import { cn } from '../../../utils/cn';
|
|
|
5
5
|
import { DraggerIcon, RecordingIcon } from '../../icons-v2-generated';
|
|
6
6
|
import { OpenFrameLogo } from '../../icons/openframe-logo';
|
|
7
7
|
import { SquareAvatar } from '../../ui/square-avatar';
|
|
8
|
-
import
|
|
8
|
+
import { RemoteSessionViewers } from './remote-session-viewers';
|
|
9
|
+
import type { RemoteSessionDragHandlers, RemoteSessionViewer } from './types';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* The remote session surfaces are fixed-size desktop windows (440 / 600 px
|
|
@@ -90,15 +91,43 @@ export function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }: Remot
|
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
/** The green SESSION RECORDING tag. */
|
|
93
|
-
export function RemoteSessionRecordingTag() {
|
|
94
|
+
export function RemoteSessionRecordingTag({ className }: { className?: string }) {
|
|
94
95
|
return (
|
|
95
|
-
<div
|
|
96
|
+
<div
|
|
97
|
+
className={cn(
|
|
98
|
+
'flex h-8 items-center gap-[var(--spacing-system-xs)] self-start rounded-md bg-ods-success-secondary p-[var(--spacing-system-xsf)]',
|
|
99
|
+
className,
|
|
100
|
+
)}
|
|
101
|
+
>
|
|
96
102
|
<RecordingIcon size={16} color="currentColor" className="text-ods-success" />
|
|
97
103
|
<span className="text-ods-success text-h5">Session Recording</span>
|
|
98
104
|
</div>
|
|
99
105
|
);
|
|
100
106
|
}
|
|
101
107
|
|
|
108
|
+
/**
|
|
109
|
+
* The row under the block's header: the SESSION RECORDING tag and, while
|
|
110
|
+
* colleagues watch, who is in the session. With viewers the tag stretches to
|
|
111
|
+
* the left and the viewers sit on the right.
|
|
112
|
+
*/
|
|
113
|
+
export function RemoteSessionStatusRow({
|
|
114
|
+
showRecordingTag,
|
|
115
|
+
viewers,
|
|
116
|
+
}: {
|
|
117
|
+
showRecordingTag: boolean;
|
|
118
|
+
viewers?: RemoteSessionViewer[];
|
|
119
|
+
}) {
|
|
120
|
+
const hasViewers = !!viewers && viewers.length > 0;
|
|
121
|
+
if (!showRecordingTag && !hasViewers) return null;
|
|
122
|
+
if (!hasViewers) return <RemoteSessionRecordingTag />;
|
|
123
|
+
return (
|
|
124
|
+
<div className="flex w-full items-center gap-[var(--spacing-system-m)]">
|
|
125
|
+
{showRecordingTag && <RemoteSessionRecordingTag className="flex-1 justify-center self-auto" />}
|
|
126
|
+
<RemoteSessionViewers viewers={viewers} className="ml-auto" />
|
|
127
|
+
</div>
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
102
131
|
/** Grab cursor on the surfaces the window is moved by. */
|
|
103
132
|
export const REMOTE_SESSION_DRAG_HANDLE_CLASS = 'cursor-grab active:cursor-grabbing';
|
|
104
133
|
|