Commit Graph
66 Commits
Author SHA1 Message Date
Francis Cao 6cec5f246b fix share pages for new screens 2026-03-23 14:57:53 -07:00
Francis Cao b823a6ca3e apply white-labeling to all share pages 2026-03-13 14:46:10 -07:00
Mike Cao 64bf4c378c Add sharing to pixel and link detail pages 2026-03-09 01:26:02 -07:00
Mike Cao c4226bc63d Add board share management UI 2026-03-08 22:24:24 -07:00
Francis Cao 7912ed2d90 fix logo margins on share page 2026-02-27 22:12:44 -08:00
Francis Cao 6002ff56bf update white label property names to match cloud 2026-02-27 21:41:53 -08:00
Mike CaoandClaude Opus 4.6 50edb71687 Simplify i18n: remove old react-intl artifacts, rename formatMessage to t, replace FormattedMessage with t.rich().
- Rewrite messages.ts to plain string key maps (remove MessageDescriptor)
- Rewrite useMessages hook to expose t from useTranslations() directly
- Rename formatMessage → t across 193 consumer files
- Replace custom FormattedMessage component with next-intl t.rich()
- Update 52 language files to use rich text tags (<b>, <a>)
- Remove all direct imports from @/components/messages in favor of useMessages()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 11:19:04 -08:00
Mike CaoandClaude Opus 4.6 c6dd3fb6ff Rename SideMenu to NavMenu, fix tooltips, and update react-zen.
- Rename SideMenu to NavMenu with visible group title labels and selected item highlighting
- Update react-zen to 0.242.0 and fix responsive breakpoints (xs -> base)
- Style floating tooltips with inverted background across WorldMap, charts, and WeeklyTraffic
- Add CSS variables for primary color and use IconLabel consistently
- Remove stray console.log from LoadingPanel

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 01:58:55 -08:00
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