feat(ui): ConfigPanel snapshot+diff modes; extract snapshotToForm helper
- Extract inline handleRestore mapping into snapshotToForm(snapshot, defaults) helper - Export defaultForm from useDeploymentPageState for use in ConfigPanel - Replace ConfigPanel stub with real read-only snapshot renderer + Snapshot/Diff toggle - Add fieldDiff deep-equal field-walk helper with nested object + array support - Forward optional currentForm prop through CheckpointDetailDrawer to ConfigPanel - 13 new tests across diff.test.ts, snapshotToForm.test.ts, ConfigPanel.test.tsx (all pass) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -49,7 +49,7 @@ export interface DeploymentPageFormState {
|
||||
sensitiveKeys: SensitiveKeysFormState;
|
||||
}
|
||||
|
||||
const defaultForm: DeploymentPageFormState = {
|
||||
export const defaultForm: DeploymentPageFormState = {
|
||||
monitoring: {
|
||||
engineLevel: 'REGULAR',
|
||||
payloadCaptureMode: 'BOTH',
|
||||
|
||||
Reference in New Issue
Block a user