diff --git a/frontend/src/core/components/shared/StripeCheckout.tsx b/frontend/src/proprietary/components/shared/StripeCheckout.tsx similarity index 100% rename from frontend/src/core/components/shared/StripeCheckout.tsx rename to frontend/src/proprietary/components/shared/StripeCheckout.tsx diff --git a/frontend/src/proprietary/components/shared/config/configNavSections.tsx b/frontend/src/proprietary/components/shared/config/configNavSections.tsx index bc63e979a..2b27a4ba9 100644 --- a/frontend/src/proprietary/components/shared/config/configNavSections.tsx +++ b/frontend/src/proprietary/components/shared/config/configNavSections.tsx @@ -10,6 +10,7 @@ import AdminDatabaseSection from '@app/components/shared/config/configSections/A import AdminAdvancedSection from '@app/components/shared/config/configSections/AdminAdvancedSection'; import AdminLegalSection from '@app/components/shared/config/configSections/AdminLegalSection'; import AdminPremiumSection from '@app/components/shared/config/configSections/AdminPremiumSection'; +import AdminPlanSection from '@app/components/shared/config/configSections/AdminPlanSection'; import AdminFeaturesSection from '@app/components/shared/config/configSections/AdminFeaturesSection'; import AdminEndpointsSection from '@app/components/shared/config/configSections/AdminEndpointsSection'; import AdminAuditSection from '@app/components/shared/config/configSections/AdminAuditSection'; @@ -136,6 +137,14 @@ export const createConfigNavSections = ( disabled: requiresLogin, disabledTooltip: requiresLogin ? 'Enable login mode first' : undefined }, + { + key: 'adminPlan', + label: 'Plan', + icon: 'star-rounded', + component: , + disabled: requiresLogin, + disabledTooltip: requiresLogin ? 'Enable login mode first' : undefined + }, { key: 'adminAudit', label: 'Audit', diff --git a/frontend/src/core/components/shared/config/configSections/AdminPlanSection.tsx b/frontend/src/proprietary/components/shared/config/configSections/AdminPlanSection.tsx similarity index 97% rename from frontend/src/core/components/shared/config/configSections/AdminPlanSection.tsx rename to frontend/src/proprietary/components/shared/config/configSections/AdminPlanSection.tsx index 6ae4e2294..c5d3807dc 100644 --- a/frontend/src/core/components/shared/config/configSections/AdminPlanSection.tsx +++ b/frontend/src/proprietary/components/shared/config/configSections/AdminPlanSection.tsx @@ -4,9 +4,9 @@ import { useTranslation } from 'react-i18next'; import { usePlans } from '@app/hooks/usePlans'; import licenseService, { PlanTierGroup } from '@app/services/licenseService'; import StripeCheckout from '@app/components/shared/StripeCheckout'; -import AvailablePlansSection from './plan/AvailablePlansSection'; -import ActivePlanSection from './plan/ActivePlanSection'; -import StaticPlanSection from './plan/StaticPlanSection'; +import AvailablePlansSection from '@app/components/shared/config/configSections/plan/AvailablePlansSection'; +import ActivePlanSection from '@app/components/shared/config/configSections/plan//ActivePlanSection'; +import StaticPlanSection from '@app/components/shared/config/configSections/plan//StaticPlanSection'; import { userManagementService } from '@app/services/userManagementService'; import { useAppConfig } from '@app/contexts/AppConfigContext'; import { alert } from '@app/components/toast'; @@ -15,7 +15,6 @@ import RestartConfirmationModal from '@app/components/shared/config/RestartConfi import { useRestartServer } from '@app/components/shared/config/useRestartServer'; import { useAdminSettings } from '@app/hooks/useAdminSettings'; import PendingBadge from '@app/components/shared/config/PendingBadge'; -import { convertOperationConfig } from '@app/hooks/tools/convert/useConvertOperation'; interface PremiumSettingsData { key?: string; diff --git a/frontend/src/core/components/shared/config/configSections/plan/ActivePlanSection.tsx b/frontend/src/proprietary/components/shared/config/configSections/plan/ActivePlanSection.tsx similarity index 100% rename from frontend/src/core/components/shared/config/configSections/plan/ActivePlanSection.tsx rename to frontend/src/proprietary/components/shared/config/configSections/plan/ActivePlanSection.tsx diff --git a/frontend/src/core/components/shared/config/configSections/plan/AvailablePlansSection.tsx b/frontend/src/proprietary/components/shared/config/configSections/plan/AvailablePlansSection.tsx similarity index 100% rename from frontend/src/core/components/shared/config/configSections/plan/AvailablePlansSection.tsx rename to frontend/src/proprietary/components/shared/config/configSections/plan/AvailablePlansSection.tsx diff --git a/frontend/src/core/components/shared/config/configSections/plan/PlanCard.tsx b/frontend/src/proprietary/components/shared/config/configSections/plan/PlanCard.tsx similarity index 100% rename from frontend/src/core/components/shared/config/configSections/plan/PlanCard.tsx rename to frontend/src/proprietary/components/shared/config/configSections/plan/PlanCard.tsx diff --git a/frontend/src/core/components/shared/config/configSections/plan/StaticPlanSection.tsx b/frontend/src/proprietary/components/shared/config/configSections/plan/StaticPlanSection.tsx similarity index 100% rename from frontend/src/core/components/shared/config/configSections/plan/StaticPlanSection.tsx rename to frontend/src/proprietary/components/shared/config/configSections/plan/StaticPlanSection.tsx