confine art creator to staging for now

This commit is contained in:
Fedor Indutny 2023-03-01 12:03:21 -08:00 committed by GitHub
parent 4d357f6f06
commit f59e35ea0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 2 deletions

View file

@ -94,7 +94,7 @@ import type { MenuActionType } from '../ts/types/menu';
import { createTemplate } from './menu'; import { createTemplate } from './menu';
import { installFileHandler, installWebHandler } from './protocol_filter'; import { installFileHandler, installWebHandler } from './protocol_filter';
import * as OS from '../ts/OS'; import * as OS from '../ts/OS';
import { isProduction } from '../ts/util/version'; import { isProduction, isStaging } from '../ts/util/version';
import { import {
isSgnlHref, isSgnlHref,
isCaptchaHref, isCaptchaHref,
@ -1984,6 +1984,7 @@ function setupMenu(options?: Partial<CreateTemplateOptionsType>) {
devTools: defaultWebPrefs.devTools, devTools: defaultWebPrefs.devTools,
includeSetup: false, includeSetup: false,
isProduction: isProduction(app.getVersion()), isProduction: isProduction(app.getVersion()),
isStaging: isStaging(app.getVersion()),
platform, platform,
// actions // actions

View file

@ -22,6 +22,7 @@ export const createTemplate = (
const { const {
isProduction, isProduction,
isStaging,
devTools, devTools,
includeSetup, includeSetup,
openContactUs, openContactUs,
@ -47,7 +48,7 @@ export const createTemplate = (
submenu: [ submenu: [
{ {
label: i18n('mainMenuCreateStickers'), label: i18n('mainMenuCreateStickers'),
click: isProduction ? showStickerCreator : openArtCreator, click: isStaging ? openArtCreator : showStickerCreator,
}, },
{ {
label: i18n('mainMenuSettings'), label: i18n('mainMenuSettings'),

View file

@ -7,6 +7,7 @@
"0": "https://cdn.signal.org", "0": "https://cdn.signal.org",
"2": "https://cdn2.signal.org" "2": "https://cdn2.signal.org"
}, },
"artCreatorUrl": "https://create.signal.art",
"serverPublicParams": "AMhf5ywVwITZMsff/eCyudZx9JDmkkkbV6PInzG4p8x3VqVJSFiMvnvlEKWuRob/1eaIetR31IYeAbm0NdOuHH8Qi+Rexi1wLlpzIo1gstHWBfZzy1+qHRV5A4TqPp15Yz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u6QIKVz5MA8gstzfOgRQGqyLqOwNKHL6INkv3IHWMF",
"updatesEnabled": true "updatesEnabled": true

View file

@ -1082,6 +1082,7 @@ export async function startApp(): Promise<void> {
devTools: false, devTools: false,
includeSetup: false, includeSetup: false,
isProduction: true, isProduction: true,
isStaging: false,
platform: 'unknown', platform: 'unknown',
}; };

View file

@ -126,6 +126,7 @@ export function getEmptyState(): UserStateType {
devTools: false, devTools: false,
includeSetup: false, includeSetup: false,
isProduction: true, isProduction: true,
isStaging: false,
platform: 'unknown', platform: 'unknown',
}, },
osName, osName,

View file

@ -238,6 +238,7 @@ describe('createTemplate', () => {
devTools: true, devTools: true,
includeSetup: false, includeSetup: false,
isProduction: true, isProduction: true,
isStaging: false,
platform, platform,
...actions, ...actions,
}; };
@ -252,6 +253,7 @@ describe('createTemplate', () => {
devTools: true, devTools: true,
includeSetup: true, includeSetup: true,
isProduction: true, isProduction: true,
isStaging: false,
platform, platform,
...actions, ...actions,
}; };

View file

@ -10,6 +10,7 @@ export type MenuOptionsType = Readonly<{
devTools: boolean; devTools: boolean;
includeSetup: boolean; includeSetup: boolean;
isProduction: boolean; isProduction: boolean;
isStaging: boolean;
platform: string; platform: string;
}>; }>;