diff --git a/apps/web/src/app/(dashboard)/documents/[id]/document-page-view-recent-activity.tsx b/apps/web/src/app/(dashboard)/documents/[id]/document-page-view-recent-activity.tsx index 5890f8aa2..1c632355a 100644 --- a/apps/web/src/app/(dashboard)/documents/[id]/document-page-view-recent-activity.tsx +++ b/apps/web/src/app/(dashboard)/documents/[id]/document-page-view-recent-activity.tsx @@ -94,6 +94,12 @@ export const DocumentPageViewRecentActivity = ({ )} + {documentAuditLogs.length === 0 && ( +
+

No recent activity

+
+ )} + {documentAuditLogs.map((auditLog, auditLogIndex) => (
  • null); + const isDocumentHistoryEnabled = await getServerComponentFlag( + 'app_document_page_view_history_sheet', + ); + if (!document || !document.documentData) { redirect(documentRootPath); } @@ -120,14 +125,16 @@ export const DocumentPageView = async ({ params, team }: DocumentPageViewProps)
    -
    - - - -
    + {isDocumentHistoryEnabled && ( +
    + + + +
    + )}
    diff --git a/packages/lib/constants/feature-flags.ts b/packages/lib/constants/feature-flags.ts index 947409be1..6815b73b0 100644 --- a/packages/lib/constants/feature-flags.ts +++ b/packages/lib/constants/feature-flags.ts @@ -18,6 +18,7 @@ export const FEATURE_FLAG_POLL_INTERVAL = 30000; export const LOCAL_FEATURE_FLAGS: Record = { app_billing: process.env.NEXT_PUBLIC_FEATURE_BILLING_ENABLED === 'true', app_teams: true, + app_document_page_view_history_sheet: false, marketing_header_single_player_mode: false, } as const;