-
-
-
-
-
-
-
-
- {{ commitRunning ? 'Committing' : 'Commit selected' }}
-
+
+
+ {{ inventoryRaw ? t('inventory.jsonView') : t('inventory.rawView') }}
+
+
+
+
{{ inventoryError }}
+
+
+
+
+
+ {{ inventoryRaw ? t('inventory.rawView') : t('common.json') }}
+
+ {{ t('inventory.rawNotice') }}
+ {{ inventoryDisplay }}
+
+
-
{{ commitError }}
-
{{ JSON.stringify(commitResult, null, 2) }}
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ t('changes.apply') }}
+
+
+ {{ changeError }}
+
+
+
+ {{ pretty(selectedChange) }}
+
+
+ {{ t('changes.noValidation') }}
+
+
+ {{ selectedChange.validation.status }}
+ {{ t('common.issueCount', { n: selectedChange.validation.issue_count || 0 }) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('keys.notConfigured') }}
+
+
+ {{ t('keys.createMeta') }}
+
+
+ {{ t('keys.issuedTitle') }}
+ {{ t('keys.issuedText') }}
+ {{ issuedKey.consumer }} · …{{ issuedKey.token_hint }}
+ {{ issuedToken }}
+
+ {{ t('keys.copyToken') }}
+ {{ t('common.close') }}
+
+
+ {{ keysError }}
+
+
+
+
+
+
+
+
{{ key.name }}
+
{{ key.consumer }} · {{ key.role || t('common.unknown') }} · {{ (key.scopes || []).join(', ') }} · …{{ key.token_hint }}
+
{{ t('common.created') }}: {{ formatDate(key.created_at) }} · {{ t('common.lastUsed') }}: {{ formatDate(key.last_used_at) }}
+
+ {{ t('common.revoked') }}
+ {{ t('common.stale') }}
+
+
+
+ {{ t('keys.rotate') }}
+ {{ t('keys.revoke') }}
+
+
+
+
+
+
+
+
+
+
+ {{ t('settings.languageMeta') }}
+
+ {{ t('auth.localeAuto') }}
+ {{ option.label }}
+
+
+
+
+
+ {{ t('nav.logout') }}
+
+
+
+
+
+
+
`
};
diff --git a/ui/src/styles.css b/ui/src/styles.css
index 75fdad1..8d1e27f 100644
--- a/ui/src/styles.css
+++ b/ui/src/styles.css
@@ -1,99 +1,172 @@
-body {
- margin: 0;
- background: #16161e;
- color: #c0caf5;
+html,
+body,
+#app {
+ min-height: 100%;
}
-#app {
+body {
+ margin: 0;
+ background: var(--gn-surface-page);
+ color: var(--gn-color-text-light);
+ font-family: var(--gn-font-family-base);
+}
+
+.gnb-app {
min-height: 100vh;
}
-.gnb-shell {
- width: min(100% - 48px, 1380px);
- max-width: none;
+.gnb-boot,
+.gnb-gate {
+ max-width: 760px;
margin: 0 auto;
- padding: 24px 0 56px;
+ padding: 32px;
}
-.gnb-shell > .page-header,
-.gnb-shell > .section {
- width: 100%;
+.gnb-boot {
+ color: var(--gn-color-text-medium);
}
-.gnb-shell .page-header {
+.gnb-shell {
display: grid;
- grid-template-columns: minmax(0, 1fr) auto;
- align-items: center;
- gap: 24px;
+ grid-template-columns: 260px minmax(0, 1fr);
+ min-height: 100vh;
}
-.gnb-shell .page-header-actions,
-.gnb-shell .toolbar > .toolbar-group:last-child {
+.gnb-sidebar {
+ position: sticky;
+ top: 0;
+ height: 100vh;
display: flex;
- flex-wrap: wrap;
- justify-content: flex-end;
- gap: 8px;
+ flex-direction: column;
+ gap: 16px;
+ padding: 16px;
+ border-right: 1px solid var(--gn-border-color-base);
+ background: var(--gn-surface-panel);
}
-.gnb-shell .btn {
- white-space: nowrap;
+.gnb-brand {
+ display: flex;
+ gap: 12px;
+ align-items: center;
+ padding: 8px;
}
-.gnb-shell .btn.with-icon {
- min-width: 150px;
-}
-
-.gnb-shell .tabs {
- max-width: 100%;
- overflow-x: auto;
- padding-bottom: 2px;
-}
-
-.gnb-shell .description-list {
- max-width: none;
-}
-
-.gnb-shell .toolbar {
- margin-bottom: 12px;
-}
-
-.gnb-shell .tabs-panels {
- width: 100%;
-}
-
-.gnb-status {
+.gnb-brand-mark {
+ width: 42px;
+ height: 42px;
display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 48px;
- justify-items: center;
- margin: 24px 0;
+ place-items: center;
+ background: var(--gn-color-accent);
+ color: var(--gn-color-black);
+ font-weight: var(--gn-font-weight-bold);
+}
+
+.gnb-brand-copy {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+}
+
+.gnb-brand-copy small {
+ color: var(--gn-color-text-medium);
+}
+
+.gnb-nav,
+.gnb-sidebar-footer {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+}
+
+.gnb-sidebar-footer {
+ margin-top: auto;
+ padding-top: 12px;
+ border-top: 1px solid var(--gn-border-color-base);
+}
+
+.gnb-nav-item {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ width: 100%;
+ padding: 10px 12px;
+ border: 1px solid transparent;
+ background: transparent;
+ color: inherit;
+ font: inherit;
+ text-align: left;
+ cursor: pointer;
+}
+
+.gnb-nav-item:hover {
+ border-color: var(--gn-border-color-base);
+}
+
+.gnb-nav-item.is-active {
+ border-color: var(--gn-color-accent);
+ background: var(--gn-surface-panel-strong);
+}
+
+.gnb-main {
+ min-width: 0;
+ padding: 24px 32px 48px;
+}
+
+.gnb-page {
+ display: flex;
+ flex-direction: column;
+ gap: 20px;
+ margin-top: 20px;
+}
+
+.gnb-split {
+ display: grid;
+ grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
+ gap: 16px;
+ align-items: start;
+}
+
+.gnb-detail,
+.gnb-doc,
+.gnb-change-detail {
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ min-width: 0;
}
.gnb-list {
- display: grid;
+ display: flex;
+ flex-direction: column;
gap: 8px;
+ min-width: 0;
+}
+
+.gnb-panel {
+ padding: 12px;
+ border: 1px solid var(--gn-border-color-base);
+ background: var(--gn-surface-panel);
+}
+
+.gnb-list-body {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+ max-height: 70vh;
+ overflow: auto;
}
.gnb-row {
- display: grid;
- grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
- gap: 16px;
- align-items: center;
- padding: 12px 0;
- border-bottom: 2px solid rgba(192, 202, 245, 0.24);
-}
-
-.gnb-row span {
- overflow-wrap: anywhere;
- color: #a9b1d6;
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+ padding: 10px 12px;
+ border: 1px solid var(--gn-border-color-base);
+ background: var(--gn-surface-panel);
}
.gnb-row-button {
- width: 100%;
- border: 0;
- border-bottom: 2px solid rgba(192, 202, 245, 0.24);
- background: transparent;
- color: #c0caf5;
+ color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
@@ -101,182 +174,224 @@
.gnb-row-button:hover,
.gnb-row-button.is-active {
- background: rgba(122, 162, 247, 0.16);
+ border-color: var(--gn-color-accent);
}
-.gnb-list > .gnb-row-button {
- display: grid;
- grid-template-columns: 1fr;
- gap: 8px;
- min-width: 0;
- padding: 12px 15px;
+.gnb-row-button.is-active {
+ background: var(--gn-surface-panel-strong);
}
-.gnb-list > .gnb-row-button strong,
-.gnb-list > .gnb-row-button span {
- min-width: 0;
- overflow-wrap: anywhere;
+.gnb-row span,
+.gnb-row small,
+.gnb-muted {
+ color: var(--gn-color-text-medium);
}
-.gnb-inventory,
-.gnb-docs,
-.gnb-changes,
-.gnb-git {
- display: grid;
- grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
- gap: 24px;
- align-items: start;
+.gnb-row span {
+ font-size: var(--gn-font-size-sm);
+ word-break: break-word;
}
-.gnb-detail {
- min-width: 0;
-}
-
-.gnb-detail-grid {
- display: grid;
- grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
- gap: 16px;
- align-items: start;
-}
-
-.gnb-json {
- min-height: 320px;
- max-height: 70vh;
- overflow: auto;
- margin: 0;
- padding: 16px;
- border: 2px solid rgba(192, 202, 245, 0.24);
- border-left-width: 6px;
- background: #1f2335;
- color: #c0caf5;
- font-size: 13px;
- line-height: 1.5;
-}
-
-.gnb-json-small {
- min-height: 120px;
- max-height: 240px;
-}
-
-.gnb-doc-detail {
- display: grid;
- gap: 20px;
-}
-
-.gnb-doc-detail h3 {
- margin: 0 0 8px;
- font-size: 14px;
-}
-
-.gnb-markdown {
- min-height: 360px;
- max-height: 70vh;
- overflow: auto;
- margin: 0;
- padding: 16px;
- border: 2px solid rgba(192, 202, 245, 0.24);
- border-left-width: 6px;
- background: #1f2335;
- color: #c0caf5;
- font-size: 14px;
- line-height: 1.6;
- white-space: pre-wrap;
- overflow-wrap: normal;
-}
-
-.gnb-checkbox-row {
- grid-template-columns: 24px 48px minmax(0, 1fr);
-}
-
-.gnb-checkbox-row input {
- width: 16px;
- height: 16px;
-}
-
-.gnb-checkbox-row.is-disabled {
- opacity: 0.52;
-}
-
-.gnb-commit {
- display: grid;
- gap: 16px;
- min-width: 0;
-}
-
-.gnb-changes-workspace {
- display: grid;
- gap: 24px;
-}
-
-.gnb-proposal {
- display: grid;
- gap: 16px;
- padding-top: 8px;
+.gnb-lead {
+ max-width: 60ch;
+ color: var(--gn-color-text-medium);
}
.gnb-actions {
display: flex;
flex-wrap: wrap;
- justify-content: flex-start;
gap: 8px;
+ align-items: center;
+ margin-top: 8px;
}
-.gnb-form-grid {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 16px;
+.gnb-badges {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ align-items: center;
+}
+
+.gnb-form {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ margin-top: 8px;
}
.gnb-field {
- display: grid;
+ display: flex;
+ flex-direction: column;
gap: 6px;
}
-.gnb-field span {
- font-size: 13px;
- font-weight: 600;
+.gnb-field > span {
+ color: var(--gn-color-text-medium);
+ font-size: var(--gn-font-size-sm);
}
-.gnb-field textarea {
+.gnb-textarea {
width: 100%;
- box-sizing: border-box;
+ min-height: 220px;
resize: vertical;
+}
+
+.gnb-pre {
+ margin: 0;
+ max-height: 460px;
+ padding: 12px;
+ overflow: auto;
+ border: 1px solid var(--gn-border-color-base);
+ background: var(--gn-surface-panel-muted);
+ color: var(--gn-color-text-light);
+ font-family: var(--gn-font-family-base);
+ font-size: var(--gn-font-size-sm);
+ white-space: pre-wrap;
+ word-break: break-word;
+}
+
+.gnb-history {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+}
+
+.gnb-history-row {
+ display: flex;
+ gap: 8px;
+ align-items: center;
+}
+
+.gnb-history-row .gnb-row-button {
+ flex: 1;
+}
+
+.gnb-diff {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ margin-top: 12px;
+}
+
+.gnb-issues {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ margin-top: 8px;
+}
+
+.gnb-issue {
padding: 10px 12px;
- border: 2px solid #c0caf5;
- border-bottom-width: 6px;
- background: rgba(192, 202, 245, 0.045);
- color: #c0caf5;
- font: inherit;
+ border: 1px solid var(--gn-border-color-base);
+ background: var(--gn-surface-panel-muted);
}
-.gnb-error {
- margin-top: 16px;
- color: #f7768e;
+.gnb-issue p {
+ margin: 6px 0 0;
+ color: var(--gn-color-text-medium);
}
-@media (max-width: 760px) {
+.gnb-issue code,
+.gnb-token {
+ color: var(--gn-color-accent);
+ font-family: var(--gn-font-family-base);
+ word-break: break-all;
+}
+
+.gnb-token {
+ display: block;
+ margin: 8px 0;
+ padding: 8px;
+ border: 1px solid var(--gn-border-color-base);
+ background: var(--gn-color-black);
+}
+
+.gnb-metrics {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 16px;
+}
+
+.gnb-inventory-detail {
+ grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
+}
+
+.gnb-keys {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ margin-top: 8px;
+}
+
+.gnb-key-row {
+ display: flex;
+ gap: 12px;
+ align-items: flex-start;
+ justify-content: space-between;
+ padding: 10px 12px;
+ border: 1px solid var(--gn-border-color-base);
+ background: var(--gn-surface-panel-muted);
+}
+
+.gnb-key-copy {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+ min-width: 0;
+}
+
+.gnb-language-actions {
+ margin-top: 12px;
+}
+
+.gnb-mobile-menu {
+ display: none;
+}
+
+.gnb-backdrop {
+ display: none;
+}
+
+@media (max-width: 1000px) {
.gnb-shell {
- width: min(100% - 24px, 1380px);
- padding: 16px 0 40px;
- }
-
- .gnb-shell .page-header {
grid-template-columns: 1fr;
}
- .gnb-shell .page-header-actions,
- .gnb-shell .toolbar > .toolbar-group:last-child {
- justify-content: flex-start;
+ .gnb-sidebar {
+ position: fixed;
+ inset: 0 auto 0 0;
+ z-index: 40;
+ width: min(84vw, 300px);
+ transform: translateX(-100%);
+ transition: transform var(--gn-motion-base) var(--gn-motion-ease);
}
- .gnb-status,
- .gnb-row,
- .gnb-docs,
- .gnb-changes,
- .gnb-git,
- .gnb-inventory,
- .gnb-detail-grid,
- .gnb-form-grid {
+ .gnb-sidebar.is-open {
+ transform: translateX(0);
+ }
+
+ .gnb-backdrop {
+ position: fixed;
+ inset: 0;
+ z-index: 30;
+ display: block;
+ background: rgb(0 0 0 / 55%);
+ }
+
+ .gnb-main {
+ padding: 16px;
+ }
+
+ .gnb-mobile-menu {
+ display: inline-flex;
+ }
+
+ .gnb-split,
+ .gnb-inventory-detail {
grid-template-columns: 1fr;
}
+
+ .gnb-list-body {
+ max-height: none;
+ }
}