Skip to content

v0.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Jul 19:25
e86ac1f

Minor Changes

  • 7b09345: Ship the observability console as a mountable component from the package: hopdrive-eventkit/console (plus hopdrive-eventkit/console/style.css).

    Instead of deploying the UI straight out of this repo (which made no sense once eventkit went open source), a consumer now stands it up with a tiny host wrapper that owns config + hosting and imports the console from the package. Scaffold one with npx degit hopdrive/eventkit/console/template my-console.

    • New export EventKitConsole takes a config prop (graphqlEndpoint, headers, auth, basename, grafanaProxyPath). Nothing reads import.meta.env anymore, so one built artifact runs against any endpoint.
    • Auth is injected by the wrapper. Pass auth: { getHeaders, onUnauthenticated? } and the console builds its Apollo client from it, resolving auth per request (a rotating JWT stays fresh without remounting). The wrapper owns login; the console owns the transport wiring.
    • The console library externalizes react and its React-coupled UI libs (react-router-dom, @apollo/client, reactflow, recharts, framer-motion, @heroicons, @microlink/react-json-view, @tanstack/*, antd); the consumer's app build bundles them. Only react + react-dom are declared peers (optional), so a server/library consumer of the core installs neither. The wrapper template lists the React-coupled libs as real dependencies.
    • The Grafana Loki proxy is now a host-agnostic function (grafanaProxyCore.ts) with a thin Netlify adapter, so any host can serve it.

    Also folds in two console fixes carried on this branch: the event_executions status CHECK now allows detection_failed/handler_failed (legacy writer safety during migration), and the vite 8 / Rolldown manualChunks build fix.