perf: Slim down logged in round 2 (#20535)

* perf: Slim down loggedInViewer some more

* Move locationOptions to apps router

* Moved calVideo related handlers to separate router

* Moved calendar related handlers to separate router

* Rename

* Moved deleteCredential to new router

* Moved updateProfile to me router

* fix unit test

* fix e2e test

* tweak

* missing

---------

Co-authored-by: Anik Dhabal Babu <[email protected]>
Co-authored-by: unknown <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-04-04 15:33:14 -04:00
1 parent 1953402f81
commit e86ad03cde
66 files changed
+240 -205

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ test.describe("Change username on settings", () => {
await usernameInput.fill(item.username);
await page.click("[data-testid=update-username-btn]");
await submitAndWaitForResponse(page, "/api/trpc/viewer/updateProfile?batch=1", {
await submitAndWaitForResponse(page, "/api/trpc/me/updateProfile?batch=1", {
action: () => page.click("[data-testid=save-username]"),
});
+2 -2
View File
@@ -448,7 +448,7 @@ test.describe("authorized user sees changed translations (de->ar)", async () =>
await page.locator(".bg-default > div > div:nth-child(2)").first().click();
await page.getByTestId("select-option-ar").click();
await submitAndWaitForResponse(page, "/api/trpc/viewer/updateProfile?batch=1", {
await submitAndWaitForResponse(page, "/api/trpc/me/updateProfile?batch=1", {
action: () => page.click("[data-testid=general-submit-button]"),
});
@@ -508,7 +508,7 @@ test.describe("authorized user sees changed translations (de->pt-BR) [locale1]",
await page.locator(".bg-default > div > div:nth-child(2)").first().click();
await page.locator("text=Português (Brasil)").click();
await submitAndWaitForResponse(page, "/api/trpc/viewer/updateProfile?batch=1", {
await submitAndWaitForResponse(page, "/api/trpc/me/updateProfile?batch=1", {
action: () => page.click("[data-testid=general-submit-button]"),
});
+1 -1
View File
@@ -62,7 +62,7 @@ test.describe("Update Profile", () => {
await page.getByTestId("password").fill(user?.username ?? "Nameless User");
await submitAndWaitForResponse(page, "/api/trpc/viewer/updateProfile?batch=1", {
await submitAndWaitForResponse(page, "/api/trpc/me/updateProfile?batch=1", {
action: () => page.getByTestId("profile-update-email-submit-button").click(),
});