Commit Graph
294 Commits
Author SHA1 Message Date
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 a1890e9261 Replace react-intl with next-intl and consolidate lang files.
Migrate i18n from react-intl to next-intl, eliminating the formatjs
compilation pipeline. Translation files now live as nested JSON in
public/intl/messages/ (single source of truth), removing the duplicated
src/lang/ directory and the copy/compile build steps. The useMessages()
hook API is preserved so all 195+ consumer components are unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 01:51:29 -08:00
Mike CaoandClaude Opus 4.6 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 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
Mike Cao c3e0290e65 Merge branch 'dev' into boards
# 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
Francis Cao 49adaa32d0 implement UTM filters and fields 2026-02-05 16:30:46 -08:00
Mike Cao 5267222a67 Fix share token for public share pages 2026-02-04 17:32:42 -08:00
Francis Cao ee698b636a implement exclude bounces feature 2026-01-30 00:12:13 -08:00
Mike Cao 78d467b478 Redesigned share page. 2026-01-28 23:10:42 -08:00
Francis Cao a1a092dc19 Add MetricsBar to Events page. Closes #3830 2026-01-26 17:08:34 -08:00
Francis Cao 7bb30443a8 Add distinct ID to filters/expanded metrics. Closes #3861 2026-01-26 11:05:20 -08:00
Francis Cao e73432dd26 Add unit select and backend implementation. Fix compare for websitestats. Remove unused params from stats, metrics, weekly 2026-01-23 10:08:47 -08:00
Francis Cao d47ee6e8e8 Merge branch 'dev' of https://github.com/umami-software/umami into dev 2026-01-20 19:10:14 -08:00
Francis Cao 52f812d9e5 pass unit into revenue report 2026-01-20 19:09:23 -08:00
Mike CaoandClaude Opus 4.5 0eb598c817 implement website share functionality using share table
- Add support for multiple share URLs per website with server-generated slugs
- Create shares API endpoint for listing and creating website shares
- Add SharesTable, ShareEditButton, ShareDeleteButton components
- Move share management to website settings, remove header share button
- Remove shareId from website update API (now uses separate share table)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 17:23:14 -08:00
Mike CaoandClaude Opus 4.5 68c56060b3 Add board state management with updateBoard and saveBoard methods.
BoardProvider now manages local board state and exposes updateBoard for
editing and saveBoard for persisting to the database. Supports both
create and edit modes with proper redirect after creation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 21:05:43 -08:00
Mike Cao f97c840825 Merge branch 'dev' into boards 2026-01-16 16:30:31 -08:00
Francis Cao 520c91c621 fix share api routes 2026-01-16 16:29:08 -08:00
Mike Cao 0fbd8a448d Merge branch 'dev' into boards 2026-01-14 12:53:25 -08:00
Mike Cao 6d480d9c36 Merge pull request #3950 from AymanAlSuleihi/fix/compare-metrics
Fix metrics bar not updating on compare mode switch
2026-01-10 18:56:54 -08:00
AymanAlSuleihi fbf03d6563 Fix metrics bar not updating on compare mode switch 2026-01-09 19:35:48 +00:00
Mike Cao aefc36b476 Merge branch 'dev' into boards
# Conflicts:
#	pnpm-lock.yaml
2026-01-07 01:01:39 -08:00
Egor Fedorov 5b97fb908a fix(events): use correct key for event values 2025-12-11 23:24:01 +03:00
Mike Cao d227bc369f Progress check-in. 2025-12-05 16:49:08 -08:00
Mike Cao a39ebffd8b Boards components. 2025-11-29 15:59:01 -08:00
Mike Cao d7fd22645c Fixed nav menus. 2025-11-28 00:33:53 -08:00
Mike Cao fa8d8055df Reformatted files with biome. 2025-11-22 22:42:42 -08:00
Francis Cao 6751bf88bb fix chart and timezone issues, pass consistent dates to DB.
Closes #3700
2025-11-13 15:52:24 -08:00
Francis Cao bf498d9239 add RealtimeData to types 2025-11-11 13:45:41 -08:00
Francis Cao 30781430c5 remove timezone from realtime. Closes #3700 2025-11-11 13:13:25 -08:00
Francis CaoandOm Mishra 839bf3898f add canonicalizeTimezone conversions
Co-authored-by: Om Mishra <contact@om-mishra.com>
2025-11-10 17:27:45 -08:00
Francis Cao 6eefb4173c add improved truncation between tablets and phones 2025-10-27 13:54:15 -07:00
Francis Cao 1d3e980eed revert saveLocale change 2025-10-22 16:40:14 -07:00
Francis Cao d87ae84a29 fix reports permissions, long team overflow, language settings 2025-10-22 16:09:31 -07:00
Francis Cao 533a42eb2e clean-up session api endpoints and queries 2025-10-21 19:54:50 -07:00
Francis Cao b7747b33e4 clean-up hooks for passing uneccessary date params 2025-10-21 16:52:04 -07:00
Mike Cao 40492ec7c4 Added DialogButton to handle mobile. 2025-10-16 23:59:18 -07:00
Mike Cao 036748cdeb Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsx
#	src/app/(main)/websites/[websiteId]/WebsiteExpandedView.tsx
2025-10-16 02:43:43 -07:00
Mike Cao 4d2a7ea947 Responsive everything. 2025-10-16 02:42:13 -07:00
Francis Cao f23d5694ec clean up events/event-data endpoints 2025-10-15 16:44:14 -07:00
Francis Cao a2b1089e62 clean-up event/event-data endpoints. fix for expanded view for mobile 2025-10-15 11:32:19 -07:00
Francis Cao ba45972bd3 fix filter passthrough into event-data endpoints 2025-10-14 11:22:21 -07:00
Francis Cao d440a44d96 clean-up useWebsite query params 2025-10-07 09:07:34 -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 c5994e5eb6 Save name after website select. Fixed types. 2025-10-05 15:34:37 -07:00
Mike Cao 3496952769 Fixed empty website select. Converted session profile to popover. 2025-10-05 14:11:25 -07:00
Mike Cao 92ee44756c Refactored useDateRange to always use query string. Fixed all time filter. 2025-10-03 17:55:39 -07:00
Mike Cao b36cd48b4a Separated query string date handling. Fixed all time date. 2025-10-03 01:19:35 -07:00
Mike Cao 83a014e884 Use FormattedMessage. Updated icons. Fixed bugs. 2025-09-23 23:08:40 -07:00
Mike Cao 9897c725de Updated cloud mode checks. 2025-09-22 13:09:07 -07:00