feat: routing v3 design (#20607)
Co-authored-by: Sean Brydon <[email protected]> Co-authored-by: Eunjae Lee <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
35 files changed
+3018
-1886
No files matched your search
@@ -47,15 +47,16 @@ const ServerPage = async ({ params, searchParams }: ServerPageProps) => {
|
||||
</FormProvider>
|
||||
);
|
||||
|
||||
if (mainPage === "routing-link") {
|
||||
return <FinalComponent />;
|
||||
// TODO: we should really be using layout for this.
|
||||
if (mainPage === "forms") {
|
||||
return (
|
||||
<Shell withoutMain>
|
||||
<FinalComponent />
|
||||
</Shell>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Shell withoutMain>
|
||||
<FinalComponent />
|
||||
</Shell>
|
||||
);
|
||||
return <FinalComponent />;
|
||||
};
|
||||
|
||||
export default ServerPage;
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { PageProps } from "app/_types";
|
||||
import { notFound } from "next/navigation";
|
||||
import { z } from "zod";
|
||||
|
||||
// import { cookies, headers } from "next/headers";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useState } from "react";
|
||||
|
||||
import { TestForm } from "@calcom/app-store/routing-forms/components/SingleForm";
|
||||
import { TestForm } from "@calcom/app-store/routing-forms/components/_components/TestForm";
|
||||
import type { RoutingForm } from "@calcom/app-store/routing-forms/types/types";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { trpc } from "@calcom/trpc";
|
||||
@@ -40,7 +40,12 @@ export default function InsightsVirtualQueuesPage() {
|
||||
/>
|
||||
<div className="mt-10">
|
||||
{selectedForm ? (
|
||||
<TestForm form={selectedForm} supportsTeamMembersMatchingLogic={true} showAllData={false} />
|
||||
<TestForm
|
||||
form={selectedForm}
|
||||
supportsTeamMembersMatchingLogic={true}
|
||||
showAllData={false}
|
||||
isDialog
|
||||
/>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
|
||||
@@ -239,7 +239,8 @@ export async function gotoRoutingLink({
|
||||
let previewLink = null;
|
||||
if (!formId) {
|
||||
// Instead of clicking on the preview link, we are going to the preview link directly because the earlier opens a new tab which is a bit difficult to manage with Playwright
|
||||
const href = await page.locator('[data-testid="form-action-preview"]').getAttribute("href");
|
||||
await page.locator('[data-testid="preview-button"]').click();
|
||||
const href = await page.locator('[data-testid="open-form-in-new-tab"]').getAttribute("href");
|
||||
if (!href) {
|
||||
throw new Error("Preview link not found");
|
||||
}
|
||||
|
||||
@@ -1635,6 +1635,7 @@
|
||||
"add_new_team_form": "Add new form to your team",
|
||||
"create_your_first_route": "Create your first route",
|
||||
"route_to_the_right_person": "Route to the right person based on the answers to your form",
|
||||
"form": "Form",
|
||||
"form_description": "Create your form to route a booker",
|
||||
"copy_link_to_form": "Copy link to form",
|
||||
"theme": "Booking page theme",
|
||||
@@ -2966,6 +2967,7 @@
|
||||
"shortfall": "Shortfall",
|
||||
"routing_form": "Routing Form",
|
||||
"go_back_and_save": "Go back and save",
|
||||
"save_changes":"Save changes",
|
||||
"leave_without_saving": "Leave without saving",
|
||||
"leave_without_saving_description": "Are you sure you want to leave without saving changes to your routing form?",
|
||||
"something_unexpected_occurred": "Something unexpected occurred",
|
||||
@@ -3133,6 +3135,9 @@
|
||||
"resend_in_seconds": "Resend in {{seconds}} seconds",
|
||||
"resend": "Resend",
|
||||
"verification_email_sent": "Verification email sent",
|
||||
"select_all_members": "Select all members",
|
||||
"select_all_members_tooltip":"Selecting all members will add all future team members when they are added to the team.",
|
||||
"form_settings":"Form Settings",
|
||||
"remove_whitelist_status": "Remove whitelist status",
|
||||
"whitelist_user_workflows": "Whitelist user workflows",
|
||||
"user_workflows_whitelisted": "User workflows whitelisted",
|
||||
@@ -3159,6 +3164,12 @@
|
||||
"skip_trial": "Skip trial period",
|
||||
"team_trials_skipped_successfully": "Team trials skipped successfully",
|
||||
"sms_workflow_consent": "By entering your phone number you consent to receive SMS messages for this event. SMS rates may apply.",
|
||||
"routing_preview_more_info_found_insights": "More info can be found in Routing Insights",
|
||||
"results": "Results",
|
||||
"view_form": "View Form",
|
||||
"sms_opt_out_message": "Text STOP to opt-out of SMS messages",
|
||||
"routing_form_next_in_queue": "{{count}} next in queue",
|
||||
"routing_form_select_members_to_email": "Send email responses to",
|
||||
"routing_incomplete_booking_tab": "Incomplete Bookings",
|
||||
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
|
||||
}
|
||||
+34
-30
@@ -8,6 +8,36 @@
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.cal-query-builder .group-container {
|
||||
padding: 8px !important;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--cal-border-muted);
|
||||
background-color: var(--cal-bg);
|
||||
}
|
||||
|
||||
.cal-query-builder .group--children:not(:empty) {
|
||||
background-color: var(--cal-bg);
|
||||
border: 1px solid var(--cal-border-muted);
|
||||
border-radius: 10px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.cal-query-builder .cal-query-builder-container .group-container {
|
||||
border: none;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.cal-query-builder .group .group--header {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.cal-query-builder .group.group-or-rule:has(.group--header, :not(.group--header)):has(.group--children):has(.group--footer) {
|
||||
background-color: var(--cal-bg-muted);
|
||||
padding: 2px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
|
||||
/* hide connectors */
|
||||
.cal-query-builder .group-or-rule::before,
|
||||
.cal-query-builder .group-or-rule::after {
|
||||
@@ -15,11 +45,6 @@
|
||||
content: unset !important;
|
||||
}
|
||||
|
||||
.cal-query-builder .group--children {
|
||||
/* !important to ensure that styles added by react-query-awesome-builder are overridden */
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
|
||||
/* Hide "and" for between numbers */
|
||||
.cal-query-builder .widget--sep {
|
||||
/* !important to ensure that styles added by react-query-awesome-builder are overridden */
|
||||
@@ -34,15 +59,9 @@
|
||||
}
|
||||
|
||||
.cal-query-builder .rule--body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.cal-query-builder .rule--field,
|
||||
.cal-query-builder .rule--operator,
|
||||
.cal-query-builder .rule--value {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
display: grid;
|
||||
grid-template-columns: 40% 20% 40%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.cal-query-builder .rule--widget {
|
||||
@@ -52,7 +71,7 @@
|
||||
|
||||
.cal-query-builder .widget--widget,
|
||||
.cal-query-builder .widget--widget,
|
||||
.cal-query-builder .widget--widget > * {
|
||||
.cal-query-builder .widget--widget>* {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -107,22 +126,7 @@
|
||||
margin-right: -8px;
|
||||
}
|
||||
|
||||
.cal-query-builder .group--header,
|
||||
.cal-query-builder .group--footer {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.cal-query-builder .group-or-rule-container {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.cal-query-builder .rule {
|
||||
border: 1px solid transparent;
|
||||
padding: 10px;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,10 @@ const base = require("@calcom/config/tailwind-preset");
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
...base,
|
||||
content: [...base.content, "../../node_modules/@tremor/**/*.{js,ts,jsx,tsx}"],
|
||||
content: [
|
||||
...base.content,
|
||||
"../../packages/app-store/routing-forms/**/*.{js,ts,jsx,tsx}",
|
||||
"../../node_modules/@tremor/**/*.{js,ts,jsx,tsx}",
|
||||
],
|
||||
plugins: [...base.plugins, require("tailwindcss-animate")],
|
||||
};
|
||||
Reference in new issue
Block a user