feat: enable virtual scroller by default (#892)

zio/stable
Daniel Roe 2023-01-09 11:32:49 +00:00 committed by GitHub
parent 6a6e6bfb74
commit efe7d639c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ const { paginator, stream, account, buffer = 10 } = defineProps<{
}>()
const { formatNumber } = useHumanReadableNumber()
const virtualScroller = $(useFeatureFlag('experimentalVirtualScroll'))
const virtualScroller = $(useFeatureFlag('experimentalVirtualScroller'))
const showOriginSite = $computed(() =>
account && account.id !== currentUser.value?.account.id && getServerName(account) !== currentServer.value,

View File

@ -2,14 +2,14 @@ import type { Ref } from 'vue'
import { userSettings } from '.'
export interface FeatureFlags {
experimentalVirtualScroll: boolean
experimentalVirtualScroller: boolean
experimentalGitHubCards: boolean
experimentalUserPicker: boolean
}
export type FeatureFlagsMap = Record<string, FeatureFlags>
const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
experimentalVirtualScroll: false,
experimentalVirtualScroller: true,
experimentalGitHubCards: true,
experimentalUserPicker: true,
}

View File

@ -18,8 +18,8 @@ useHeadFixed({
{{ $t('settings.feature_flags.title') }}
</h3>
<SettingsToggleItem
:checked="getFeatureFlag('experimentalVirtualScroll')"
@click="toggleFeatureFlag('experimentalVirtualScroll')"
:checked="getFeatureFlag('experimentalVirtualScroller')"
@click="toggleFeatureFlag('experimentalVirtualScroller')"
>
{{ $t('settings.feature_flags.virtual_scroll') }}
</SettingsToggleItem>