feat: enable virtual scroller by default (#892)
parent
6a6e6bfb74
commit
efe7d639c1
|
@ -14,7 +14,7 @@ const { paginator, stream, account, buffer = 10 } = defineProps<{
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const { formatNumber } = useHumanReadableNumber()
|
const { formatNumber } = useHumanReadableNumber()
|
||||||
const virtualScroller = $(useFeatureFlag('experimentalVirtualScroll'))
|
const virtualScroller = $(useFeatureFlag('experimentalVirtualScroller'))
|
||||||
|
|
||||||
const showOriginSite = $computed(() =>
|
const showOriginSite = $computed(() =>
|
||||||
account && account.id !== currentUser.value?.account.id && getServerName(account) !== currentServer.value,
|
account && account.id !== currentUser.value?.account.id && getServerName(account) !== currentServer.value,
|
||||||
|
|
|
@ -2,14 +2,14 @@ import type { Ref } from 'vue'
|
||||||
import { userSettings } from '.'
|
import { userSettings } from '.'
|
||||||
|
|
||||||
export interface FeatureFlags {
|
export interface FeatureFlags {
|
||||||
experimentalVirtualScroll: boolean
|
experimentalVirtualScroller: boolean
|
||||||
experimentalGitHubCards: boolean
|
experimentalGitHubCards: boolean
|
||||||
experimentalUserPicker: boolean
|
experimentalUserPicker: boolean
|
||||||
}
|
}
|
||||||
export type FeatureFlagsMap = Record<string, FeatureFlags>
|
export type FeatureFlagsMap = Record<string, FeatureFlags>
|
||||||
|
|
||||||
const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
|
const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
|
||||||
experimentalVirtualScroll: false,
|
experimentalVirtualScroller: true,
|
||||||
experimentalGitHubCards: true,
|
experimentalGitHubCards: true,
|
||||||
experimentalUserPicker: true,
|
experimentalUserPicker: true,
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,8 +18,8 @@ useHeadFixed({
|
||||||
{{ $t('settings.feature_flags.title') }}
|
{{ $t('settings.feature_flags.title') }}
|
||||||
</h3>
|
</h3>
|
||||||
<SettingsToggleItem
|
<SettingsToggleItem
|
||||||
:checked="getFeatureFlag('experimentalVirtualScroll')"
|
:checked="getFeatureFlag('experimentalVirtualScroller')"
|
||||||
@click="toggleFeatureFlag('experimentalVirtualScroll')"
|
@click="toggleFeatureFlag('experimentalVirtualScroller')"
|
||||||
>
|
>
|
||||||
{{ $t('settings.feature_flags.virtual_scroll') }}
|
{{ $t('settings.feature_flags.virtual_scroll') }}
|
||||||
</SettingsToggleItem>
|
</SettingsToggleItem>
|
||||||
|
|
Loading…
Reference in New Issue