mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
Part 1: Add --json output flags to three CLI commands for machine-readable output - codeburn plugin list --json: array of plugin objects with status and capabilities - codeburn plugin info <name> --json: manifest with dir and onDiskSections - codeburn sync auto status --json: status object with configured, accepted, killed, receipts Part 2: Implement Electron bridge with read and mutation handlers - Read handlers: pluginList, pluginInfo, syncAutoStatus (return parsed JSON) - Mutation handlers: pluginAdd, pluginRemove, pluginVerify, syncAutoEnable, syncAutoDisable - All handlers follow existing Envelope pattern with proper error handling - Special case: syncAutoEnable captures disclosure text when accept=false Part 3: Renderer UI components (minimal implementation D1-D3 shell) - Add Plugins section to nav rail at bottom (quiet entry, plugin icon) - Implement PluginsSection component with list rendering for loaded/rejected plugins - Update Section type and routing to include plugins navigation - Add test coverage for Plugins panel row states - Implemented as dormant Team tab registry placeholder for future plugin sections Tests: All CLI tests (3839 passed), app tests (613 passed), E2E gates all passing - CLI: tsc clean, vitest passes with 26 pre-existing jsdom errors - App: typecheck clean, npm test green, npm run build succeeds
88 lines
1.4 KiB
CSS
88 lines
1.4 KiB
CSS
.container {
|
|
padding: 1rem;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.container h1 {
|
|
margin: 0 0 1.5rem;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.error {
|
|
padding: 0.75rem 1rem;
|
|
margin-bottom: 1rem;
|
|
background: var(--color-error-bg);
|
|
border: 1px solid var(--color-error-border);
|
|
border-radius: 4px;
|
|
color: var(--color-error-text);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.empty {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.empty button {
|
|
margin-top: 1rem;
|
|
padding: 0.5rem 1rem;
|
|
background: var(--color-action);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.row {
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 4px;
|
|
background: var(--color-bg-secondary);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.row[data-status="rejected"] {
|
|
background: var(--color-error-bg);
|
|
border-color: var(--color-error-border);
|
|
}
|
|
|
|
.info {
|
|
flex: 1;
|
|
}
|
|
|
|
.name {
|
|
font-weight: 600;
|
|
color: var(--color-text);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.reason {
|
|
font-size: 0.875rem;
|
|
color: var(--color-text-secondary);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.caps {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.caps span {
|
|
padding: 0.25rem 0.5rem;
|
|
background: var(--color-bg-hover);
|
|
border-radius: 3px;
|
|
color: var(--color-text-secondary);
|
|
}
|