Commit graph

987 commits

Author SHA1 Message Date
Mike Cao
fed8d4c71a Fixed maximize button on Panel. 2026-02-07 00:16:15 -08:00
Francis Cao
795a1caadf fix panel and metrics card css
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-02-06 17:24:11 -08:00
Francis Cao
895abdbbaf Clean up colors and Selects 2026-02-06 16:48:45 -08:00
Francis Cao
9b814aa1ca revert prisma schema to latest, add global css for scroll-bar, fix css 2026-02-06 15:06:10 -08:00
Mike Cao
c479a20cc0 Migrate old CSS variables to new react-zen design system.
Some checks are pending
Node.js CI / build (push) Waiting to run
Journey component, global.css, and variables.css all referenced old
CSS custom properties (--base-color-*, --primary-color, --text-base)
that no longer exist in @umami/react-zen. Mapped them to the new
variable names and removed the dead variables.css file.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 11:47:53 -08:00
Mike Cao
b9eb5f9800 Fix missing back button in WebsiteNav by defaulting sidenav-collapsed state to false.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 05:01:11 -08:00
Mike Cao
ce8c108fac Fix team boards endpoint calling getTeamPixels instead of getTeamBoards.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 04:56:42 -08:00
Mike Cao
18702e130e Decompose BoardPage into individual components and remove debug logging.
Extract BoardRow, BoardColumn, BoardViewHeader, BoardEditHeader, and
boardConstants into separate files. Remove 9 console.log statements
from BoardBody and BoardProvider.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 04:47:23 -08:00
Mike Cao
5f404f62d8 Bold text for selected items in SideNav and WebsiteNav.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 04:43:21 -08:00
Mike Cao
3467184b8f Consolidate WebsiteNavSection into WebsiteNav and fix scrollbar flash.
Move sidebar rendering logic into WebsiteNav with isCollapsed prop so
SideNav uses WebsiteNav directly instead of duplicating code. Add
overflow hidden to prevent horizontal scrollbar during expand transition.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 04:27:37 -08:00
Mike Cao
b3a77d7c04 Fix CompareTables select width, WebsiteSelect min height, and MetricCard gap.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 04:00:42 -08:00
Mike Cao
635317ecfb Combine WebsiteNav into SideNav when viewing a website.
Replace the separate 240px WebsiteNav sidebar with website navigation
integrated into the main SideNav. When a websiteId is active, SideNav
shows a back arrow, WebsiteSelect dropdown, and grouped nav items
instead of the main links. Extract shared useWebsiteNavItems hook used
by both SideNav and WebsiteNav (still used by MobileNav).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 03:57:28 -08:00
Mike Cao
18c3ffc2d8 Fix NavButton text not showing and remove unused Sidebar.
Show NavButton text whenever sidebar is not collapsed, not only on
pages without sub-navigation. Also remove unused Sidebar component.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 03:12:47 -08:00
Mike Cao
28c9c7d3ec Fix Select component usage by removing items prop and render functions.
Replace render function children with mapped ListItem elements and remove
the unsupported items prop across all Select instances.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 02:46:38 -08:00
Mike Cao
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
Mike Cao
7cafc3e61d Replace numeric prop values with named react-zen values.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 23:41:10 -08:00
Mike Cao
f66a508892 Add website binding to boards with filter and date controls.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 22:04:59 -08:00
Mike Cao
c3e0290e65 Merge branch 'dev' into boards
Some checks failed
Node.js CI / build (push) Has been cancelled
# Conflicts:
#	.gitignore
#	package.json
#	pnpm-lock.yaml
#	prisma/migrations/16_boards/migration.sql
#	prisma/schema.prisma
#	src/app/(main)/MobileNav.tsx
#	src/app/(main)/websites/[websiteId]/WebsiteHeader.tsx
#	src/app/(main)/websites/[websiteId]/settings/WebsiteShareForm.tsx
#	src/components/common/SideMenu.tsx
#	src/lib/types.ts
2026-02-05 20:05:25 -08:00
Mike Cao
8484fd26e1 Code cleanup. 2026-02-05 19:46:16 -08:00
Mike Cao
a8534a9d4d Add board view/edit mode separation with cancel button.
/boards/[id] is now view mode (read-only) with an edit button.
/boards/[id]/edit is edit mode with save and cancel buttons.
Save navigates back to view, cancel discards changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 19:42:50 -08:00
Francis Cao
49adaa32d0 implement UTM filters and fields 2026-02-05 16:30:46 -08:00
Francis Cao
7514af4236 fix getURL for share
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-02-05 10:51:51 -08:00
Brian Cao
397796cfff Fix share url. 2026-02-05 09:35:29 -08:00
Francis Cao
e21c1c83bb configure salt rotation period using env vars. Closed #3427 2026-02-05 08:56:12 -08:00
Francis Cao
fa97c986c0 fix bad import 2026-02-04 12:13:40 -08:00
Francis Cao
8f15741b68 fix bounce checkbox for share page 2026-02-04 11:58:21 -08:00
Mike Cao
877b453577 Moved bounce filter to filter form. 2026-02-04 09:34:32 -08:00
Francis Cao
2489601ae6 website API shareId compatibility updates
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-02-03 22:28:25 -08:00
Francis Cao
0cd63049ed fix password default values
Some checks failed
Node.js CI / build (push) Has been cancelled
2026-02-02 10:35:51 -08:00
Francis Cao
ee698b636a implement exclude bounces feature
Some checks failed
Node.js CI / build (push) Has been cancelled
2026-01-30 00:12:13 -08:00
Francis Cao
4a3190b2da add name to createShare 2026-01-29 22:27:37 -08:00
Francis Cao
1174ce89bc remove shareId from website POST 2026-01-29 21:36:38 -08:00
Francis Cao
e57239de1e Fix share parameter logic 2026-01-29 10:13:08 -08:00
Mike Cao
abfb78bb98 Fixed mobile menus.
Some checks failed
Node.js CI / build (push) Has been cancelled
2026-01-29 09:23:53 -08:00
Mike Cao
9b310dacef Remove events section from share page overview
Share page overview should look the same as normal app overview

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 01:00:23 -08:00
Mike Cao
489c2712d1 Make ShareNav full width on mobile
Some checks are pending
Node.js CI / build (push) Waiting to run
- 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 Cao
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 Cao
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 Cao
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 Cao
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 Cao
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 Cao
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 Cao
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 Cao
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
Mike Cao
018e76b067 Fixed website nav. 2026-01-28 19:24:13 -08:00
Francis Cao
b84942b6da make SharesTable mobile friendly
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-01-28 10:48:13 -08:00
Francis Cao
c5aa8be15c remove missing imports
Some checks are pending
Node.js CI / build (push) Waiting to run
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