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, mendeley: false,
trackChanges: false, trackChanges: false,
trackChangesVisible: ProjectEditorHandler.trackChangesAvailable, trackChangesVisible: ProjectEditorHandler.trackChangesAvailable,
symbolPalette: false,
}) })
if (result.features.trackChanges) { if (result.features.trackChanges) {

View file

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

View file

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

View file

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