feat(docs): per-revision upgrade plan + hard cutoff in version history

This commit is contained in:
Ramesh Mane
2026-05-28 11:25:42 +00:00
parent 4d415bbb27
commit 61b83bf792
3 changed files with 15 additions and 1 deletions

View File

@@ -232,6 +232,10 @@ export const useEeConfig = createSharedComposable(() => {
const showUpgradeToUseDocsExportPdf = (..._args: any[]) => {}
const revisionRetentionLadder = computed<{ title: string; days: number }[]>(() => [])
const requiredPlanForRevisionAge = (..._args: any[]): string | null => null
const showScriptPlanLimitExceededModal = (..._args: any[]) => {}
const showUpgradeToUseCalendarRange = (..._args: any[]) => {}
@@ -438,6 +442,8 @@ export const useEeConfig = createSharedComposable(() => {
showUpgradeToUseDocsInlineComments,
showUpgradeToUseDocsResolveComments,
showUpgradeToUseDocsExportPdf,
revisionRetentionLadder,
requiredPlanForRevisionAge,
showScriptPlanLimitExceededModal,
blockAddNewScript,
blockAddNewDashboard,

View File

@@ -1380,7 +1380,13 @@
"labels": {
"docHistory": {
"title": "Version history",
"retention": "Versions are kept for {count} day on your plan. | Versions are kept for {count} days on your plan.",
"lockedTitle": "{count} day page history",
"lockedDescWithPlan": "Please upgrade to the {plan} plan to access versions older than {count} day. | Please upgrade to the {plan} plan to access versions older than {count} days.",
"lockedDescGeneric": "Upgrade your plan to access versions older than {count} day. | Upgrade your plan to access versions older than {count} days.",
"lockedDescOnPrem": "Enter your license key to access versions older than {count} day. | Enter your license key to access versions older than {count} days.",
"upgradeNow": "Upgrade now",
"retentionByPlanTitle": "Version history by plan",
"retentionByPlanDays": "{count} day | {count} days",
"previewEmptyTitle": "Select a version to preview",
"previewEmptySubtitle": "Pick one from the list on the right to see the page as it was at that point. Changes against the current version are highlighted inline.",
"currentVersion": "Current version · {author}",

View File

@@ -16,6 +16,8 @@ export interface DocumentRevisionType {
created_by?: string;
fk_tab_id?: string;
source?: DocRevisionSource;
/** True when older than the plan's retention window — content is gated. */
locked?: boolean;
created_at?: string;
updated_at?: string;
}