-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/remove-pages-router-settings-teams
- Loading branch information
Showing
105 changed files
with
6,326 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
set -e | ||
|
||
echo "Info: Running lint-staged" | ||
yarn lint-staged | ||
|
||
echo "Info: Running app-store:build" | ||
yarn app-store:build && git add packages/app-store/*.generated.* | ||
|
||
git stash -q --keep-index | ||
|
||
# Check for new file changes after running the above commands | ||
if ! git diff --cached --quiet; then | ||
echo "Error: The build process modified files. Please commit the changes and try again." | ||
git stash pop -q | ||
exit 1 | ||
fi | ||
|
||
# Restore stashed changes if nothing went wrong. | ||
git stash pop -q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
"@axiomhq/winston": "^1.2.0", | ||
"@calcom/platform-constants": "*", | ||
"@calcom/platform-enums": "*", | ||
"@calcom/platform-libraries": "npm:@calcom/[email protected].63", | ||
"@calcom/platform-libraries": "npm:@calcom/[email protected].69", | ||
"@calcom/platform-libraries-0.0.2": "npm:@calcom/[email protected]", | ||
"@calcom/platform-types": "*", | ||
"@calcom/platform-utils": "*", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,10 @@ import { withNextAuth } from "test/utils/withNextAuth"; | |
|
||
import { PlatformOAuthClient, Team, Webhook } from "@calcom/prisma/client"; | ||
|
||
describe("EventTypes WebhooksController (e2e)", () => { | ||
describe("OAuth client WebhooksController (e2e)", () => { | ||
let app: INestApplication; | ||
const userEmail = "event-types[email protected]"; | ||
const otherUserEmail = "other-event-types[email protected]"; | ||
const userEmail = "oauth-client[email protected]"; | ||
const otherUserEmail = "other-oauth-client[email protected]"; | ||
let user: UserWithProfile; | ||
let otherUser: UserWithProfile; | ||
let oAuthClient: PlatformOAuthClient; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
apps/web/app/settings/(settings-layout)/developer/api-keys/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { getFixedT, _generateMetadata } from "app/_utils"; | ||
|
||
import { getServerSessionForAppDir } from "@calcom/feature-auth/lib/get-server-session-for-app-dir"; | ||
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; | ||
import { APP_NAME } from "@calcom/lib/constants"; | ||
|
||
import ApiKeysView, { NewApiKeyButton } from "~/settings/developer/api-keys-view"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("api_keys"), | ||
(t) => t("create_first_api_key_description", { appName: APP_NAME }) | ||
); | ||
|
||
const Page = async () => { | ||
// FIXME: Refactor me once next-auth endpoint is migrated to App Router | ||
const session = await getServerSessionForAppDir(); | ||
|
||
const t = await getFixedT(session?.user.locale || "en"); | ||
|
||
return ( | ||
<SettingsHeader | ||
title={t("api_keys")} | ||
description={t("create_first_api_key_description", { appName: APP_NAME })} | ||
CTA={<NewApiKeyButton />} | ||
borderInShellHeader={true}> | ||
<ApiKeysView /> | ||
</SettingsHeader> | ||
); | ||
}; | ||
|
||
export default Page; |
35 changes: 35 additions & 0 deletions
35
apps/web/app/settings/(settings-layout)/developer/webhooks/[id]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import type { PageProps } from "app/_types"; | ||
import { getFixedT, _generateMetadata } from "app/_utils"; | ||
|
||
import { getServerSessionForAppDir } from "@calcom/feature-auth/lib/get-server-session-for-app-dir"; | ||
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; | ||
import { EditWebhookView } from "@calcom/features/webhooks/pages/webhook-edit-view"; | ||
import { APP_NAME } from "@calcom/lib/constants"; | ||
import { WebhookRepository } from "@calcom/lib/server/repository/webhook"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("webhooks"), | ||
(t) => t("add_webhook_description", { appName: APP_NAME }) | ||
); | ||
|
||
const Page = async ({ params }: PageProps) => { | ||
const session = await getServerSessionForAppDir(); | ||
|
||
const t = await getFixedT(session?.user.locale || "en"); | ||
const id = typeof params?.id === "string" ? params.id : undefined; | ||
|
||
const webhook = await WebhookRepository.findByWebhookId(id); | ||
|
||
return ( | ||
<SettingsHeader | ||
title={t("edit_webhook")} | ||
description={t("add_webhook_description", { appName: APP_NAME })} | ||
borderInShellHeader={true} | ||
backButton> | ||
<EditWebhookView webhook={webhook} /> | ||
</SettingsHeader> | ||
); | ||
}; | ||
|
||
export default Page; |
30 changes: 30 additions & 0 deletions
30
apps/web/app/settings/(settings-layout)/developer/webhooks/new/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { getFixedT, _generateMetadata } from "app/_utils"; | ||
|
||
import { getServerSessionForAppDir } from "@calcom/feature-auth/lib/get-server-session-for-app-dir"; | ||
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; | ||
import { NewWebhookView } from "@calcom/features/webhooks/pages/webhook-new-view"; | ||
import { APP_NAME } from "@calcom/lib/constants"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("webhooks"), | ||
(t) => t("add_webhook_description", { appName: APP_NAME }) | ||
); | ||
|
||
const Page = async () => { | ||
const session = await getServerSessionForAppDir(); | ||
|
||
const t = await getFixedT(session?.user.locale || "en"); | ||
|
||
return ( | ||
<SettingsHeader | ||
title={t("add_webhook")} | ||
description={t("add_webhook_description", { appName: APP_NAME })} | ||
borderInShellHeader={true} | ||
backButton> | ||
<NewWebhookView /> | ||
</SettingsHeader> | ||
); | ||
}; | ||
|
||
export default Page; |
12 changes: 12 additions & 0 deletions
12
apps/web/app/settings/(settings-layout)/developer/webhooks/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { _generateMetadata } from "app/_utils"; | ||
|
||
import WebhooksView from "@calcom/features/webhooks/pages/webhooks-view"; | ||
import { APP_NAME } from "@calcom/lib/constants"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("webhooks"), | ||
(t) => t("add_webhook_description", { appName: APP_NAME }) | ||
); | ||
|
||
export default WebhooksView; |
Oops, something went wrong.