mattermost-mobile-upstream/app/constants/license.ts
Matthew Birtch f608f6988b
MM-68200 About modal updates to show correct SKU and align with web (#9662)
* MM-68200: Align About screen with web (SKU names, Mattermost header, learn more)

- Add getSkuDisplayName mirroring web subscription util; Entry SKU + license tier
- Title: Mattermost + plan/edition; center-align; remove SiteName from header
- Learn more: plan-specific copy when licensed EE; Pressable for URL
- Optional IsGovSku on ClientLicense; Detox helpers + dynamic E2E expectations
- i18n: about.mattermost, about.planNameLearn; remove unused about.enterpriseEditione1 from en

Made-with: Cursor

* style tweaks, remove unneccesary change to translation, added additional padding on tablet, fixed the scrollbar position

* Update container.tsx

* fixed style issues from review

* updated style of title

* Update app/screens/settings/about/title.tsx

Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>

* fix lint issues

* fix: apply CodeRabbit auto-fixes

Fixed 2 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>

* revert unrelated change from CodeRabbit

* fix lint issue

---------

Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
2026-04-16 09:10:41 -04:00

37 lines
866 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export const SKU_SHORT_NAME = {
E10: 'E10',
E20: 'E20',
Starter: 'starter',
Professional: 'professional',
Enterprise: 'enterprise',
EnterpriseAdvanced: 'advanced',
Entry: 'entry',
};
export const SelfHostedProducts = {
STARTER: 'starter',
};
export const TIER = {
ProfessionalTier: 10,
EnterpriseTier: 20,
EnterpriseAdvancedTier: 30,
};
export const LicenseSkuTier = {
[SKU_SHORT_NAME.Professional]: TIER.ProfessionalTier,
[SKU_SHORT_NAME.Enterprise]: TIER.EnterpriseTier,
[SKU_SHORT_NAME.Entry]: TIER.EnterpriseAdvancedTier,
[SKU_SHORT_NAME.EnterpriseAdvanced]: TIER.EnterpriseAdvancedTier,
};
export default {
SKU_SHORT_NAME,
SelfHostedProducts,
TIER,
LicenseSkuTier,
};