Commit graph

5838 commits

Author SHA1 Message Date
Mike Cao
fbd0564133 Add x-umami-client-* headers as highest priority source for client detection. 2026-01-23 20:04:01 -08:00
Francis Cao
355fa1e9a9 increase minimum unit for day. Last 6 months includes current month
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-01-23 11:42:12 -08:00
Francis Cao
a2f0066c42 clear unit param on nav, fix more import, fix NaN animation error 2026-01-23 11:19:19 -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
3f173889ea Fix "name" alias for relational query to be compatible with Postgres 12. Closes #3970
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-01-22 22:04:11 -08:00
Mike Cao
af7f7adf5b Add name field to share feature and require at least one item selection.
- Add name field to ShareCreateForm and ShareEditForm
- Add name column to SharesTable
- Update API routes to handle name field
- Require at least one item to be selected before saving
- Display parameters in responsive 3-column grid in edit form

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 20:17:45 -08:00
Francis Cao
d70152be38 fix share data migration to '{"overview":true}'
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-01-22 19:52:55 -08:00
Francis Cao
7a89bbf19f render links in event, session activity, realtime activity using hostname instead of domain.
Closes #2861
2026-01-22 19:29:25 -08:00
Mike Cao
4c9b2f10da Merge branch 'dev' of https://github.com/umami-software/umami into dev 2026-01-22 19:17:22 -08:00
Francis Cao
c88425332b fix tar import tar.t() to list() in build-geo 2026-01-22 18:24:43 -08:00
Francis Cao
09e1267cb0 fix dependabot vuln alerts 2026-01-22 18:13:38 -08:00
Francis Cao
fce1c13017
Merge pull request #3969 from umami-software/dependabot/npm_and_yarn/tar-7.5.4
Bump tar from 6.2.1 to 7.5.4
2026-01-22 17:49:29 -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
Francis Cao
3fc41bdd08 clean-up canViewWebsite, use getEntity 2026-01-22 16:37:53 -08:00
Francis Cao
f4eaa9fd0d update segmentParamSchema, add typing to getEntity 2026-01-22 16:32:06 -08:00
Francis Cao
d4ff7c8e3f tighten zod validation for segment parameters
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-01-22 12:53:44 -08:00
Francis Cao
6fd428683d update timezone zod validation to use timezoneParam 2026-01-22 12:02:08 -08:00
Francis Cao
a1efb2d86a check for explicit teamCreate permissions for global role in canCreateTeam 2026-01-22 11:53:11 -08:00
Francis Cao
8b2196b97a fix showDeleted reversed logic. Show non-deleted user as default query 2026-01-22 11:18:14 -08:00
Francis Cao
63d2bfe118 add name column to share table 2026-01-22 10:41:55 -08:00
Francis Cao
8f55ed9da9 security advisory fixes opened by kolega-ai-dev 2026-01-22 09:24:08 -08:00
Mike Cao
518f0b66c6 Don't render link on share page.
Some checks failed
Create docker images (cloud) / Build, push, and deploy (push) Has been cancelled
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled
2026-01-22 03:02:15 -08:00
Mike Cao
f84e67b0e6 White-label support. 2026-01-22 01:50:24 -08:00
Francis Cao
e5f794c329 add boards + duplicate key migration
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-01-21 09:42:24 -08:00
Indra Gunawan
14012ed68e fix inconsistent date format 2026-01-21 22:28:55 +08:00
Mike Cao
dd8888cfcf Update share form defaults to only select overview and events
Some checks are pending
Node.js CI / build (push) Waiting to run
Changed default selected items for new shares from all items to only
overview and events. Also fixed checkbox text size in create form.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 00:19:08 -08:00
Francis Cao
52d9dd2871 pass unit into revenue report
Some checks failed
Create docker images (cloud) / Build, push, and deploy (push) Has been cancelled
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled
2026-01-20 19:11:00 -08:00
Francis Cao
d47ee6e8e8 Merge branch 'dev' of https://github.com/umami-software/umami into dev
Some checks are pending
Node.js CI / build (push) Waiting to run
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 Cao
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 Cao
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 Cao
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
dependabot[bot]
3fe7afbb12
Bump tar from 6.2.1 to 7.5.4
Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.5.4.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.5.4)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.4
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-21 01:20:18 +00:00
Mike Cao
3b4776b0e0 Initial react-zen migration.
Some checks failed
Node.js CI / build (push) Has been cancelled
2026-01-19 21:09:22 -08:00
Mike Cao
30c45f888f Replace fontsource with next/font/google and update react-zen.
Some checks are pending
Node.js CI / build (push) Waiting to run
- 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
Francis Cao
3a498333a6 Merge branch 'analytics' of https://github.com/umami-software/umami into dev
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-01-19 12:51:38 -08:00
Francis Cao
cd6a28ea4a improve revenue joins and event_data joins to website_event
Some checks are pending
Create docker images (cloud) / Build, push, and deploy (push) Waiting to run
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
2026-01-19 12:46:21 -08:00
Mike Cao
6367d94552 Add default row/column for new boards and prevent removing last column.
Some checks are pending
Node.js CI / build (push) Waiting to run
- New boards now start with one row containing one column
- Hide remove column button when only one column remains in a row

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 03:02:51 -08:00
Mike Cao
385bdd6734 Add panel size persistence on board save.
- Add registerLayoutGetter to BoardContext for collecting sizes on save
- Use GroupImperativeHandle and groupRef prop for react-resizable-panels
- Add id props to Panels for layout mapping by panel id
- Collect row and column sizes via getLayout() only when saving
- Restore saved sizes via defaultSize prop on Panels

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 01:25:31 -08:00
Mike Cao
30e48e3aaa Add panel size constraints and size properties to board types.
- Add MIN_ROW_HEIGHT, MAX_ROW_HEIGHT, MIN_COLUMN_WIDTH, BUTTON_ROW_HEIGHT constants
- Apply minSize/maxSize constraints to row and column panels
- Add size property to BoardColumn and BoardRow types for future persistence
- Add optional chaining for safer property access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 00:28:42 -08:00
Mike Cao
30c3ba77cc Add remove column button and fix container height calculation.
- Add X button in top right corner of each column to remove it
- Fix container height to use MIN_HEIGHT instead of MAX_HEIGHT per row

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 21:19:24 -08:00
Mike Cao
ff6575ff54 Add move row up/down functionality to board editor.
Rows can now be reordered using up/down buttons. Buttons are disabled
at boundaries (up disabled on first row, down disabled on last row).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 20:17:21 -08:00
Mike Cao
d9f698ca42 Board editing. 2026-01-18 04:20:36 -08:00
Mike Cao
63c9cf2e30
Merge pull request #3954 from maennenajere/dev
Some checks failed
Node.js CI / build (push) Has been cancelled
Update fi-FI.json
2026-01-16 22:15:10 -08:00
Mike Cao
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
e08907d998 Board setup. 2026-01-16 19:52:16 -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
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-01-16 16:29:08 -08:00
Mike Cao
e3e2ed0435 Merge branch 'dev' into boards
# Conflicts:
#	prisma/schema.prisma
#	src/permissions/index.ts
2026-01-16 16:25:21 -08:00
Francis Cao
29f2c7b7d4 share api, queries, permissions, migration, entity lib
Some checks are pending
Node.js CI / build (push) Waiting to run
2026-01-15 16:25:56 -08:00