Commit graph

781 commits

Author SHA1 Message Date
Omar López
b6518b9ce1
Fixes cancel booking page () 2021-12-13 23:10:10 +00:00
Omar López
3587e1ac9c
Uses vercel url on integration endpoints for staging ()
* Legibility and base url fixes

* Uses vercel url on integration endpoints for staging

* We validate the user before creating credentials
2021-12-10 21:14:54 +00:00
Jamie Pine
c1d90eb438
Improvement/teams ()
* [WIP] checkpoint before pull & merge

- Added teams to sidebar
- Refactored team settings
- Improved team list UI

This code will be partly reverted next commit.

* [WIP]
- Moved team code back to components
- Removed team link from sidebar
- Built new team manager screen based on Event Type designs
- Component-ized frequently reused code (SettingInputContainer, FlatIconButton)

* [WIP]
- Created LinkIconButton as standalone component
- Added functionality to sidebar of team settings
- Fixed type bug on public team page induced by my normalization of members array in team query
- Removed teams-old which was kept as refrence
- Cleaned up loose ends

* [WIP]
- added create team model
- fixed profile missing label due to my removal of default label from component

* [WIP]
- Fixed TeamCreateModal trigger
- removed TeamShell, it didn't make the cut
- added getPlaceHolderAvatar
- renamed TeamCreate to TeamCreateModal
- removed deprecated UsernameInput and replaced uses with suggested TextField

* fix save button

* [WIP]
- Fixed drop down actions on team list
- Cleaned up state updates

* [WIP] converting teams to tRPC

* [WIP] Finished refactor to tRPC

* [WIP] Finishing touches

* [WIP] Team availability beginning

* team availability mvp

* - added validation to change role
- modified layout of team availability
- corrected types

* fix ui issue on team availability screen

* - added virtualization to team availability
- added flexChildrenContainer boolean to Shell to allow for flex on children

* availability style fix

* removed hard coded team type as teams now use inferred type from tRPC

* Removed unneeded vscode settings

* Reverted prisma schema

* Fixed migrations

* Removes unused dayjs plugins

* Reverts type regression

* Type fix

* Type fixes

* Type fixes

* Moves team availability code to ee

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
2021-12-09 23:51:30 +00:00
Alex Johansson
850497ea80
add select primary calendar ()
* add primary

* fix

* refactor eventmanager to take `CalendarDestination`

* `DestinationCalendar`

* fix

* wip

* wip

* Minor fixes ()

* Followup for 

* Updates schema

* Renames fields to destinationCalendar

* Migration fixes

* Updates user destination calendar

* Abstracts convertDate to BaseCalendarApiAdapter

* Type fixes

* Uses abstracted convertDate method

* Abstracts getDuration and getAttendees

* Fixes circular dependecy issue

* Adds notEmpty util

* Reverts empty location string

* Fixes property name

* Removes deprecated code

* WIP

* AppleCal is basically CalDav

* Fixes missing destinationCalendar

* Type fixes

* Select primary calendar on Office and gCal

* Adds pretty basic instructions for destination calendar

* Cleanup

* Type fix

* Test fixes

* Updates test snapshot

* Local test fixes

* Type fixes

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-09 15:51:37 +00:00
Nathan
1890d5daf7
Update event.ts () 2021-12-09 12:25:38 +00:00
Alex van Andel
878c8b8248
Reversed order of custom inputs & notes () 2021-12-07 21:05:29 +00:00
Bill Gale
db7711869f
fix: add team bio to public page () 2021-12-07 16:11:43 +00:00
Joel Lu
c43e6783a7
Fix: duplicate team name no prompt ()
* Fix: duplicate team name no prompt

* Fix syntax error for error message
2021-12-07 15:04:34 +00:00
Rory Hughes
c109ab1e30
Ensure credential objects come oldest first ()
Given the credentials are loaded based on userId, sort is not consistent.
Without this, events are booked on whichever calendar credential is loaded first. 
813eaa83b7/lib/events/EventManager.ts (L240-L244)

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-12-06 13:25:22 +00:00
Peer Richelsen
e8af9110a7
fixed border color of daily video () 2021-12-06 09:49:56 +00:00
Alex van Andel
22aa083883
Adds eventTypeId as a parameter () 2021-12-03 16:18:31 +00:00
Alex van Andel
8c1b69cc0f
Feature/field prefills ()
* Needs more testing, but looks functional

* Add metadata feature to booking create payload

* Forward URL parameters given in link

* Moved stringifying of custom inputs to backend
2021-12-03 10:15:20 +00:00
Peer Richelsen
8d1d3fcc7a
fixed subtitle for event-types () 2021-12-02 22:32:38 +00:00
Peer Richelsen
813eaa83b7
minor design changes to tablet navigation () 2021-12-02 09:52:59 +00:00
Syed Ali Shahbaz
ec2d0a89ba
Bugfix/event types buggy view on tablet () 2021-12-01 14:56:25 +00:00
Flemming
5773d064c2
Prevent user form entering negative numbers into event duration ()
* Add Docker Compose as requirement to run the quick start

* Add basic frontend validation/needs for event duration

* Only add min prop to the duration field

* Don't allow negative value for the event buffer time

* Increase min duration of a event type

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-11-30 19:18:28 +00:00
Syed Ali Shahbaz
529f3027cd
replaced btn-primary, btn-secondary, btn-white with respective Button equivalents ()
* replaced btn primary, secondary, white with Button

* removed unused Link var

* replaced <button> in settings/security

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
2021-11-29 06:37:31 +00:00
Peer Richelsen
20cbab1c15
fixed edit icon for event-type details () 2021-11-28 08:54:45 +00:00
Mihai C
8322e5c8d1
Emails Revamp ()
* refactor: emails (WIP)

* wip

* wip

* refactor: calendarClient

* chore: remove comment

* feat: new templates

* feat: more templates (wip)

* feat: email templates wip

* feat: email templates wip

* feat: prepare for testing

* For testing stripe integration

* Uses imported BASE_URL

* Fixes types

* use BASE_URL

Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-11-26 11:03:43 +00:00
Alex van Andel
396355e350
Call setSelectedTimeZone as we don't want to refactor Scheduler ()
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-11-25 16:03:37 +00:00
Syed Ali Shahbaz
d8b3c42c28
Improvement/cal 639 turn edit location dialog into radix uu ()
* replaced disclosure with collapsible

* added radix radio-group

* removed radix-UI radio group

* more fix

* --WIP

* --WIP

* react-hook-formify --WIP

* radix ui radio replaces headless ui radio

* further fixes --WIP

* --WIP

* form handling and availability wrapping

* minuteField fix

* availability fix

* fixed react-select menu overflow in dialog

* --WIP

* added default value for custom inputs

* fixed locations

* fixed daterangepicker

* fixed team eventType

* basic cleanup --wip

* fixed locations removal bug

* removed old locations state remnants

* some cleanup --wip

* rebase conflict resolution

* removed debug rem and fixed radio text size

* further requested changes

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Omar López <zomars@me.com>
2021-11-24 10:07:49 -07:00
Alex Johansson
644b0f1b0e
re-enable batching ()
This reverts commit 58f55f84e2. /  
2021-11-24 11:45:09 +00:00
Alex Johansson
deb97fdab0
get rid of circular references in viewer.eventTypes () 2021-11-24 10:42:55 +00:00
Alex Johansson
58f55f84e2
temporarily disable batching () 2021-11-24 09:53:03 +00:00
Alex van Andel
5b3dd02747
Webhook tweaks + Support added for "Custom payload templates" / x-www-form-urlencoded / json ()
* Changed styling of webhook test & updated <Form> component

* Implements custom webhook formats

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-11-22 11:37:07 +00:00
Alex van Andel
d6dd13a9d8
Updated team to also use getWorkingHours () 2021-11-18 10:20:48 +00:00
Alex van Andel
e0d1b6b5ea
Working availability Schedule for every timezone (few things TODO) () 2021-11-18 03:29:36 +00:00
Alex van Andel
ffdf0b9217
Fixes user availability to be contextual to the user timezone ()
* WIP, WIP, WIP, WIP

* Adds missing types

* Type fixes for useSlots

* Type fixes

* Fixes periodType 500 error when updating

* Adds missing dayjs plugin and type fixes

* An attempt was made to fix tests

* Save work in progress

* Added UTC overflow to days

* Update lib/availability.ts

Co-authored-by: Alex Johansson <alexander@n1s.se>

* No more magic numbers

* Fixed slots.test & added getWorkingHours.test

* Tests pass, simpler logic, profit?

* Timezone shifting!

* Forgot to unskip tests

* Updated the user page

* Added American seed user, some fixes

* tmp fix so to continue testing availability

* Removed timeZone parameter, fix defaultValue auto-scroll

Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Alex Johansson <alexander@n1s.se>
2021-11-18 01:03:19 +00:00
Alex Johansson
f3c95fa3de
fix i18n flicker on auth pages ()
* fix flicker on `/auth/login`

* fix flicker on logout

* fix flicker on error

* fix i18n flicker on signup
2021-11-16 18:12:08 +01:00
Syed Ali Shahbaz
4e01b13133
Feature/cal 677 brand color in settingsprofile ()
* added CSS variable --brand-color

* added CustomBranding component

* prisma update for brand color

* added brandcolor to user context in viewer.me

* conflict resolution

* added brandColor input and mutation

* custom brand color to availability

* brandColor added to BookingPage

* fixed availability, booking for team and added customBranding to success

* brandColor added to cancel/uid

* requested changes

* lint fix

* further changes

* lint fix
2021-11-16 14:21:46 +05:30
Alex Johansson
0a34512e3b
availability timezone fix () 2021-11-15 20:32:10 +00:00
Alex Johansson
11269229ae
add happy path test for booking an event () 2021-11-15 15:03:04 +00:00
Bailey Pumfleet
6b171a6f87
Manually reorder event types ()
* Add event type reordering

* Add migration for position field

* hack on a hack

* can edit

* fix ordering

* Remove console.log

Co-authored-by: Alex Johansson <alexander@n1s.se>

Co-authored-by: KATT <alexander@n1s.se>
2021-11-15 12:25:49 +00:00
Alex van Andel
fd2adae10f
Tweak my-4 to mb-4 ()
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-11-13 09:53:01 +00:00
Alex van Andel
bf659c0b16
Fixed - Teams user registration is broken ()
* Fixed  - Teams user registration is broken

* Type fixes for avilability form in onboarding

* Re adds missing strings

* Updates user availability in one query

Tested and working correctly

* Fixes seeder and tests

Co-authored-by: Omar López <zomars@me.com>
2021-11-11 05:44:53 +00:00
Ciarán Hanrahan
16fba702fb
typography fixes () 2021-11-10 23:18:39 +00:00
Alex van Andel
8664d217c9
Feature/availability page revamp ()
* Refactored Schedule component

* Merge branch 'main' into feature/availability-page-revamp

* wip

* Turned value into number, many other TS tweaks

* NodeJS 16x works 100% on my local, but out of scope for this already massive PR

* Fixed TS errors in viewer.tsx and schedule/index.ts

* Reverted next.config.js

* Fixed minor remnant from moving types to @lib/types

* schema comment

* some changes to form handling

* add comments

* Turned ConfigType into number; which seems to be the value preferred by tRPC

* Fixed localized time display during onboarding

* Update components/ui/form/Schedule.tsx

Co-authored-by: Alex Johansson <alexander@n1s.se>

* Added showToast to indicate save success

* Converted number to Date, and also always establish time based on current date

* prevent height flickering of availability

by removing mb-2 of input field

* availabilty: re-added mb-2 but added min-height

* Quite a few bugs discovered, but this seems functional

Co-authored-by: KATT <alexander@n1s.se>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-11-10 11:16:32 +00:00
Mihai C
559ccb8ca7
hotfix: zoom location on emails ()
* fix: zoom location on emails

* test: fix

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-11-09 16:27:33 +00:00
Peer Richelsen
55a7cc928f
removed api docs button from integrations () 2021-11-09 10:07:02 +00:00
Peer Richelsen
528c620aa7
fixed dark mode for booking () 2021-11-08 21:57:32 +00:00
Syed Ali Shahbaz
a404ca847c
updated event title message ()
* updated event title message

* 4 arguments replaced by an object

* translations

* requested changes

* further requested changes

* test fix and other minor changes

* lint fix
2021-11-08 16:34:12 +05:30
Peer Richelsen
0ef6d8b452
added key_strings for /integrations () 2021-11-07 15:52:48 +00:00
Mihai C
debef8119e
Rejected bookings should be displayed in cancelled bookings tab ()
* fix: rejected bookings should be displayed in cancelled bookings tab

* fix: add migration to update status of rejected bookings

* unrelated fix

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-11-04 22:24:15 +00:00
Peer Richelsen
773e9ac57e
replaced black color with new brand variable to make styling easier () 2021-11-04 14:30:37 +00:00
Peer Richelsen
401016772e
added missing roboto weights () 2021-11-04 13:56:02 +00:00
Alex Johansson
a002b194da
Fix onboarding OAuth callback glitch () 2021-11-03 10:47:52 +00:00
Syed Ali Shahbaz
4f75b94d88
mobile view improvement added ()
* mobile view improvement added

* improved max-w
2021-11-01 14:25:43 +05:30
Alex van Andel
b7435b5b93
Fixed orphaning team event types () 2021-10-31 10:41:42 +00:00
Alex Johansson
a0c2e57891
suspense follow-up fixes () 2021-10-30 17:03:49 +01:00
Alex Johansson
1790aeb577
refactor /integrations with <Suspense /> ()
* suspense

* iframe embeds

* calendar list container

* rename things as a container

* use list container on onboarding

* fix

* rm code

* newer alpha

* make it work in react 17

* fix

* fix

* make components handle error state through `QueryCell`

* fix constant

* fix type error

* type error

* type fixes

* fix package.lock

* fix webhook invalidate

* fix mt

* fix typo

* pr comment
2021-10-30 15:54:21 +00:00