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:
Cian Johnston
2026-04-27 09:54:22 +01:00
committed by GitHub
parent 069223ae26
commit 2f26903af9
8 changed files with 556 additions and 14 deletions
+2 -2
View File
@@ -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