How ynesterenk/airrun-migration-finance-dashboard works
Project type and purpose
• This is a front-end, single‐page React/TypeScript application built with Vite that implements a dynamic “dashboard plugin system.”
• Its purpose is to load and render a series of self-contained widget components (plugins) at runtime, based on an active-plugins configuration.
File structure
• Top level
• public/: static assets (index.html, manifest.json, robots.txt, tailwind.css)
• src/: application source
• ├─ components/: shared UI pieces (cards, inputs, tabs)
• ├─ config/pluginRegistry.ts: registry mapping plugin IDs to React components
• ├─ services/pluginService.ts: runtime service deciding which plugins are active
• ├─ plugins/: one folder per widget plugin, each containing
│ – Main component (e.g. IntradayChart.tsx)
│ – data.ts for mock or fetch logic
│ – index.ts to export the component
• ├─ App.tsx: orchestrates loading & rendering of active plugins
• ├─ index.tsx, CSS, tests, utility libs, Tailwind config
• Build/config files: package.json, vite.config.mts, tsconfig.json, tailwind.config.js
README for additional insights
• Explains the plugin-component structure, the registry that “knows” about all plugins, and the service that simulates fetching which plugins are active.
• Emphasizes that adding or removing plugins requires no code changes in App.tsx—only registry & service updates.