* feat: Sink url shortner for sms workflow reminders * fix: remove hardcoded dub values * update .env.example * fix: unit tests * chore: add tests for scheduleSmsReminder and utils * review refactor * fix: type check * review refactor * fix: update test to account for smsReminderNumber fallback from main Co-Authored-By: unknown <> * feat: add feature flag for sink and more tests to verify * fix: type check * use proper feature flags for sink * Apply suggestion from @keithwillcode --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Keith Williams <keithwillcode@gmail.com>
53 lines
1.4 KiB
TypeScript
53 lines
1.4 KiB
TypeScript
import type { AppFlags } from "@calcom/features/flags/config";
|
|
import { trpc } from "@calcom/trpc/react";
|
|
|
|
const initialData: AppFlags = {
|
|
organizations: false,
|
|
teams: false,
|
|
"calendar-cache": false,
|
|
"calendar-cache-serve": false,
|
|
emails: false,
|
|
insights: false,
|
|
webhooks: false,
|
|
workflows: false,
|
|
"email-verification": false,
|
|
"google-workspace-directory": false,
|
|
"disable-signup": false,
|
|
attributes: false,
|
|
"organizer-request-email-v2": false,
|
|
"delegation-credential": false,
|
|
"salesforce-crm-tasker": false,
|
|
"workflow-smtp-emails": false,
|
|
"cal-video-log-in-overlay": false,
|
|
"use-api-v2-for-team-slots": false,
|
|
pbac: false,
|
|
"restriction-schedule": false,
|
|
"team-booking-page-cache": false,
|
|
"cal-ai-voice-agents": false,
|
|
"tiered-support-chat": false,
|
|
"calendar-subscription-cache": false,
|
|
"calendar-subscription-sync": false,
|
|
"onboarding-v3": false,
|
|
"booker-botid": false,
|
|
"booking-calendar-view": false,
|
|
"booking-email-sms-tasker": false,
|
|
"bookings-v3": false,
|
|
"booking-audit": false,
|
|
"monthly-proration": false,
|
|
"hwm-seating": false,
|
|
"active-user-billing": false,
|
|
"sidebar-tips": false,
|
|
"signup-watchlist-review": false,
|
|
"sink-shortener": false,
|
|
};
|
|
|
|
if (process.env.NEXT_PUBLIC_IS_E2E) {
|
|
initialData.organizations = true;
|
|
initialData.teams = true;
|
|
}
|
|
|
|
export function useFlags(): Partial<AppFlags> {
|
|
const query = trpc.viewer.features.map.useQuery();
|
|
return query.data ?? initialData;
|
|
}
|