# Deployments

Deployment app instance, release, runtime target, access, and developer API feature modules.

## Internal Module Dependency Graph

The graph shows product module dependencies inside `web/features/deployments`. It omits route-state plumbing and shared support modules.

```mermaid
flowchart TD
  list["list"]
  detail["detail"]
  createGuide["create-guide"]
  createRelease["create-release"]
  deployDrawer["deploy-drawer"]
  deploymentActions["deployment-actions"]

  detailOverview["detail/overview"]
  detailInstances["detail/instances"]
  detailAccess["detail/access"]
  detailApiTokens["detail/api-tokens"]
  detailReleases["detail/releases"]

  accessChannels["detail/access/channels"]
  accessPermissions["detail/access/permissions"]
  accessSubjectSelector["detail/access/permissions/access-subject-selector"]
  apiTokenManagement["detail/api-tokens/api-token-management"]
  apiKeys["detail/api-tokens/api-keys"]
  apiDocs["detail/api-tokens/docs"]
  instanceEnvironmentList["detail/instances/environment-list"]
  instanceHeaderActions["detail/instances/header-actions"]
  instanceRowActions["detail/instances/row-actions"]
  overviewAccessSummary["detail/overview/access-summary"]
  overviewEnvironmentStatus["detail/overview/environment-status"]
  overviewReleaseSummary["detail/overview/release-summary"]
  releaseActions["detail/releases/release-actions"]
  releaseHistory["detail/releases/release-history"]

  list --> createGuide
  list --> createRelease
  list --> deployDrawer
  list --> deploymentActions
  list --> detail

  detail --> createRelease
  detail --> deploymentActions
  detail --> detailOverview
  detail --> detailInstances
  detail --> detailAccess
  detail --> detailApiTokens
  detail --> detailReleases
  detail --> instanceHeaderActions

  detailOverview --> overviewAccessSummary
  detailOverview --> overviewEnvironmentStatus
  detailOverview --> overviewReleaseSummary

  overviewEnvironmentStatus --> deployDrawer
  overviewReleaseSummary --> createRelease

  detailInstances --> detail
  detailInstances --> instanceEnvironmentList
  detailInstances --> instanceHeaderActions
  instanceEnvironmentList --> detailInstances
  instanceEnvironmentList --> instanceRowActions
  instanceHeaderActions --> deployDrawer
  instanceHeaderActions --> detail
  instanceRowActions --> deployDrawer

  detailAccess --> accessChannels
  detailAccess --> accessPermissions
  accessChannels --> detailAccess
  accessPermissions --> detailAccess
  accessPermissions --> accessSubjectSelector

  detailApiTokens --> apiTokenManagement
  apiTokenManagement --> detailApiTokens
  apiTokenManagement --> apiKeys
  apiTokenManagement --> apiDocs
  apiKeys --> detailApiTokens

  detailReleases --> releaseHistory
  releaseActions --> deployDrawer
  releaseHistory --> detailReleases
  releaseHistory --> releaseActions
```

## Internal Modules

| Module               | Why this module uses it                                       |
| -------------------- | ------------------------------------------------------------- |
| `list`               | Owns the deployment app instance list surface.                |
| `detail`             | Owns the deployment app instance detail shell and route tabs. |
| `create-guide`       | Owns the create deployment guide workflow.                    |
| `create-release`     | Owns release creation entry points and dialog state.          |
| `deploy-drawer`      | Owns deployment target selection and submit workflow state.   |
| `deployment-actions` | Owns app instance edit and delete action surfaces.            |

## External Modules

None.
