Spaces:
Running
Running
axeronis commited on
Commit ·
7b1eec7
1
Parent(s): 466bb5f
fix(ux): phase 10 - qualification fields at top of summary, tablet positioning, jsx fix
Browse files
frontend/app/chats/page.tsx
CHANGED
|
@@ -333,7 +333,7 @@ function ChatsContent() {
|
|
| 333 |
animate={{ opacity: 1 }}
|
| 334 |
exit={{ opacity: 0 }}
|
| 335 |
onClick={() => { setIsSummaryOpen(false); setSummaryLead(undefined); }}
|
| 336 |
-
className="fixed right-0 top-[var(--header-height-mobile)] md:top-
|
| 337 |
/>
|
| 338 |
|
| 339 |
<motion.div
|
|
|
|
| 333 |
animate={{ opacity: 1 }}
|
| 334 |
exit={{ opacity: 0 }}
|
| 335 |
onClick={() => { setIsSummaryOpen(false); setSummaryLead(undefined); }}
|
| 336 |
+
className="fixed right-0 top-[var(--header-height-mobile)] md:top-16 bottom-[var(--footer-height-mobile)] md:bottom-0 bg-black/40 backdrop-blur-[4px] z-[15] left-0 md:left-[320px]"
|
| 337 |
/>
|
| 338 |
|
| 339 |
<motion.div
|
frontend/components/ClientCard.tsx
CHANGED
|
@@ -188,19 +188,7 @@ export function ClientCard({ lead, onTakeover, isAnalyzing, onRefresh, conversat
|
|
| 188 |
className="flex-1 overflow-y-auto p-5 space-y-5 scrollbar-thin scrollbar-thumb-white/10"
|
| 189 |
style={{ willChange: 'transform, scroll-position', transform: 'translateZ(0)' }}
|
| 190 |
>
|
| 191 |
-
|
| 192 |
-
{/* Header Title with Icon */}
|
| 193 |
-
<div className="flex items-center gap-3 mb-2 p-1">
|
| 194 |
-
<div className="w-10 h-10 rounded-xl bg-indigo-500/10 flex items-center justify-center text-indigo-400 border border-indigo-500/20">
|
| 195 |
-
<Brain className="w-5 h-5" />
|
| 196 |
-
</div>
|
| 197 |
-
<div>
|
| 198 |
-
<h2 className="text-base font-bold text-white tracking-tight">{t('clientCard.chatSummary')}</h2>
|
| 199 |
-
<p className="text-[10px] text-slate-500 uppercase tracking-widest font-semibold">{t('common.aiGenerated') || 'AI Generated'}</p>
|
| 200 |
-
</div>
|
| 201 |
-
</div>
|
| 202 |
-
|
| 203 |
-
{/* QUALIFICATION CARD - Quick Info */}
|
| 204 |
{(lead as any).qualification_data && Object.keys((lead as any).qualification_data).length > 0 && (
|
| 205 |
<div className={cn(
|
| 206 |
"rounded-xl p-4 mb-4 border transition-all",
|
|
@@ -237,7 +225,7 @@ export function ClientCard({ lead, onTakeover, isAnalyzing, onRefresh, conversat
|
|
| 237 |
<div key={field} className="flex justify-between items-center">
|
| 238 |
<span className="text-xs text-slate-400">{field}:</span>
|
| 239 |
<span className={cn(
|
| 240 |
-
"text-xs font-medium",
|
| 241 |
isNotFound ? "text-slate-500 italic" : "text-white"
|
| 242 |
)}>
|
| 243 |
{isNotFound ? 'Не выявлено' : String(value)}
|
|
@@ -249,6 +237,17 @@ export function ClientCard({ lead, onTakeover, isAnalyzing, onRefresh, conversat
|
|
| 249 |
</div>
|
| 250 |
)}
|
| 251 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
{/* Numbered Summary List */}
|
| 253 |
<div className="space-y-4 px-1">
|
| 254 |
{summaryPoints.map((point, i) => (
|
|
@@ -306,7 +305,7 @@ export function ClientCard({ lead, onTakeover, isAnalyzing, onRefresh, conversat
|
|
| 306 |
</div>
|
| 307 |
</div>
|
| 308 |
|
| 309 |
-
</div>
|
| 310 |
)
|
| 311 |
}
|
| 312 |
|
|
|
|
| 188 |
className="flex-1 overflow-y-auto p-5 space-y-5 scrollbar-thin scrollbar-thumb-white/10"
|
| 189 |
style={{ willChange: 'transform, scroll-position', transform: 'translateZ(0)' }}
|
| 190 |
>
|
| 191 |
+
{/* QUALIFICATION CARD - Quick Info - MOVED TO TOP */}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
{(lead as any).qualification_data && Object.keys((lead as any).qualification_data).length > 0 && (
|
| 193 |
<div className={cn(
|
| 194 |
"rounded-xl p-4 mb-4 border transition-all",
|
|
|
|
| 225 |
<div key={field} className="flex justify-between items-center">
|
| 226 |
<span className="text-xs text-slate-400">{field}:</span>
|
| 227 |
<span className={cn(
|
| 228 |
+
"text-xs font-medium max-w-[60%] text-right truncate",
|
| 229 |
isNotFound ? "text-slate-500 italic" : "text-white"
|
| 230 |
)}>
|
| 231 |
{isNotFound ? 'Не выявлено' : String(value)}
|
|
|
|
| 237 |
</div>
|
| 238 |
)}
|
| 239 |
|
| 240 |
+
{/* Header Title with Icon */}
|
| 241 |
+
<div className="flex items-center gap-3 mb-2 p-1">
|
| 242 |
+
<div className="w-10 h-10 rounded-xl bg-indigo-500/10 flex items-center justify-center text-indigo-400 border border-indigo-500/20">
|
| 243 |
+
<Brain className="w-5 h-5" />
|
| 244 |
+
</div>
|
| 245 |
+
<div>
|
| 246 |
+
<h2 className="text-base font-bold text-white tracking-tight">{t('clientCard.chatSummary')}</h2>
|
| 247 |
+
<p className="text-[10px] text-slate-500 uppercase tracking-widest font-semibold">{t('common.aiGenerated') || 'AI Generated'}</p>
|
| 248 |
+
</div>
|
| 249 |
+
</div>
|
| 250 |
+
|
| 251 |
{/* Numbered Summary List */}
|
| 252 |
<div className="space-y-4 px-1">
|
| 253 |
{summaryPoints.map((point, i) => (
|
|
|
|
| 305 |
</div>
|
| 306 |
</div>
|
| 307 |
|
| 308 |
+
</div >
|
| 309 |
)
|
| 310 |
}
|
| 311 |
|