Commit Graph
2643 Commits
Author SHA1 Message Date
Stanislaw 71ee000f21 fix: avoid restamping deletedAt + skip Redis DEL for already-soft-deleted slugs
Address Greptile review feedback on #4243.

- Cloud-mode link.updateMany / pixel.updateMany now filter where: { ..., deletedAt: null } so a previously soft-deleted row keeps its original deletion timestamp instead of being restamped with the current time.
- Pre-transaction findMany now selects deletedAt; the Redis invalidation list filters to only live slugs, avoiding harmless but wasted DEL calls for already-soft-deleted entries.

Note: the share.deleteMany cleanup still uses the broad entityId list (not filtered by deletedAt) so that orphan share rows of already-soft-deleted links/pixels are still cleaned up. Filtering the prefetch itself, as Greptile's exact suggestion proposed, would skip those shares while link.deleteMany still hard-deletes the rows, leaving orphan share rows behind. Verified empirically with a 3-scenario reproduction.
2026-05-07 04:14:38 +02:00
Stanislaw a57abbe039 fix: clean up link, pixel, board rows on user/team deletion
deleteUser and deleteTeam left link/pixel/board rows (and their share rows)
in the database after the owner was removed. /q/<slug> and /p/<slug>
also kept serving deleted entries because the routes did not filter
deletedAt and Redis cached lookups for 24h.

- deleteUser: clean up link/pixel/board + shares for the deleted user.
  Cloud mode: soft-delete link/pixel, hard-delete board, only userId-owned.
  Non-cloud: hard-delete everything matching userId or owned teamIds.
- deleteTeam: same cleanup, scoped to teamId.
- /q and /p route handlers: filter deletedAt: null at the call sites
  (not in findLink/findPixel helpers, which would null-deref the
  permission checks at src/permissions/link.ts and pixel.ts).
- Post-transaction Redis invalidation mirrors deleteWebsite.
2026-05-07 03:37:22 +02:00
Francis Cao 71893e4f89 fix maxheight on DialogButton 2026-05-06 09:51:28 -07:00
0xSYN.dev 5e6b7d1d21 fix: normalize autofill styles across browsers 2026-05-06 00:39:26 +05:30
Francis Cao f463a4ce3f rename propertyName parameter 2026-05-05 10:48:56 -07:00
Mike Cao 1b69ce6e90 Add scroll heatmaps. 2026-05-05 10:43:39 -07:00
Mike Cao c7f71e5758 Make heatmaps report always available. 2026-05-05 10:43:39 -07:00
Mike Cao 2ffa655097 Merge pull request #4224 from JLUpengjiaji/V2.0
Flatten JSON data
2026-05-04 19:38:47 -04:00
Mike Cao 0e586dc2f9 Merge pull request #4223 from JLUpengjiaji/V1.0
Remove redundant search logic
2026-05-04 19:37:17 -04:00
Francis Cao fbac7518fc Add MAX_PAGING_RESULTS on hooks for performance improvements. 2026-05-04 15:43:05 -07:00
Francis Cao a8c1f26775 remove duration from session property stats 2026-05-04 14:26:27 -07:00
Mike Cao 12c10c48cd Gate heatmaps report on UMAMI_SELF_RECORD. 2026-05-04 13:29:53 -07:00
Francis Cao a113f5be79 query optimizations on session property filters 2026-05-04 12:42:25 -07:00
Francis Cao 5fc02b6aef fix formatting and css for session property screen 2026-05-04 10:54:58 -07:00
Mike Cao 8723cf3307 Merge pull request #4228 from manuelfesantos/feat/auto-pageview-attribute
feat: add data-auto-pageview attribute to tracker script
2026-05-02 03:09:54 -04:00
Francis Cao 946a969df6 fix syntax error 2026-05-01 13:25:54 -07:00
Francis CaoandCopilot 00c0273500 fix clickhouse filtering on event_name
Co-authored-by: Copilot <copilot@github.com>
2026-05-01 13:16:30 -07:00
Francis Cao d5c48ee75f clean-up session property string charts and insights. 2026-05-01 12:09:22 -07:00
Francis Cao 1f2bd7cad9 fix property filter css. format date columns in pivot table 2026-05-01 10:00:30 -07:00
Manuel Fé Santos 8ce833c93b fix: suppress SPA pageview tracking when auto-pageview is disabled
The handlePush function was still calling track() on SPA navigations
regardless of the auto-pageview setting. Gate that call behind the
autoPageview flag while keeping URL state and performance flush active.
2026-04-30 11:22:30 +01:00
Manuel Fé Santos 790354d3ac Add data-auto-pageview attribute to tracker script
Allow disabling the automatic initial pageview while keeping
performance tracking, click handling, and path change detection active.
2026-04-30 11:04:26 +01:00
Francis Cao ea52adea6b Merge branch 'dev' of https://github.com/umami-software/umami into dev 2026-04-29 13:11:06 -07:00
Francis Cao 680a1ca1a2 refactor Property components to be resused for both session/event data. Implement session-data screens + filtering. Remove all event-data specific compoenents/queries 2026-04-29 13:11:03 -07:00
JLUpengjiaji f6703d3d6d refactor(data): 重构 JSON 扁平化函数并添加测试
- 将 flattenJSON 重构为更简洁的递归实现
- 提取 KeyValueData 接口并导出 createKeyValue 函数
- 添加完整的单元测试覆盖所有功能
2026-04-29 15:04:08 +08:00
JLUpengjiaji 17a00f62a4 fix: 移除重复的搜索条件检查并修复搜索查询逻辑 2026-04-29 14:57:24 +08:00
Mike Cao 3ebd5a44e8 Fix 500 on /api/send when client IP is malformed. 2026-04-28 19:47:38 -07:00
Mike Cao a6b13b71db Add click heatmaps report
Extracts click events from rrweb session-replay buffers at write time
into a new heatmap_event table (Prisma + ClickHouse). New /heatmaps
report shows a page picker plus an overlay of click density on the
dominant viewport, with an optional iframe of the live page behind.
2026-04-27 22:20:38 -07:00
Francis Cao 9da332c489 Add Property filters for booleans, dates, arrays 2026-04-27 13:31:47 -07:00
Francis Cao 877945e721 Event data UI/UX polish 2026-04-27 12:09:13 -07:00
Francis Cao afa878cd3a include team-manager in includeTeams option 2026-04-27 11:02:00 -07:00
Rudy B. 330c2237f9 fix(2FA): mark OTP used in transaction 2026-04-25 20:30:38 +02:00
Rudy B. 4b15f2ad7c fix(2FA): error when trying to setup an already activated 2FA 2026-04-25 20:05:50 +02:00
Rudy B. 3e165a8c6f fix(2FA): backup code double-use race condition 2026-04-25 18:51:03 +02:00
Rudy B. b4bb9cc727 fix(2FA): put disable 2FA cleanup in transaction 2026-04-25 18:39:08 +02:00
Rudy B. ebcc61c2b6 fix(2FA): add hex key validation for TWO_FACTOR_ENCRYPTION_KEY 2026-04-25 18:33:17 +02:00
Rudy B. c8086403db chore: add comment about manualKey 2026-04-25 18:16:49 +02:00
Rudy B. c39a4646a3 fix(2FA): put backup code generation in transaction 2026-04-25 18:13:24 +02:00
Rudy B. 3f8b3e8aee fix(2FA): cast transaction return to match return type 2026-04-25 17:57:45 +02:00
Rudy B. fc32e39ac0 fix(2FA): return 429 when too many failed attemps 2026-04-25 17:56:56 +02:00
Rudy B. 5c5d1c3524 fix(2FA): use serializable transaction for failed attempts recording 2026-04-25 17:28:29 +02:00
Rudy B. df913fd77f chore: remove unnecessary function 2026-04-25 16:13:21 +02:00
Rudy B. 1068a82d03 chore: pnpm run format 2026-04-25 13:38:18 +02:00
Rudy B. 5def756cc8 fix(2FA): update query keys 2026-04-25 13:32:24 +02:00
Rudy B. 1ffe01f682 fix(2FA): add missing translation 2026-04-25 12:43:04 +02:00
Rudy B. d14869efc7 chore: revert unnecessary changes 2026-04-25 12:28:43 +02:00
Rudy B. cbd3aa2719 chore(2FA): rename property to match usage 2026-04-25 12:27:25 +02:00
Rudy B. a9a873c293 fix(2FA): increase backup codes length for improved security 2026-04-25 12:20:47 +02:00
Rudy B. 6c6765291f chore(2FA): get rid of empty onOpenChange 2026-04-25 12:13:15 +02:00
Rudy B. b86d48d08c refactor(2FA): use CSS module instead of inline style 2026-04-25 12:11:14 +02:00
Rudy B. 0795833135 fix(2FA): add missing translation for backup codes file 2026-04-25 12:06:50 +02:00