a5b684af1f
test: add unit tests for getWhereForTeamOrAllTeams function ( #21152 )
...
* test: add unit tests for getWhereForTeamOrAllTeams function
Co-Authored-By: [email protected] <[email protected] >
* test: remove implementation details and add tests for invalid parameter combinations
Co-Authored-By: [email protected] <[email protected] >
* test: update mock values to use more distinct numbers
Co-Authored-By: [email protected] <[email protected] >
* test: update mock values to use completely distinct numbers
Co-Authored-By: [email protected] <[email protected] >
* test: update mock values to maintain data integrity
Co-Authored-By: [email protected] <[email protected] >
* test: convert to integration tests for getWhereForTeamOrAllTeams function
Co-Authored-By: [email protected] <[email protected] >
* chore: remove integration test file
Co-Authored-By: [email protected] <[email protected] >
* test: reorganize tests with proper describe blocks
Co-Authored-By: [email protected] <[email protected] >
* test: move test file to __tests__ directory
Co-Authored-By: [email protected] <[email protected] >
* test: update import path for routing-events in test file
Co-Authored-By: [email protected] <[email protected] >
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected] >
Co-authored-by: Eunjae Lee <[email protected] >
2025-05-16 08:19:17 +00:00
8889e8566c
fix: eventType filter on /insights and add unit tests for buildBaseWhereCondition ( #21154 )
...
* test: Add unit tests for buildBaseWhereCondition function
Co-Authored-By: [email protected] <[email protected] >
* refactor: Export buildBaseWhereCondition function instead of copying it
Co-Authored-By: [email protected] <[email protected] >
* refactor: Remove implementation detail checks from tests
Co-Authored-By: [email protected] <[email protected] >
* test: Fix tests to match actual function behavior
Co-Authored-By: [email protected] <[email protected] >
* test: Fix test issues with buildBaseWhereCondition
Co-Authored-By: [email protected] <[email protected] >
* test: Update tests to match actual function behavior
Co-Authored-By: [email protected] <[email protected] >
* fix: Address security issues in buildBaseWhereCondition function
Co-Authored-By: [email protected] <[email protected] >
* refactor: Simplify buildBaseWhereCondition function
Co-Authored-By: [email protected] <[email protected] >
* refactor: Simplify code and remove isEmptyResponse property
Co-Authored-By: [email protected] <[email protected] >
* refactor: Use array of conditions approach for buildBaseWhereCondition
Co-Authored-By: [email protected] <[email protected] >
* refactor: Make buildBaseWhereCondition implementation consistent and update tests
Co-Authored-By: [email protected] <[email protected] >
* fix: Fix incorrect usage of buildBaseWhereCondition function
Co-Authored-By: [email protected] <[email protected] >
* chore: Revert yarn.lock changes
Co-Authored-By: [email protected] <[email protected] >
* fix: Comment out non-existent Sentry API method to fix type error
Co-Authored-By: [email protected] <[email protected] >
* Revert "fix: Comment out non-existent Sentry API method to fix type error"
This reverts commit 44c21a7396a518c63047b33967cd8af7e6e4f268.
* remove unnecessary if-statement
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected] >
Co-authored-by: Eunjae Lee <[email protected] >
2025-05-16 10:10:57 +02:00
Eunjae Lee
99dc5837f5
revert: "fix: eventType filter on /insights ( #20823 )" ( #21059 )
...
This reverts commit 45904c07bc .
2025-05-01 15:51:49 +00:00
e29f6af540
feat(insights): add progress indicator to download button on /insights and /insights/routing (CAL-5408) ( #20631 )
...
* feat(insights): add progress indicator to routing form responses download button (CAL-5408)
Co-Authored-By: [email protected] <[email protected] >
* fix: address PR feedback - remove initial progress update and ensure no decimal parts in percentage
Co-Authored-By: [email protected] <[email protected] >
* feat(insights): add progress indicator to Download component
Co-Authored-By: [email protected] <[email protected] >
* feat: paginate rawData endpoint and implement batch fetching in Download component
Co-Authored-By: [email protected] <[email protected] >
* refactor: simplify pagination logic in trpc-router.ts
Co-Authored-By: [email protected] <[email protected] >
* show progress on tooltip
* fix download for /insights
* fix download when there is no data
* feat: replace tooltip progress indicator with toast notification
Co-Authored-By: [email protected] <[email protected] >
* fix: remove duplicate ProgressToast component from showToast.tsx
Co-Authored-By: [email protected] <[email protected] >
* fix: export ProgressToast component from index.ts
Co-Authored-By: [email protected] <[email protected] >
* fix: add missing translation for downloading_data
Co-Authored-By: [email protected] <[email protected] >
* update progress toast implementation
* fix error
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected] >
Co-authored-by: Eunjae Lee <[email protected] >
2025-04-23 15:59:09 +02:00
Eunjae Lee
45904c07bc
fix: eventType filter on /insights ( #20823 )
...
* fix: eventType filter on /insights
* remove log
2025-04-23 13:42:39 +00:00
Vincent Lam and amrit
3834e69100
Added new table under Insights page for most cancelled bookings ( #19858 )
...
- Added new Table componnent
- Added trpc call
- Added locale title
fixed rebase changes
Co-authored-by: amrit <[email protected] >
2025-04-04 11:49:49 +05:30
Eunjae Lee
f039e116d7
fix: eventTypeId filter on Download at /insights ( #20463 )
...
* fix: eventTypeId filter on Download at /insights
* show toast for error
2025-03-31 22:00:15 +00:00
Eunjae Lee and Alex van Andel
88961a1c67
fix: attribute filters on organization member list ( #20380 )
...
* fix: attribute filters on organization member list
* fix total count
* add tests
---------
Co-authored-by: Alex van Andel <[email protected] >
2025-03-27 14:36:47 +01:00
Eunjae Lee
f699fd1732
fix: add UID filter to /insights/routing ( #20356 )
2025-03-26 09:52:40 +00:00
0968fc56eb
feat: add utm tracking on booking ( #19965 )
...
* add tracking to booking + pass to handleNewBooking
* save tracking to booking
* return undefined if no utm params
* add test for handleNewBooking
* fix type error in test
* refactor code
* code clean up
* code clean up
* add missing import
* fix type import
* add utm params to insights (#20063 )
* add utm params to insights
* remove duplicates
* remove duplicate columns
---------
Co-authored-by: CarinaWolli <[email protected] >
---------
Co-authored-by: CarinaWolli <[email protected] >
Co-authored-by: Omar López <[email protected] >
2025-03-14 08:21:55 -07:00
f8aa2701b6
fix: add booking uid and link to insights routing downloads ( #20007 )
...
* fix: add booking uid and link to insights routing downloads
* minor change
---------
Co-authored-by: Tushar Bhatt <[email protected] >
Co-authored-by: Benny Joo <[email protected] >
2025-03-13 14:11:02 -04:00
Eunjae Lee
eafb61f515
fix: apply standard pagination to /insights/routing ( #19950 )
...
* fix: apply standard pagination to /insights/routing
* fix type error
* max limit
2025-03-11 16:51:11 +00:00
Alex van Andel
07accf700e
refactor: Enabling typescript 5.3.3 in @calcom/trpc ( #19394 )
...
* Refactors related to enabling typescript 5.3.3 in @calcom/trpc
* Also skip respective tests (obviously logic is broken)
* This causes problems for some reason, revert
* Bring back QueryCell as it's used by atoms
2025-02-21 13:22:31 +00:00
luzpaz
197a7ba6e9
fix: typos in packages/features ( #19220 )
...
Found via `codespell -q 3 -S "*.svg,./apps/web/public/static/locales,./packages/app-store/stripepayment/lib/currencyOptions.ts,./packages/lib/freeEmailDomainCheck/freeEmailDomains.ts" -L afterall,atleast,datea,fo,incase,ist,nam,notin,optionel,perview,reccuring`
Closes #19219
2025-02-21 05:14:57 -03:00
Syed Ali Shahbaz
8ada940dc7
hotfix ( #19266 )
2025-02-12 19:16:52 +00:00
Eunjae Lee and Benny Joo
720136fcf9
fix: replace filter implementations on /insights ( #19033 )
...
* fix: replace filter implementations on /insights
* add authorization for teamIds
* replace all the implementations
* provide eventTypeId
* remove log
* fix teamId for isAll
* fix Download button
* remove legacy implementations
* clean up
* nullish check
* remove unusable filters
* revert style
* fix type error
* fix e2e test
* fix type error
* fix type error
* fix e2e
* extract util method
* fix type error
* fix type error
* fix type error
---------
Co-authored-by: Benny Joo <[email protected] >
2025-02-10 20:28:48 +01:00
Lauris Skraucis
0b46415856
feat: track who updated routing form ( #19079 )
...
* chore: updatedBy App_RoutingForms_Form schema field
* feat: track who updated routing form
2025-02-06 11:52:53 -03:00
Eunjae Lee
ab96707a0e
fix: clean up fields columns on /insights/routing ( #19062 )
...
* fix: clean up fields columns on /insights/routing
* remove duplicates
* move implementation to the backend
2025-02-03 21:13:28 +00:00
Eunjae Lee
7bbacca32a
chore: remove dead code regarding insights ( #19022 )
2025-01-31 19:23:40 +01:00
Eunjae Lee
fdc8e084ea
fix: stats on /insights/routing ( #18985 )
...
* fix: replace filter implementation on /insights/routing
* remove unused functions
* fix type error
* refactor: extract insights parameters
* remove FiltersProvider
2025-01-31 17:16:53 +01:00
Carina Wollendorfer and CarinaWolli
fa82ecd2a5
fix: admin should see all routing forms (Router position) ( #18931 )
...
Co-authored-by: CarinaWolli <[email protected] >
2025-01-28 17:29:44 +00:00
Eunjae Lee
61a2a3ef5a
chore: clean up ColumnFilterType ( #18915 )
2025-01-27 17:13:10 +01:00
Eunjae Lee
b234b16ad0
fix: convert People filter on /insights/routing from single select to multi select ( #18735 )
2025-01-24 17:15:49 +00:00
Eunjae Lee and Benny Joo
d5e633b481
fix: re-implement filter components in /insights/routing ( #18655 )
...
* fix: re-implement team filter & people filter components
* implement DateRangeFilter
* show selected filter values
---------
Co-authored-by: Benny Joo <[email protected] >
2025-01-24 17:38:48 +01:00
sean-brydon
0f47528ba2
fix: parsing teamId ( #18623 )
2025-01-13 12:16:59 +00:00
Eunjae Lee
a67b57b216
feat: server side sorting for insights routing ( #18113 )
...
* feat: server side sorting for insights routing
^ Conflicts:
^ packages/prisma/playground.ts
* fix download csv
* fix hooks locations
2025-01-03 10:58:01 +00:00
cfb09a1b21
feat: virtual queues tab in insights ( #18260 )
...
Co-authored-by: CarinaWolli <[email protected] >
Co-authored-by: sean-brydon <[email protected] >
Co-authored-by: sean-brydon <[email protected] >
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: Omar López <[email protected] >
2024-12-23 19:16:38 +00:00
Anik Dhabal Babu
5293a5cc54
fix: column f.userid does not exist ( #18215 )
2024-12-17 08:37:48 +00:00
Alex van Andel
04d7537e2f
perf: improve insights where query and type fix ( #18211 )
...
* perf: insights perf improvement
* removed additional const
2024-12-16 15:50:20 +00:00
Anik Dhabal Babu
1773aba378
fix: fix data expose issue in routing form insights ( #18207 )
2024-12-16 15:30:25 +01:00
Eunjae Lee and sean-brydon
79d488faca
feat: insights filter refactoring ( #18167 )
...
* Reapply "feat: add text & numeric filters to insights routing responses (#18016 )"
This reverts commit 49070b96ae .
* support SINGLE_SELECT
* fix type error
* put back ts-expect-error
* remove playground
---------
Co-authored-by: sean-brydon <[email protected] >
2024-12-16 13:47:28 +00:00
Udit Takkar
b5ab6fe3fa
fix: add no show guest ( #18075 )
...
* fix: add booker no show
* chore: update name
2024-12-13 16:00:17 +00:00
Alex van Andel
49070b96ae
Revert "feat: add text & numeric filters to insights routing responses ( #18016 )"
...
This reverts commit a7e7561efa .
2024-12-12 17:10:49 +00:00
a7e7561efa
feat: add text & numeric filters to insights routing responses ( #18016 )
...
* feat: improve text filters (WIP)
* move function to bottom
* apply some styles
* fix selection of TextFilterOptions
* rename value to operand
* remove unused file
* merge filters/filters into filters/utils
* fix regression of not putting url params correctly
* move makeWhereClause to filters/utils
* fix negative, empty, and not empty operators
* fix initial filtering from search state (url)
* fix type errors
* do not send an empty array to query
* update yarn.lock
* i18n for text filter operators
* extract logic as useColumnFilters()
* add missing import
* fix type error
* revert yarn.lock
* use i18n
* insensitive text match
* move data-table to @calcom/features
* fix type errors
* fix type errors
* fix type errors
* feat: support DataTable filters for Insights Routing WIP
* remove unused filters
* remove additionalFilters and fix types
* clean up filter components
* support icons for ActiveFilters
* support filters on json
* fix filter ui
* fix type error and clean up
* revert changes
* revert change
* clean up
* revert change
* fix compatibility with insights booking page
* remove unused params
* fix type errors
* update yarn.lock
* fix field filter and adjust ui
* chore: update yarn.lock
* fix text filter
* add Clear Filters button
* add more test data
* feat: support numeric filter WIP
* feat: support numeric filter
* feat: move People to an external filter
* fixing query states
* rename state to activeFilters
* add useDataTable
* fix ResponseCellValue bug and enable resizing for RoutingFormResponsesTable
* fix response values
* truncate attribute text
* seed booking attendees
* fix accessor (no actual change though)
* add a gap
* rename
* use pathname as default identifier for DataTable
* fix type error
* support text filter for assignment reason
* Apply suggestions from code review
Co-authored-by: Alex van Andel <[email protected] >
* rename fields to headers
* use safeParse
* fix type error
* push yarn.lock with faker
* fix MemberList
---------
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Alex van Andel <[email protected] >
Co-authored-by: sean-brydon <[email protected] >
2024-12-12 16:06:30 +00:00
sean-brydon
fbe31ad82d
early return if no users are found to prevent prisma error ( #18133 )
2024-12-12 13:37:39 +01:00
Anik Dhabal Babu
dd3505ad8b
fix: Insights team filter behavior ( #18084 )
...
* fix: Insights team filter behavior
* fix type error
2024-12-11 14:43:25 +05:30
sean-brydon
fc6e39c78a
feat: assigned bookings per period ( #17940 )
...
* wip
* bring in users median status for selected range
* merge
* i18n
* routed to talbe period scroll x-y infinite
* insights i18n + hover card on user
* add search by name or email
* wip download button
* fix type error
* type fix
* type errors + status
* type error
2024-12-11 08:12:06 +00:00
Keith Williams
c41ba9d984
revert: "feat: refactor filters on insights response table ( #17796 )" ( #18024 )
...
* revert: "feat: refactor filters on insights response table (#17796 )"
This reverts commit 5d88858995 .
* Put back the search columns and options english terms
2024-12-05 17:29:09 +00:00
Eunjae Lee and Udit Takkar
5d88858995
feat: refactor filters on insights response table ( #17796 )
...
* feat: improve text filters (WIP)
* move function to bottom
* apply some styles
* fix selection of TextFilterOptions
* rename value to operand
* remove unused file
* merge filters/filters into filters/utils
* fix regression of not putting url params correctly
* move makeWhereClause to filters/utils
* fix negative, empty, and not empty operators
* fix initial filtering from search state (url)
* fix type errors
* do not send an empty array to query
* update yarn.lock
* i18n for text filter operators
* extract logic as useColumnFilters()
* add missing import
* fix type error
* revert yarn.lock
* use i18n
* insensitive text match
* move data-table to @calcom/features
* fix type errors
* fix type errors
* fix type errors
* feat: support DataTable filters for Insights Routing WIP
* remove unused filters
* remove additionalFilters and fix types
* clean up filter components
* support icons for ActiveFilters
* support filters on json
* fix filter ui
* fix type error and clean up
* revert changes
* revert change
* clean up
* revert change
* fix compatibility with insights booking page
* remove unused params
* fix type errors
* update yarn.lock
* fix field filter and adjust ui
* chore: update yarn.lock
* fix text filter
* add Clear Filters button
* add more test data
---------
Co-authored-by: Udit Takkar <[email protected] >
2024-12-05 16:32:52 +01:00
sean-brydon
3211c5bcff
fix data loading state ( #18002 )
2024-12-04 15:15:01 +00:00
sean-brydon
982a715c4b
feat: add assignment reason to routing insights ( #17984 )
...
* add assignment reason
* add routing reason to csv export
2024-12-04 12:39:20 +00:00
Vishnu
b33ca2f937
feat: no show guests on insights ( #17919 )
...
* feat: return noShowGuest data from eventsByStatus & eventsTimeline procedures
* feat: add noShowGuest Data in BookingKPICards
* feat: add noShowGuest Data in BookingStatusLineChart
* feat: track noShowGuests in outer query
* chore: fix noShowGuest naming
2024-12-02 18:53:32 +00:00
sean-brydon and Joe Au-Yeung
7ce5886b4f
feat: insights routing forms ( #17583 )
...
Co-authored-by: Joe Au-Yeung <[email protected] >
2024-11-15 14:54:51 -05:00
Benny Joo
803fc488c5
feat: Add feature to download routing form reports ( #17400 )
...
* remove unused code
* add i18n for some strings in widget
* improve UI and add download button to routing forms reporting page
* add more margin
* add downloadAsCsv util
* integrate download button to routing forms report
* refactor
* address comment
* escape comma multiselect items
* fix
* preserve new lines and wrapping
* refactor
* ensure fetching all rows
2024-11-05 11:21:13 -05:00
Syed Ali Shahbaz
c3d56f736a
fix: insights event timeline perf and accuracy ( #17218 )
...
* aggregate multiple calls to one for events timeline
* raw query
* fix inside wrong val
* fix timeline view entirely
* fix avg event duration
* fix timeline
* type-fix
* fixes
* remove unnecessary comments
2024-10-24 17:46:28 +00:00
Benny Joo
d53cabd163
chore: improve perf for fetching bookings in insights ( #17281 )
2024-10-24 04:17:38 +00:00
Benny Joo
4021801698
feat: attach booker name/email to insights CSV ( #17280 )
2024-10-23 22:55:11 +00:00
Syed Ali Shahbaz and Udit Takkar
38fa0fae1d
fix: insights UI/UX ( #16610 )
...
* remove old code remnant
* -
* WIP
* type change
* --
* typefix
* fix type
* fix type
* change type name
* add basewhere to eventsByStatus
* add basewhere to the rest
* fix rendering null popular event list item
* URL params for start and endtime to have YYYY-MM-DD format
* remove console log
* resolve suggestion
---------
Co-authored-by: Udit Takkar <[email protected] >
2024-09-27 03:36:32 +00:00
Keith Williams
82053e0c7c
perf: Include no shows in main status query ( #16594 )
...
* perf: Include no shows in main status query
* Removed the Promise.all call
2024-09-11 14:16:46 +00:00
Keith Williams
be9b0fb9a8
perf: Insights - put teamId filter first ( #16581 )
2024-09-10 19:40:19 +00:00