Cleanup, add tests and storybook

This commit is contained in:
adilallo committed 2026-04-04 10:57:01 -06:00
1 parent 5d6530e914
commit 427dc44476
26 files changed
+700 -7

No files matched your search

@@ -40,7 +40,8 @@ const WebVitalsDashboardContainer = memo(() => {
if (typeof window !== "undefined") {
import("web-vitals").then((webVitals) => {
const { getCLS, getFID, getFCP, getLCP, getTTFB } = webVitals as {
// web-vitals v4 typings don't expose legacy get* names the same way; runtime bundle still provides them for this dashboard.
const { getCLS, getFID, getFCP, getLCP, getTTFB } = webVitals as unknown as {
getCLS: (
_fn: (_m: { value: number; rating: string }) => void,
) => void;