Spaces:
Paused
Paused
dushyantsingh0 commited on
Commit ·
48209bc
1
Parent(s): d050df5
fix customer analytics summary formatting and font sizes
Browse files
frontend/apps/customer/src/components/Analytics.tsx
CHANGED
|
@@ -446,24 +446,19 @@ export const Analytics: React.FC<AnalyticsProps> = ({ tickets }) => {
|
|
| 446 |
</div>
|
| 447 |
<div
|
| 448 |
style={{
|
| 449 |
-
color: "var(--text-main)",
|
| 450 |
-
fontSize: 17,
|
| 451 |
-
lineHeight: 1.8,
|
| 452 |
opacity: isResummarizing ? 0.4 : 1,
|
| 453 |
transition: "all 0.4s ease",
|
| 454 |
-
|
| 455 |
-
position: 'relative',
|
| 456 |
-
fontWeight: 500
|
| 457 |
}}
|
| 458 |
>
|
| 459 |
{showNarrativeLoading ? (
|
| 460 |
-
<div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>
|
| 461 |
<Skeleton width="100%" height={20} />
|
| 462 |
<Skeleton width="96%" height={20} />
|
| 463 |
<Skeleton width="92%" height={20} />
|
| 464 |
</div>
|
| 465 |
) : (
|
| 466 |
-
<div className="
|
| 467 |
<NexusMarkdown content={narrative?.insights || "Workspace summary updated. All support channels are operating within performance targets."} />
|
| 468 |
</div>
|
| 469 |
)}
|
|
|
|
| 446 |
</div>
|
| 447 |
<div
|
| 448 |
style={{
|
|
|
|
|
|
|
|
|
|
| 449 |
opacity: isResummarizing ? 0.4 : 1,
|
| 450 |
transition: "all 0.4s ease",
|
| 451 |
+
position: 'relative'
|
|
|
|
|
|
|
| 452 |
}}
|
| 453 |
>
|
| 454 |
{showNarrativeLoading ? (
|
| 455 |
+
<div className="customer-narrative-box" style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>
|
| 456 |
<Skeleton width="100%" height={20} />
|
| 457 |
<Skeleton width="96%" height={20} />
|
| 458 |
<Skeleton width="92%" height={20} />
|
| 459 |
</div>
|
| 460 |
) : (
|
| 461 |
+
<div className="customer-narrative-box">
|
| 462 |
<NexusMarkdown content={narrative?.insights || "Workspace summary updated. All support channels are operating within performance targets."} />
|
| 463 |
</div>
|
| 464 |
)}
|
frontend/apps/customer/src/index.css
CHANGED
|
@@ -226,3 +226,46 @@ h1, h2, h3, .metadata {
|
|
| 226 |
.animate-organic {
|
| 227 |
animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
| 228 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
.animate-organic {
|
| 227 |
animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
| 228 |
}
|
| 229 |
+
|
| 230 |
+
/* Operational Narrative Summary Styling */
|
| 231 |
+
.customer-narrative-box {
|
| 232 |
+
background: var(--bg-dark);
|
| 233 |
+
padding: 32px;
|
| 234 |
+
border-radius: 20px;
|
| 235 |
+
border: 1px solid var(--border-subtle);
|
| 236 |
+
margin-top: 16px;
|
| 237 |
+
box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.02), 0 10px 30px rgba(0, 0, 0, 0.04);
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
.customer-narrative-box p {
|
| 241 |
+
font-size: 14.5px !important;
|
| 242 |
+
font-weight: 500 !important;
|
| 243 |
+
line-height: 1.75 !important;
|
| 244 |
+
color: var(--text-main) !important;
|
| 245 |
+
margin-bottom: 20px !important;
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
.customer-narrative-box strong {
|
| 249 |
+
font-weight: 700 !important;
|
| 250 |
+
color: var(--primary) !important;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
.customer-narrative-box ul, .customer-narrative-box ol {
|
| 254 |
+
margin: 16px 0 !important;
|
| 255 |
+
padding-left: 24px !important;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
.customer-narrative-box li {
|
| 259 |
+
font-size: 14px !important;
|
| 260 |
+
font-weight: 500 !important;
|
| 261 |
+
margin-bottom: 10px !important;
|
| 262 |
+
color: var(--text-main) !important;
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
.customer-narrative-box h1, .customer-narrative-box h2, .customer-narrative-box h3 {
|
| 266 |
+
font-size: 16px !important;
|
| 267 |
+
font-weight: 800 !important;
|
| 268 |
+
margin: 24px 0 12px 0 !important;
|
| 269 |
+
color: var(--text-main) !important;
|
| 270 |
+
font-family: var(--font-heading) !important;
|
| 271 |
+
}
|