gristlabs_grist-core/app/server/lib/gristSettings.ts
George Gevoian 4740f1f933 (core) Update onboarding flow
Summary:
A new onboarding page is now shown to all new users visiting the doc
menu for the first time. Tutorial cards on the doc menu have been
replaced with a new version that tracks completion progress, alongside
a new card that opens the orientation video.

Test Plan: Browser tests.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D4296
2024-07-23 11:49:23 -04:00

20 lines
526 B
TypeScript

import {appSettings} from 'app/server/lib/AppSettings';
export function getTemplateOrg() {
let org = appSettings.section('templates').flag('org').readString({
envVar: 'GRIST_TEMPLATE_ORG',
});
if (!org) { return null; }
if (process.env.GRIST_ID_PREFIX) {
org += `-${process.env.GRIST_ID_PREFIX}`;
}
return org;
}
export function getOnboardingTutorialDocId() {
return appSettings.section('tutorials').flag('onboardingTutorialDocId').readString({
envVar: 'GRIST_ONBOARDING_TUTORIAL_DOC_ID',
});
}