Commit Graph

54 Commits

Author SHA1 Message Date
Usman Baig
033d735c3a Replace dashboard BarChart with 21st.dev LineChart component
Swap the main site dashboard chart from a bar chart to a line chart
using 21st.dev's line-charts-6 component with dot grid background,
glow shadow, and animated active dots. Add Badge trend indicators
on metric cards using Phosphor icons. All existing features preserved
(annotations, comparison, export, live indicator, interval controls).

New UI primitives: line-charts-6, badge-2, card, button-1, avatar.
Added shadcn-compatible CSS variables and Tailwind color mappings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 22:53:35 +01:00
Usman Baig
0dfd0ccb3c Fix ChartContainer CSS to work without ShadCN theme, match ShadCN bar chart exactly
- ChartContainer: replace stroke-border/fill-muted (ShadCN tokens we
  don't have) with var(--chart-grid) so recharts CSS overrides actually work
- Dashboard chart: remove YAxis (ShadCN interactive bar has none)
- Remove unused formatAxisValue, formatAxisDuration, tick calculations
- Exact ShadCN structure: CartesianGrid vertical={false}, XAxis with
  tickMargin/minTickGap, single Bar with fill var(--color-{metric})

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 13:45:13 +01:00
Usman Baig
56225bb1ad Match ShadCN interactive bar chart style
- Remove cursor={false} to enable hover highlight
- Remove rounded bar corners for flat ShadCN look
- Remove explicit stroke/color on grid and axes (inherit from CSS)
- Use var(--color-{metric}) for bar fill
- Reduce chart height to 250px (ShadCN default)
- Simplify bar props to match ShadCN minimal pattern

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 13:37:00 +01:00
Usman Baig
ad747b1772 Switch main dashboard chart from AreaChart to BarChart
ShadCN-style bar chart with rounded corners, solid fill,
clean grid, and translucent comparison bars.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 13:31:07 +01:00
Usman Baig
3f81cb0e48 feat: adopt ShadCN chart primitives
Add ChartContainer, ChartConfig, ChartTooltip, ChartTooltipContent
primitives ported from ShadCN's chart pattern. Refactor all 3 chart
locations (dashboard, funnels, uptime) to use CSS variable-driven
theming instead of duplicated CHART_COLORS_LIGHT/DARK objects.

- Add --chart-1 through --chart-5, --chart-grid, --chart-axis CSS vars
- Remove duplicated color objects from 3 files (-223 lines)
- Add accessibilityLayer to all charts
- Rounded bar corners on funnel chart
- Tooltips use Tailwind dark classes instead of imperative style props

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 13:24:29 +01:00
Usman Baig
5fc6f183db feat: annotation UX improvements
- Custom calendar (DatePicker) instead of native date input
- Custom dropdown (Select) instead of native select
- EU date format (DD/MM/YYYY) in tooltips and form
- Right-click context menu on chart to add annotations
- Optional time field (HH:MM) for precise timestamps
- Escape key to dismiss, loading state on save
- Bump @ciphera-net/ui to 0.0.95
2026-03-09 04:17:58 +01:00
Usman Baig
4d99334bcf feat: add chart annotations
Inline annotation markers on the dashboard chart with create/edit/delete UI.
Color-coded categories: deploy, campaign, incident, other.
2026-03-09 03:44:05 +01:00
Usman Baig
dd8e101f69 fix: resolve CSS var for chart PNG export background color
html-to-image cannot resolve CSS custom properties. Use
getComputedStyle to get the actual background color from the DOM.
2026-03-07 00:56:22 +01:00
Usman Baig
ece8cda334 style: remove avg reference line and badge from chart
Remove the dashed average line from the chart area and the Avg badge
from the toolbar for a cleaner look.
2026-03-07 00:54:11 +01:00
Usman Baig
74ee64a560 fix: remove tabular-nums causing font fallback on KPI numbers
Plus Jakarta Sans doesn't fully support the tnum OpenType feature,
causing browsers to fall back to system fonts for numeric glyphs.
2026-03-07 00:50:53 +01:00
Usman Baig
641a3deebb refactor: rebuild Chart component from scratch
- Remove sparklines from stat cards (redundant with main chart)
- Widen Y-axis to 40px, add allowDecimals=false for count metrics
- Move avg label from inside chart to toolbar badge
- Lighter grid lines, simpler gradient, thinner strokes
- Streamline toolbar: inline controls, icon-only export, no trailing separator
- Move live indicator from absolute to proper flow element
- Cleaner empty states without dashed border boxes
- Extract TrendBadge component, add tabular-nums for aligned numbers
2026-03-07 00:31:05 +01:00
Usman Baig
77dc61e7d0 fix: round chart average label, update changelog
Fix formatAxisValue to show 1 decimal place for floats instead of raw
floating-point numbers. Update changelog with all UI improvements from
this session.
2026-03-07 00:26:36 +01:00
Usman Baig
2aedc656d7 feat: implement site statistics fetching and display in SiteList component 2026-02-22 00:20:54 +01:00
Usman Baig
4dead4b399 style: standardize gap sizes across multiple components for improved visual consistency 2026-02-21 23:48:03 +01:00
Usman Baig
d08c8f00a0 style: add transition effects to shadow properties across multiple components for improved visual feedback 2026-02-21 23:42:12 +01:00
Usman Baig
0b68db58be style: standardize min-width values across multiple components for improved layout consistency 2026-02-21 23:39:29 +01:00
Usman Baig
f1e6d5a48e style: refactor chart color variables across multiple components to use CSS variables for improved theming consistency 2026-02-21 23:09:34 +01:00
Usman Baig
ae91147b6c chore: update @ciphera-net/ui dependency to version 0.0.57 in package.json and package-lock.json; refactor imports across multiple components for consistency 2026-02-17 20:49:55 +01:00
Usman Baig
213e337940 refactor: optimize data loading and auto-refresh logic in dashboard components, and enhance performance with useCallback for better efficiency 2026-02-12 08:50:10 +01:00
Usman Baig
fc56cbd661 refactor: update tick interval for real-time display in dashboard components and enhance live indicator in Chart component 2026-02-12 08:30:58 +01:00
Usman Baig
9b95ead6ba feat: implement last updated timestamp display in dashboard components for improved data freshness indication 2026-02-12 08:24:55 +01:00
Usman Baig
d25910ffc3 fix: update layout and styling in Chart component for improved readability and alignment 2026-02-11 21:27:23 +01:00
Usman Baig
9a2b3da8fd fix: refine layout and styling in Chart component for better visual alignment and consistency 2026-02-11 21:19:34 +01:00
Usman Baig
928d1571bd fix: adjust layout and styling in Chart component for improved visual consistency 2026-02-11 20:52:06 +01:00
Usman Baig
37257c40ad feat: add compact duration formatting for Y-axis ticks and improve trend display in Chart component 2026-02-11 20:16:07 +01:00
Usman Baig
c623ae1e9b chore: update CHANGELOG.md and bump version to 0.5.0-alpha, highlighting analytics chart improvements and new export functionality 2026-02-11 20:04:33 +01:00
Usman Baig
a1447e98d9 Phase 2: Border Radius & Card Standardization 2026-02-05 17:21:51 +01:00
Usman Baig
62904298b9 feat: integrate interval selection for dashboard charts based on date range 2026-01-30 14:28:26 +01:00
Usman Baig
e19d72ebb8 feat: enhance PDF export with top pages/referrers and move export button to page header 2026-01-30 14:16:26 +01:00
Usman Baig
c01b042254 feat: enhance PDF export with summary cards and improved styling 2026-01-30 14:09:29 +01:00
Usman Baig
35980d31e3 feat: integrate ExportModal for data export functionality in Chart component 2026-01-29 20:51:06 +01:00
Usman Baig
1af35b1b80 chore: update @ciphera-net/ui to version 0.0.26 and remove next-themes dependency 2026-01-27 22:41:56 +01:00
Usman Baig
5857a2ea15 chore: upgrade @ciphera-net/ui to v0.0.18 and refactor icon imports across components 2026-01-24 12:50:43 +01:00
Usman Baig
33779ebf77 chore: upgrade @ciphera-net/ui to v0.0.14 and refactor component imports 2026-01-24 11:42:19 +01:00
Usman Baig
aaf224a278 refactor: migrate UI components to @ciphera-net/ui v0.0.11 2026-01-23 18:35:17 +01:00
Usman Baig
14455e6a75 fix(dashboard): update comparison toggle in Chart component to default to false for improved user experience 2026-01-22 22:23:26 +01:00
Usman Baig
06a8120c68 fix(dashboard): update color for Bounce Rate metric in Chart component to use brand color for consistency 2026-01-22 21:59:38 +01:00
Usman Baig
a71ac45a7f fix(dashboard): update color for Visit Duration metric in Chart component to use brand color for consistency 2026-01-22 21:56:59 +01:00
Usman Baig
ac427597b3 feat(dashboard): extend Chart component to include bounce rate and average duration metrics for enhanced analytics 2026-01-22 21:53:25 +01:00
Usman Baig
81cef1b485 feat(dashboard): integrate Checkbox component for comparison toggle in Chart, enhancing user interaction 2026-01-22 21:46:35 +01:00
Usman Baig
479a6db688 feat(dashboard): update Chart component layout with improved toolbar and export button for enhanced user interaction 2026-01-22 21:42:39 +01:00
Usman Baig
e28baa5482 fix: update Chart component to display day ticks in daily view and optimize X-axis labels accordingly 2026-01-19 18:56:50 +01:00
Usman Baig
dfe415af40 fix: refine Chart component to display midnight timestamps correctly and optimize X-axis labels for hourly intervals 2026-01-19 18:52:41 +01:00
Usman Baig
2a51982c28 fix: update Chart component to display time correctly at midnight for hourly intervals 2026-01-19 18:44:57 +01:00
Usman Baig
43dd977c4c fix: update ChartTooltip to correctly display current metric values in tooltip based on payload order 2026-01-19 18:34:53 +01:00
Usman Baig
ecac8002ae fix: change Area component type from natural to monotone and add baseValue for improved chart rendering 2026-01-19 18:30:11 +01:00
Usman Baig
500310048a feat: enhance Chart component with theme-aware tooltip, comparison feature, and improved axis formatting 2026-01-19 18:25:49 +01:00
Usman Baig
5d867dd519 refactor: update application name and related identifiers from Analytics to Pulse for consistent branding across the codebase 2026-01-19 17:20:01 +01:00
Usman Baig
c69b263cdc feat: Add 1 min and 1 hour interval selection for Today view in analytics dashboard 2026-01-19 11:00:55 +01:00
Usman Baig
e7a123cea2 fix(analytics-ui): standardize branding, colors, and border radii 2026-01-18 19:37:36 +01:00