Commit graph

1020 commits

Author SHA1 Message Date
Mike Cao
c9f6653b62 Redirect to single allowed section on share page. 2026-01-24 02:21:51 -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
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
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
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
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
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
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
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
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
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
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
Mike Cao
0fbd8a448d Merge branch 'dev' into boards 2026-01-14 12:53:25 -08:00
Francis Cao
2bd0734162 Revert "refactor 6 month retention. use auth instead of cache:website". Fix share page retention bug.
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
This reverts commit 741c6039e6.
2026-01-14 11:06:33 -08:00
Francis Cao
b6013c3ee8 Revert "refactor 6 month retention. use auth instead of cache:website". Fix share page retention bug.
This reverts commit 741c6039e6.
2026-01-14 10:28:48 -08:00
Mike Cao
6d480d9c36
Merge pull request #3950 from AymanAlSuleihi/fix/compare-metrics
Some checks failed
Node.js CI / build (push) Has been cancelled
Fix metrics bar not updating on compare mode switch
2026-01-10 18:56:54 -08:00
AymanAlSuleihi
a049fbb5b0 Update compare parameter to use enum for valid values 2026-01-09 23:41:16 +00:00
AymanAlSuleihi
6420f2c813 Remove redundant compare param definition 2026-01-09 22:54:50 +00:00
AymanAlSuleihi
fbf03d6563 Fix metrics bar not updating on compare mode switch 2026-01-09 19:35:48 +00:00
Francis Cao
fbe031bfe9 update pixel/link edit form on save.
Some checks failed
Node.js CI / build (push) Has been cancelled
2026-01-07 09:30:59 -08:00
Mike Cao
aefc36b476 Merge branch 'dev' into boards
Some checks failed
Node.js CI / build (push) Has been cancelled
# Conflicts:
#	pnpm-lock.yaml
2026-01-07 01:01:39 -08:00
Mike Cao
5213e04f44
Merge pull request #3866 from RaenonX/master
Some checks are pending
Node.js CI / build (push) Waiting to run
Added custom slug for links
2026-01-06 18:23:28 -08:00
Mike Cao
2e62a06aa4
Merge pull request #3926 from Yashh56/feat/default-currency
feat: Add default currency support and update currency handling in Revenue component
2026-01-06 17:27:47 -08:00
Francis Cao
34677bca8f
Merge pull request #3925 from Yashh56/feat/version
Some checks failed
Node.js CI / build (push) Has been cancelled
feat : Add version settings to display application version
2025-12-30 13:51:09 -08:00
Yash
b0aa6fd6ef feat: Add current version to API response 2025-12-26 22:13:23 +05:30
Yash
4eddac21c7 feat: Add default currency support and update currency handling in Revenue component 2025-12-25 20:41:14 +05:30
Yash
5e3e6b3edd refactor: Simplify version display by removing API endpoint and using constant 2025-12-25 09:48:09 +05:30
Yash
612b00179b feat : Add version settings and API endpoint to display application version 2025-12-25 00:21:10 +05:30
Francis Cao
912d2d544d Fix deleted website visibility bug
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
Closes #3865
2025-12-19 14:21:42 -08:00
Francis Cao
86d2672c47 fix shareId error
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
2025-12-18 11:33:29 -08:00
Francis Cao
741c6039e6 refactor 6 month retention. use auth instead of cache:website 2025-12-18 10:35:52 -08:00
RaenonX
5fbef149d0
Added custom slug for links 2025-12-12 23:04:44 +08:00