Refactor permission management across UI components and stores (#221)
* refactor: normalize permission rules and improve command draft handling Add normalized rule set construction for permissions in Agents pages Track initial command draft state to detect unsaved changes Prefill draft fields when duplicating or selecting existing commands * feat: add global session-level edit mode for agent permissions
This commit is contained in:
committed by
GitHub
parent
74511abfda
commit
a9952fd8da
@@ -11,17 +11,17 @@ export const getEditModeColors = (mode?: EditPermissionMode | null): EditModeCol
|
||||
if (mode === 'full') {
|
||||
return {
|
||||
text: 'var(--status-info)',
|
||||
border: 'var(--status-info-border)',
|
||||
background: 'var(--status-info-background)',
|
||||
border: 'color-mix(in srgb, var(--status-info) 25%, transparent)',
|
||||
background: 'color-mix(in srgb, var(--status-info) 4%, transparent)',
|
||||
borderWidth: 1.5,
|
||||
};
|
||||
}
|
||||
|
||||
if (mode === 'allow') {
|
||||
return {
|
||||
text: 'var(--status-success)',
|
||||
border: 'var(--status-success-border)',
|
||||
background: 'var(--status-success-background)',
|
||||
text: 'var(--status-info)',
|
||||
border: 'color-mix(in srgb, var(--status-info) 25%, transparent)',
|
||||
background: 'color-mix(in srgb, var(--status-info) 4%, transparent)',
|
||||
borderWidth: 1.5,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user