-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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' of https://github.com/calcom/cal.com into feat_#1…
…6333_teamOOOCrud
- Loading branch information
Showing
24 changed files
with
1,172 additions
and
157 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 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
48 changes: 48 additions & 0 deletions
48
packages/features/data-table/components/DataTableSkeleton.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,48 @@ | ||
import { TableNew, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@calcom/ui"; | ||
|
||
interface DataTableSkeletonProps { | ||
columns: number; | ||
rows?: number; | ||
columnWidths?: number[]; | ||
} | ||
|
||
export function DataTableSkeleton({ columns, rows = 10, columnWidths = [] }: DataTableSkeletonProps) { | ||
return ( | ||
<div | ||
className="grid h-[75dvh]" | ||
style={{ gridTemplateRows: "auto 1fr auto", gridTemplateAreas: "'header' 'body' 'footer'" }}> | ||
<div | ||
className="scrollbar-thin border-subtle relative h-full overflow-auto rounded-md border" | ||
style={{ gridArea: "body" }}> | ||
<TableNew> | ||
<TableHeader className="bg-subtle sticky top-0 z-10"> | ||
<TableRow> | ||
{[...Array(columns)].map((_, index) => ( | ||
<TableHead key={`skeleton-header-${index}`}> | ||
<div | ||
className="bg-subtle h-4 animate-pulse rounded-md" | ||
style={{ width: columnWidths[index] ? `${columnWidths[index]}px` : "200px" }} | ||
/> | ||
</TableHead> | ||
))} | ||
</TableRow> | ||
</TableHeader> | ||
<TableBody> | ||
{[...Array(rows)].map((_, rowIndex) => ( | ||
<TableRow key={`skeleton-row-${rowIndex}`}> | ||
{[...Array(columns)].map((_, colIndex) => ( | ||
<TableCell key={`skeleton-cell-${rowIndex}-${colIndex}`}> | ||
<div | ||
className="bg-subtle h-6 animate-pulse rounded-md" | ||
style={{ width: columnWidths[colIndex] ? `${columnWidths[colIndex]}px` : "200px" }} | ||
/> | ||
</TableCell> | ||
))} | ||
</TableRow> | ||
))} | ||
</TableBody> | ||
</TableNew> | ||
</div> | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.