Skip to main content

dashboard-composition-engine

Composes data-rich dashboards from modular widget systems. Handles layout grids, data fetching, real-time updates, and responsive widget reflow.

来源信息

仓库
Fadil369/Solutions
最近来源活动
2026年4月9日 00:36
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
Dashboard Composition Engine
version
1.0.0
description
Composes data-rich dashboards from modular widget systems. Handles layout grids, data fetching, real-time updates, and responsive widget reflow.
author
workspace
activated
false
# Dashboard Composition Engine Composes data-rich dashboards from modular widget systems. Handles layout grids, data fetching, real-time updates, and responsive widget reflow. ## Decision Framework ### When to Apply Use when: Admin panels, analytics dashboards, monitoring UIs, data-heavy views ### When NOT to Apply Don't use when: Simple data display, single chart, marketing pages ## Anti-Patterns ### 1. Too Many Widgets Loading 20+ widgets simultaneously causes slow page load and high memory. ### 2. No Loading States ```javascript // BAD: Blank space while loading <Widget data={data} /> // GOOD: Skeleton loading {loading ? <WidgetSkeleton /> : <Widget data={data} />} ``` ### 3. Hardcoded Data ```javascript // BAD: Static mock data const revenue = 125000; // GOOD: Fetch with error handling const { data: revenue, error, loading } = useQuery('revenue', fetchRevenue); ``` ## Trigger Phrases - "Build dashboard" - "Admin panel" - "Widget layout" - "Analytics view" - "Monitoring dashboard" ## Patterns ### Widget Grid ```javascript const DashboardGrid = ({ widgets, layouts }) => ( <ResponsiveGridLayout layouts={layouts} breakpoints={{ lg: 1200, md: 996, sm: 768 }}> {widgets.map(w => ( <div key={w.id}> <WidgetContainer title={w.title} loading={w.loading} error={w.error}> <w.component {...w.props} /> </WidgetContainer> </div> ))} </ResponsiveGridLayout> ); ``` ## Integration - Works with: data-visualization-engine, performance-budget-enforcer, search-experience-designer
在 GitHub 查看