mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
chore: update flags
This commit is contained in:
@@ -118,6 +118,9 @@ const DetailPageImpl = memo(function DetailPageImpl() {
|
|||||||
const enableAdapterPanel = useLiveData(
|
const enableAdapterPanel = useLiveData(
|
||||||
featureFlagService.flags.enable_adapter_panel.$
|
featureFlagService.flags.enable_adapter_panel.$
|
||||||
);
|
);
|
||||||
|
const enableViewAnalyticsPanel = useLiveData(
|
||||||
|
featureFlagService.flags.enable_view_analytics_panel.$
|
||||||
|
);
|
||||||
|
|
||||||
const serverService = useService(ServerService);
|
const serverService = useService(ServerService);
|
||||||
const serverConfig = useLiveData(serverService.server.config$);
|
const serverConfig = useLiveData(serverService.server.config$);
|
||||||
@@ -436,7 +439,7 @@ const DetailPageImpl = memo(function DetailPageImpl() {
|
|||||||
</ViewSidebarTab>
|
</ViewSidebarTab>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{workspace.flavour === 'affine-cloud' && (
|
{workspace.flavour === 'affine-cloud' && enableViewAnalyticsPanel && (
|
||||||
<ViewSidebarTab tabId="analytics" icon={<ChartPanelIcon />}>
|
<ViewSidebarTab tabId="analytics" icon={<ChartPanelIcon />}>
|
||||||
<Scrollable.Root className={styles.sidebarScrollArea}>
|
<Scrollable.Root className={styles.sidebarScrollArea}>
|
||||||
<Scrollable.Viewport>
|
<Scrollable.Viewport>
|
||||||
|
|||||||
@@ -255,6 +255,13 @@ export const AFFINE_FLAGS = {
|
|||||||
configurable: isCanaryBuild,
|
configurable: isCanaryBuild,
|
||||||
defaultState: false,
|
defaultState: false,
|
||||||
},
|
},
|
||||||
|
enable_view_analytics_panel: {
|
||||||
|
category: 'affine',
|
||||||
|
displayName: 'Enable View Analytics Panel',
|
||||||
|
description: 'Show the View analytics tab in the right sidebar.',
|
||||||
|
configurable: true,
|
||||||
|
defaultState: false,
|
||||||
|
},
|
||||||
enable_two_step_journal_confirmation: {
|
enable_two_step_journal_confirmation: {
|
||||||
category: 'affine',
|
category: 'affine',
|
||||||
displayName: 'Enable Two Step Journal Confirmation',
|
displayName: 'Enable Two Step Journal Confirmation',
|
||||||
|
|||||||
Reference in New Issue
Block a user