fix: multiple minor fixes (#1154)

This commit is contained in:
Jonas Plum
2025-09-21 14:08:28 +02:00
committed by GitHub
parent 9da90e7cc8
commit 4d844c567c
5 changed files with 20 additions and 5 deletions

View File

@@ -68,7 +68,7 @@ func isDemoMode(ctx context.Context, queries *sqlc.Queries) bool {
} }
} }
return true, nil return len(features) > 0, nil
}); err != nil { }); err != nil {
slog.ErrorContext(ctx, "Failed to check demo mode", "error", err) slog.ErrorContext(ctx, "Failed to check demo mode", "error", err)

View File

@@ -108,6 +108,21 @@ const initials = (user: { name?: string } | undefined) => {
</SidebarMenuItem> </SidebarMenuItem>
</SidebarMenu> </SidebarMenu>
</SidebarHeader> </SidebarHeader>
<SidebarContent>
<SidebarGroup>
<SidebarGroupLabel>Overview</SidebarGroupLabel>
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton :tooltip="'Dashboard'" as-child>
<RouterLink to="/dashboard">
<Icon name="LayoutDashboard" class="size-4" />
<span>Dashboard</span>
</RouterLink>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
</SidebarGroup>
</SidebarContent>
<SidebarContent> <SidebarContent>
<SidebarGroup> <SidebarGroup>
<SidebarGroupLabel>Tickets</SidebarGroupLabel> <SidebarGroupLabel>Tickets</SidebarGroupLabel>

View File

@@ -6,7 +6,7 @@ export const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7
export const SIDEBAR_WIDTH = '16rem' export const SIDEBAR_WIDTH = '16rem'
export const SIDEBAR_WIDTH_MOBILE = '18rem' export const SIDEBAR_WIDTH_MOBILE = '18rem'
export const SIDEBAR_WIDTH_ICON = '3rem' export const SIDEBAR_WIDTH_ICON = '3rem'
export const SIDEBAR_KEYBOARD_SHORTCUT = 'b' export const SIDEBAR_KEYBOARD_SHORTCUT = '`'
export const [useSidebar, provideSidebarContext] = createContext<{ export const [useSidebar, provideSidebarContext] = createContext<{
state: ComputedRef<'expanded' | 'collapsed'> state: ComputedRef<'expanded' | 'collapsed'>

View File

@@ -86,7 +86,7 @@ watch(
<Input <Input
v-model="mail" v-model="mail"
type="text" type="text"
placeholder="Username" placeholder="Email"
class="w-full" class="w-full"
@keydown.enter="login" @keydown.enter="login"
/> />

View File

@@ -19,9 +19,9 @@ export const test = baseTest.extend({
export const login = async (page, admin: boolean = true) => { export const login = async (page, admin: boolean = true) => {
await page.goto('login') await page.goto('login')
if (admin) { if (admin) {
await page.getByPlaceholder('Username').fill('admin@catalyst-soar.com') await page.getByPlaceholder('Email').fill('admin@catalyst-soar.com')
} else { } else {
await page.getByPlaceholder('Username').fill('user@catalyst-soar.com') await page.getByPlaceholder('Email').fill('user@catalyst-soar.com')
} }
await page.getByPlaceholder('Password').fill('1234567890') await page.getByPlaceholder('Password').fill('1234567890')
await page.getByRole('button', { name: 'Login' }).click() await page.getByRole('button', { name: 'Login' }).click()