feat: Implement SigSocket request queuing and approval system, Enhance Settings UI
This commit is contained in:
@@ -188,6 +188,15 @@ body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.clickable-header {
|
||||
cursor: pointer;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.clickable-header:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -261,6 +270,75 @@ body {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.server-input-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.server-input-group input {
|
||||
flex: 1;
|
||||
padding: var(--spacing-xs) var(--spacing-sm);
|
||||
font-size: 14px;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
background: var(--bg-input);
|
||||
color: var(--text-primary);
|
||||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
||||
}
|
||||
|
||||
.server-input-group input:focus {
|
||||
outline: none;
|
||||
border-color: var(--border-focus);
|
||||
box-shadow: 0 0 0 2px hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.15);
|
||||
}
|
||||
|
||||
.settings-help {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
margin-top: var(--spacing-xs);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Settings page styles */
|
||||
|
||||
.settings-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.settings-header h2 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
|
||||
|
||||
.about-info {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.about-info p {
|
||||
margin: 0 0 var(--spacing-xs) 0;
|
||||
font-size: 14px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.about-info strong {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.version-info {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.btn-icon-only {
|
||||
background: var(--bg-button-ghost);
|
||||
border: none;
|
||||
@@ -456,6 +534,17 @@ input::placeholder, textarea::placeholder {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* Button icon spacing */
|
||||
.btn svg {
|
||||
margin-right: var(--spacing-xs);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.btn svg:last-child {
|
||||
margin-right: 0;
|
||||
margin-left: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
@@ -1073,18 +1162,19 @@ input::placeholder, textarea::placeholder {
|
||||
|
||||
/* SigSocket Requests Styles */
|
||||
.sigsocket-section {
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 15px;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.section-header h3 {
|
||||
margin: 0;
|
||||
color: var(--text-primary);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -1092,7 +1182,7 @@ input::placeholder, textarea::placeholder {
|
||||
.connection-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: var(--spacing-xs);
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
@@ -1109,16 +1199,62 @@ input::placeholder, textarea::placeholder {
|
||||
background: var(--accent-success);
|
||||
}
|
||||
|
||||
.status-dot.loading {
|
||||
background: var(--accent-warning);
|
||||
animation: pulse-dot 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-dot {
|
||||
0%, 100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
50% {
|
||||
opacity: 0.6;
|
||||
transform: scale(1.2);
|
||||
}
|
||||
}
|
||||
|
||||
.requests-container {
|
||||
min-height: 80px;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
padding: var(--spacing-xl);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.loading-state {
|
||||
text-align: center;
|
||||
padding: var(--spacing-xl);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: 2px solid var(--border-color);
|
||||
border-top: 2px solid var(--primary-color);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
margin: 0 auto var(--spacing-sm) auto;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.loading-state p {
|
||||
margin: var(--spacing-sm) 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.loading-state small {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.empty-icon {
|
||||
font-size: 24px;
|
||||
margin-bottom: 8px;
|
||||
@@ -1228,10 +1364,42 @@ input::placeholder, textarea::placeholder {
|
||||
|
||||
.sigsocket-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--border-color);
|
||||
gap: var(--spacing-sm);
|
||||
margin-top: var(--spacing-md);
|
||||
}
|
||||
|
||||
/* Ensure refresh button follows design system */
|
||||
#refreshRequestsBtn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
/* Request item locked state styles */
|
||||
.request-item.locked {
|
||||
opacity: 0.8;
|
||||
border-left: 3px solid var(--warning-color, #ffa500);
|
||||
}
|
||||
|
||||
.request-status.pending {
|
||||
background: var(--warning-bg, #fff3cd);
|
||||
color: var(--warning-text, #856404);
|
||||
padding: var(--spacing-xs) var(--spacing-sm);
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin: var(--spacing-xs) 0;
|
||||
border: 1px solid var(--warning-border, #ffeaa7);
|
||||
}
|
||||
|
||||
.request-actions.locked button {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.request-actions.locked button:hover {
|
||||
background: var(--button-bg) !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
.workspace-mismatch {
|
||||
|
Reference in New Issue
Block a user