feat: migrate from aiErrorAssist naming for disabling AI features to aiFeatures.enabled to avoid confusion (#31273)

feat: keep aiErrorAssistant as setting on user object until migration is run
GitOrigin-RevId: df53914163566065d0b91b8d130476fbcdf1ea96
This commit is contained in:
Jimmy Domagala-Tang
2026-02-13 09:05:57 +00:00
committed by Copybot
parent df8190ec8c
commit 551d7b3908
10 changed files with 40 additions and 28 deletions
@@ -45,7 +45,7 @@ function PdfLogEntry({
logEntry?: LogEntry
id?: string
}) {
const showAiErrorAssistant = getMeta('ol-showAiErrorAssistant')
const showAiErrorAssistant = getMeta('ol-showAiFeatures')
if (ruleId && HumanReadableLogsHints[ruleId]) {
const hint = HumanReadableLogsHints[ruleId]
+1 -1
View File
@@ -260,7 +260,7 @@ export interface Meta {
'ol-settingsPlans': Plan[]
'ol-shouldAllowEditingDetails': boolean
'ol-shouldLoadHotjar': boolean
'ol-showAiErrorAssistant': boolean
'ol-showAiFeatures': boolean
'ol-showCouponField': boolean
'ol-showGroupDiscount': boolean
'ol-showGroupsAndEnterpriseBanner': boolean
@@ -76,7 +76,7 @@ const MockEditorViewProvider: FC<React.PropsWithChildren> = ({ children }) => {
const Provider: FC<React.PropsWithChildren<{ children: ReactNode }>> = ({
children,
}) => {
useMeta({ 'ol-showAiErrorAssistant': true })
useMeta({ 'ol-showAiFeatures': true })
return (
<MockEditorViewProvider>
<div className="logs-pane p-2">{children}</div>