Commit Graph
100 Commits
Author SHA1 Message Date
Mike Cao 62c214d7c5 Add CONTRIBUTING.md. 2026-05-01 15:34:07 -07:00
Mike Cao 14ab228572 Revert next and next-intl patch updates 2026-04-02 14:03:59 -04:00
Mike Cao 07356323c1 Updated packages. 2026-03-31 21:15:12 -04:00
Mike Cao a24eb91046 Merge branch 'dev' of https://github.com/umami-software/umami into dev 2026-03-31 18:56:00 -04:00
Mike Cao 030f842242 Updated packages. 2026-03-31 18:55:44 -04:00
Mike Cao c4e52e7dcd Remove fs-extra dependency in favor of native node:fs 2026-03-29 23:12:45 -04:00
Mike Cao 9672969c23 Add components package version bump step to build 2026-02-15 19:28:25 -08:00
Mike CaoandClaude Opus 4.6 365895c389 Fix build type errors in LinkButton and useMessages
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 16:35:57 -08:00
Mike Cao 6a9e732457 Updated packages. Remove unneeded offset. 2026-02-14 22:55:36 -08:00
Mike Cao 6d4d7a3121 Mute disabled board row control icons 2026-02-14 22:52:50 -08:00
Mike Cao 1ef7909dbb Fix missing resize grip for last board row 2026-02-14 14:22:40 -08:00
Mike Cao e52a6b405b Styles updates for board elements. 2026-02-14 00:20:12 -08:00
Mike Cao 15700a6394 Use component name as default board title 2026-02-14 00:07:36 -08:00
Mike Cao 509e1f0083 Changed out logo. 2026-02-13 18:21:18 -08:00
Mike Cao 631cc46f7f Add personal dashboard flow and per-component website selection
This introduces a user-scoped dashboard with board-style view/edit pages while keeping it unavailable in team context, and moves website targeting to component config so dashboard components can each select their own website.
2026-02-13 11:48:15 -08:00
Mike Cao 2633697585 Fix row action hover overlap with column controls 2026-02-13 11:47:44 -08:00
Mike Cao 676d83e8f6 Remove board component title fallback 2026-02-13 02:15:34 -08:00
Mike Cao 432be5a5d5 Fix board component scrolling layout consistency 2026-02-13 02:02:44 -08:00
Mike Cao cda9c684c3 Migrate board layout UI to react-zen and preserve empty component titles 2026-02-13 01:53:53 -08:00
Mike Cao db637864f6 Move board component metadata editing into modal 2026-02-13 00:18:51 -08:00
Mike Cao 0123f7069b Use Panel instead of Box in boards. 2026-02-13 00:00:51 -08:00
Mike Cao 029814f81f Fix board edit size restoration and remove compare selector 2026-02-12 22:56:02 -08:00
Mike Cao d8c41ac8a6 Split board view/edit rendering and isolate edit interactions 2026-02-12 22:36:23 -08:00
Mike Cao b09694ddb6 Remove report components from boards and sanitize saved layouts 2026-02-12 21:32:14 -08:00
Mike Cao 57c4a6ed51 docs: add AGENTS.md contributor guidance 2026-02-12 21:13:54 -08:00
Mike Cao 903cccee7c Allow removing board component from column action 2026-02-12 21:13:49 -08:00
Mike Cao b816e951a5 Fixed BarChart rendering in boards. 2026-02-12 18:10:04 -08:00
Mike Cao 9e9e44519d Keep sidenav menu scrollable with fixed user footer 2026-02-12 17:46:31 -08:00
Mike CaoandClaude Opus 4.6 fee155c65b fix WeeklyTraffic header clipping in board panels
Separate day name headers into their own grid row instead of embedding
them inside the hourly data grid with marginBottom, which pushed the
text outside the fixed 16px row height.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 17:27:15 -08:00
Mike Cao e2b391af28 Add board selector to top navigation 2026-02-12 17:26:52 -08:00
Mike Cao a1f3ad89f6 Add link and pixel selectors to top nav 2026-02-12 17:01:37 -08:00
Mike Cao dd2d6bca45 Move website selector into top navigation 2026-02-12 16:46:01 -08:00
Mike Cao 400a35d7af Prevent unnecessary chart and board component re-renders 2026-02-12 16:30:43 -08:00
Mike Cao fb6fd293fb Updated zod validation on date range. 2026-02-08 22:58:25 -08:00
Mike CaoandClaude Opus 4.6 ce9e2416fb Add Web Vitals performance tracking (LCP, INP, CLS, FCP, TTFB)
End-to-end performance metrics tracking: dedicated database table with
percentile aggregation, tracker collection behind data-perf attribute,
/api/send handling, report API endpoints, and Performance dashboard page
with threshold-based metric cards, time-series chart, and per-page breakdown.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 19:25:20 -08:00
Mike CaoandClaude Opus 4.6 08e4da27c1 Move settings nav into SideNav, matching WebsiteNav pattern
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 22:00:47 -08:00
Mike CaoandClaude Opus 4.6 04c7216928 Add UserButton to SideNav, refactor NavButton into TeamsButton
- Create UserButton component at bottom of SideNav with Settings, Language,
  Theme, Admin, and Logout menu items
- Move Settings/Logout/Admin/Docs/Support out of NavButton into UserButton
- Remove LanguageButton and ThemeButton from SideNav bottom
- Refactor NavButton into TeamsButton with simplified team switching
- Simplify WebsiteNav and move TeamsButton to App top bar

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 21:34:42 -08:00
Mike Cao cee391f024 Removed translations scripts. 2026-02-07 19:36:08 -08:00
Mike CaoandClaude Opus 4.6 e1ee5eba27 Translate all 51 locale files, reducing untranslated keys from 6,017 to 862.
12 batch translation scripts covering all language families: East Asian, Romance,
Germanic, Nordic, Slavic, Other European, South/Southeast Asian, Tamil, Sinhala,
Urdu, and Burmese. Remaining untranslated keys are intentional loanwords (URL, UTM,
SMS, etc.) and en-GB which is intentionally identical to en-US.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 13:04:45 -08:00
Mike CaoandClaude Opus 4.6 a954824f65 Add 46 missing translation keys to all locale files.
These keys existed in messages.ts but were missing from the JSON files,
previously relying on react-intl defaultMessage fallback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 11:24:01 -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 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 c479a20cc0 Migrate old CSS variables to new react-zen design system.
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 a3733b0424 Fix TypeScript type errors across multiple files 2026-02-05 21:25:46 -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
Mike CaoandClaude Opus 4.5 ef3aec09be Add display options form for website shares
Allow users to select which navigation items to display when creating
or editing a share. Options include traffic, behavior, and growth
sections with checkboxes for each nav item (excluding segments/cohorts).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 17:23:15 -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 Cao 3b4776b0e0 Initial react-zen migration. 2026-01-19 21:09:22 -08:00
Mike CaoandClaude Opus 4.5 30c45f888f Replace fontsource with next/font/google and update react-zen.
- Switch from @fontsource/inter to next/font/google for font loading
- Update @umami/react-zen to v0.229.0
- Add type augmentation for react-zen missing children props
- Move global.css to app directory

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 13:02:47 -08:00
Mike Cao 2993db14f0 Updated README. 2025-12-03 19:37:51 -08:00
Mike Cao 1483241494 Merge branch 'dev' of https://github.com/umami-software/umami into dev 2025-12-03 18:39:45 -08:00
Mike Cao a39ebffd8b Boards components. 2025-11-29 15:59:01 -08:00
Mike Cao 7edddf15a7 Boards schema. 2025-11-28 00:37:51 -08:00
Mike Cao 3379cc6e89 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	pnpm-lock.yaml
2025-11-28 00:34:12 -08:00
Mike Cao d7fd22645c Fixed nav menus. 2025-11-28 00:33:53 -08:00
Mike Cao aaa1f9dc58 Merge branch 'dev' 2025-11-18 10:27:02 -08:00
Mike Cao d23ad5f272 Merge branch 'master' into dev
# Conflicts:
#	.github/workflows/cd.yml
#	package.json
#	pnpm-lock.yaml
#	src/lib/date.ts
#	src/lib/schema.ts
2025-10-04 13:38:58 -07:00
Mike Cao 35c27589b7 Updated workflow to only run on tag publish. 2025-10-04 13:32:40 -07:00
Mike Cao aaf92058d4 Merge remote-tracking branch 'origin/master' 2025-10-04 12:36:49 -07:00
Mike Cao b152cfe480 Added workflow to delete untagged images. 2025-10-04 12:36:39 -07:00
Mike Cao 82813f312a Added workflow to delete untagged images. 2025-10-04 12:12:39 -07:00
Mike Cao 2d0104382c Don't build Docker images for dev. 2025-10-04 11:44:37 -07:00
Mike Cao 5c0dacf58d Fix build. 2025-10-04 11:29:34 -07:00
Mike Cao 03adb6b7e1 Added website check for cloud. 2025-10-04 00:38:10 -07:00
Mike Cao ed013d5d58 Fixed spacing issue in confirmation form. 2025-10-04 00:04:11 -07:00
Mike Cao 8e05921227 Try to fix avatar. 2025-10-01 00:23:09 -07:00
Mike Cao 25e8e18b73 Fix Avatar for Vercel. 2025-10-01 00:00:40 -07:00
Mike Cao 257050f749 Updated edit forms and icons. 2025-09-26 01:46:36 -07:00
Mike Cao 554054d3a1 Merged nav menus. 2025-09-25 20:46:00 -07:00
Mike Cao d8075764e2 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	src/app/(main)/teams/[teamId]/TeamSettings.tsx
2025-09-19 18:01:42 -07:00
Mike Cao 7effa16f00 Updated edit permissions on settings components. 2025-09-19 17:58:52 -07:00
Mike Cao ffc8f6faae Fixed config fetch. 2025-09-18 15:38:55 -07:00
Mike Cao 03933bea7a Merge remote-tracking branch 'origin/dev' into dev 2025-09-17 08:38:13 -07:00
Mike Cao 8150b86a9c Fixed websites lookup. 2025-09-17 08:37:41 -07:00
Mike Cao aa7d3cd1aa New components build. 2025-09-08 22:52:43 -07:00
Mike Cao c60e8b3d23 Moved panel button. 2025-08-09 17:46:27 -07:00
Mike Cao 827c1074b6 Merge branch 'dev' into analytics 2025-07-24 23:38:09 -07:00
Mike Cao 25f96f6b6b Fixed nav display. 2025-07-20 00:38:15 -07:00
Mike Cao 2f7f8911cd Merge branch 'dev' into jajaja
# Conflicts:
#	pnpm-lock.yaml
#	src/queries/sql/getWebsiteStats.ts
#	src/queries/sql/pageviews/getPageviewMetrics.ts
#	src/queries/sql/sessions/getWebsiteSessionStats.ts
#	src/queries/sql/sessions/getWebsiteSessions.ts
#	src/queries/sql/sessions/getWebsiteSessionsWeekly.ts
2025-07-18 10:13:21 -07:00
Mike Cao 876f4c883e Updated layout. Fixed properties rendering. 2025-07-18 00:22:06 -07:00
Mike Cao 01bfd7f52e New properties screens. New website nav. 2025-07-17 01:18:31 -07:00
Mike Cao a9a9b57f80 Merge branch 'dev' into jajaja
# Conflicts:
#	pnpm-lock.yaml
#	src/app/(main)/websites/[websiteId]/events/EventProperties.tsx
#	src/components/messages.ts
#	src/lib/constants.ts
#	src/queries/sql/pageviews/getPageviewMetrics.ts
#	src/queries/sql/sessions/getWebsiteSessions.ts
2025-07-15 13:01:50 -07:00
Mike Cao a534c51b5e New website nav. 2025-07-15 03:35:18 -07:00
Mike Cao 5e6799a715 Fixed properties queries. 2025-07-15 01:31:08 -07:00
Mike Cao 465a03f987 Fixed paging in events/sessions. 2025-07-13 21:10:59 -07:00
Mike Cao 8c26e310f7 Fixed editing and navigation issues. 2025-07-13 00:37:43 -07:00
Mike Cao bf6c9395c6 Revert Prisma build. 2025-07-12 15:18:01 -07:00
Mike Cao 77131158f7 Updated build config for Vercel. 2025-07-12 14:41:10 -07:00
Mike Cao 514ea70d2a Removed queryCompiler. 2025-07-12 14:24:51 -07:00
Mike Cao b255b4738f Fixed imports. 2025-07-12 14:12:59 -07:00
Mike Cao 2a8c707519 Updated db build again. 2025-07-12 14:08:15 -07:00
Mike Cao 2dbe80b7ca Updated db build. 2025-07-12 13:56:45 -07:00
Mike Cao 3650204519 Styling for all forms. 2025-07-12 13:20:32 -07:00
Mike Cao c98f324c22 Settings refactor. 2025-07-11 22:55:30 -07:00
Mike Cao 1b81074752 Admin section updates. 2025-07-10 20:04:17 -07:00
Mike Cao 87449ece9e Merge branch 'dev' into jajaja
# Conflicts:
#	db/postgresql/schema.prisma
#	pnpm-lock.yaml
#	src/app/(main)/websites/[websiteId]/WebsiteDetailsPage.tsx
#	src/app/(main)/websites/[websiteId]/compare/WebsiteComparePage.tsx
#	src/app/api/reports/route.ts
#	src/app/api/websites/[websiteId]/events/series/route.ts
#	src/app/api/websites/[websiteId]/metrics/route.ts
#	src/app/api/websites/[websiteId]/pageviews/route.ts
#	src/app/api/websites/[websiteId]/sessions/stats/route.ts
#	src/app/api/websites/[websiteId]/stats/route.ts
#	src/app/api/websites/[websiteId]/values/route.ts
#	src/components/hooks/useFields.ts
#	src/components/hooks/useFilterParams.ts
#	src/lang/vi-VN.json
#	src/lib/clickhouse.ts
#	src/lib/detect.ts
#	src/lib/prisma.ts
#	src/lib/request.ts
#	src/lib/schema.ts
#	src/lib/types.ts
#	src/queries/sql/events/getEventDataFields.ts
#	src/queries/sql/events/getEventDataProperties.ts
#	src/queries/sql/events/getEventDataStats.ts
#	src/queries/sql/events/getEventDataValues.ts
#	src/queries/sql/events/getEventMetrics.ts
#	src/queries/sql/events/getWebsiteEvents.ts
#	src/queries/sql/getChannelMetrics.ts
#	src/queries/sql/getRealtimeActivity.ts
#	src/queries/sql/getWebsiteStats.ts
#	src/queries/sql/pageviews/getPageviewMetrics.ts
#	src/queries/sql/pageviews/getPageviewStats.ts
#	src/queries/sql/reports/getBreakdown.ts
#	src/queries/sql/sessions/getSessionDataProperties.ts
#	src/queries/sql/sessions/getSessionDataValues.ts
#	src/queries/sql/sessions/getSessionMetrics.ts
#	src/queries/sql/sessions/getSessionStats.ts
#	src/queries/sql/sessions/getWebsiteSessionStats.ts
#	src/queries/sql/sessions/getWebsiteSessions.ts
2025-07-08 22:03:55 -07:00
Mike Cao 5ed1d710cb Merge branch 'master' into jajaja
# Conflicts:
#	package.json
#	pnpm-lock.yaml
#	src/lib/detect.ts
2025-07-08 18:45:02 -07:00
Mike Cao ce1f6c3618 New admin section. 2025-07-08 18:40:47 -07:00
Mike Cao 6d1603fa28 New share URL form. 2025-06-21 01:45:36 -07:00
Mike Cao 543674c7f2 Updated hooks. Changed url, host to path, hostname. 2025-06-20 22:35:02 -07:00