Update optimization documentation

This commit is contained in:
adilallo
2025-10-07 17:20:26 -06:00
parent 25c03705a8
commit c991e22f09
7 changed files with 571 additions and 12 deletions
+39
View File
@@ -0,0 +1,39 @@
import WebVitalsDashboard from "../app/components/WebVitalsDashboard";
export default {
title: "Components/WebVitalsDashboard",
component: WebVitalsDashboard,
parameters: {
layout: "fullscreen",
docs: {
description: {
component:
"A comprehensive dashboard component that displays real-time and historical Web Vitals data. Shows Core Web Vitals metrics, performance ratings, and optimization recommendations.",
},
},
},
argTypes: {},
};
export const Default = {
args: {},
parameters: {
docs: {
description: {
story:
"The default Web Vitals dashboard showing real-time performance metrics and historical data.",
},
},
},
};
export const Loading = {
args: {},
parameters: {
docs: {
description: {
story: "The dashboard in loading state while fetching Web Vitals data.",
},
},
},
};