fix(ui): hide sidebar version badge
This commit is contained in:
parent
ac5ff854b2
commit
7954492cee
@ -16,8 +16,6 @@
|
||||
<span class="sidebar-brand-title text-lg font-bold text-gray-900 dark:text-white">
|
||||
{{ siteName }}
|
||||
</span>
|
||||
<!-- Version Badge -->
|
||||
<VersionBadge :version="siteVersion" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -184,7 +182,6 @@ import { computed, h, onMounted, ref, watch } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useAdminSettingsStore, useAppStore, useAuthStore, useOnboardingStore } from '@/stores'
|
||||
import VersionBadge from '@/components/common/VersionBadge.vue'
|
||||
import { sanitizeSvg } from '@/utils/sanitize'
|
||||
import { FeatureFlags, makeSidebarFlag } from '@/utils/featureFlags'
|
||||
|
||||
@ -244,7 +241,6 @@ const expandedGroups = ref<Set<string>>(new Set())
|
||||
// Site settings from appStore (cached, no flicker)
|
||||
const siteName = computed(() => appStore.siteName)
|
||||
const siteLogo = computed(() => appStore.siteLogo)
|
||||
const siteVersion = computed(() => appStore.siteVersion)
|
||||
const settingsLoaded = computed(() => appStore.publicSettingsLoaded)
|
||||
|
||||
// SVG Icon Components
|
||||
|
||||
@ -6,8 +6,6 @@ import { describe, expect, it } from 'vitest'
|
||||
|
||||
const componentPath = resolve(dirname(fileURLToPath(import.meta.url)), '../AppSidebar.vue')
|
||||
const componentSource = readFileSync(componentPath, 'utf8')
|
||||
const stylePath = resolve(dirname(fileURLToPath(import.meta.url)), '../../../style.css')
|
||||
const styleSource = readFileSync(stylePath, 'utf8')
|
||||
|
||||
describe('AppSidebar custom SVG styles', () => {
|
||||
it('does not override uploaded SVG fill or stroke colors', () => {
|
||||
@ -20,13 +18,8 @@ describe('AppSidebar custom SVG styles', () => {
|
||||
})
|
||||
|
||||
describe('AppSidebar header styles', () => {
|
||||
it('does not clip the version badge dropdown', () => {
|
||||
const sidebarHeaderBlockMatch = styleSource.match(/\.sidebar-header\s*\{[\s\S]*?\n {2}\}/)
|
||||
const sidebarBrandBlockMatch = componentSource.match(/\.sidebar-brand\s*\{[\s\S]*?\n\}/)
|
||||
|
||||
expect(sidebarHeaderBlockMatch).not.toBeNull()
|
||||
expect(sidebarBrandBlockMatch).not.toBeNull()
|
||||
expect(sidebarHeaderBlockMatch?.[0]).not.toContain('@apply overflow-hidden;')
|
||||
expect(sidebarBrandBlockMatch?.[0]).not.toContain('overflow: hidden;')
|
||||
it('does not render the version badge in the sidebar header', () => {
|
||||
expect(componentSource).not.toContain('<VersionBadge')
|
||||
expect(componentSource).not.toContain("VersionBadge from '@/components/common/VersionBadge.vue'")
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user