Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄 Add a custom video call in one click when no provider is offered
Luke Vella2d346dce1217
diff --git a/apps/web/src/features/poll/components/forms/poll-details-form.tsx b/apps/web/src/features/poll/components/forms/poll-details-form.tsxindex aff826e34..9df852eb4 100644--- a/apps/web/src/features/poll/components/forms/poll-details-form.tsx+++ b/apps/web/src/features/poll/components/forms/poll-details-form.tsx@@ -124,7 +124,24 @@ export const PollDetailsForm = ({<Trans i18nKey="addLocation" defaults="Add location" /></Button>) : null}- {canAddVideoCall ? (+ {canAddVideoCall && conferencing.available.length === 0 ? (+ // With no provider offered the menu would hold one item, so the+ // button adds the pasted link directly. The button unmounts, so+ // focus moves to the call's name once that field renders.+ <Button+ type="button"+ className="rounded-full"+ onClick={() => {+ form.setValue("conferencingProvider", "custom", {+ shouldDirty: true,+ });+ requestAnimationFrame(() => form.setFocus("conferencingLabel"));+ }}+ >+ <PlusIcon data-icon="inline-start" />+ <Trans i18nKey="addVideoCall" defaults="Add video call" />+ </Button>+ ) : canAddVideoCall ? (<DropdownMenu><DropdownMenuTrigger render={<Button type="button" />}><PlusIcon data-icon="inline-start" />