Skip to Content

Component Resource Map

This is the master registry of all components in the plugzero-analytics repository. Use this list to check for existing UI patterns before building new ones.


🧱 Atomic Components (src/components/ui)

These are foundational primitives built using Radix UI and Tailwind CSS.

ComponentPurpose
button.tsxPrimary triggers with loading and variant support.
dialog.tsxModal windows for creations (e.g., Create Project).
table.tsxClean, accessible data tables using TanStack logic.
select.tsxOptimized dropdowns for variable selection.
tabs.tsxUsed for switching between analysis views.
sheet.tsxSlide-out panels for settings and filters.
sonner.tsxModern toast notifications for system alerts.
dropdown-menu.tsxContextual actions for data records.
card.tsxThe standard container for dashboard widgets.
form.tsxZod-validated forms with built-in error handling.

🔬 Analytics & Analysis (src/components/analytics)

Components responsible for calculating and visualizing intelligence.

ComponentResponsibility
AnalysisBuilderManages variable mapping for the math engines.
DashboardBuilderAllows users to arrange visualizations in a grid.
VisualizationRendererThe polymorphic entry point for all charts.
AIChatThe interface for interacting with the AI Agent.
ReportBuilderThe workspace for creating multi-page narratives.
HighlightableReportEnables the anchored commenting system.
ChartCardA specialized card that handles its own “Download” logic.
SimpleBarChartRecharts wrapper for frequency and segmentation.
SimplePieChartBest for showing market share or gender splits.
SimpleRadarChartUsed for competitor benchmarking.

📋 Survey Engine (src/components/surveys)

Tools for building, managing, and taking research surveys.

ComponentResponsibility
SurveyBuilderThe visual drag-and-drop workspace for survey design.
LogicBranchBuilderInteractive editor for “skip-logic” rules.
FocusSurveyRendererThe respondent’s UI (optimized for 60fps).
PublicSurveyViewerThe public URL entry point for surveys.
SurveyManagerThe list view for tracking respondent volume.
SurveyResponsesA high-performance viewer for raw survey data.
InterceptsDashboardSettings for on-site website pop-up surveys.

📂 Data Collection & Management (src/components/data-collection)

Components for ingestion, scraping, and project organization.

ComponentResponsibility
RawFileUploadFormMulti-file uploader with real-time validation.
WebScraperThe UI for the automated web data crawler.
DataFileManagerThe library of uploaded files per project.
FileViewerBrowser-based spreadsheet viewer for CSV/Excel.
ProjectsListThe entry point for selecting research workspaces.
CampaignWorkflowEditorVisual designer for multi-stage research missions.
CommunitiesListManagement of panelist groups and smart lists.

⚙️ Administration (src/components/account, teams)

ComponentResponsibility
TeamManagerInterface for roles and seat management.
TwoFactorSetupTOTP authentication setup and QR generator.
InviteMemberDialogThe secure email invitation workflow.
BillingSummaryIntegration with Stripe for plan management.

Last updated on