Cloud Infrastructure & Database Developer Workbench

profile: web-app archetype: developer-tool scroll: inner-canvas tokens: DESIGN.md modal <= 4 fields skeleton >= 150ms touch >= 44px
Linter: PASS (0 errors, 0 warnings)

1. Interactive App Shell & Viewport Budget Simulator

Desktop Budget (1280px): Left Nav 220px + Right Panel 0px + Outer Padding 48px + Min Content 760px = 1028px
<PageHeader> (sticky z-10) [Primary CTA]
<PageSection> + <DataStateBoundary> scroll_owner: inner-canvas | CLS = 0 reservation 4 mandatory states: Loading (Skeleton) | Empty (CTA) | Error (In-place Retry) | Populated

2. Core Page Archetypes (3)

Archetype: ResourceList

Filterable list of deployments, branches, or database tables (`max-w: 1280px`).

Primary CTA: Top-right slot of `<PageHeader>` (`Trigger Deploy` or `+ New Table`).

+--------------------------------------------------------------------+
| Deployments                                       [Trigger Deploy] |
+--------------------------------------------------------------------+
| [Search commit/branch...] [Env: All | Production | Preview]        |
+--------------------------------------------------------------------+
| dpl_8f2a  | main (a4c91e2) | Ready (34s) | 14m ago | [Inspect Log] |
+--------------------------------------------------------------------+

Archetype: InspectorWorkbench

Split code/SQL editor and tabular output console (`max-w: 1280px`).

Primary CTA: Right side of workbench toolbar (`[Run Query (Cmd+Enter)]`).

+--------------------------------------------------------------------+
| SQL Workbench                           [Saved Queries] [Run Query]|
+--------------------------------------------------------------------+
| 1 | SELECT id, email, created_at FROM users                        |
| 2 | WHERE status = 'active' ORDER BY created_at DESC LIMIT 50;     |
+--------------------------------------------------------------------+
| Results (50 rows in 18ms)                         [Export JSON/CSV]|
| id (uuid)            | email                 | created_at          |
+--------------------------------------------------------------------+

Archetype: AccessAndKeys

High-security API key, webhook secret, and environment variable manager (`max-w: 960px`).

Primary CTA: Top-right slot of `<PageHeader>` (`+ Create Secret Key`).

+--------------------------------------------------------------------+
| API Keys & Secrets                             [+ Create Secret]   |
+--------------------------------------------------------------------+
| Name          | Token Prefix     | Last Used | Actions             |
| Prod Backend  | sk_live_9f8a...  | 2m ago    | [Copy] [Rotate]     |
+--------------------------------------------------------------------+

3. Route Reachability Graph (3 Routes)

Route Archetype Entry Trigger Primary Action Exit / Cancel Fallback
/projects/:ref/deployments ResourceList Left Rail Deployments or Project Switcher Inspect build logs (?log=id) or promote deployment Switch project or filter environment
/projects/:ref/sql InspectorWorkbench Left Rail SQL Workbench or Cmd+Shift+E Execute SQL query (Cmd+Enter) and inspect rows Return to /projects/:ref/deployments
/projects/:ref/settings/keys AccessAndKeys Left Rail API Keys & Secrets Create or rotate API secrets Return to /projects/:ref/deployments

4. Mandatory 4-State View Matrix

View / Component Loading (Skeleton) Empty (Copy + CTA) Error (In-Place Retry) Populated (Density & Overflow)
/projects/:ref/deployments (ResourceList) 6 deployment card skeletons (72px height) matching ID, branch, status pill, and duration columns (CLS = 0) Centered 420px block: *"No deployments triggered for this project yet."* + [Connect Git Repository] CTA Inline alert card with git provider error + [Retry Sync] button 72px rows, monospace commit SHAs, status badges (Building, Ready, Failed)
/projects/:ref/sql (InspectorWorkbench) Editor shimmer block (240px) + 8 result table row skeletons (36px height) Results pane initial state: *"Press Cmd+Enter to run query and view results."* + [Load Sample Query] CTA Persistent SQL error panel in results pane showing Postgres error code, line number, and hint Monospace result grid, tabular-nums, sticky headers, null cells rendered distinctly as -
/projects/:ref/settings/keys (AccessAndKeys) 4 secret row skeletons (56px height) inside 960px container Centered 420px block: *"No custom API keys created."* + [+ Create Secret Key] CTA Inline error banner + [Reload Keys] button Masked prefix (sk_live_9f8a...), tabular-nums last-used date, [Copy] and [Rotate] actions

5. Monotonic Z-Index Elevation Contract

base 0
sticky 10
navigation 20
drawer 30
modal 40
popover 50
toast 60
tooltip 70