Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Change plan name Enterprise to Premium on marketplace #30487

Merged
merged 16 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/odd-hounds-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

chore: Change plan name Enterprise to Premium on marketplace
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const AppsFilters = ({

const appsSearchPlaceholders: { [key: string]: string } = {
explore: t('Search_Apps'),
enterprise: t('Search_Enterprise_Apps'),
enterprise: t('Search_Premium_Apps'),
installed: t('Search_Installed_Apps'),
requested: t('Search_Requested_Apps'),
private: t('Search_Private_apps'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const AppsPageContent = (): ReactElement => {
{ id: 'all', label: t('All_Prices'), checked: true },
{ id: 'free', label: t('Free_Apps'), checked: false },
{ id: 'paid', label: t('Paid_Apps'), checked: false },
{ id: 'enterprise', label: t('Enterprise'), checked: false },
{ id: 'premium', label: t('Premium'), checked: false },
],
});
const freePaidFilterOnSelected = useRadioToggle(setFreePaidFilterStructure);
Expand Down Expand Up @@ -89,7 +89,7 @@ const AppsPageContent = (): ReactElement => {

const getAppsData = useCallback((): appsDataType => {
switch (context) {
case 'enterprise':
case 'premium':
case 'explore':
case 'requested':
return marketplaceApps;
Expand Down
8 changes: 4 additions & 4 deletions apps/meteor/client/views/marketplace/BundleChips.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const BundleChips = ({ bundledIn }: BundleChipsProps): ReactElement => {

return (
<>
{bundledIn.map((bundle) => (
{bundledIn.map(({ bundleId, bundleName }) => (
<Tag
key={bundle.bundleId}
key={bundleId}
variant='featured'
title={t('this_app_is_included_with_subscription', {
bundleName: bundle.bundleName,
bundleName,
})}
>
{bundle.bundleName}
{bundleName}
</Tag>
))}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const useFilteredApps = ({
const filterByPurchaseType: Record<string, (apps: App[]) => App[]> = {
all: fallback,
paid: (apps: App[]) => apps.filter(filterAppsByPaid),
enterprise: (apps: App[]) => apps.filter(filterAppsByEnterprise),
premium: (apps: App[]) => apps.filter(filterAppsByEnterprise),
free: (apps: App[]) => apps.filter(filterAppsByFree),
};

Expand All @@ -80,7 +80,7 @@ export const useFilteredApps = ({
explore: fallback,
installed: fallback,
private: fallback,
enterprise: (apps: App[]) => apps.filter(({ categories }) => categories.includes('Enterprise')),
premium: (apps: App[]) => apps.filter(({ categories }) => categories.includes('Enterprise')),
requested: (apps: App[]) => apps.filter(({ appRequestStats, installed }) => Boolean(appRequestStats) && !installed),
};

Expand Down
4 changes: 2 additions & 2 deletions apps/meteor/client/views/marketplace/sidebarItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export const {
permissionGranted: (): boolean => hasAtLeastOnePermission(['access-marketplace', 'manage-apps']),
},
{
href: '/marketplace/enterprise',
href: '/marketplace/premium',
icon: 'lightning',
i18nLabel: 'Enterprise',
i18nLabel: 'Premium',
permissionGranted: (): boolean => hasAtLeastOnePermission(['access-marketplace', 'manage-apps']),
},
{
Expand Down
5 changes: 4 additions & 1 deletion apps/meteor/packages/rocketchat-i18n/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@
"Apps_context_installed": "Installed",
"Apps_context_requested": "Requested",
"Apps_context_private": "Private Apps",
"Apps_context_premium": "Premium",
"Apps_Count_Enabled": "{{count}} app enabled",
"Apps_Count_Enabled_plural": "{{count}} apps enabled",
"Private_Apps_Count_Enabled": "{{count}} private app enabled",
Expand Down Expand Up @@ -4539,6 +4540,7 @@
"Search_Installed_Apps": "Search installed apps",
"Search_Private_apps": "Search private apps",
"Search_Requested_Apps": "Search requested apps",
"Search_Premium_Apps": "Search Premium apps",
"Search_by_file_name": "Search by file name",
"Search_by_username": "Search by username",
"Search_by_category": "Search by category",
Expand Down Expand Up @@ -6059,5 +6061,6 @@
"All_visible": "All visible",
"Filter_by_room": "Filter by room type",
"Filter_by_visibility": "Filter by visibility",
"Theme_Appearence": "Theme Appearence"
"Theme_Appearence": "Theme Appearence",
"Premium": "Premium"
}