feat: add contextual help and stabilize repository layout
ForgeFlow quality gate / secret-scan (push) Failing after 28s
ForgeFlow quality gate / quality (push) Failing after 0s

This commit is contained in:
NuklearRabbit committed 2026-08-27 01:19:36 +02:00
1 parent d47c7b5e41
commit e882656e85
17 files changed
+660 -82

No files matched your search

+309 -1
View File
@@ -823,7 +823,11 @@ select:focus-visible {
height: 100%;
min-height: 0;
display: grid;
grid-template-rows: auto auto auto 39px minmax(0, 1fr);
grid-template-rows: auto auto 39px minmax(0, 1fr);
}
.repo-context {
min-width: 0;
min-height: 0;
}
.repo-header {
padding: 16px 18px 13px;
@@ -995,8 +999,14 @@ select:focus-visible {
padding: 0 12px;
border-bottom: 1px solid var(--line);
background: var(--surface-1);
min-width: 0;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: thin;
}
.tab {
flex: 0 0 auto;
white-space: nowrap;
height: 38px;
padding: 0 12px;
background: transparent;
@@ -4026,3 +4036,301 @@ html[data-theme="light"] .visual-page-header {
display: none;
}
}
/* Help center and compact repository-shell safeguards */
.panel-header-actions {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 8px;
}
.help-page {
max-width: 1500px;
}
.help-hero {
position: relative;
isolation: isolate;
display: flex;
justify-content: space-between;
gap: 32px;
overflow: hidden;
margin-bottom: 24px;
padding: 30px 34px;
border: 1px solid var(--line);
border-radius: 18px;
background:
radial-gradient(circle at 78% 15%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 32%),
linear-gradient(125deg, color-mix(in srgb, var(--surface-2) 92%, transparent), var(--surface-1));
box-shadow: 0 22px 65px -48px color-mix(in srgb, var(--accent) 65%, transparent);
}
.help-hero::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
background-image: radial-gradient(color-mix(in srgb, var(--text-faint) 20%, transparent) 0.8px, transparent 0.8px);
background-size: 18px 18px;
mask-image: linear-gradient(90deg, transparent, black 65%, transparent);
opacity: 0.42;
}
.help-hero > div:first-child {
flex: 1;
min-width: 0;
max-width: 750px;
}
.help-hero h1 {
margin: 8px 0 6px;
font-size: clamp(28px, 3vw, 42px);
line-height: 1.1;
letter-spacing: -0.045em;
}
.help-hero p {
max-width: 680px;
margin: 0;
color: var(--text-muted);
font-size: 13px;
line-height: 1.6;
}
.help-search {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
max-width: 680px;
margin-top: 22px;
padding: 0 12px;
border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
border-radius: 11px;
background: color-mix(in srgb, var(--surface-0) 90%, transparent);
box-shadow: 0 12px 36px -30px var(--accent);
}
.help-search:focus-within {
border-color: var(--primary);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.help-search > .icon {
color: var(--primary);
}
.help-search input {
min-width: 0;
height: 46px;
border: 0;
outline: 0;
background: transparent;
color: var(--text);
}
.help-search kbd {
padding: 3px 6px;
border: 1px solid var(--line);
border-radius: 5px;
background: var(--surface-2);
color: var(--text-faint);
font: 10px var(--font-mono);
}
.help-layout {
display: grid;
grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
align-items: start;
gap: 20px;
}
.help-navigation {
position: sticky;
top: 0;
display: grid;
gap: 16px;
padding: 18px;
border: 1px solid var(--line);
border-radius: 14px;
background: color-mix(in srgb, var(--surface-1) 94%, transparent);
}
.help-category {
display: grid;
gap: 3px;
}
.help-category > strong {
padding: 4px 8px;
color: var(--text-faint);
font-size: 10px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.help-category button {
display: flex;
align-items: center;
gap: 8px;
padding: 8px;
border-radius: 8px;
background: transparent;
color: var(--text-muted);
cursor: pointer;
text-align: left;
font-size: 11px;
line-height: 1.3;
}
.help-category button:hover,
.help-category button.active {
background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
color: var(--text);
}
.help-category button.active {
box-shadow: inset 2px 0 var(--primary);
}
.help-category button .icon {
flex: 0 0 auto;
width: 15px;
height: 15px;
color: var(--primary);
}
.help-results {
min-width: 0;
}
.help-results-header {
display: flex;
justify-content: space-between;
align-items: end;
min-height: 48px;
margin-bottom: 10px;
}
.help-results-header h2 {
margin: 0 0 4px;
font-size: 18px;
}
.help-results-header span {
color: var(--text-faint);
font-size: 11px;
}
.help-topic {
overflow: hidden;
margin-bottom: 10px;
border: 1px solid var(--line);
border-radius: 13px;
background: var(--surface-1);
transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
scroll-margin-top: 14px;
}
.help-topic:hover {
border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}
.help-topic[open] {
border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
box-shadow: 0 18px 42px -40px var(--accent);
}
.help-topic summary {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 14px;
padding: 16px 18px;
cursor: pointer;
list-style: none;
}
.help-topic summary::-webkit-details-marker {
display: none;
}
.help-topic summary > span:nth-child(2) {
display: grid;
gap: 3px;
min-width: 0;
}
.help-topic summary small {
color: var(--primary);
font-size: 9px;
font-weight: 750;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.help-topic summary strong {
font-size: 14px;
}
.help-topic summary span span {
overflow: hidden;
color: var(--text-muted);
font-size: 11px;
line-height: 1.45;
text-overflow: ellipsis;
}
.help-topic-icon {
display: grid;
place-items: center;
width: 38px;
height: 38px;
border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
border-radius: 11px;
background: color-mix(in srgb, var(--accent) 9%, var(--surface-2));
color: var(--primary);
}
.help-topic-icon .icon {
width: 19px;
height: 19px;
}
.help-chevron {
color: var(--text-faint);
transition: transform 150ms ease;
}
.help-topic[open] .help-chevron {
transform: rotate(90deg);
}
.help-topic-body {
padding: 0 18px 18px 70px;
border-top: 1px solid var(--line-soft);
}
.help-topic-body ol {
display: grid;
gap: 11px;
margin: 16px 0;
padding-left: 22px;
color: var(--text-muted);
font-size: 12px;
line-height: 1.55;
}
.help-topic-body li::marker {
color: var(--primary);
font-family: var(--font-mono);
font-weight: 700;
}
.help-note {
display: flex;
align-items: flex-start;
gap: 9px;
padding: 11px 12px;
border: 1px solid color-mix(in srgb, var(--success) 20%, var(--line));
border-radius: 9px;
background: color-mix(in srgb, var(--success) 6%, var(--surface-0));
color: var(--text-muted);
font-size: 11px;
line-height: 1.5;
}
.help-note .icon {
flex: 0 0 auto;
color: var(--success);
}
@media (max-width: 900px) {
.help-layout {
grid-template-columns: 1fr;
}
.help-navigation {
position: static;
display: none;
}
.help-hero .project-illustration {
display: none;
}
}
@media (max-width: 680px) {
.help-hero {
padding: 22px;
}
.help-search kbd {
display: none;
}
.help-search {
grid-template-columns: auto minmax(0, 1fr);
}
.help-topic-body {
padding-left: 18px;
}
}