mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
4313cba624
commit
b9e7f6ab5e
4 changed files with 11 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
|
@ -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 }),
|
||||||
|
|
Loading…
Reference in a new issue