mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Merge pull request #22360 from overleaf/jdt-fix-admin-panel-tests-ai
feat: updating test defaults GitOrigin-RevId: 2be457097dcdebe13dd211f2ea24b45573b7744a
This commit is contained in:
committed by
Copybot
parent
854ddf3231
commit
ecb39a6b84
@@ -176,7 +176,7 @@ function _aiAddOnFeatures(subscription) {
|
||||
if (subscription?.addOns?.some(addOn => addOn.addOnCode === AI_ADD_ON_CODE)) {
|
||||
return { aiErrorAssistant: true }
|
||||
} else {
|
||||
return { aiErrorAssistant: false }
|
||||
return {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -137,9 +137,9 @@ const UserSchema = new Schema(
|
||||
type: Boolean,
|
||||
default: Settings.defaultFeatures.symbolPalette,
|
||||
},
|
||||
// labs feature, which shouldnt have a default as we havent decided pricing model yet
|
||||
aiErrorAssistant: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
featuresOverrides: [
|
||||
|
||||
@@ -12,10 +12,6 @@ import customLocalStorage from '../../../../infrastructure/local-storage'
|
||||
import { sendMB } from '../../../../infrastructure/event-tracking'
|
||||
import GeoBanners from './geo-banners'
|
||||
import AccessibilitySurveyBanner from './accessibility-survey-banner'
|
||||
import {
|
||||
DeprecatedBrowser,
|
||||
isDeprecatedBrowser,
|
||||
} from '@/shared/components/deprecated-browser'
|
||||
|
||||
const [enrollmentNotificationModule] = importOverleafModules(
|
||||
'managedGroupSubscriptionEnrollmentNotification'
|
||||
|
||||
@@ -115,6 +115,7 @@ module.exports = {
|
||||
compileGroup: 'standard',
|
||||
trackChanges: false,
|
||||
symbolPalette: false,
|
||||
aiErrorAssistant: false,
|
||||
},
|
||||
personal: {
|
||||
collaborators: 1,
|
||||
@@ -131,6 +132,7 @@ module.exports = {
|
||||
compileGroup: 'standard',
|
||||
trackChanges: false,
|
||||
symbolPalette: false,
|
||||
aiErrorAssistant: false,
|
||||
},
|
||||
collaborator: {
|
||||
collaborators: 10,
|
||||
@@ -147,6 +149,7 @@ module.exports = {
|
||||
compileGroup: 'priority',
|
||||
trackChanges: true,
|
||||
symbolPalette: true,
|
||||
aiErrorAssistant: false,
|
||||
},
|
||||
professional: {
|
||||
collaborators: -1,
|
||||
@@ -163,6 +166,7 @@ module.exports = {
|
||||
compileGroup: 'priority',
|
||||
trackChanges: true,
|
||||
symbolPalette: true,
|
||||
aiErrorAssistant: false,
|
||||
},
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user