-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: org-wide workflows #15083
Draft
CarinaWolli
wants to merge
152
commits into
main
Choose a base branch
from
feat/org-wide-workflows
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,617
−1,325
Draft
feat: org-wide workflows #15083
Changes from 148 commits
Commits
Show all changes
152 commits
Select commit
Hold shift + click to select a range
8e15673
add org to create workflow button
03d1aa0
add save button for testing in dev mode
333f7f6
add select all to multi select dropdown
35e1bb6
fix select all
70bd85e
Merge branch 'main' into feat/org-wide-workflows
baec108
pass isOrg to WorkflowDetailsPage
2a35068
add checkbox to apply to all including future
65520de
fix count text on select
01484b4
WIP schema
4986700
Merge branch 'main' into feat/org-wide-workflows
b55440b
shows teams in dropdown
9a195c6
add team option to UI
a400c2b
[WIP] refactor for update handler
f3a1095
Merge branch 'main' into feat/org-wide-workflows
8780c4c
filter out "all" from activeOn
3716e46
fix type error
51f5484
create more helper functions
297a76d
create reusable function for scheduling all booking reminders
24f1160
finish update workflows for orgs (without testing)
04530ac
fix isAuthorized check for orgs
515eb2b
fix getting newActiveOn
12d4808
move all helper functions to util file
91d84c0
more code clean up
349f62f
fix deleting reminders for org workflows
3de7180
fix adding and editing steps
68ab037
update form data when workflow is saved
1a384f7
Merge branch 'main' into feat/org-wide-workflows
1c68170
code clean up
d9594f3
fixing creating/deleting reminders when user is member of several teams
fdb796b
fix setting activeOn for teams in useffect
399453f
Merge branch 'main' into feat/org-wide-workflows
675e2db
add on delete cascade
e566617
make multiSelectSchenbox searchable
7ec0e8e
set activeOn correctly when checkbox true
9a37979
WIP
8bcd0c4
Merge branch 'main' into feat/org-wide-workflows
f203a59
fix type errors in MultiSelectCheckboxes
54101c8
implemented scheduling org-wide workfow notifications (not yet tested)
cc0bd36
fix type errors
414eff3
type error
81d0fcd
Merge branch 'main' into feat/org-wide-workflows
b4cbc30
add missing changes from merge conflict
7cb6d63
Merge branch 'main' into feat/org-wide-workflows
2001aca
remote not needed include statement
4b75691
fix type errors
3b46270
code clean up + some todo comments
7680906
support org workflows for cancelled workflows
efaa7fe
delete reminders from removed members
6dd74e6
remove reminders if isActiveOnAll is turned off
b6c2ca7
Merge branch 'main' into feat/org-wide-workflows
7daad6f
fix unti test and type error
a0c309e
code clean up
f9646d7
create basis for testing to book org team event
c43077e
create org workflow with active team
ad21de4
fix getting active org workflows on team + test setup
07bc432
fix creating workflow step for tests
f31dbf6
fix first org test
96d9fd6
add test for user event type with org workflow active
5fb3e6f
use deleteAllWorkflowReminders everywhere
f3327f7
add test for deleteRemindersFromRemovedActiveOn
802a43a
Merge branch 'main' into feat/org-wide-workflows
9e1a48c
fix type errors
7ebda27
make all tests pass
38a66ce
fix type error
76ba65f
fix getSchedule test
43dd3bd
code clean up
cfe6d11
add missing import
7145de3
fix type error
7eb6caa
fix tests
4de817d
code clean up
3de7157
Merge branch 'main' into feat/org-wide-workflows
8c6653c
fix imports
8976e94
Merge branch 'main' into feat/org-wide-workflows
1b00ff7
update reminders when trigger was changed
890d476
check for teamId before userId in reminderScheduler
218ed3d
Merge branch 'main' into feat/org-wide-workflows
af3b9e6
move getOrgIdFromMemberOrTeamId to different folder
79b2666
code clean up
87fe6f5
fix tests
700a5e6
test setup for scheduleBookingReminders
f512ad5
fix typo
b5546d6
Merge branch 'main' into feat/org-wide-workflows
CarinaWolli 48ca813
add tests for scheduleBookingReminders
afd07bc
fix prisma default import
76ae430
fix workflowStep type
3fdacd4
add scheduleBookingReminders test for sms
12072db
return dummy sid for scheduleSMS testMode
cec11c5
Merge branch 'main' into feat/org-wide-workflows
c01fa1c
clean up + fixes
7b489c7
Merge branch 'main' into feat/org-wide-workflows
4a1a1a3
add lost changes from merge
74099d5
get teamId and userId from incoming evt object
b1aa38b
removing not needed select
8aedb5f
add org support for scheduleMandatory email reminder
d976d2c
add other teams to dropdown
894b151
move getAllWorkflows to seperate file and call it in parent function
5199363
include org wide workflows in createNewSeat
2720d31
some fixes + code clean up
8a7c377
add new team to select text count when including future teams is checked
c26fcb2
fix upsert and remove sms reminder field
2abe109
correctly update activeOn if 'including future ...' is enabled
7ae2ee4
list active Org workflows in event workflows settings
c346e8a
fix sms reminder field in all handlers
f021aa6
add helper function to check if step was edited
ff49acc
fix active on badge on workflow
d64857a
fix type error
db7eb2f
fix double reminders
8fa622c
Merge branch 'main' into feat/org-wide-workflows
cd4f3fc
add teamId: null for userWorkflow query
74c9809
fix activeOnAll with managed event types
9d1b3b8
add missing teamId in getAllWorkflows
1f865e6
add a dafaut to prisma param
8698d92
fix managed event types on select all user workflows
7268fef
code clean up
d8436ea
Merge branch 'main' into feat/org-wide-workflows
77af1dc
better variable name
ec27c9c
small fixes in update handler
f661e6a
Merge branch 'main' into feat/org-wide-workflows
5c7e7b6
fix test name to match function name
809313b
add info badge
303798e
fix workflow count in event type settings
8a45ef0
fix getting bookings from children manged event types
db0e126
delete reminders when user is not part of any time no more
56e7a51
Merge branch 'main' into feat/org-wide-workflows
24ce376
implement feedback
a6f2cd4
fix disbale workflow in event type settings
9b8467d
fix remove member
6ff11a7
create new function getAllWorkflowsFromEventType
db73d86
add some removed code
7bd03da
use promise.allSettled when deleting workflow reminders
2581f97
create new function deleteWorkflowRemindersOfRemovedMember.ts
b163a40
fix userId param
3371a18
delete org worklfows when team is disbanded
77150ac
don't trigger active on all workflow if not part of any team
240b21a
fix active on count badge
2ce9c36
add test for deleteWorkflowRemidnersOfRemovedMember
11e3313
trigger workflow also if not member of any subteam
da7f4ce
fix failing test
a11b491
Merge branch 'main' into feat/org-wide-workflows
hariombalhara 1fee74d
Merge branch 'main' into feat/org-wide-workflows
b52e568
remove unused code
a1c607a
use testId for go back button
43cc771
fixes for managed event types & activateEventTypeHandler
1f5745e
code clean up
73e79a4
don't activate workflow on locked managed event type
787ea5c
fix type error
5fb8797
type error
c5b8ad8
more type fixes
ea0a8d8
feedback
1e79f55
Merge branch 'main' into feat/org-wide-workflows
CarinaWolli acf15f3
Merge branch 'main' into feat/org-wide-workflows
keithwillcode b3cef50
Merge branch 'main' into feat/org-wide-workflows
Udit-takkar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use all active workflows here, not just eventType.workflows
Before we missed workflows that have
isActiveOnAll
enabled and weren't in activeOn