Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release release-2025-01-23 #3035

Merged
merged 74 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
f30d3ee
Simple components for common HTML usage
hughess Dec 19, 2024
356d130
add and use utils
hughess Dec 20, 2024
d97a4ce
add info component
hughess Dec 20, 2024
4ca1488
roll out to components and add docs
hughess Dec 21, 2024
25149b9
Merge branch 'next' into info-component
hughess Dec 21, 2024
1a9dce2
Merge branch 'next' into info-component
hughess Dec 21, 2024
9274780
fix double URL encoding issue
Dec 24, 2024
586c4d7
changeset
Dec 24, 2024
a643f75
remove card and add class props
hughess Dec 31, 2024
0ae136e
Merge branch 'next' into builtin-components
hughess Dec 31, 2024
7019e51
Merge branch 'next' into builtin-components
hughess Dec 31, 2024
dedbae1
switch to hovercard
mcrascal Dec 31, 2024
e79e92c
expose floating UI alignment props
mcrascal Dec 31, 2024
718214d
fixes and add docs
hughess Dec 31, 2024
2d5f89e
add to extension snippets
hughess Dec 31, 2024
5481959
format
hughess Dec 31, 2024
2e506cd
chart upgrades and spacing improvements
hughess Jan 2, 2025
27bca8e
Add print behavior for components with hidden content
hughess Jan 3, 2025
f59a9ed
use path.sep
Jan 6, 2025
e1539f1
fix: ensure paths start with '/'
Jan 7, 2025
a21d815
prettier
mcrascal Jan 9, 2025
f228839
individual pages for each source
archiewood Jan 9, 2025
cf24bc0
fix links
archiewood Jan 9, 2025
46a7be0
Merge branch 'next' into data-source-pages
archiewood Jan 13, 2025
7b5327d
add page content to each data source
archiewood Jan 13, 2025
32ff942
format
archiewood Jan 13, 2025
327ecab
Merge branch 'next' into component-print
hughess Jan 14, 2025
3d88d7f
add docs
hughess Jan 14, 2025
3233afb
Merge branch 'component-print' of https://github.com/evidence-dev/evi…
hughess Jan 14, 2025
cbb02eb
format
hughess Jan 14, 2025
b1885c2
add docs
hughess Jan 14, 2025
9866c16
fix
hughess Jan 14, 2025
85e0d18
fix border print
hughess Jan 14, 2025
73d6062
poc full screen charts
archiewood Jan 14, 2025
d1abc2a
Merge branch 'next' into info-component
hughess Jan 14, 2025
df7d61b
format
hughess Jan 14, 2025
49f76f0
Merge branch 'next' of https://github.com/evidence-dev/evidence into …
archiewood Jan 14, 2025
abe75d3
Merge branch 'next' into data-source-pages
archiewood Jan 14, 2025
2506347
Merge branch 'next' into info-component
hughess Jan 14, 2025
25205b5
add to timeout
hughess Jan 14, 2025
82c5990
Revert "poc full screen charts"
archiewood Jan 15, 2025
e1fa64a
Merge pull request #2995 from evidence-dev/info-component-overflow
hughess Jan 16, 2025
ffd0bc3
Merge branch 'next' into component-print
hughess Jan 16, 2025
8efb0f9
Merge branch 'next' into builtin-components
hughess Jan 16, 2025
ef6e262
fix from feedback
hughess Jan 16, 2025
8077025
Merge branch 'builtin-components' of https://github.com/evidence-dev/…
hughess Jan 16, 2025
6ec6d28
fmt
hughess Jan 16, 2025
0901432
fix: twitter cards
archiewood Jan 16, 2025
a1e9f21
Merge pull request #2965 from evidence-dev/chart-improvements
hughess Jan 17, 2025
a1afc8d
Merge pull request #2969 from evidence-dev/component-print
hughess Jan 17, 2025
adef957
Merge branch 'next' into info-component
hughess Jan 17, 2025
b0c1e6f
format
hughess Jan 17, 2025
5c808c1
update imports to fix storybook issue
hughess Jan 17, 2025
cda6c48
fmt
hughess Jan 17, 2025
0cd81b7
Merge pull request #3019 from evidence-dev/poc-server-speed
archiewood Jan 17, 2025
7a91cf8
Update dead README link
archiewood Jan 17, 2025
b8d8513
add prop to docs
hughess Jan 17, 2025
354f6f4
Merge branch 'next' into info-component
hughess Jan 17, 2025
feb9bce
add desc
hughess Jan 17, 2025
a9e418e
add descriptions
hughess Jan 17, 2025
0009079
Merge pull request #2941 from evidence-dev/builtin-components
archiewood Jan 17, 2025
c664393
Merge pull request #3025 from evidence-dev/main
archiewood Jan 17, 2025
60f6b74
Merge pull request #3024 from evidence-dev/readme-link
archiewood Jan 17, 2025
1ecf6f9
Merge pull request #3004 from evidence-dev/data-source-pages
archiewood Jan 17, 2025
a003d89
Merge branch 'next' into info-component
archiewood Jan 17, 2025
5ec5efe
fix playwright config
hughess Jan 18, 2025
c9aa366
Merge pull request #2949 from evidence-dev/info-component
hughess Jan 18, 2025
bc69881
Add alert to CLI docs
hughess Jan 21, 2025
8ff3d2a
Merge pull request #3030 from evidence-dev/hughess-patch-2
hughess Jan 21, 2025
c7547d8
fix: direct ref to query no longer breaks page load
ItsMeBrianD Jan 21, 2025
975b363
Merge pull request #3021 from evidence-dev/twitter-large-summary-image
archiewood Jan 22, 2025
1443383
Merge pull request #2954 from yecnj/next
archiewood Jan 22, 2025
77bbbfb
add bare query test
archiewood Jan 22, 2025
4610981
Merge pull request #3032 from evidence-dev/fix/query-rows-undefined-o…
archiewood Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/angry-books-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/core-components': patch
---

Add print behavior for components with hidden content
5 changes: 5 additions & 0 deletions .changeset/curly-beans-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/core-components': patch
---

Add Info component
5 changes: 5 additions & 0 deletions .changeset/eleven-planets-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/evidence': patch
---

double url encoding
5 changes: 5 additions & 0 deletions .changeset/itchy-donkeys-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/core-components': patch
---

Add simple wrapper components for common HTML usgae
5 changes: 5 additions & 0 deletions .changeset/metal-walls-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/sdk': patch
---

Fix: Ensure that length is loaded before we returned undefined for out of range indeces
5 changes: 5 additions & 0 deletions .changeset/modern-rivers-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/preprocess': patch
---

Use summary large image on twitter
5 changes: 5 additions & 0 deletions .changeset/shiny-rocks-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/core-components': minor
---

Chart upgrades and spacing improvements
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ See docs for [other install options](https://docs.evidence.dev/getting-started/i
# Publish

- [Evidence Cloud](https://evidence.dev/cloud) is the easiest way to securely host your app. It's free to get started.
- [Self-hosted](https://docs.evidence.dev/deployment/overview) options include Netlify, Vercel, your own infra, and other static site hosting platforms.
- [Self-hosted](https://docs.evidence.dev/deployment/overview/#self-host) options include Netlify, Vercel, your own infra, and other static site hosting platforms.

# Join the Evidence Community

Expand Down
2 changes: 2 additions & 0 deletions e2e/basic/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ This page can be found in your project at `/pages/index.md`. Make a change to th
series=category
/>

The top category is {orders_by_category[0].category}

## What's Next?

- [Connect your data sources](settings)
Expand Down
5 changes: 5 additions & 0 deletions e2e/basic/sources/needful_things/connection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was automatically generated
name: needful_things
type: duckdb
options:
filename: needful_things.duckdb
Binary file not shown.
1 change: 1 addition & 0 deletions e2e/basic/sources/needful_things/orders.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select * from orders
7 changes: 7 additions & 0 deletions e2e/basic/tests/tests.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ test('shows different logo in light and dark mode', async ({ page }) => {
logo = await getLogo(page);
await expect(logo).toHaveAttribute('src', '/darkLogo.png');
});

test('bare query reference', async ({ page }) => {
await page.goto('/');
await waitForPageToLoad(page);

await expect(page.getByText('The top category is Odd Equipment')).toBeVisible();
});
2 changes: 1 addition & 1 deletion e2e/playwright-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const config = {
testDir: './tests',
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
timeout: 120000,
reporter: [
[
'html',
Expand All @@ -14,7 +15,6 @@ export const config = {
}
]
],
timeout: process.platform === 'win32' ? 60_000 : 30_000,
expect: {
timeout: 15_000
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"chroma-js": "^2.4.2",
"debounce": "^1.2.1",
"downloadjs": "1.4.7",
"echarts": "5.5.1",
"echarts": "5.6.0",
"echarts-stat": "1.2.0",
"eslint": "8.45.0",
"eslint-config-prettier": "^8.10.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/extension/snippets/emd.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,16 @@
],
"description": "Insert Map"
},
"Note": {
"prefix": "/Note",
"body": ["<Note>\n\t${1:Note Content}\n</Note>\n\n"],
"description": "Insert Note"
},
"Embed": {
"prefix": "/Embed",
"body": ["<Embed url={${1:query_name}}/>\n\n"],
"description": "Insert Embed"
},
"Slider": {
"prefix": "/Slider",
"body": "<Slider name=${1:name_of_input} min=${2:0} max=${3:100}/>\n\n",
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/component-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@uwdata/mosaic-sql": "^0.3.2",
"debounce": "^1.2.1",
"downloadjs": "1.4.7",
"echarts": "5.5.1",
"echarts": "5.6.0",
"ssf": "^0.11.2",
"svelte": "4.2.19"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/component-utilities/src/echarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const echartsAction = (node, options) => {
xAxis: {
axisLabel: {
interval: 0,
overflow: 'truncate',
overflow: options.xAxisLabelOverflow,
width: (clientWidth * modConst) / distinctXValues.size
}
}
Expand Down
27 changes: 25 additions & 2 deletions packages/lib/component-utilities/src/echartsThemes.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,31 @@ const createTheme = (mode) => {
color: ['#c41621', '#e39588', '#f5ed98']
},
dataZoom: {
handleSize: 'undefined%',
textStyle: {}
type: 'slider',
bottom: 10,
height: 30,
showDetail: false,
handleSize: '80%',
borderColor: gridlineColor,
handleStyle: {
borderColor: gridlineColor,
color: gridlineColor
},
moveHandleStyle: {
borderColor: gridlineColor,
color: gridlineColor
},
textStyle: {},
emphasis: {
handleStyle: {
borderColor: gridlineColor,
color: gridlineColor
},
moveHandleStyle: {
borderColor: gridlineColor,
color: gridlineColor
}
}
},
markPoint: {
label: {
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/preprocess/src/frontmatter/handle-og.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = `
{/if}

<!-- default twitter cardtags -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@evidence_dev" />

{#if typeof metadata === "object"}
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/sdk/src/usql/query/Query.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ DESCRIBE ${this.text.trim()}
if (target === null)
if (typeof prop !== 'number') return undefined;
else {
if (prop > this.#length) return undefined;
if (this.lengthLoaded && prop > this.#length) return undefined;
return this.#mockRow ?? {};
}

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/core-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"cmdk-sv": "^0.0.12",
"codemirror": "^6.0.1",
"date-fns": "^3.6.0",
"echarts": "5.5.1",
"echarts": "5.6.0",
"echarts-stat": "1.2.0",
"export-to-csv": "0.2.1",
"leaflet": "^1.9.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,27 @@

<script>
import * as BaseAccordion from '../shadcn/accordion';
import Info from '../../unsorted/ui/Info.svelte';
export let title = '';
export let compact = false;

let className = undefined;
export { className as class };

export let description = undefined;
</script>

{#key title}
<BaseAccordion.Item value={title} class={className}>
<BaseAccordion.Trigger class={compact ? 'py-0' : ''}>
<slot name="title">
{title}
</slot>
<span>
<slot name="title">
{title}
{#if description}
<Info {description} />
{/if}
</slot>
</span>
</BaseAccordion.Trigger>
<BaseAccordion.Content>
<slot />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
<script>
import * as HoverCard from '$lib/atoms/shadcn/hover-card/index.js';
</script>
import {
HoverCard,
HoverCardContent,
HoverCardTrigger
} from '$lib/atoms/shadcn/hover-card/index.js';

<!-- class="rounded-sm underline-offset-4 hover:underline focus-visible:outline-2 focus-visible:outline-offset-8 focus-visible:outline-black" -->
export let align = 'center';
export let side = 'bottom';
export let alignOffset = 0;
export let sideOffset = 4;
export let openDelay = 0;
export let closeDelay = 0;
</script>

<HoverCard.Root openDelay="0" closeDelay="0">
<HoverCard.Trigger>
<HoverCard {openDelay} {closeDelay}>
<HoverCardTrigger>
<slot name="trigger" />
</HoverCard.Trigger>
<HoverCard.Content>
</HoverCardTrigger>
<HoverCardContent {align} {side} {alignOffset} {sideOffset}>
<slot name="content" />
</HoverCard.Content>
</HoverCard.Root>
</HoverCardContent>
</HoverCard>
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { getInputContext } from '@evidence-dev/sdk/utils/svelte';
import { setContext } from 'svelte';
import { buildReactiveInputQuery } from '@evidence-dev/component-utilities/buildQuery';
import Info from '../../../unsorted/ui/Info.svelte';
import ButtonGroupItem from './ButtonGroupItem.svelte';
import { page } from '$app/stores';
import HiddenInPrint from '../shared/HiddenInPrint.svelte';
Expand Down Expand Up @@ -38,6 +39,9 @@
export let color = 'hsla(207, 65%, 39%, 1)';
$: colorStore = resolveColor(color);

/** @type {string | undefined} */
export let description = undefined;

const valueStore = writable(null);

// TODO: Use getInputSetter instead
Expand Down Expand Up @@ -115,7 +119,12 @@
: `inline-block overflow-scroll no-scrollbar align-bottom w-fit max-w-full flex-col ${title ? 'mt-0.5' : 'mt-2'} mb-3 ml-0 mr-2`}
>
{#if title}
<span class="text-xs font-medium text-base-content block mb-0.5">{title}</span>
<span class="text-xs font-medium text-base-content block mb-0.5"
>{title}
{#if description}
<Info {description} />
{/if}
</span>
{/if}
<div
class={display === 'tabs'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script>
import Button from '../../shadcn/button/button.svelte';
import HiddenInPrint from '../shared/HiddenInPrint.svelte';
import Info from '../../../unsorted/ui/Info.svelte';
import { toBoolean } from '../../../utils.js';
import { getInputContext } from '@evidence-dev/sdk/utils/svelte';
const inputs = getInputContext();
Expand All @@ -19,6 +20,9 @@
/** @type {string} */
export let name;

/** @type {string | undefined} */
export let description;

/** @type {boolean} */
export let hideDuringPrint = true;
$: hideDuringPrint = hideDuringPrint === 'true' || hideDuringPrint === true;
Expand All @@ -38,6 +42,9 @@
>
<p class="truncate font-medium">
{title}
{#if description}
<Info {description} />
{/if}
</p>
<input
type="checkbox"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
export let name = undefined;
/** @type {string | undefined} */
export let title = undefined;
/** @type {string | undefined} */
export let description = undefined;
/** @type {boolean} */
export let hideDuringPrint = true;

Expand Down Expand Up @@ -107,6 +109,7 @@
{range}
{currentDate}
{title}
{description}
/>
</QueryLoad>
{/if}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import { RangeCalendar } from '$lib/atoms/shadcn/range-calendar/index.js';
import * as Select from '$lib/atoms/shadcn/select/index.js';
import * as Popover from '$lib/atoms/shadcn/popover/index.js';
import Info from '../../../unsorted/ui/Info.svelte';
import { Separator } from '$lib/atoms/shadcn/separator/index.js';
import { Calendar } from '$lib/atoms/shadcn/calendar/index.js';
import { Icon } from '@steeze-ui/svelte-icon';
Expand Down Expand Up @@ -49,6 +50,8 @@
export let range = false;
/** @type {string} */
export let title;
/** @type {string | undefined} */
export let description = undefined;

/** @type { { label: string, group: string, range: import('bits-ui').DateRange }[] } */
$: presets = [
Expand Down Expand Up @@ -244,6 +247,9 @@
{:else if selectedDateInput && !range}
{#if title}
{title}
{#if description}
<Info {description} className="pl-1" />
{/if}
<Separator orientation="vertical" class="mx-2 h-4 w-[1px]" />
{/if}
{dfMedium.format(selectedDateInput.toDate(getLocalTimeZone()))}
Expand Down
Loading
Loading