Skip to content

Commit

Permalink
Merge branch 'next' into release-2025-02-13
Browse files Browse the repository at this point in the history
  • Loading branch information
zachstence committed Feb 13, 2025
2 parents 88ad902 + 2d50ad0 commit 606f4a4
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 280 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-vans-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/sdk': patch
---

Handle malformed source directories when creating new sources
5 changes: 5 additions & 0 deletions .changeset/nasty-pumas-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/core-components': patch
---

Dont hide entire kebab menu when neverShowQueries is true
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ export const writeSourceConfig = async (options, source, spinner) => {
yaml.stringify(encodeBase64Deep(secrets))
].join('\n');

if (!source.dir) {
if (
!source.dir ||
!path.dirname(source.dir).startsWith(sourcesDirectory) ||
!path.isAbsolute(source.dir)
) {
source.dir = path.join(sourcesDirectory, source.name);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
import { dev } from '$app/environment';
import { Icon } from '@steeze-ui/svelte-icon';
import { X, Menu2 } from '@steeze-ui/tabler-icons';
import { addBasePath } from '@evidence-dev/sdk/utils/svelte';
Expand Down Expand Up @@ -118,9 +117,7 @@
{/if}
</div>
<div class="relative">
{#if dev || !neverShowQueries}
<KebabMenu />
{/if}
<KebabMenu {neverShowQueries} />
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
}
const { selectedAppearance, activeAppearance, cycleAppearance, themesConfig } = getThemeStores();
export let neverShowQueries;
$: themeLabel =
$selectedAppearance === 'system'
? 'System'
Expand All @@ -47,14 +50,17 @@
Print PDF
<DropdownMenu.Shortcut>⌘P</DropdownMenu.Shortcut>
</DropdownMenu.Item>
<DropdownMenu.Item
on:click={(e) => {
e.preventDefault();
showQueries.update((val) => !val);
}}
>
{$showQueries ? 'Hide ' : 'Show '} Queries
</DropdownMenu.Item>
{#if dev || !neverShowQueries}
<DropdownMenu.Item
on:click={(e) => {
e.preventDefault();
showQueries.update((val) => !val);
}}
>
{$showQueries ? 'Hide ' : 'Show '} Queries
</DropdownMenu.Item>
{/if}

{#if themesConfig.appearance.switcher}
<DropdownMenu.Item
on:click={(e) => {
Expand Down
Loading

0 comments on commit 606f4a4

Please sign in to comment.