> ## Documentation Index
> Fetch the complete documentation index at: https://committ.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Preset Edit Store

> Isolated editing state for preset CRUD without affecting the wizard.

# Preset Edit Store

The usePresetEditStore provides isolated state for the (edit-preset) route group. It is completely separate from usePresetStore and useTaskDraftStore.

***

## Design Decision

Preset editing must not interfere with an in-progress wizard flow. If the user is mid-way through creating a commitment, navigates to edit a preset, and then returns, the wizard state must be exactly as they left it. The isolated store guarantees this separation.

***

## State Shape

| Field         | Type           | Purpose                                           |
| :------------ | :------------- | :------------------------------------------------ |
| editingPreset | Preset or null | The preset currently being edited                 |
| isNew         | boolean        | Whether creating a new preset or editing existing |
| isDirty       | boolean        | Whether unsaved changes exist                     |
