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