mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add admin UI control for chat auto-archive days (#24704)
Relates to #24642 Adds admin UI controls for managing chat auto-archive (days) under "Lifecycle". Also adds a "Days" label to the right of the pre-existing unitless numeric input for consistency. Exemplary screenshot below. More screens available in Storybook. <img width="847" height="585" alt="Screenshot 2026-04-24 at 16 48 59" src="https://github.com/user-attachments/assets/d38de5f8-d379-4b06-b175-ac399f31e578" />
This commit is contained in:
+2
-2
@@ -4360,8 +4360,8 @@ func (api *API) getChatAutoArchiveDays(rw http.ResponseWriter, r *http.Request)
|
||||
})
|
||||
}
|
||||
|
||||
// Upper bound for the auto-archive window. Update the frontend
|
||||
// constant if a settings UI is added.
|
||||
// Upper bound for the auto-archive window. Keep in sync with
|
||||
// the validation schema in site/src/pages/AgentsPage/components/AutoArchiveSettings.tsx.
|
||||
const autoArchiveDaysMaximum = 3650 // ~10 years
|
||||
|
||||
// putChatAutoArchiveDays updates the deployment-wide auto-archive
|
||||
|
||||
Reference in New Issue
Block a user