Merge pull request #5384 from overleaf/bg-add-symbol-palette-feature-flag

[web] add symbol palette feature flag

GitOrigin-RevId: 154499aaef72b677f28d85c501d0015811081887
This commit is contained in:
Brian Gough 2021-10-13 10:44:23 +01:00 committed by Copybot
parent 4313cba624
commit b9e7f6ab5e
4 changed files with 11 additions and 0 deletions

View file

@ -80,6 +80,7 @@ module.exports = ProjectEditorHandler = {
mendeley: false,
trackChanges: false,
trackChangesVisible: ProjectEditorHandler.trackChangesAvailable,
symbolPalette: false,
})
if (result.features.trackChanges) {

View file

@ -102,6 +102,10 @@ const UserSchema = new Schema({
type: Boolean,
default: Settings.defaultFeatures.referencesSearch,
},
symbolPalette: {
type: Boolean,
default: Settings.defaultFeatures.symbolPalette,
},
},
featuresOverrides: [
{
@ -126,6 +130,7 @@ const UserSchema = new Schema({
mendeley: { type: Boolean },
zotero: { type: Boolean },
referencesSearch: { type: Boolean },
symbolPalette: { type: Boolean },
},
},
],

View file

@ -56,6 +56,7 @@ module.exports = {
compileTimeout: 60,
compileGroup: 'standard',
trackChanges: false,
symbolPalette: false,
},
personal: {
collaborators: 1,
@ -71,6 +72,7 @@ module.exports = {
compileTimeout: 60,
compileGroup: 'standard',
trackChanges: false,
symbolPalette: false,
},
collaborator: {
collaborators: 10,
@ -86,6 +88,7 @@ module.exports = {
compileTimeout: 180,
compileGroup: 'priority',
trackChanges: true,
symbolPalette: true,
},
professional: {
collaborators: -1,
@ -101,6 +104,7 @@ module.exports = {
compileTimeout: 180,
compileGroup: 'priority',
trackChanges: true,
symbolPalette: true,
},
}),

View file

@ -21,6 +21,7 @@ describe('UserFeaturesUpdater', function () {
referencesSearch: true,
zotero: true,
mendeley: true,
symbolPalette: true,
}
this.User = {
findByIdAndUpdate: sinon.stub().yields(null, { features: this.features }),