diff --git a/apps/app/components/account/email-code-form.tsx b/apps/app/components/account/email-code-form.tsx index 236159fe5..bd798677a 100644 --- a/apps/app/components/account/email-code-form.tsx +++ b/apps/app/components/account/email-code-form.tsx @@ -178,7 +178,7 @@ export const EmailCodeForm = ({ handleSignIn }: any) => { ) : errorResendingCode ? ( "Please try again later" ) : ( - "Resend code" + Resend code )} diff --git a/apps/app/components/core/theme/custom-theme-selector.tsx b/apps/app/components/core/theme/custom-theme-selector.tsx index e584e23aa..5f36115f8 100644 --- a/apps/app/components/core/theme/custom-theme-selector.tsx +++ b/apps/app/components/core/theme/custom-theme-selector.tsx @@ -21,11 +21,11 @@ type Props = { }; const defaultValues: ICustomTheme = { - background: "#292d3e", - text: "#ffffff", - primary: "#7d57c1", - sidebarBackground: "#292d3e", - sidebarText: "#ffffff", + background: "#0d101b", + text: "#c5c5c5", + primary: "#3f76ff", + sidebarBackground: "#0d101b", + sidebarText: "#c5c5c5", darkPalette: false, palette: "", }; diff --git a/apps/app/components/onboarding/invite-members.tsx b/apps/app/components/onboarding/invite-members.tsx index fa58cf64f..ba989786c 100644 --- a/apps/app/components/onboarding/invite-members.tsx +++ b/apps/app/components/onboarding/invite-members.tsx @@ -41,7 +41,7 @@ export const InviteMembers: React.FC = ({ workspace, user, stepChange }) const { control, handleSubmit, - formState: { isSubmitting, errors }, + formState: { isSubmitting, errors, isValid }, } = useForm(); const { fields, append, remove } = useFieldArray({ @@ -204,7 +204,7 @@ export const InviteMembers: React.FC = ({ workspace, user, stepChange })
- + {isSubmitting ? "Sending..." : "Send Invite"} diff --git a/apps/app/components/onboarding/tour/root.tsx b/apps/app/components/onboarding/tour/root.tsx index f537ebf94..54aab2f17 100644 --- a/apps/app/components/onboarding/tour/root.tsx +++ b/apps/app/components/onboarding/tour/root.tsx @@ -53,7 +53,7 @@ const TOUR_STEPS: { key: "modules", title: "Break into modules", description: - "Modules break your big think into Projects or Features, to help you organize better.", + "Modules break your big thing into Projects or Features, to help you organize better.", image: ModulesTour, prevStep: "cycles", nextStep: "views", @@ -132,7 +132,7 @@ export const TourRoot: React.FC = ({ onComplete }) => { {currentStep?.title}
-

{currentStep?.title}

+

{currentStep?.title}

{currentStep?.description}

diff --git a/apps/app/components/onboarding/user-details.tsx b/apps/app/components/onboarding/user-details.tsx index 42ee00cd5..222fc1143 100644 --- a/apps/app/components/onboarding/user-details.tsx +++ b/apps/app/components/onboarding/user-details.tsx @@ -35,7 +35,7 @@ export const UserDetails: React.FC = ({ user }) => { handleSubmit, control, reset, - formState: { errors, isSubmitting }, + formState: { errors, isSubmitting, isValid }, } = useForm({ defaultValues, }); @@ -164,7 +164,7 @@ export const UserDetails: React.FC = ({ user }) => {
- + {isSubmitting ? "Updating..." : "Continue"} diff --git a/apps/app/components/onboarding/workspace.tsx b/apps/app/components/onboarding/workspace.tsx index ba96c50a7..b401585dd 100644 --- a/apps/app/components/onboarding/workspace.tsx +++ b/apps/app/components/onboarding/workspace.tsx @@ -38,6 +38,10 @@ export const Workspace: React.FC = ({ user, updateLastWorkspace, stepChan defaultValues={defaultValues} setDefaultValues={setDefaultValues} user={user} + primaryButtonText={{ + loading: "Creating...", + default: "Continue", + }} secondaryButton={ stepChange({ profile_complete: false })}> Back diff --git a/apps/app/components/ui/buttons/primary-button.tsx b/apps/app/components/ui/buttons/primary-button.tsx index 357832f4e..8817679b4 100644 --- a/apps/app/components/ui/buttons/primary-button.tsx +++ b/apps/app/components/ui/buttons/primary-button.tsx @@ -19,11 +19,7 @@ export const PrimaryButton: React.FC = ({ : size === "md" ? "rounded-md px-3.5 py-2 text-sm" : "rounded-lg px-4 py-2 text-base" - } ${ - disabled - ? "cursor-not-allowed bg-opacity-70 border-opacity-70 hover:bg-opacity-70 hover:border-opacity-70" - : "" - } ${ + } ${disabled ? "cursor-not-allowed opacity-70 hover:opacity-70" : ""} ${ outline ? "bg-transparent text-custom-primary hover:bg-custom-primary hover:text-white" : "text-white bg-custom-primary hover:border-opacity-90 hover:bg-opacity-90" diff --git a/apps/app/components/workspace/create-workspace-form.tsx b/apps/app/components/workspace/create-workspace-form.tsx index 7a3c12b6e..5321e5688 100644 --- a/apps/app/components/workspace/create-workspace-form.tsx +++ b/apps/app/components/workspace/create-workspace-form.tsx @@ -9,7 +9,7 @@ import workspaceService from "services/workspace.service"; // hooks import useToast from "hooks/use-toast"; // ui -import { CustomSelect, Input, PrimaryButton, SecondaryButton } from "components/ui"; +import { CustomSelect, Input, PrimaryButton } from "components/ui"; // types import { ICurrentUserResponse, IWorkspace } from "types"; // fetch-keys @@ -27,6 +27,10 @@ type Props = { setDefaultValues: Dispatch>; user: ICurrentUserResponse | undefined; secondaryButton?: React.ReactNode; + primaryButtonText?: { + loading: string; + default: string; + }; }; const restrictedUrls = [ @@ -49,6 +53,10 @@ export const CreateWorkspaceForm: React.FC = ({ setDefaultValues, user, secondaryButton, + primaryButtonText = { + loading: "Creating...", + default: "Create Workspace", + }, }) => { const [slugError, setSlugError] = useState(false); const [invalidSlug, setInvalidSlug] = useState(false); @@ -61,7 +69,7 @@ export const CreateWorkspaceForm: React.FC = ({ control, setValue, getValues, - formState: { errors, isSubmitting }, + formState: { errors, isSubmitting, isValid }, } = useForm({ defaultValues, mode: "onChange" }); const handleCreateWorkspace = async (formData: IWorkspace) => { @@ -202,8 +210,8 @@ export const CreateWorkspaceForm: React.FC = ({
{secondaryButton} - - {isSubmitting ? "Creating..." : "Create Workspace"} + + {isSubmitting ? primaryButtonText.loading : primaryButtonText.default}
diff --git a/apps/app/components/workspace/help-section.tsx b/apps/app/components/workspace/help-section.tsx index 7cc5c9f3f..5c00b8490 100644 --- a/apps/app/components/workspace/help-section.tsx +++ b/apps/app/components/workspace/help-section.tsx @@ -17,12 +17,11 @@ import useOutsideClickDetector from "hooks/use-outside-click-detector"; // components import UpgradeToProModal from "./upgrade-to-pro-modal"; // ui -import { CircularProgress } from "components/ui"; +import { CircularProgress, Icon } from "components/ui"; // icons import { ArrowLongLeftIcon, ChatBubbleOvalLeftEllipsisIcon, - RocketLaunchIcon, ArrowUpCircleIcon, XMarkIcon, } from "@heroicons/react/24/outline"; @@ -171,7 +170,7 @@ export const WorkspaceHelpSection: React.FC = ({ setS }} title="Shortcuts" > - +
-

Company Size

-

How big is your company?

+

Organization Size

+

What size is your organization?

{ c === value) ?? "Select company size"} + label={ + ORGANIZATION_SIZE.find((c) => c === value) ?? "Select organization size" + } + width="w-full" input > {ORGANIZATION_SIZE?.map((item) => (