mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
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:
committed by
Copybot
parent
df8190ec8c
commit
551d7b3908
@@ -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]
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user