perf: server-fetch data for all pages in /settings/my-account (#20712)

* wip

* fix type check

* refactor "/settings/my-account/profile"

* refactor "settings/my-account/general"

* refactor "/settings/my-accouunt/calendars"

* refactor "/settings/my-account/appearance"

* fix: type-check

---------

Co-authored-by: Amit Sharma <[email protected]>
Co-authored-by: Amit Sharma <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-07-24 22:36:40 +01:00
1 parent 6259b0b3cb
commit 6b9115dfde
32 files changed
+721 -524

No files matched your search

@@ -12,12 +12,6 @@ import { EmptyScreen } from "@calcom/ui/components/empty-screen";
import { SkeletonText, SkeletonContainer } from "@calcom/ui/components/skeleton";
import { showToast } from "@calcom/ui/components/toast";
type ConferencingAppsViewWebWrapperProps = {
title: string;
description: string;
add: string;
};
export type UpdateUsersDefaultConferencingAppParams = {
appSlug: string;
appLink?: string;
@@ -175,11 +169,17 @@ const useDisconnectIntegrationModalController = () => {
};
};
export const ConferencingAppsViewWebWrapper = ({
title,
description,
add,
}: ConferencingAppsViewWebWrapperProps) => {
const AddConferencingButton = () => {
const { t } = useLocale();
return (
<Button color="secondary" StartIcon="plus" href="/apps/categories/conferencing">
{t("add")}
</Button>
);
};
export const ConferencingAppsViewWebWrapper = () => {
const { t } = useLocale();
const utils = trpc.useUtils();
@@ -203,20 +203,12 @@ export const ConferencingAppsViewWebWrapper = ({
);
};
const AddConferencingButton = () => {
return (
<Button color="secondary" StartIcon="plus" href="/apps/categories/conferencing">
{add}
</Button>
);
};
const disconnectIntegrationModalCtrl = useDisconnectIntegrationModalController();
return (
<SettingsHeader
title={title}
description={description}
title={t("conferencing")}
description={t("conferencing_description")}
CTA={<AddConferencingButton />}
borderInShellHeader={true}>
<>