Commit Graph
58 Commits
Author SHA1 Message Date
Francis Cao e57239de1e Fix share parameter logic 2026-01-29 10:13:08 -08:00
Mike Cao abfb78bb98 Fixed mobile menus. 2026-01-29 09:23:53 -08:00
Mike CaoandClaude Opus 4.5 489c2712d1 Make ShareNav full width on mobile
- Remove fixed width, position, and border on mobile
- Use 100% width when onItemClick is provided (mobile context)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:44:18 -08:00
Mike CaoandClaude Opus 4.5 b43e7fd3a7 Hide sidebar collapse button on mobile
onItemClick is only passed on mobile, so use it to detect mobile context

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:37:29 -08:00
Mike CaoandClaude Opus 4.5 5880eae4e4 Fix NavMenu scrolling on mobile
- Add overflowY="auto" and flexGrow to menu container
- Menu now scrolls when content exceeds viewport height

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:34:47 -08:00
Mike CaoandClaude Opus 4.5 6169a58e86 Center bottom icons when sidebar collapsed
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:13:23 -08:00
Mike CaoandClaude Opus 4.5 452a385c4e Fix ShareNav collapse button and icon layout
- Use single PanelLeft icon with muted color
- Align collapse button to right of header
- Bottom icons: horizontal (Row) when expanded, vertical (Column) when collapsed

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:12:23 -08:00
Mike CaoandClaude Opus 4.5 482d6c1e47 Add collapsible ShareNav sidebar
- Add collapse/expand button in header
- When collapsed: hide menu items and logo, show only toggle button
- Stack bottom icons vertically when collapsed
- Adjust grid layout to match collapsed nav width (60px vs 240px)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:08:53 -08:00
Mike CaoandClaude Opus 4.5 4e8be724ac Handle domain name in share URL path
Skip domain-like segments (containing dots) when parsing the share path.
e.g., /share/slug/aol.com is treated as /share/slug
      /share/slug/aol.com/events is treated as /share/slug/events

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 23:38:07 -08:00
Mike CaoandClaude Opus 4.5 c9e14f3bce Restructure share routes to fix client-side navigation
- Change from [...shareId] catch-all to [slug]/[[...path]] structure
- Layout with ShareProvider now persists across sub-route navigation
- Add slug to ShareData context (separate from shareId UUID)
- Links now use slug instead of UUID for proper routing
- Remove unused ShareFooter and ShareHeader files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 23:32:51 -08:00
Mike CaoandClaude Opus 4.5 d028bfa1f5 Move share page redirect logic to ShareProvider
Centralizes the single-section redirect logic in ShareProvider instead of
SharePage, reducing useEffect complexity and preventing children from
rendering during redirect.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 23:18:05 -08:00
Mike Cao 78d467b478 Redesigned share page. 2026-01-28 23:10:42 -08:00
Francis Cao c5aa8be15c remove missing imports 2026-01-28 00:06:47 -08:00
Francis Cao daccd22ab2 remove duplicate logos and names on sharepage 2026-01-27 23:58:31 -08:00
Francis Cao b958403224 add mobile navbar to share page 2026-01-27 23:54:43 -08:00
Francis Cao c7a0d65590 add websiteheader to share page. Fix overview WebsiteNav Bug 2026-01-27 22:17:49 -08:00
Mike Cao 4a09f2bff6 Share page changes. 2026-01-24 02:47:09 -08:00
Mike Cao c9f6653b62 Redirect to single allowed section on share page. 2026-01-24 02:21:51 -08:00
Mike Cao adea3e9b1c Merge branch 'analytics' into dev
# Conflicts:
#	.gitignore
#	src/app/api/share/[slug]/route.ts
#	src/app/share/[...shareId]/SharePage.tsx
2026-01-22 17:44:45 -08:00
Mike Cao 518f0b66c6 Don't render link on share page. 2026-01-22 03:02:15 -08:00
Mike Cao f84e67b0e6 White-label support. 2026-01-22 01:50:24 -08:00
Mike CaoandClaude Opus 4.5 f2c49845d0 Add filtered navigation to share pages
- Update share API to return websiteId and parameters
- Create ShareNav component that filters nav items based on parameters
- Update SharePage to include navigation sidebar and route to correct page
- Support all website pages: overview, events, sessions, realtime, compare,
  breakdown, goals, funnels, journeys, retention, utm, revenue, attribution

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 18:12:33 -08:00
Francis Cao f47e1072d9 remove locale code from SharePage 2025-12-02 16:10:11 -08:00
Francis Cao 22f1b7d7c9 add theme and locale url parameter options to share page
Closes #3754
2025-12-02 15:57:45 -08:00
Mike Cao fa8d8055df Reformatted files with biome. 2025-11-22 22:42:42 -08:00
Mike Cao 8a13e2c70a Fixed reports fetch. 2025-10-08 15:56:38 -07:00
Mike Cao caf04015bb Fixed default date range handling. Added header to share page. 2025-10-05 16:02:23 -07:00
Mike Cao 257050f749 Updated edit forms and icons. 2025-09-26 01:46:36 -07:00
Mike Cao 1b400da7b2 Fixed share page. Updated device detect. Updated teams fetch. 2025-09-25 11:21:44 -07:00
Mike Cao f40e1b44f3 Updates for cloud mode. 2025-09-04 20:27:42 -07:00
Mike Cao 8e766e2db7 Pixel/link metrics pages. 2025-08-21 01:33:20 -07:00
Mike Cao 99330a1a4d Refactored icons. 2025-05-27 00:50:28 -07:00
Mike Cao 06f76dda13 Refactored website components. New layout. 2025-05-20 01:12:07 -07:00
Mike Cao 92b283486e Updated menus, chart tooltips, styles. 2025-05-05 01:36:16 -07:00
Mike Cao 0f6cdf8b80 Updated reports components. 2025-03-26 21:54:23 -07:00
Mike Cao 7886c3f393 Renamed query hooks. Fixed conversion bugs. 2025-03-22 03:48:18 -07:00
Mike Cao 5999bf6256 Zen components conversion. 2025-03-07 03:11:58 -08:00
Mike Cao a8a1ccce18 Added AnimatedDiv component. 2025-02-14 17:16:09 -08:00
Mike Cao d2f829a9b2 Merge branch 'dev' into jajaja 2025-02-14 11:45:34 -08:00
Mike Cao 36b53775bd Fixed team user fetch. 2025-02-14 03:09:18 -08:00
Mike Cao f83a12d6cd Refactor: removed default exports. 2025-02-13 22:53:25 -08:00
Mike Cao 8525188e42 Changed import path. 2025-02-05 15:59:59 -08:00
Francis Cao dfc13ced55 next.js 15 sync-dynamic-apis update 2024-11-26 09:28:57 -08:00
Mike Cao 5feae93162 Fixed share page. 2024-08-09 13:37:39 -07:00
Chris Heinz eda5adfd79 replace vh with dvh 2024-07-13 16:50:31 +02:00
Mike Cao 13e11ee371 Added tables to compare screen. 2024-05-25 09:31:38 -07:00
Mike Cao d5b4da63df Updated page titles. 2024-02-17 15:12:14 -08:00
Mike Cao f7151a880e Fixed 'use client' usage. 2024-02-05 23:59:33 -08:00
Mike Cao 18e36aa7b3 Changed route ids to be more explicit. 2024-01-29 14:47:52 -08:00
Mike Cao 9448aa3ab5 Added teams pages. Refactored hooks. 2024-01-28 18:33:40 -08:00