feat: palette de commandes Ctrl+P — navigation rapide fichiers + commandes
CI / lint (push) Failing after 4s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / security (push) Successful in 8s

This commit is contained in:
2026-06-02 12:30:41 -04:00
parent 459bbe441d
commit 08c29c9efe
4 changed files with 449 additions and 3 deletions
+157
View File
@@ -6132,3 +6132,160 @@ body.popup-mode .content-area {
.dashboard-panel.active {
display: block;
}
/* ═══════════════════════════════════════════════════════════════════
Command Palette (Ctrl+P)
═══════════════════════════════════════════════════════════════════ */
.command-palette-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: 0 0;
z-index: 10000;
display: flex;
justify-content: center;
padding-top: 12vh;
pointer-events: none;
opacity: 0;
transition: opacity 0.1s ease, background 0.1s ease;
}
.command-palette-overlay.active {
opacity: 1;
background: var(--overlay-bg);
pointer-events: auto;
}
.command-palette {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03);
width: 580px;
max-width: calc(100vw - 40px);
max-height: 60vh;
display: flex;
flex-direction: column;
overflow: hidden;
animation: cp-slide-in 0.12s ease-out;
}
@keyframes cp-slide-in {
from { transform: translateY(-12px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.cp-header {
display: flex;
align-items: center;
border-bottom: 1px solid var(--border);
padding: 0 14px;
}
.cp-input {
flex: 1;
border: none;
background: none;
padding: 14px 0;
font-size: 16px;
color: var(--text-primary);
outline: none;
font-family: inherit;
}
.cp-input::placeholder {
color: var(--text-muted);
}
.cp-hint {
font-size: 11px;
color: var(--text-muted);
background: var(--bg-hover);
padding: 3px 8px;
border-radius: 4px;
font-family: "JetBrains Mono", monospace;
opacity: 0.7;
}
.cp-results {
flex: 1;
overflow-y: auto;
padding: 6px 0;
max-height: 40vh;
}
.cp-empty {
padding: 24px 16px;
text-align: center;
color: var(--text-muted);
font-size: 13px;
}
.cp-error {
color: var(--accent-orange, #d29922);
}
.cp-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 14px;
cursor: pointer;
border-left: 3px solid transparent;
/* Uncomment for smooth scroll perf */;
}
.cp-item:hover {
background: var(--bg-hover);
border-left-color: var(--accent);
}
.cp-item.cp-selected {
background: var(--accent-bg);
border-left-color: var(--accent);
}
.cp-item-label {
font-size: 14px;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.cp-item-sublabel {
font-size: 11px;
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 45%;
text-align: right;
margin-left: 12px;
}
.cp-footer {
display: flex;
gap: 14px;
padding: 8px 14px;
border-top: 1px solid var(--border);
font-size: 11px;
color: var(--text-muted);
}
.cp-footer span {
display: flex;
align-items: center;
gap: 4px;
}
.cp-footer span::before {
content: '';
display: inline-block;
width: 3px; height: 3px;
background: var(--text-muted);
border-radius: 50%;
margin-right: 4px;
}
.cp-footer span:first-child::before { display: none; }