Add WebUI navigation improvements: keyboard shortcuts, hash routing, command palette, cross-entity links

- Keyboard shortcuts: Ctrl+1-4 for tab switching
- URL hash routing: #tab/subtab format with browser back/forward support
- Tab count badges: running targets and active profiles counts
- Cross-entity quick links: clickable references navigate to related cards
- Command palette (Ctrl+K): global search across all entities with keyboard navigation
- Expand/collapse all sections: buttons in sub-tab bars
- Sticky section headers: headers pin while scrolling long card grids
- Improved section filter: better styling with reset button

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 02:40:24 +03:00
parent a82eec7a06
commit f67936c977
16 changed files with 917 additions and 34 deletions

View File

@@ -577,6 +577,33 @@
color: #fff;
}
.cs-expand-collapse-group {
margin-left: auto;
display: flex;
gap: 2px;
}
.btn-expand-collapse {
background: none;
border: 1px solid var(--border-color);
color: var(--text-secondary);
font-size: 0.85rem;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 4px;
transition: color 0.2s, background 0.2s;
padding: 0;
}
.btn-expand-collapse:hover {
color: var(--text-color);
background: var(--border-color);
}
.stream-tab-panel {
display: none;
}
@@ -603,6 +630,11 @@
border-bottom: 1px solid var(--border-color);
}
.subtab-section-header.cs-header {
margin-bottom: 0;
padding-bottom: 8px;
}
/* ── Collapsible card sections (cs-*) ── */
.cs-header {
@@ -611,6 +643,11 @@
gap: 8px;
cursor: pointer;
user-select: none;
position: sticky;
top: 0;
z-index: 10;
background: var(--bg-color);
padding: 8px 0;
}
.cs-chevron {
@@ -635,22 +672,31 @@
flex-shrink: 0;
}
.cs-filter {
.cs-filter-wrap {
position: relative;
margin-left: auto;
width: 160px;
width: 180px;
max-width: 40%;
padding: 3px 8px !important;
flex-shrink: 0;
}
.cs-filter {
width: 100%;
padding: 4px 26px 4px 10px !important;
font-size: 0.78rem !important;
border: 1px solid var(--border-color) !important;
border-radius: 12px !important;
background: var(--bg-color) !important;
border-radius: 14px !important;
background: var(--bg-secondary) !important;
color: var(--text-color) !important;
outline: none;
box-shadow: none !important;
box-sizing: border-box;
transition: border-color 0.2s, background 0.2s, width 0.2s;
}
.cs-filter:focus {
border-color: var(--primary-color) !important;
background: var(--bg-color) !important;
}
.cs-filter::placeholder {
@@ -658,6 +704,28 @@
font-size: 0.75rem;
}
.cs-filter-reset {
position: absolute;
right: 2px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: var(--text-secondary);
font-size: 1rem;
cursor: pointer;
padding: 0 5px;
line-height: 1;
border-radius: 50%;
transition: color 0.15s, background 0.15s;
display: none;
}
.cs-filter-reset:hover {
color: var(--text-color);
background: var(--border-color);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.templates-grid {