-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove Pages Router / Use App Router -
/workflows
(#16519)
* /workflows: Remove Pages Router / Render App Router * fix * unneeded changes * disable server side fetching for now * revert unneeded changes
- Loading branch information
Showing
11 changed files
with
63 additions
and
91 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
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,40 @@ | ||
import type { PageProps } from "app/_types"; | ||
import { _generateMetadata } from "app/_utils"; | ||
import { WithLayout } from "app/layoutHOC"; | ||
|
||
// import { getServerSessionForAppDir } from "@calcom/feature-auth/lib/get-server-session-for-app-dir"; | ||
// import { getTeamsFiltersFromQuery } from "@calcom/features/filters/lib/getTeamsFiltersFromQuery"; | ||
// import { WorkflowRepository } from "@calcom/lib/server/repository/workflow"; | ||
import LegacyPage from "@calcom/features/ee/workflows/pages/index"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("workflows"), | ||
(t) => t("workflows_to_automate_notifications") | ||
); | ||
|
||
const Page = async ({ params, searchParams }: PageProps) => { | ||
// FIXME: Refactor me once next-auth endpoint is migrated to App Router | ||
// const session = await getServerSessionForAppDir(); | ||
// const user = session?.user; | ||
|
||
// const filters = getTeamsFiltersFromQuery({ ...searchParams, ...params }); | ||
|
||
// let filteredList; | ||
// try { | ||
// filteredList = await WorkflowRepository.getFilteredList({ | ||
// userId: user?.id, | ||
// input: { | ||
// filters, | ||
// }, | ||
// }); | ||
// } catch (err) {} | ||
|
||
return ( | ||
<LegacyPage | ||
// filteredList={filteredList} | ||
/> | ||
); | ||
}; | ||
|
||
export default WithLayout({ getLayout: null, ServerPage: Page })<"P">; |
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 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
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