evOo-local/apps/web/e2e/fixtures/chart-links.tsx
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

38 lines
1.1 KiB
TypeScript

import { setupI18n } from "@lingui/core";
import { I18nProvider } from "@lingui/react";
import { createRoot } from "react-dom/client";
import { ChartBlockView } from "../../src/pages/shell/message-cards";
import "../../src/styles.css";
const params = new URLSearchParams(location.search);
const href = params.get("href") ?? "#details";
const i18n = setupI18n({ locale: "en", messages: { en: {} } });
createRoot(document.getElementById("root")!).render(
<I18nProvider i18n={i18n}>
<main className="min-h-screen bg-background p-8 text-foreground">
<ChartBlockView
name="chart.png"
spec={{
title: "Linked chart",
marks: [
{
type: "dot",
options: {
x: "x",
y: "y",
href: "url",
fill: "currentColor",
r: 12,
tip: params.get("inspect") === "1",
},
},
],
}}
data={[{ x: 1, y: 1, url: href }]}
/>
<div id="details">Chart details</div>
</main>
</I18nProvider>,
);