From c8ef0b9d4b2ee15cadb2404f80f4df6c577308c0 Mon Sep 17 00:00:00 2001 From: Nikhil Kothari Date: Sat, 17 Aug 2024 20:28:05 +0530 Subject: [PATCH 1/2] feat: start Google Meet via events from a channel --- .../components/common/LinkField/LinkField.tsx | 22 ++- .../feature/chat-header/ChannelHeaderMenu.tsx | 16 +- .../Renderers/TiptapRenderer/Link.tsx | 91 ++++----- .../meetings/CreateMeetingDialog.tsx | 44 +++++ .../meetings/CreateMeetingForm.tsx | 180 ++++++++++++++++++ raven/api/events.py | 109 +++++++++++ raven/api/raven_message.py | 2 +- 7 files changed, 411 insertions(+), 53 deletions(-) create mode 100644 frontend/src/components/feature/integrations/meetings/CreateMeetingDialog.tsx create mode 100644 frontend/src/components/feature/integrations/meetings/CreateMeetingForm.tsx create mode 100644 raven/api/events.py diff --git a/frontend/src/components/common/LinkField/LinkField.tsx b/frontend/src/components/common/LinkField/LinkField.tsx index 10828203c..34d3837ee 100644 --- a/frontend/src/components/common/LinkField/LinkField.tsx +++ b/frontend/src/components/common/LinkField/LinkField.tsx @@ -16,11 +16,13 @@ export interface LinkFieldProps { value: string, setValue: (value: string) => void, disabled?: boolean, - autofocus?: boolean + autofocus?: boolean, + dropdownClass?: string, + required?: boolean, } -const LinkField = ({ doctype, filters, label, placeholder, value, setValue, disabled, autofocus }: LinkFieldProps) => { +const LinkField = ({ doctype, filters, label, placeholder, value, required, setValue, disabled, autofocus, dropdownClass }: LinkFieldProps) => { const [searchText, setSearchText] = useState('') @@ -53,9 +55,11 @@ const LinkField = ({ doctype, filters, label, placeholder, value, setValue, disa }, }) + console.log(isOpen) + return
-
-