diff --git a/components/user/UserDropdown.vue b/components/user/UserDropdown.vue new file mode 100644 index 00000000..612f9c04 --- /dev/null +++ b/components/user/UserDropdown.vue @@ -0,0 +1,11 @@ + diff --git a/components/user/UserPicker.vue b/components/user/UserPicker.vue index 9585fd7f..37cfedd5 100644 --- a/components/user/UserPicker.vue +++ b/components/user/UserPicker.vue @@ -14,18 +14,23 @@ const switchUser = (user: UserLogin) => { diff --git a/composables/featureFlags.ts b/composables/featureFlags.ts index 0a3b8b3b..50530772 100644 --- a/composables/featureFlags.ts +++ b/composables/featureFlags.ts @@ -4,7 +4,7 @@ export interface FeatureFlags { experimentalVirtualScroll: boolean experimentalAvatarOnAvatar: boolean experimentalGitHubCards: boolean - experimentalUserSwitcherSidebar: boolean + experimentalUserPicker: boolean } export type FeatureFlagsMap = Record @@ -13,7 +13,7 @@ export function getDefaultFeatureFlags(): FeatureFlags { experimentalVirtualScroll: false, experimentalAvatarOnAvatar: true, experimentalGitHubCards: true, - experimentalUserSwitcherSidebar: true, + experimentalUserPicker: true, } } @@ -36,5 +36,5 @@ export function toggleFeatureFlag(key: keyof FeatureFlags) { featureFlags[key] = true } -const userSwitcherSidebar = eagerComputed(() => useFeatureFlags().experimentalUserSwitcherSidebar) -export const showUserSwitcherSidebar = computed(() => useUsers().value.length > 1 && userSwitcherSidebar.value) +const userPicker = eagerComputed(() => useFeatureFlags().experimentalUserPicker) +export const showUserPicker = computed(() => useUsers().value.length > 1 && userPicker.value) diff --git a/layouts/default.vue b/layouts/default.vue index d38d6d44..87fa4b9d 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -6,10 +6,7 @@ const wideLayout = computed(() => route.meta.wideLayout ?? false) - - diff --git a/locales/ar-EG.json b/locales/ar-EG.json index 333c7b72..a6dc31a8 100644 --- a/locales/ar-EG.json +++ b/locales/ar-EG.json @@ -189,7 +189,7 @@ "feature_flags": { "avatar_on_avatar": "الصورة الرمزية على الصورة الرمزية", "github_cards": "GitHub بطاقات", - "user_switcher_sidebar": "الشريط الجانبي لمبدل المستخدم", + "user_picker": "الشريط الجانبي لمبدل المستخدم", "virtual_scroll": "التمرير الافتراضي" } }, diff --git a/locales/cs-CZ.json b/locales/cs-CZ.json index a9b741c0..fa349f93 100644 --- a/locales/cs-CZ.json +++ b/locales/cs-CZ.json @@ -145,7 +145,7 @@ "feature_flags": { "avatar_on_avatar": "Avatar on Avatar", "github_cards": "GitHub Cards", - "user_switcher_sidebar": "User Switcher Sidebar", + "user_picker": "User Picker", "virtual_scroll": "Virtual Scrolling" } }, diff --git a/locales/de-DE.json b/locales/de-DE.json index d0a39b48..961f9374 100644 --- a/locales/de-DE.json +++ b/locales/de-DE.json @@ -150,7 +150,7 @@ "feature_flags": { "avatar_on_avatar": "Avatar auf Avatar", "github_cards": "GitHub Cards", - "user_switcher_sidebar": "User Switcher Sidebar", + "user_picker": "User Picker", "virtual_scroll": "Virtuelles Scrollen" } }, diff --git a/locales/en-US.json b/locales/en-US.json index 9d83ea5f..93b0e599 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -218,7 +218,7 @@ "avatar_on_avatar": "Avatar on Avatar", "github_cards": "GitHub Cards", "title": "Experimental Features", - "user_switcher_sidebar": "User Switcher Sidebar", + "user_picker": "User Picker", "virtual_scroll": "Virtual Scrolling" }, "interface": { diff --git a/locales/es-ES.json b/locales/es-ES.json index 872d1f2d..eb7f4757 100644 --- a/locales/es-ES.json +++ b/locales/es-ES.json @@ -206,7 +206,7 @@ "feature_flags": { "avatar_on_avatar": "Avatar en Avatar", "github_cards": "GitHub Cards", - "user_switcher_sidebar": "User Switcher Sidebar", + "user_picker": "User Picker", "virtual_scroll": "Virtual Scrolling" } }, diff --git a/locales/fr-FR.json b/locales/fr-FR.json index c6cd9979..71afec0b 100644 --- a/locales/fr-FR.json +++ b/locales/fr-FR.json @@ -206,7 +206,7 @@ "feature_flags": { "avatar_on_avatar": "Avatar sur avatar", "github_cards": "GitHub Cards", - "user_switcher_sidebar": "User Switcher Sidebar", + "user_picker": "User Picker", "virtual_scroll": "Défilement virtuel" } }, diff --git a/locales/ja-JP.json b/locales/ja-JP.json index d2a44c5d..6d45c40d 100644 --- a/locales/ja-JP.json +++ b/locales/ja-JP.json @@ -69,7 +69,7 @@ "settings": { "feature_flags": { "github_cards": "GitHub Cards", - "user_switcher_sidebar": "User Switcher Sidebar", + "user_picker": "User Picker", "virtual_scroll": "仮想スクロール" } }, diff --git a/pages/settings/preferences/index.vue b/pages/settings/preferences/index.vue index 3d66e0df..18c62eb9 100644 --- a/pages/settings/preferences/index.vue +++ b/pages/settings/preferences/index.vue @@ -32,10 +32,10 @@ const { lg } = breakpoints {{ $t('settings.feature_flags.github_cards') }} - {{ $t('settings.feature_flags.user_switcher_sidebar') }} + {{ $t('settings.feature_flags.user_picker') }}