Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

feat: payment corrections

DarkPhoenix2704ec95d8b20c74
diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.json
index 6a70525413..8628411cee 100644
--- a/packages/nc-gui/lang/en.json
+++ b/packages/nc-gui/lang/en.json
@@ -164,7 +164,9 @@
"upgradeToUseTableAndFieldPermissions": "Upgrade to use table and field permissions",
"upgradeToUseTableAndFieldPermissionsSubtitle": "Upgrade to the {plan} plan to use table and field permissions, making it easier to manage your data.",
"upgradeToUseScripts": "Upgrade to use scripts",
+ "upgradeToUseDashboards": "Upgrade to use dashboards",
"upgradeToUseScriptsSubtitle": "Upgrade to the {plan} plan to use scripts to automate workflows or customize logic.",
+ "upgradeToUseDashboardsSubtitle": "Upgrade to the {plan} plan to use dashboards to visualize your data.",
"upgradeToUsePrivateBases": "Upgrade to unlock private bases",
"upgradeToUsePrivateBasesSubtitle": "Private bases are available on the {plan} plan. Upgrade now to start using them.",
"upgradeToAddMoreAttachmentsInCellSubtitle": "You can only upload at most {limit} {filePlural} to this cell. Upgrade to the {plan} plan to add more files."
diff --git a/packages/nocodb-sdk/src/lib/payment/index.ts b/packages/nocodb-sdk/src/lib/payment/index.ts
index 8f03a3a965..a1b68b889b 100644
--- a/packages/nocodb-sdk/src/lib/payment/index.ts
+++ b/packages/nocodb-sdk/src/lib/payment/index.ts
@@ -47,6 +47,7 @@ export enum PlanFeatureTypes {
FEATURE_ROLLUP_LIMIT_RECORDS_BY_FILTER = 'feature_rollup_limit_records_by_filter',
FEATURE_PERSONAL_VIEWS = 'feature_personal_views',
FEATURE_SCRIPTS = 'feature_scripts',
+ FEATURE_DASHBOARD = 'feature_dashboard',
FEATURE_SSO = 'feature_sso',
FEATURE_WEBHOOK_CUSTOM_PAYLOAD = 'feature_webhook_custom_payload',
FEATURE_WORKSPACE_CUSTOM_LOGO = 'feature_workspace_custom_logo',
@@ -220,6 +221,7 @@ export const PlanFeatureUpgradeMessages: Record<PlanFeatureTypes, string> = {
'to limit rollup records by filters.',
[PlanFeatureTypes.FEATURE_PERSONAL_VIEWS]: 'to use personal views.',
[PlanFeatureTypes.FEATURE_SCRIPTS]: 'to enable scripts.',
+ [PlanFeatureTypes.FEATURE_DASHBOARD]: 'to use dashboards.',
[PlanFeatureTypes.FEATURE_SSO]: 'to enable SSO (Single Sign-On).',
[PlanFeatureTypes.FEATURE_WEBHOOK_CUSTOM_PAYLOAD]:
'to send custom webhook payloads.',
diff --git a/packages/nocodb/src/helpers/attachmentHelpers.ts b/packages/nocodb/src/helpers/attachmentHelpers.ts
index 5d31d051f7..336dca5c3f 100644
--- a/packages/nocodb/src/helpers/attachmentHelpers.ts
+++ b/packages/nocodb/src/helpers/attachmentHelpers.ts
@@ -4,9 +4,9 @@ import mime from 'mime/lite';
import slash from 'slash';
import { PublicAttachmentScope } from 'nocodb-sdk';
import type { NcContext } from 'nocodb-sdk';
+import type { Column } from '~/models';
import { getToolDir } from '~/utils/nc-config';
import { NcError } from '~/helpers/catchError';
-import { Column } from '~/models';
const previewableMimeTypes = ['image', 'pdf', 'video', 'audio'];
diff --git a/packages/nocodb/src/meta/migrations/XcMigrationSourcev2.ts b/packages/nocodb/src/meta/migrations/XcMigrationSourcev2.ts
index 7cd81b351e..e9e173fe7e 100644
--- a/packages/nocodb/src/meta/migrations/XcMigrationSourcev2.ts
+++ b/packages/nocodb/src/meta/migrations/XcMigrationSourcev2.ts
@@ -75,7 +75,7 @@ import * as nc_085_base_default_role from '~/meta/migrations/v2/nc_085_base_defa
import * as nc_086_dashboards_widgets from '~/meta/migrations/v2/nc_086_dashboards_widgets';
import * as nc_087_widget_error from '~/meta/migrations/v2/nc_087_widget_error';
import * as nc_088_add_sso_client_to_api_tokens from '~/meta/migrations/v2/nc_088_add_sso_client_to_api_tokens';
-import * as nc_088_dashboard_sharing from '~/meta/migrations/v2/nc_088_dashboard_sharing';
+import * as nc_089_dashboard_sharing from '~/meta/migrations/v2/nc_089_dashboard_sharing';
// Create a custom migration source class
export default class XcMigrationSourcev2 {
@@ -162,7 +162,7 @@ export default class XcMigrationSourcev2 {
'nc_086_dashboards_widgets',
'nc_087_widget_error',
'nc_088_add_sso_client_to_api_tokens',
- 'nc_088_dashboard_sharing',
+ 'nc_089_dashboard_sharing',
]);
}
@@ -326,8 +326,8 @@ export default class XcMigrationSourcev2 {
return nc_087_widget_error;
case 'nc_088_add_sso_client_to_api_tokens':
return nc_088_add_sso_client_to_api_tokens;
- case 'nc_088_dashboard_sharing':
- return nc_088_dashboard_sharing;
+ case 'nc_089_dashboard_sharing':
+ return nc_089_dashboard_sharing;
}
}
}
diff --git a/packages/nocodb/src/meta/migrations/v2/nc_088_dashboard_sharing.ts b/packages/nocodb/src/meta/migrations/v2/nc_089_dashboard_sharing.ts
similarity index 100%
rename from packages/nocodb/src/meta/migrations/v2/nc_088_dashboard_sharing.ts
rename to packages/nocodb/src/meta/migrations/v2/nc_089_dashboard_sharing.ts