Spaces:
Paused
Paused
dushyantsingh0 commited on
Commit ·
4d67cfa
1
Parent(s): bae3c66
backend stabilization
Browse files
frontend/apps/internal/src/components/TicketDetails.module.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
| 11 |
|
| 12 |
/* --- Header & Breadcrumbs --- */
|
| 13 |
.header {
|
| 14 |
-
padding:
|
| 15 |
background: var(--bg-card);
|
| 16 |
border-bottom: 1px solid var(--border-subtle);
|
| 17 |
display: flex;
|
|
@@ -60,7 +60,7 @@
|
|
| 60 |
|
| 61 |
/* --- Left Panel (Intelligence) --- */
|
| 62 |
.intelPanel {
|
| 63 |
-
width:
|
| 64 |
flex-shrink: 0;
|
| 65 |
background: var(--bg-card);
|
| 66 |
border-right: 1px solid var(--border-subtle);
|
|
@@ -71,31 +71,41 @@
|
|
| 71 |
}
|
| 72 |
|
| 73 |
.intelPanelCollapsed {
|
| 74 |
-
width:
|
|
|
|
|
|
|
| 75 |
}
|
| 76 |
|
| 77 |
/* --- Center Content (The Scrollable Area) --- */
|
| 78 |
.mainContent {
|
| 79 |
flex: 1;
|
| 80 |
overflow-y: auto;
|
| 81 |
-
padding:
|
| 82 |
display: flex;
|
| 83 |
flex-direction: column;
|
| 84 |
-
gap:
|
| 85 |
background: var(--bg-dark);
|
| 86 |
}
|
| 87 |
|
| 88 |
/* --- Right Panel (Properties) --- */
|
| 89 |
.propertiesPanel {
|
| 90 |
-
width:
|
| 91 |
flex-shrink: 0;
|
| 92 |
background: var(--bg-card);
|
| 93 |
border-left: 1px solid var(--border-subtle);
|
| 94 |
-
padding:
|
| 95 |
display: flex;
|
| 96 |
flex-direction: column;
|
| 97 |
-
gap:
|
| 98 |
overflow-y: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
}
|
| 100 |
|
| 101 |
/* --- Specific Components Refined --- */
|
|
@@ -140,6 +150,30 @@
|
|
| 140 |
.timelineDot.current { border-color: var(--primary); animation: pulse 2s infinite; }
|
| 141 |
.timelineDot.error { border-color: var(--error); background: var(--error); }
|
| 142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
/* 2. Intelligence Box (AI Summary) */
|
| 144 |
.aiIntelligenceCard {
|
| 145 |
background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(124, 58, 237, 0.01) 100%);
|
|
@@ -328,7 +362,7 @@
|
|
| 328 |
display: flex;
|
| 329 |
justify-content: center;
|
| 330 |
align-items: center;
|
| 331 |
-
|
| 332 |
}
|
| 333 |
|
| 334 |
.mainTitle {
|
|
@@ -661,3 +695,21 @@
|
|
| 661 |
font-style: italic;
|
| 662 |
padding: 8px 0;
|
| 663 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
/* --- Header & Breadcrumbs --- */
|
| 13 |
.header {
|
| 14 |
+
padding: 12px 24px;
|
| 15 |
background: var(--bg-card);
|
| 16 |
border-bottom: 1px solid var(--border-subtle);
|
| 17 |
display: flex;
|
|
|
|
| 60 |
|
| 61 |
/* --- Left Panel (Intelligence) --- */
|
| 62 |
.intelPanel {
|
| 63 |
+
width: 260px;
|
| 64 |
flex-shrink: 0;
|
| 65 |
background: var(--bg-card);
|
| 66 |
border-right: 1px solid var(--border-subtle);
|
|
|
|
| 71 |
}
|
| 72 |
|
| 73 |
.intelPanelCollapsed {
|
| 74 |
+
width: 0;
|
| 75 |
+
overflow: hidden;
|
| 76 |
+
border-right: none;
|
| 77 |
}
|
| 78 |
|
| 79 |
/* --- Center Content (The Scrollable Area) --- */
|
| 80 |
.mainContent {
|
| 81 |
flex: 1;
|
| 82 |
overflow-y: auto;
|
| 83 |
+
padding: 24px;
|
| 84 |
display: flex;
|
| 85 |
flex-direction: column;
|
| 86 |
+
gap: 32px;
|
| 87 |
background: var(--bg-dark);
|
| 88 |
}
|
| 89 |
|
| 90 |
/* --- Right Panel (Properties) --- */
|
| 91 |
.propertiesPanel {
|
| 92 |
+
width: 300px;
|
| 93 |
flex-shrink: 0;
|
| 94 |
background: var(--bg-card);
|
| 95 |
border-left: 1px solid var(--border-subtle);
|
| 96 |
+
padding: 24px 20px;
|
| 97 |
display: flex;
|
| 98 |
flex-direction: column;
|
| 99 |
+
gap: 24px;
|
| 100 |
overflow-y: auto;
|
| 101 |
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
.propertiesPanelCollapsed {
|
| 105 |
+
width: 0;
|
| 106 |
+
padding: 0;
|
| 107 |
+
overflow: hidden;
|
| 108 |
+
border-left: none;
|
| 109 |
}
|
| 110 |
|
| 111 |
/* --- Specific Components Refined --- */
|
|
|
|
| 150 |
.timelineDot.current { border-color: var(--primary); animation: pulse 2s infinite; }
|
| 151 |
.timelineDot.error { border-color: var(--error); background: var(--error); }
|
| 152 |
|
| 153 |
+
.traceInfo {
|
| 154 |
+
display: flex;
|
| 155 |
+
flex-direction: column;
|
| 156 |
+
gap: 2px;
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
.traceLabel {
|
| 160 |
+
font-size: 11px;
|
| 161 |
+
font-weight: 800;
|
| 162 |
+
color: var(--text-main);
|
| 163 |
+
letter-spacing: 0.02em;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
.traceDetail {
|
| 167 |
+
font-size: 9px;
|
| 168 |
+
font-weight: 700;
|
| 169 |
+
color: var(--text-dim);
|
| 170 |
+
text-transform: uppercase;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
.traceDetail.verified {
|
| 174 |
+
color: var(--success);
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
/* 2. Intelligence Box (AI Summary) */
|
| 178 |
.aiIntelligenceCard {
|
| 179 |
background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(124, 58, 237, 0.01) 100%);
|
|
|
|
| 362 |
display: flex;
|
| 363 |
justify-content: center;
|
| 364 |
align-items: center;
|
| 365 |
+
padding: 0 20px;
|
| 366 |
}
|
| 367 |
|
| 368 |
.mainTitle {
|
|
|
|
| 695 |
font-style: italic;
|
| 696 |
padding: 8px 0;
|
| 697 |
}
|
| 698 |
+
|
| 699 |
+
@media (max-width: 1366px) {
|
| 700 |
+
.intelPanel { width: 220px; }
|
| 701 |
+
.propertiesPanel { width: 260px; }
|
| 702 |
+
.mainContent { padding: 16px; gap: 24px; }
|
| 703 |
+
}
|
| 704 |
+
|
| 705 |
+
@media (max-width: 1024px) {
|
| 706 |
+
.workspace {
|
| 707 |
+
flex-direction: column;
|
| 708 |
+
}
|
| 709 |
+
.intelPanel, .propertiesPanel {
|
| 710 |
+
width: 100% !important;
|
| 711 |
+
height: auto;
|
| 712 |
+
border: none;
|
| 713 |
+
border-bottom: 1px solid var(--border-subtle);
|
| 714 |
+
}
|
| 715 |
+
}
|
frontend/apps/internal/src/components/TicketDetails.tsx
CHANGED
|
@@ -197,6 +197,12 @@ export const TicketDetails: React.FC<TicketDetailsProps> = ({ initialTicket, onB
|
|
| 197 |
setShowAssigneeSuggestions(false);
|
| 198 |
}
|
| 199 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
document.addEventListener("mousedown", handleClickOutside);
|
| 201 |
return () => document.removeEventListener("mousedown", handleClickOutside);
|
| 202 |
}, [initialTicket?.id, refreshData, fetchInternalUsers]);
|
|
|
|
| 197 |
setShowAssigneeSuggestions(false);
|
| 198 |
}
|
| 199 |
};
|
| 200 |
+
|
| 201 |
+
// Auto-collapse logic for smaller screens
|
| 202 |
+
if (window.innerWidth < 1366) {
|
| 203 |
+
setIsLeftOpen(false);
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
document.addEventListener("mousedown", handleClickOutside);
|
| 207 |
return () => document.removeEventListener("mousedown", handleClickOutside);
|
| 208 |
}, [initialTicket?.id, refreshData, fetchInternalUsers]);
|