Skip to content

Commit 77c466d

Browse files
authored
Merge pull request #1272 from mito-ds/column-def-pro
Column def pro
2 parents dc721ab + 25fc011 commit 77c466d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

mitosheet/mitosheet/steps_manager.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from mitosheet.transpiler.transpile_utils import get_default_code_options
3838
from mitosheet.types import CodeOptions, ColumnDefinintion, ColumnDefinitions, MitoTheme, ParamMetadata
3939
from mitosheet.updates import UPDATES
40-
from mitosheet.user.utils import is_enterprise, is_running_test
40+
from mitosheet.user.utils import is_enterprise, is_pro, is_running_test
4141
from mitosheet.utils import NpEncoder, dfs_to_array_for_json, get_default_df_formats, get_new_id, is_default_df_names
4242
from mitosheet.step_performers.utils.user_defined_function_utils import get_user_defined_importers_for_frontend, get_user_defined_editors_for_frontend
4343
from mitosheet.step_performers.utils.user_defined_function_utils import validate_and_wrap_sheet_functions, validate_user_defined_editors
@@ -253,6 +253,9 @@ def __init__(
253253
if not is_running_test() and not is_enterprise() and self.user_defined_editors is not None and len(self.user_defined_editors) > 0:
254254
raise ValueError("editors are only supported in the enterprise version of Mito. See Mito plans https://www.trymito.io/plans")
255255

256+
if not is_running_test() and not is_pro() and column_definitions is not None:
257+
raise ValueError("column definitions are only supported in the enterprise version of Mito. See Mito plans https://www.trymito.io/plans")
258+
256259
# The version of the public interface used by this analysis
257260
self.public_interface_version = 3
258261

trymito.io/pages/plans.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,14 @@ const PRESENTATION_FEATURES: Feature[] = [
194194
'Enterprise': true
195195
}
196196
},
197+
{
198+
feature: 'Apply Custom Styling',
199+
planSupport: {
200+
'Open Source': false,
201+
'Pro': false,
202+
'Enterprise': true
203+
}
204+
},
197205
]
198206

199207
const TRANSFORMATION_FEATURES: Feature[] = [

0 commit comments

Comments
 (0)