π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
feat: disable calendar range in free plan
DarkPhoenix2704480fb3cbf38a
diff --git a/packages/nc-gui/components/dlg/View/Create.vue b/packages/nc-gui/components/dlg/View/Create.vueindex 273f75de0a..58398b95bb 100644--- a/packages/nc-gui/components/dlg/View/Create.vue+++ b/packages/nc-gui/components/dlg/View/Create.vue@@ -11,6 +11,7 @@ import {type KanbanType,type LookupType,type MapType,+ PlanFeatureTypes,type SerializedAiViewType,type TableType,stringToViewTypeMap,@@ -86,6 +87,8 @@ const workspaceStore = useWorkspace()const baseStore = useBase()const { baseId: activeBaseId } = storeToRefs(baseStore)+const { blockCalendarRange } = useEeConfig()+const { viewsByTable } = storeToRefs(useViewsStore())const { refreshCommandPalette } = useCommandPalette()@@ -1014,7 +1017,7 @@ watch(activeBaseId, () => {class="flex flex-col w-full gap-6"><div class="w-full space-y-2">- <div class="text-gray-800">+ <div class="text-nc-content-gray-subtle">{{ $t('labels.organiseBy') }}</div>@@ -1065,6 +1068,7 @@ watch(activeBaseId, () => {<NcButtonv-if="range.fk_to_column_id === null"size="small"+ :disabled="blockCalendarRange"type="text"@click="range.fk_to_column_id = undefined">@@ -1072,11 +1076,13 @@ watch(activeBaseId, () => {<component :is="iconMap.plus" class="h-4 w-4" />{{ $t('activity.endDate') }}</div>+ <PaymentUpgradeBadge :feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE" /></NcButton><template v-else-if="isEeUI">- <span class="text-gray-700">+ <span class="text-nc-content-gray-subtle">{{ $t('activity.withEndDate') }}+ <PaymentUpgradeBadge :feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE" /></span><div class="flex">@@ -1085,7 +1091,7 @@ watch(activeBaseId, () => {class="nc-select-shadow w-full flex-1"allow-clearshow-search- :disabled="isMetaLoading"+ :disabled="isMetaLoading || blockCalendarRange":loading="isMetaLoading":placeholder="$t('placeholder.notSelected')"data-testid="nc-calendar-range-to-field-select"@@ -1159,13 +1165,13 @@ watch(activeBaseId, () => {<divv-if="isCalendarReadonly(form.calendar_range)"- class="flex flex-row p-4 border-gray-200 border-1 gap-x-4 rounded-lg w-full"+ class="flex flex-row p-4 border-nc-border-gray-medium border-1 gap-x-4 rounded-lg w-full">- <div class="text-gray-500 flex gap-4">- <GeneralIcon class="min-w-6 h-6 text-orange-500" icon="info" />+ <div class="text-nc-content-gray-muted flex gap-4">+ <GeneralIcon class="min-w-6 h-6 !text-nc-content-orange-medium" icon="info" /><div class="flex flex-col gap-1">- <h2 class="font-semibold text-sm mb-0 text-gray-800">Calendar is readonly</h2>- <span class="text-gray-500 font-default text-sm"> {{ $t('msg.info.calendarReadOnly') }}</span>+ <h2 class="font-semibold text-sm mb-0 text-nc-content-gray">Calendar is readonly</h2>+ <span class="text-nc-content-gray-muted font-default text-sm"> {{ $t('msg.info.calendarReadOnly') }}</span></div></div></div>@@ -1413,7 +1419,7 @@ watch(activeBaseId, () => {<div class="text-gray-500 flex gap-4"><GeneralIcon class="min-w-6 h-6 text-orange-500" icon="alertTriangle" /><div class="flex flex-col gap-1">- <h2 class="font-semibold text-sm mb-0 text-gray-800">Suitable fields not present</h2>+ <h2 class="font-semibold text-sm mb-0 text-nc-content-gray">Suitable fields not present</h2><span class="text-gray-500 font-default text-sm"> {{ errorMessages[form.type] }}</span></div></div>@@ -1421,20 +1427,20 @@ watch(activeBaseId, () => {</div><a-form-item v-if="enableDescription && !aiMode" class="!px-5">- <div class="flex gap-3 text-gray-800 h-7 mt-4 mb-1 items-center justify-between">+ <div class="flex gap-3 text-nc-content-gray h-7 mt-4 mb-1 items-center justify-between"><span class="text-[13px]">{{ $t('labels.description') }}</span><NcButton type="text" class="!h-6 !w-5" size="xsmall" @click="removeDescription">- <GeneralIcon icon="delete" class="text-gray-700 w-3.5 h-3.5" />+ <GeneralIcon icon="delete" class="text-nc-content-gray-subtle w-3.5 h-3.5" /></NcButton></div><a-textarearef="descriptionInputEl"v-model:value="form.description"- class="nc-input-sm nc-input-text-area nc-input-shadow px-3 !text-gray-800 max-h-[150px] min-h-[100px]"+ class="nc-input-sm nc-input-text-area nc-input-shadow px-3 !text-nc-content-gray max-h-[150px] min-h-[100px]"hide-detailsdata-testid="create-table-title-input":placeholder="$t('msg.info.enterViewDescription')"@@ -1453,7 +1459,7 @@ watch(activeBaseId, () => {type="text"@click.stop="toggleDescription">- <div class="flex !text-gray-700 items-center gap-2">+ <div class="flex !text-nc-content-gray-subtle items-center gap-2"><GeneralIcon icon="plus" class="h-4 w-4" /><span class="first-letter:capitalize">@@ -1515,7 +1521,7 @@ watch(activeBaseId, () => {padding-block: 8px !important;}.ant-form-item-required {- @apply !text-gray-800 font-medium;+ @apply !text-nc-content-gray font-medium;&:before {@apply !content-[''];}@@ -1535,7 +1541,7 @@ watch(activeBaseId, () => {}:deep(.ant-form-item-label > label) {- @apply !text-sm text-gray-800 flex;+ @apply !text-sm text-nc-content-gray flex;&.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {@apply content-[''] m-0;diff --git a/packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue b/packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vueindex 30ab282555..ef7b2d95ac 100644--- a/packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue+++ b/packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue@@ -1005,7 +1005,7 @@ const expandRecord = (record: Row) => {>{{ currTime.format('hh:mm A') }}</span>- <div class="flex-1 relative ml-1 nc-calendar-border-line border-b-2 border-brand-500"></div>+ <div class="flex-1 relative ml-1 nc-calendar-border-line border-b-2 border-nc-border-brand"></div></div></div>@@ -1013,12 +1013,12 @@ const expandRecord = (record: Row) => {<divv-for="(hour, index) in hours":key="index"- class="flex h-13 relative border-1 group hover:bg-gray-50 border-white"+ class="flex h-13 relative border-1 group hover:bg-nc-bg-gray-extra-light border-white"data-testid="nc-calendar-day-hour"@click="selectHour(hour)"@dblclick="newRecord(hour)">- <div class="w-16 border-b-0 pr-2 pl-2 text-right text-xs text-gray-400 font-semibold h-13">+ <div class="w-16 border-b-0 pr-2 pl-2 text-right text-xs text-nc-content-gray-disabled font-semibold h-13">{{ timezoneDayjs.dayjsTz(hour).format('hh a') }}</div></div>@@ -1030,7 +1030,7 @@ const expandRecord = (record: Row) => {:class="{'selected-hour': hour.isSame(selectedTime),}"- class="flex w-full border-l-gray-100 h-13 transition nc-calendar-day-hour relative border-1 group hover:bg-gray-50 border-white border-b-gray-100"+ class="flex w-full border-l-gray-100 h-13 transition nc-calendar-day-hour relative border-1 group hover:bg-nc-bg-gray-extra-light border-white border-b-nc-border-gray-light"data-testid="nc-calendar-day-hour"@click="selectHour(hour)"@dblclick="newRecord(hour)"@@ -1056,7 +1056,7 @@ const expandRecord = (record: Row) => {<template v-for="(range, calIndex) in calendarRange" :key="calIndex"><NcMenuItemv-if="!range.is_readonly"- class="text-gray-800 font-semibold text-sm"+ class="text-nc-content-gray font-semibold text-sm"@click="() => {let record = {@@ -1135,7 +1135,7 @@ const expandRecord = (record: Row) => {<NcDropdown v-if="isOverflowAcrossHourRange(hour).isOverflow"><NcButtonv-e="`['c:calendar:week-view-more']`"- class="!absolute bottom-2 text-center w-15 mx-auto inset-x-0 z-3 text-gray-500"+ class="!absolute bottom-2 text-center w-15 mx-auto inset-x-0 z-3 text-nc-content-gray-muted"size="xxsmall"type="secondary"@click="viewMore(hour)"@@ -1165,7 +1165,7 @@ const expandRecord = (record: Row) => {<LazySmartsheetPlainCell v-model="record.row[displayField!.title!]" :column="displayField" /></template><template v-else>- <span class="text-gray-500"> - </span>+ <span class="text-nc-content-gray-muted"> - </span></template></LazySmartsheetCalendarSideRecordCard></div>@@ -1218,7 +1218,7 @@ const expandRecord = (record: Row) => {/></template><template #time>- <div class="text-xs font-medium text-gray-400">+ <div class="text-xs font-medium text-nc-content-gray-disabled">{{ timezoneDayjs.timezonize(record.row[record.rowMeta.range?.fk_from_col!.title!]).format('h:mm a') }}</div></template>diff --git a/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue b/packages/nc-gui/components/smartsheet/calendar/SideMenu.vueindex f13d853ff6..d1845f54f4 100644--- a/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue+++ b/packages/nc-gui/components/smartsheet/calendar/SideMenu.vue@@ -443,13 +443,13 @@ const selectOption = (option) => {:class="{'!hidden': !showSearch,}"- class="!rounded-lg !h-8 !placeholder:text-gray-500 !px-4"+ class="!rounded-lg !h-8 !placeholder:text-nc-content-gray-muted !px-4"data-testid="nc-calendar-sidebar-search"placeholder="Search records"@keydown.esc="toggleSearch"><template #prefix>- <component :is="iconMap.search" class="h-4 w-4 mr-1 text-gray-500" />+ <component :is="iconMap.search" class="h-4 w-4 mr-1 text-nc-content-gray-muted" /></template><template v-if="searchQuery.value?.trim() && !searchQuery.isValidFieldQuery" #suffix><NcTooltip :title="$t('msg.error.invalidSearchQueryForDisplayField')" class="flex" placement="topRight">@@ -516,7 +516,7 @@ const selectOption = (option) => {<div v-if="renderData.length === 0 || isSidebarLoading" class="flex h-full items-center justify-center"><GeneralLoader v-if="isSidebarLoading" size="large" />- <div v-else class="text-gray-500">+ <div v-else class="text-nc-content-gray-muted">{{ t('msg.noRecordsFound') }}</div></div>@@ -555,7 +555,7 @@ const selectOption = (option) => {<LazySmartsheetPlainCell v-model="record.row[displayField!.title!]" :column="displayField" /></template><template v-else>- <span class="text-gray-500"> - </span>+ <span class="text-nc-content-gray-muted"> - </span></template></LazySmartsheetCalendarSideRecordCard></LazySmartsheetRow>diff --git a/packages/nc-gui/components/smartsheet/calendar/SideRecordCard.vue b/packages/nc-gui/components/smartsheet/calendar/SideRecordCard.vueindex ffe60f10e8..0b830df0a7 100644--- a/packages/nc-gui/components/smartsheet/calendar/SideRecordCard.vue+++ b/packages/nc-gui/components/smartsheet/calendar/SideRecordCard.vue@@ -22,7 +22,7 @@ const rowColorInfo = computed(() => {<template><div- class="border-1 cursor-pointer h-12.5 flex-none border-gray-200 flex gap-2 flex-col rounded-lg overflow-hidden"+ class="border-1 cursor-pointer h-12.5 flex-none border-nc-border-gray-medium flex gap-2 flex-col rounded-lg overflow-hidden":style="rowColorInfo.rowBgColor"><div class="flex relative items-center gap-2">@@ -45,14 +45,14 @@ const rowColorInfo = computed(() => {:class="{'!max-w-35': invalid,}"- class="text-[13px] leading-4 max-w-56 font-medium truncate text-gray-800"+ class="text-[13px] leading-4 max-w-56 font-medium truncate text-nc-content-gray"><slot /></span><NcTooltip v-if="invalid" placement="left" class="top-1 absolute right-1"><NcBadge color="red" :border="false" class="!h-5"><div class="flex items-center gap-1">- <GeneralIcon icon="warning" class="text-red-500 !h-4 !w-4" />+ <GeneralIcon icon="warning" class="text-nc-content-red-medium !h-4 !w-4" /><span class="font-normal text-xs"> Date Error </span></div>@@ -62,7 +62,7 @@ const rowColorInfo = computed(() => {record.</template></NcTooltip>- <NcTooltip v-if="showDate" show-on-truncate-only class="text-xs font-medium truncate max-w-58 leading-4 text-gray-600">+ <NcTooltip v-if="showDate" show-on-truncate-only class="text-xs font-medium truncate max-w-58 leading-4 text-nc-content-gray-subtle2">{{ fromDate }} {{ toDate ? ` - ${toDate}` : '' }}<template #title> {{ fromDate }} {{ toDate ? ` - ${toDate}` : '' }} </template></NcTooltip>diff --git a/packages/nc-gui/components/smartsheet/toolbar/Calendar/Header.vue b/packages/nc-gui/components/smartsheet/toolbar/Calendar/Header.vueindex 75654610e5..5c0fa8d68d 100644--- a/packages/nc-gui/components/smartsheet/toolbar/Calendar/Header.vue+++ b/packages/nc-gui/components/smartsheet/toolbar/Calendar/Header.vue@@ -51,12 +51,12 @@ const headerText = computed(() => {:class="{'max-w-38 truncate': activeCalendarView === 'week',}"- class="font-bold text-[13px] text-center text-gray-800"+ class="font-bold text-[13px] text-center text-nc-content-gray"data-testid="nc-calendar-active-date">{{ headerText }}</span><div class="flex-1" />- <component :is="iconMap.arrowDown" class="h-4 min-w-4 text-gray-700" />+ <component :is="iconMap.arrowDown" class="h-4 min-w-4 text-nc-content-gray-subtle" /></div></NcButton>diff --git a/packages/nc-gui/components/smartsheet/toolbar/Calendar/Mode.vue b/packages/nc-gui/components/smartsheet/toolbar/Calendar/Mode.vueindex 08c93d01c1..ca49a816a6 100644--- a/packages/nc-gui/components/smartsheet/toolbar/Calendar/Mode.vue+++ b/packages/nc-gui/components/smartsheet/toolbar/Calendar/Mode.vue@@ -76,7 +76,7 @@ watch(activeCalendarView, () => {data-testid="nc-calendar-view-mode"@click.stop>- <template #suffixIcon><GeneralIcon icon="arrowDown" class="text-gray-700" /></template>+ <template #suffixIcon><GeneralIcon icon="arrowDown" class="text-nc-content-gray-subtle" /></template><a-select-option v-for="option in ['day', 'week', 'month', 'year']" :key="option" :value="option"><div class="w-full flex gap-2 items-center justify-between" :title="option">diff --git a/packages/nc-gui/components/smartsheet/toolbar/Calendar/NextPrev.vue b/packages/nc-gui/components/smartsheet/toolbar/Calendar/NextPrev.vueindex ff58a9e1f7..c800613441 100644--- a/packages/nc-gui/components/smartsheet/toolbar/Calendar/NextPrev.vue+++ b/packages/nc-gui/components/smartsheet/toolbar/Calendar/NextPrev.vue@@ -9,7 +9,7 @@ const { activeCalendarView, paginateCalendarView } = useCalendarViewStoreOrThrow<a-buttonv-e="`['c:calendar:calendar-${activeCalendarView}-prev-btn']`"- class="!w-7 !h-7 prev-next-btn !hover:text-gray-700 transition-all !rounded-lg flex items-center justify-center !border-0"+ class="!w-7 !h-7 prev-next-btn !hover:text-nc-content-gray-subtle transition-all !rounded-lg flex items-center justify-center !border-0"data-testid="nc-calendar-prev-btn"size="small"@click="paginateCalendarView('prev')"@@ -21,7 +21,7 @@ const { activeCalendarView, paginateCalendarView } = useCalendarViewStoreOrThrow<template #title> {{ $t('labels.next') }}</template><a-buttonv-e="`['c:calendar:calendar-${activeCalendarView}-next-btn']`"- class="!w-7 !h-7 !rounded-lg flex items-center !hover:text-gray-700 prev-next-btn !border-0 justify-center"+ class="!w-7 !h-7 !rounded-lg flex items-center !hover:text-nc-content-gray-subtle prev-next-btn !border-0 justify-center"data-testid="nc-calendar-next-btn"size="small"@click="paginateCalendarView('next')"diff --git a/packages/nc-gui/components/smartsheet/toolbar/Calendar/Range.vue b/packages/nc-gui/components/smartsheet/toolbar/Calendar/Range.vueindex e24e2138a1..43fca2efdd 100644--- a/packages/nc-gui/components/smartsheet/toolbar/Calendar/Range.vue+++ b/packages/nc-gui/components/smartsheet/toolbar/Calendar/Range.vue@@ -1,11 +1,13 @@<script lang="ts" setup>-import { type CalendarRangeType, FormulaDataTypes, UITypes } from 'nocodb-sdk'+import { type CalendarRangeType, FormulaDataTypes, PlanFeatureTypes, UITypes } from 'nocodb-sdk'import type { SelectProps } from 'ant-design-vue'const meta = inject(MetaInj, ref())const { $api } = useNuxtApp()+const { blockCalendarRange } = useEeConfig()+const activeView = inject(ActiveViewInj, ref())const isLocked = inject(IsLockedInj, ref(false))@@ -208,7 +210,7 @@ const onValueChange = async () => {class="flex flex-col w-full gap-2 mb-2"data-testid="nc-calendar-range-option">- <span class="text-gray-800">+ <span class="text-nc-content-gray">{{ $t('labels.organiseBy') }}</span>@@ -258,67 +260,76 @@ const onValueChange = async () => {</a-select-option></a-select><div v-if="isEeUI" class="w-full space-y-2">- <NcButton- v-if="range.fk_to_column_id === null"- size="small"- data-testid="nc-calendar-range-add-end-date"- class="w-23"- type="text"- :shadow="false"- :disabled="isLocked"- @click="range.fk_to_column_id = undefined"- >- <div class="flex gap-1 items-center">- <component :is="iconMap.plus" class="h-4 w-4" />- {{ $t('activity.endDate') }}- </div>- </NcButton>-- <template v-else-if="isEeUI">- <span>- {{ $t('activity.withEndDate') }}- </span>- <div class="flex">- <a-select- v-model:value="range.fk_to_column_id"- class="!rounded-r-none nc-select-shadow w-full flex-1"- allow-clear- :disabled="!range.fk_from_column_id || isLocked"- :placeholder="$t('placeholder.notSelected')"- data-testid="nc-calendar-range-to-field-select"- dropdown-class-name="!rounded-lg"- @change="saveCalendarRanges"- @click.stop+ <PaymentUpgradeBadgeProvider :feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE">+ <template #default="{ click }">+ <NcButton+ v-if="range.fk_to_column_id === null"+ size="small"+ data-testid="nc-calendar-range-add-end-date"+ class="w-23"+ type="text"+ :shadow="false"+ :disabled="isLocked || blockCalendarRange"+ @click="+ click(PlanFeatureTypes.FEATURE_CALENDAR_RANGE, () => {+ range.fk_to_column_id = undefined+ })+ ">- <template #suffixIcon><GeneralIcon icon="arrowDown" class="text-gray-700" /></template>-- <a-select-option- v-for="(option, opId) in filterEndDateOptions(dateFieldOptions, range.fk_from_column_id)"- :key="opId"- :value="option.value"- >- <div class="w-full flex gap-2 items-center justify-between" :title="option.label">- <div class="flex items-center gap-1 max-w-[calc(100%_-_20px)]">- <SmartsheetHeaderIcon :column="option" />-- <NcTooltip class="flex-1 max-w-[calc(100%_-_20px)] truncate" show-on-truncate-only>- <template #title>- {{ option.label }}- </template>- <template #default>{{ option.label }}</template>- </NcTooltip>- </div>- <GeneralIcon- v-if="option.value === range.fk_from_column_id"- id="nc-selected-item-icon"- icon="check"- class="flex-none text-primary w-4 h-4"- />- </div>- </a-select-option>- </a-select>- </div>- </template>+ <div class="flex gap-1 items-center">+ <component :is="iconMap.plus" class="h-4 w-4" />+ {{ $t('activity.endDate') }}+ <PaymentUpgradeBadge :feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE" />+ </div>+ </NcButton>++ <template v-else-if="isEeUI">+ <span>+ {{ $t('activity.withEndDate') }} <PaymentUpgradeBadge :feature="PlanFeatureTypes.FEATURE_CALENDAR_RANGE" />+ </span>+ <div class="flex">+ <a-select+ v-model:value="range.fk_to_column_id"+ class="!rounded-r-none nc-select-shadow w-full flex-1"+ allow-clear+ :disabled="!range.fk_from_column_id || isLocked || blockCalendarRange"+ :placeholder="$t('placeholder.notSelected')"+ data-testid="nc-calendar-range-to-field-select"+ dropdown-class-name="!rounded-lg"+ @change="saveCalendarRanges"+ @click.stop+ >+ <template #suffixIcon><GeneralIcon icon="arrowDown" class="text-gray-700" /></template>++ <a-select-option+ v-for="(option, opId) in filterEndDateOptions(dateFieldOptions, range.fk_from_column_id)"+ :key="opId"+ :value="option.value"+ >+ <div class="w-full flex gap-2 items-center justify-between" :title="option.label">+ <div class="flex items-center gap-1 max-w-[calc(100%_-_20px)]">+ <SmartsheetHeaderIcon :column="option" />++ <NcTooltip class="flex-1 max-w-[calc(100%_-_20px)] truncate" show-on-truncate-only>+ <template #title>+ {{ option.label }}+ </template>+ <template #default>{{ option.label }}</template>+ </NcTooltip>+ </div>+ <GeneralIcon+ v-if="option.value === range.fk_from_column_id"+ id="nc-selected-item-icon"+ icon="check"+ class="flex-none text-primary w-4 h-4"+ />+ </div>+ </a-select-option>+ </a-select>+ </div>+ </template>+ </template>+ </PaymentUpgradeBadgeProvider></div></div>@@ -329,7 +340,7 @@ const onValueChange = async () => {<div><NcSwitch v-model:checked="showWeekends" :disabled="isLocked">- <span class="text-gray-800 font-semibold">+ <span class="text-nc-content-gray font-semibold">{{ $t('activity.showSaturdaysAndSundays') }}</span></NcSwitch>diff --git a/packages/nc-gui/components/smartsheet/toolbar/Calendar/Today.vue b/packages/nc-gui/components/smartsheet/toolbar/Calendar/Today.vueindex 5ae91529e1..54885e9dc1 100644--- a/packages/nc-gui/components/smartsheet/toolbar/Calendar/Today.vue+++ b/packages/nc-gui/components/smartsheet/toolbar/Calendar/Today.vue@@ -23,7 +23,7 @@ const goToToday = () => {<template><NcButton class="today-btn !h-7" data-testid="nc-calendar-today-btn" size="small" type="secondary" @click="goToToday">- <span class="text-gray-700 font-bold !text-[13px]">+ <span class="text-nc-content-gray-subtle font-bold !text-[13px]">{{ $t('labels.today') }}</span></NcButton>diff --git a/packages/nc-gui/composables/useEeConfig.ts b/packages/nc-gui/composables/useEeConfig.tsindex 036338f63b..04807b0bbe 100644--- a/packages/nc-gui/composables/useEeConfig.ts+++ b/packages/nc-gui/composables/useEeConfig.ts@@ -59,6 +59,8 @@ export const useEeConfig = createSharedComposable(() => {const blockAddNewDashboard = computed(() => true)+ const blockCalendarRange = computed(() => true)+const blockAddNewScript = computed(() => true)const showUserMayChargeAlert = computed(() => false)@@ -126,6 +128,8 @@ export const useEeConfig = createSharedComposable(() => {const showScriptPlanLimitExceededModal = (..._args: any[]) => {}+ const showUpgradeToUseCalendarRange = (..._args: any[]) => {}+return {calculatePrice,getLimit,@@ -183,5 +187,7 @@ export const useEeConfig = createSharedComposable(() => {showScriptPlanLimitExceededModal,blockAddNewScript,blockAddNewDashboard,+ blockCalendarRange,+ showUpgradeToUseCalendarRange,}})diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.jsonindex faed65b331..f00b6aa244 100644--- a/packages/nc-gui/lang/en.json+++ b/packages/nc-gui/lang/en.json@@ -160,6 +160,8 @@"upgradeToUploadWsImage": "Upgrade to upload a workspace image","upgradeToUploadWsImageSubtitle": "Your current {activePlan} plan allows only icons and emojis. Upgrade to the {plan} plan to upload a custom image as your workspace avatar.","upgradeToUseCurrentUserFilter": "Upgrade to filter by current user",+ "upgradeToUseCalendarRange": "Upgrade to visualize records in a calendar range",+ "upgradeToUseCalendarRangeSubtitle": "Upgrade to the {plan} plan to visualize records in a calendar range.","upgradeToUseCurrentUserFilterSubtitle": "Upgrade to the {plan} plan to use filters that show data based on the current user.","upgradeToUseRowColoring": "Upgrade to use row colouring","upgradeToUseRowColoringSubtitle": "Upgrade to the {plan} plan to colour rows based on field values or conditions, making it easier to scan and prioritize your data.",diff --git a/packages/nocodb-sdk/src/lib/payment/index.ts b/packages/nocodb-sdk/src/lib/payment/index.tsindex 243bb4cfe0..33a1ada93a 100644--- a/packages/nocodb-sdk/src/lib/payment/index.ts+++ b/packages/nocodb-sdk/src/lib/payment/index.ts@@ -57,6 +57,7 @@ export enum PlanFeatureTypes {FEATURE_PRIVATE_BASES = 'feature_private_bases',FEATURE_API_MEMBER_MANAGEMENT = 'feature_api_member_management',FEATURE_API_VIEW_V3 = 'feature_api_view_v3',+ FEATURE_CALENDAR_RANGE = 'feature_calendar_range',}// todo: separate as a new enum@@ -245,6 +246,7 @@ export const PlanFeatureUpgradeMessages: Record<PlanFeatureTypes, string> = {[PlanFeatureTypes.FEATURE_API_MEMBER_MANAGEMENT]:'to use member management api.',[PlanFeatureTypes.FEATURE_API_VIEW_V3]: 'to use view api.',+ [PlanFeatureTypes.FEATURE_CALENDAR_RANGE]: 'to visualize records in a calendar range.',};export const getUpgradeMessage = (