> ## 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.

# Commit Store

> Active commitment list selection, menu, and deletion state.

# Commit Store

The useCommitStore manages the Dashboard's commitment list interaction state.

***

## State Shape

| Field                | Type           | Purpose                                          |
| :------------------- | :------------- | :----------------------------------------------- |
| selectedTaskId       | string or null | Currently selected task for context menu         |
| isMenuVisible        | boolean        | Whether the action menu is shown                 |
| isDeleteModalVisible | boolean        | Whether the deletion confirmation modal is shown |
| isDeletingTask       | boolean        | Loading state during task deletion               |

***

## Key Actions

* selectTask(id) -- Highlights a task and opens the context menu
* clearSelection() -- Dismisses the context menu
* showDeleteModal() -- Opens the deletion confirmation dialog
* setDeletingTask(state) -- Tracks the async deletion progress
