mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 23:32:47 +01:00
fix: multiple minor fixes (#1154)
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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'>
|
||||||
|
|||||||
@@ -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"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user