mirror of
https://github.com/coder/coder.git
synced 2026-11-07 21:29:37 +08:00
Replaces the blocking Dialog modal setup notice with a context-aware inline banner above the chat input, with different messaging for admins and members. ## Inline notice banner The `AgentSetupNotice` component now renders as a `bg-surface-tertiary` inline box instead of an unclosable `Dialog` modal. The notice sits above the chat composer using negative margin overlap, and the composer is forced opaque (`bg-surface-secondary`) when the notice is present so the banner doesn't bleed through the semi-transparent desktop background. Three states based on role and configuration: - **Admin, no providers or models**: links to both provider and model setup - **Admin, missing provider only**: link to provider setup - **Admin, has providers but no models**: link to model setup only - **Member, no models available**: generic "your admin is still getting things set up" message The admin/member distinction is determined via `permissions.editDeploymentConfig` and applied in both `AgentChatPage` and `AgentCreatePage`. ## Conflict resolution notes During merge with main, the following were adapted: - Sidebar filter props updated to main's `sidebarFilters`/`onSidebarFiltersChange` pattern (replacing old `archivedFilter`) - Accepted `Sidebar/` -> `ChatsSidebar/` directory refactor from main - Dropped `hasArchivedChats` query (its sidebar consumer was removed in the refactor) - Provider link updated to `/ai/settings` (new AI settings page) > Generated with the assistance of Coder Agents on behalf of @tracyjohnsonux --------- Co-authored-by: jaaydenh <jaaydenh@users.noreply.github.com>