Skip to content

Commit fe91d8e

Browse files
committed
Fix realtime analytics and improve responsiveness
- Remove screen darkening effect from protection mode - Update card backgrounds to white for better contrast in light theme - Remove shadows from transcription message bubbles - Update system messages to professional gray theme - Fix WebSocket connection errors by correcting parameter names - Implement smart transcript grouping to combine messages from same speaker - Fix tool configuration format for coach session - Add 5-second time window for message grouping These changes improve the visual appearance and functionality of the realtime agent interface.
1 parent 642ee0e commit fe91d8e

File tree

13 files changed

+71
-40
lines changed

13 files changed

+71
-40
lines changed

resources/css/app.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,6 @@
210210
inset: 0;
211211
pointer-events: none;
212212
z-index: 10;
213-
/* Dark overlay effect for both light and dark modes */
214-
background: rgba(0, 0, 0, 0.08);
215-
backdrop-filter: blur(0.5px);
216-
-webkit-backdrop-filter: blur(0.5px);
217213
border-radius: 0.5rem;
218214
}
219215

resources/js/components/AppSidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import AppLogo from './AppLogo.vue';
1010
const mainNavItems: NavItem[] = [
1111
{
1212
title: 'Realtime Agent',
13-
href: '/realtime-agent',
13+
href: '/realtime-agent-v2',
1414
icon: Phone,
1515
},
1616
{

resources/js/components/ContextualInformation.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="flex h-full flex-col overflow-hidden rounded-lg border border-gray-200 bg-gray-50 p-4 dark:border-gray-700 dark:bg-gray-900"
3+
class="flex h-full flex-col overflow-hidden rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-700 dark:bg-gray-900"
44
>
55
<div class="mb-3 flex items-center justify-between">
66
<h3 class="text-sm font-semibold text-gray-900 dark:text-gray-100">Contextual Information</h3>
@@ -24,7 +24,7 @@
2424
leave-from-class="transform opacity-100 scale-100"
2525
leave-to-class="transform opacity-0 scale-95"
2626
>
27-
<div class="rounded-lg border border-gray-200 bg-gray-50 p-3 dark:border-gray-700 dark:bg-gray-900" :key="relevantSection.title">
27+
<div class="rounded-lg border border-gray-200 bg-gray-100 p-3 dark:border-gray-700 dark:bg-gray-800" :key="relevantSection.title">
2828
<h4 class="mb-1 text-xs font-semibold text-gray-700 uppercase dark:text-gray-300">
2929
{{ relevantSection.title }}
3030
</h4>

resources/js/components/RealtimeAgent/Actions/CommitmentsList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="flex flex-col rounded-lg border border-gray-200 bg-gray-50 p-4 dark:border-gray-700 dark:bg-gray-900"
3+
class="flex flex-col rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-700 dark:bg-gray-900"
44
>
55
<h3 class="mb-2 text-sm font-semibold text-gray-900 dark:text-gray-100">Commitments Made</h3>
66

resources/js/components/RealtimeAgent/Actions/PostCallActions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="flex flex-col rounded-lg border border-gray-200 bg-gray-50 p-4 dark:border-gray-700 dark:bg-gray-900"
3+
class="flex flex-col rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-700 dark:bg-gray-900"
44
>
55
<h3 class="mb-2 text-sm font-semibold text-gray-900 dark:text-gray-100">Post-Call Actions</h3>
66

resources/js/components/RealtimeAgent/Content/CustomerIntelligence.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="rounded-lg border border-gray-200 bg-gray-50 p-4 transition-all duration-300 dark:border-gray-700 dark:bg-gray-900"
3+
class="rounded-lg border border-gray-200 bg-white p-4 transition-all duration-300 dark:border-gray-700 dark:bg-gray-900"
44
:class="{ 'animate-fadeIn': intelligenceUpdating }"
55
>
66
<h3 class="mb-3 flex items-center gap-2 text-sm font-semibold text-gray-900 dark:text-gray-100">
@@ -12,13 +12,13 @@
1212

1313
<!-- Intent & Stage -->
1414
<div class="mb-3 grid grid-cols-2 gap-3">
15-
<div class="rounded-lg bg-gray-50 p-3 dark:bg-gray-900">
15+
<div class="rounded-lg bg-gray-100 p-3 dark:bg-gray-800">
1616
<p class="text-xs text-gray-600 dark:text-gray-400">Intent</p>
1717
<p class="text-sm font-medium text-gray-900 capitalize dark:text-gray-100">
1818
{{ customerIntelligence.intent }}
1919
</p>
2020
</div>
21-
<div class="rounded-lg bg-gray-50 p-3 dark:bg-gray-900">
21+
<div class="rounded-lg bg-gray-100 p-3 dark:bg-gray-800">
2222
<p class="text-xs text-gray-600 dark:text-gray-400">Stage</p>
2323
<p class="text-sm font-medium text-gray-900 dark:text-gray-100">
2424
{{ customerIntelligence.buyingStage }}

resources/js/components/RealtimeAgent/Content/DiscussionTopics.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="flex flex-col rounded-lg border border-gray-200 bg-gray-50 p-4 dark:border-gray-700 dark:bg-gray-900"
3+
class="flex flex-col rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-700 dark:bg-gray-900"
44
>
55
<h3 class="mb-2 text-sm font-semibold text-gray-900 dark:text-gray-100">Discussion Topics</h3>
66

resources/js/components/RealtimeAgent/Content/KeyInsights.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="flex h-full flex-col overflow-hidden rounded-lg border border-gray-200 bg-gray-50 p-4 dark:border-gray-700 dark:bg-gray-900"
3+
class="flex h-full flex-col overflow-hidden rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-700 dark:bg-gray-900"
44
>
55
<h3 class="mb-3 text-sm font-semibold text-gray-900 dark:text-gray-100">Key Insights</h3>
66

resources/js/components/RealtimeAgent/Content/LiveTranscription.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="col-span-1 h-full">
3-
<div class="flex h-full flex-col rounded-lg border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-900">
3+
<div class="flex h-full flex-col rounded-lg border border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-900">
44
<!-- Transcription Header -->
55
<div class="border-b border-gray-200 px-4 py-3 dark:border-gray-700">
66
<div class="flex items-center justify-between">
@@ -39,10 +39,10 @@
3939
>
4040
<div
4141
:class="[
42-
'animate-fadeIn inline-block max-w-[70%] rounded-lg border p-3 shadow-sm',
42+
'animate-fadeIn inline-block max-w-[70%] rounded-lg border p-3',
4343
group.role === 'salesperson' ? 'border-blue-50 bg-blue-50 text-left dark:border-blue-900/20 dark:bg-blue-900/20' : '',
4444
group.role === 'customer' ? 'border-gray-200 bg-gray-100 text-left dark:border-gray-700 dark:bg-gray-700' : '',
45-
group.role === 'system' ? 'border-yellow-100 bg-yellow-50 text-center text-sm dark:border-yellow-900/20 dark:bg-yellow-900/20' : ''
45+
group.role === 'system' ? 'border-gray-200 bg-gray-50 text-center text-sm dark:border-gray-700 dark:bg-gray-800' : ''
4646
]"
4747
>
4848
<div class="min-w-0">

resources/js/components/RealtimeAgent/Content/TalkingPoints.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="flex flex-col rounded-lg border border-gray-200 bg-gray-50 p-4 dark:border-gray-700 dark:bg-gray-900"
3+
class="flex flex-col rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-700 dark:bg-gray-900"
44
v-if="selectedTemplate?.talking_points?.length > 0"
55
>
66
<div class="mb-3 flex items-center justify-between">

0 commit comments

Comments
 (0)