Commit Graph
12 Commits
Author SHA1 Message Date
asepharyana 6b725f31b4 refactor(dashboard): restructure dashboard components and improve data handling
- Moved dashboard components (Donut, Gauge, Sparkline) to their own files for better organization.
- Created a new DashboardHeader component to manage the header state and display service status.
- Introduced a layout component for the dashboard to encapsulate common layout styles.
- Simplified the Dashboard component by utilizing new components and reducing inline logic.
- Added type definitions for dashboard data in a new types.ts file.
- Enhanced the visual representation of data with improved SVG elements and accessibility attributes.
- Removed redundant code and improved overall readability and maintainability.
2026-07-23 15:02:53 +07:00
asepharyana e529e8c2e6 feat: update layout and page components with personalized content and new UI structure 2026-07-23 12:47:52 +07:00
asepharyanaandClaude Opus 4.8 d94524b70d refactor(hub): migrate dashboard to shadcn components
Replace manual CSS classes with shadcn Card, CardHeader, CardTitle,
CardContent, and Badge components. Remove inline <style> block —
use Tailwind utility classes via shadcn theme tokens. Add Biome
formatting across all components.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 12:19:43 +07:00
asepharyana 18bf58be1a feat: add UI components for skeleton, slider, sonner, spinner, switch, table, tabs, textarea, toggle group, toggle, tooltip, and mobile hook
- Implemented Skeleton component for loading placeholders.
- Created Slider component with customizable properties.
- Added Sonner component for toast notifications with icons.
- Developed Spinner component for loading indicators.
- Introduced Switch component for toggle functionality.
- Built Table component with header, body, footer, and cell subcomponents.
- Added Tabs component with list, trigger, and content subcomponents.
- Created Textarea component for user input.
- Implemented ToggleGroup and Toggle components for grouped toggle functionality.
- Developed Tooltip component with provider, trigger, and content subcomponents.
- Added useIsMobile hook to detect mobile device viewport.
2026-07-23 11:16:34 +07:00
asepharyana 5acb138f96 Add shadcn registry documentation and component rules
- Created registry.md for shadcn registry authoring and address schemes.
- Added base-vs-radix.md to outline API differences between base and radix components.
- Introduced chat.md for chat and messaging component guidelines.
- Established composition.md for component composition best practices.
- Defined forms.md for forms and input handling rules.
- Created icons.md for icon usage and guidelines.
- Added styling.md for styling and customization best practices.
- Initialized skills-lock.json to track shadcn skill configuration.
2026-07-23 11:15:27 +07:00
asepharyana c31e087675 feat: update dependencies and add new UI components
- Added new dependencies: @base-ui/react, class-variance-authority, clsx, lucide-react, shadcn, tailwind-merge, and tw-animate-css.
- Updated globals.css to include new styles and color variables using oklch color space.
- Created components.json for shadcn configuration.
- Implemented a Button component using @base-ui/react and class-variance-authority for styling variants.
- Added utility function `cn` for merging class names with tailwind-merge.
2026-07-23 11:13:17 +07:00
asepharyana d793ebf9b4 fix: correct Traefik latency metric name 2026-07-23 07:57:54 +07:00
asepharyana f0bbd13be9 fix: promRange type error — optional chaining 2026-07-23 07:52:18 +07:00
asepharyanaandClaude Opus 4.8 d14ed70240 feat: add Traefik metrics to dashboard API and sparkline charts
- Add promRange() for time-series data from Prometheus
- Query Traefik metrics: RPS, latency, error rate
- Dashboard page shows 4 sparkline charts (RPS, latency, errors, traces)
- Charts render inline SVG with auto-refresh every 15s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 07:44:52 +07:00
asepharyanaandClaude Opus 4.8 72f4759f8b feat: rewrite dashboard as Next.js pages
- Remove Go dashboard (replaced by Next.js)
- Add API route /api/dashboard: Docker container list, Jaeger
  traces, Prometheus metrics, node resources
- Add /dashboard page: React client component with inline SVG
  charts (donut, sparkline, gauge), auto-refresh every 15s
- Same dark theme as original Go dashboard

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 06:55:25 +07:00
asepharyanaandClaude Opus 4.8 91896b8fdf feat: add system dashboard (Go monitoring app)
Migrated from a sepharyana-hub/infra/dashboard.
- Docker container monitor via socket
- Jaeger trace viewer + Prometheus metrics
- SVG charts (donut, line, gauge)
- Proxies to Jaeger/Prometheus APIs

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 06:49:49 +07:00
asepharyanaandClaude Opus 4.8 30bca07cdd feat: initial hub app setup
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 06:24:10 +07:00