Spaces:
Paused
Paused
dushyantsingh0 commited on
Commit ·
78f1787
1
Parent(s): 811af88
backend stabilization
Browse files
frontend/apps/customer/src/components/NewTicketModal.tsx
CHANGED
|
@@ -125,13 +125,14 @@ export const NewTicketModal: React.FC<NewTicketModalProps> = ({ onClose, onCreat
|
|
| 125 |
<div className="hover-lift" style={{
|
| 126 |
background: "var(--bg-card)",
|
| 127 |
borderRadius: 36,
|
| 128 |
-
padding: "
|
| 129 |
width: 620,
|
| 130 |
maxWidth: "95vw",
|
|
|
|
| 131 |
boxShadow: "var(--shadow-2xl)",
|
| 132 |
position: "relative",
|
| 133 |
border: "1.5px solid var(--border-subtle)",
|
| 134 |
-
|
| 135 |
}}>
|
| 136 |
<div style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '4px', background: 'var(--primary)', opacity: 0.1 }} />
|
| 137 |
|
|
@@ -160,7 +161,7 @@ export const NewTicketModal: React.FC<NewTicketModalProps> = ({ onClose, onCreat
|
|
| 160 |
</div>
|
| 161 |
{renderStepper()}
|
| 162 |
|
| 163 |
-
<div style={{ display: "flex", flexDirection: "column", gap:
|
| 164 |
<div>
|
| 165 |
<label className="metadata" style={{ marginBottom: 12, display: 'block', fontWeight: 800, letterSpacing: '0.05em' }}>TICKET SUBJECT <span style={{ color: COLORS.brand }}>*</span></label>
|
| 166 |
<input
|
|
|
|
| 125 |
<div className="hover-lift" style={{
|
| 126 |
background: "var(--bg-card)",
|
| 127 |
borderRadius: 36,
|
| 128 |
+
padding: "48px",
|
| 129 |
width: 620,
|
| 130 |
maxWidth: "95vw",
|
| 131 |
+
maxHeight: "85vh",
|
| 132 |
boxShadow: "var(--shadow-2xl)",
|
| 133 |
position: "relative",
|
| 134 |
border: "1.5px solid var(--border-subtle)",
|
| 135 |
+
overflowY: 'auto'
|
| 136 |
}}>
|
| 137 |
<div style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '4px', background: 'var(--primary)', opacity: 0.1 }} />
|
| 138 |
|
|
|
|
| 161 |
</div>
|
| 162 |
{renderStepper()}
|
| 163 |
|
| 164 |
+
<div style={{ display: "flex", flexDirection: "column", gap: 24 }}>
|
| 165 |
<div>
|
| 166 |
<label className="metadata" style={{ marginBottom: 12, display: 'block', fontWeight: 800, letterSpacing: '0.05em' }}>TICKET SUBJECT <span style={{ color: COLORS.brand }}>*</span></label>
|
| 167 |
<input
|
frontend/apps/customer/src/components/NexusMasterAgent.tsx
CHANGED
|
@@ -11,6 +11,8 @@ import {
|
|
| 11 |
} from 'lucide-react';
|
| 12 |
|
| 13 |
|
|
|
|
|
|
|
| 14 |
export const NexusMasterAgent: React.FC = () => {
|
| 15 |
const [isOpen, setIsOpen] = useState(false);
|
| 16 |
const [query, setQuery] = useState("");
|
|
@@ -199,13 +201,18 @@ export const NexusMasterAgent: React.FC = () => {
|
|
| 199 |
<X size={32} />
|
| 200 |
) : (
|
| 201 |
<div style={{
|
| 202 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
fontWeight: 900,
|
| 204 |
fontFamily: 'var(--font-heading)',
|
| 205 |
display: 'flex',
|
| 206 |
alignItems: 'center',
|
| 207 |
justifyContent: 'center',
|
| 208 |
-
|
| 209 |
}}>
|
| 210 |
N
|
| 211 |
</div>
|
|
@@ -260,17 +267,19 @@ export const NexusMasterAgent: React.FC = () => {
|
|
| 260 |
<div style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '3px', background: 'var(--primary)', opacity: 0.1 }} />
|
| 261 |
<div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>
|
| 262 |
<div style={{
|
| 263 |
-
|
| 264 |
-
background:
|
| 265 |
-
border: '1px solid var(--border-subtle)',
|
| 266 |
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
| 267 |
-
color: '
|
| 268 |
-
boxShadow: "0 8px 16px rgba(
|
|
|
|
|
|
|
|
|
|
| 269 |
}}>
|
| 270 |
-
|
| 271 |
</div>
|
| 272 |
<div>
|
| 273 |
-
<div style={{ fontSize: 20, fontWeight: 800, color: "
|
| 274 |
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginTop: 4 }}>
|
| 275 |
<div style={{ width: 8, height: 8, borderRadius: '50%', background: "var(--success)", boxShadow: "0 0 10px var(--success)" }} />
|
| 276 |
<span className="metadata" style={{ fontSize: 10, color: "var(--text-muted)", fontWeight: 800, letterSpacing: '0.1em' }}>HUB_ACTIVE</span>
|
|
@@ -282,10 +291,18 @@ export const NexusMasterAgent: React.FC = () => {
|
|
| 282 |
{/* Temporal Comm Feed */}
|
| 283 |
<div ref={scrollRef} style={{ flex: 1, overflowY: 'auto', padding: '32px', display: 'flex', flexDirection: 'column', gap: 32 }}>
|
| 284 |
{messages.length === 0 && (
|
| 285 |
-
<div style={{ textAlign: 'center', padding: '
|
| 286 |
-
<div style={{
|
| 287 |
-
|
| 288 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 289 |
Ask me anything about your tickets, company documentation, or general support questions.
|
| 290 |
</p>
|
| 291 |
</div>
|
|
|
|
| 11 |
} from 'lucide-react';
|
| 12 |
|
| 13 |
|
| 14 |
+
const BRAND_PURPLE = "#7C3AED";
|
| 15 |
+
|
| 16 |
export const NexusMasterAgent: React.FC = () => {
|
| 17 |
const [isOpen, setIsOpen] = useState(false);
|
| 18 |
const [query, setQuery] = useState("");
|
|
|
|
| 201 |
<X size={32} />
|
| 202 |
) : (
|
| 203 |
<div style={{
|
| 204 |
+
width: 52,
|
| 205 |
+
height: 52,
|
| 206 |
+
borderRadius: '50%',
|
| 207 |
+
background: '#fff',
|
| 208 |
+
color: BRAND_PURPLE,
|
| 209 |
+
fontSize: 28,
|
| 210 |
fontWeight: 900,
|
| 211 |
fontFamily: 'var(--font-heading)',
|
| 212 |
display: 'flex',
|
| 213 |
alignItems: 'center',
|
| 214 |
justifyContent: 'center',
|
| 215 |
+
boxShadow: '0 8px 24px rgba(0,0,0,0.2)'
|
| 216 |
}}>
|
| 217 |
N
|
| 218 |
</div>
|
|
|
|
| 267 |
<div style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '3px', background: 'var(--primary)', opacity: 0.1 }} />
|
| 268 |
<div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>
|
| 269 |
<div style={{
|
| 270 |
+
width: 48, height: 48, borderRadius: 14,
|
| 271 |
+
background: BRAND_PURPLE,
|
|
|
|
| 272 |
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
| 273 |
+
color: '#fff',
|
| 274 |
+
boxShadow: "0 8px 16px rgba(124, 58, 237, 0.3)",
|
| 275 |
+
fontSize: 20,
|
| 276 |
+
fontWeight: 900,
|
| 277 |
+
fontFamily: 'var(--font-heading)'
|
| 278 |
}}>
|
| 279 |
+
N
|
| 280 |
</div>
|
| 281 |
<div>
|
| 282 |
+
<div style={{ fontSize: 20, fontWeight: 800, color: "#fff", letterSpacing: '-0.025em', fontFamily: "var(--font-heading)" }}>Nexus Intelligence</div>
|
| 283 |
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginTop: 4 }}>
|
| 284 |
<div style={{ width: 8, height: 8, borderRadius: '50%', background: "var(--success)", boxShadow: "0 0 10px var(--success)" }} />
|
| 285 |
<span className="metadata" style={{ fontSize: 10, color: "var(--text-muted)", fontWeight: 800, letterSpacing: '0.1em' }}>HUB_ACTIVE</span>
|
|
|
|
| 291 |
{/* Temporal Comm Feed */}
|
| 292 |
<div ref={scrollRef} style={{ flex: 1, overflowY: 'auto', padding: '32px', display: 'flex', flexDirection: 'column', gap: 32 }}>
|
| 293 |
{messages.length === 0 && (
|
| 294 |
+
<div style={{ textAlign: 'center', padding: '100px 32px' }}>
|
| 295 |
+
<div style={{
|
| 296 |
+
width: 80, height: 80, borderRadius: '50%',
|
| 297 |
+
background: 'rgba(124, 58, 237, 0.1)',
|
| 298 |
+
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
| 299 |
+
color: BRAND_PURPLE, margin: '0 auto 32px',
|
| 300 |
+
boxShadow: '0 0 40px rgba(124, 58, 237, 0.1)'
|
| 301 |
+
}}>
|
| 302 |
+
<Bot size={40} />
|
| 303 |
+
</div>
|
| 304 |
+
<h3 style={{ fontSize: 22, fontWeight: 800, color: "#fff", marginBottom: 16, fontFamily: "var(--font-heading)", letterSpacing: '-0.02em' }}>Nexus Assistant</h3>
|
| 305 |
+
<p style={{ fontSize: 15, color: "rgba(255,255,255,0.6)", lineHeight: 1.8, fontWeight: 500 }}>
|
| 306 |
Ask me anything about your tickets, company documentation, or general support questions.
|
| 307 |
</p>
|
| 308 |
</div>
|
frontend/apps/customer/src/index.css
CHANGED
|
@@ -145,6 +145,27 @@ code {
|
|
| 145 |
}
|
| 146 |
}
|
| 147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
/* Intelligent Scrollbars */
|
| 149 |
::-webkit-scrollbar {
|
| 150 |
width: 6px;
|
|
|
|
| 145 |
}
|
| 146 |
}
|
| 147 |
|
| 148 |
+
/* Global Dropdown Normalization */
|
| 149 |
+
select {
|
| 150 |
+
appearance: none;
|
| 151 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
| 152 |
+
background-repeat: no-repeat;
|
| 153 |
+
background-position: right 14px center;
|
| 154 |
+
padding-right: 40px !important;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
option {
|
| 158 |
+
background-color: #1a1b26; /* Deep dark background */
|
| 159 |
+
color: #fff;
|
| 160 |
+
padding: 12px;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
/* Handle specific theme backgrounds */
|
| 164 |
+
.dark-mode select, .dark-mode option {
|
| 165 |
+
background-color: var(--bg-card);
|
| 166 |
+
color: var(--text-main);
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
/* Intelligent Scrollbars */
|
| 170 |
::-webkit-scrollbar {
|
| 171 |
width: 6px;
|