feat: editmode availbility slider (#11197)
* Add loading data and banner
* [WIP] hasEditPerms middleware
* fix: type error in booker (#11011)
* New Crowdin translations by Github Action
* refactor: removed redundant test (#10785)
Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Shivam Kalra <[email protected]>
* feat: 2fa backup codes (#10600)
Co-authored-by: Peer Richelsen <[email protected]>
* Delete add-PRs-to-project-reviewing-PRs.yml (#11008)
Co-authored-by: alannnc <[email protected]>
* New Crowdin translations by Github Action
* fix: multiple duration when booking (#11032)
* fix: other reported issues (#11015)
* fix: weird margin top in avatar
* fix: pending users are shown on booking page
* fix: avatar and naming issues
* fix: toast alignment and removing unneeded titles
* missing changes from toast improvements
* feat: empty state for teams without event types
* Removing console.log
* feat: cal ai (#10992)
Co-authored-by: nicktrn <[email protected]>
Co-authored-by: tedspare <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
* New Crowdin translations by Github Action
* fix: meeting ended trigger for webhooks and zapier sometimes not working (#10946)
Co-authored-by: mohammed gehad <[email protected]>
Co-authored-by: Monto <[email protected]>
Co-authored-by: Carina Wollendorfer <[email protected]>
* feat: team admin: see connected apps of team members (#11036)
* added feature:team admin can see connected apps of members
* fixed the type error
* Update packages/lib/server/queries/teams/index.ts
* Minor fixes
---------
Co-authored-by: alannnc <[email protected]>
* fix: lower case slugs in teams (#11026)
* fix: lower case slugs in teams
Signed-off-by: Udit Takkar <[email protected]>
* fix: use slugify
Signed-off-by: Udit Takkar <[email protected]>
---------
Signed-off-by: Udit Takkar <[email protected]>
* refactor: improvements on german translation (#10898)
* fix: fix-tablet-menu-not-centered-sidebar (#11020)
Co-authored-by: Udit Takkar <[email protected]>
* chore: add Popover in storybook (#11021)
Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
* fix: Set mobile availability (#11027)
* chore: add ColorPicker in storybook (CALCOM-10760) (#10866)
Co-authored-by: gitstart-calcom <[email protected]>
* feat: adds next cold start profiler (#11014)
* Handle disabling of ORGANIZATIONS_ENABLED flag (#11041)
* New Crowdin translations by Github Action
* styles:dark mode color fix (#11004)
* chore: sheet darkmode and improve responsive (#11047)
* fix: handle collective multiple host on destinationCalendar (#10967)
* fix: include app data and credentials from DB (#11048)
* include app data and credentials from DB
* Improve performance
* fix: Error when running storybook (#11037)
Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
* fix: broken company profile link on team booking page (#10978)
* chore: add ErrorBoundary in storybook (CALCOM-10760) (#10872)
Co-authored-by: gitstart-calcom <[email protected]>
* feat: sorting for workflow and routing forms (#10780)
Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
* resolve zod versions across child packages (#11052)
* fix: List storybook file is empty (fix-list) (#10965)
Co-authored-by: gitstart-calcom <[email protected]>
* fix: admin org list without members (#11051)
Co-authored-by: Peer Richelsen <[email protected]>
* chore: add ToggleGroup in storybook (#10802)
Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: sean-brydon <[email protected]>
* fix: add metadata to stripe payment intent (#11053)
* fix: Logo storybook file with invalid icons (fix-logo) (#11018)
Co-authored-by: gitstart-calcom <[email protected]>
* fix: Add controls for Select Field storybook file (#10936)
Co-authored-by: gitstart-calcom <[email protected]>
* fix: Fix tooltip control on ButtonPlayground storybook file (fix-ButtonTooltip) (#10937)
Co-authored-by: gitstart-calcom <[email protected]>
* fix: email embed – remove collapsible and permanently show times (#10996)
Co-authored-by: Hariom Balhara <[email protected]>
Co-authored-by: Mehul <[email protected]>
* chore: add Timezone Select in storybook (CALCOM-10760) (#10966)
Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
* chore: add Switch in storybook (CALCOM-10760) (#10804)
Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
* Sync packages
* fix: zod utils due to upgrade
* easy fix (#11054)
* fix sub quantity update stripe (#11057)
* v3.2.7
* Revert "feat: adds next cold start profiler (#11014)" (#11072)
This reverts commit 05631d093f.
* fix: Fixes username invite issue (#10998)
* Fixes username invite issue
* Ensure we only suggest email invites in org members
---------
Co-authored-by: Udit Takkar <[email protected]>
* Fix sheet layout
* WIP permissions when userschedule doesnt match
* WIP get handler weird behaviour
* Update toast
* add disabled - handle membership overlap
* Handle permissions + perf improvments
* use input uid
* Remove Console.log
* Clean up
* Revert changes accidental
* Fix merge artifacts
* Remove dead code
* Remove code after return
* Update read permission check
* Revert avatar changes as fixed elsewhere
* Handle if user has not completed onboarding
* Disable button
* Update packages/lib/hasEditPermissionForUser.ts
* Correct Error throwing
* Update packages/features/timezone-buddy/components/AvailabilityEditSheet.tsx
* Fix type erro
* Add i18n
* Improve Spacing
* Update yarn.lock
---------
Signed-off-by: Udit Takkar <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Crowdin Bot <[email protected]>
Co-authored-by: GitStart-Cal.com <[email protected]>
Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Shivam Kalra <[email protected]>
Co-authored-by: nicktrn <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: alannnc <[email protected]>
Co-authored-by: Leo Giovanetti <[email protected]>
Co-authored-by: DexterStorey <[email protected]>
Co-authored-by: tedspare <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
Co-authored-by: Monto <[email protected]>
Co-authored-by: mohammed gehad <[email protected]>
Co-authored-by: Monto <[email protected]>
Co-authored-by: Carina Wollendorfer <[email protected]>
Co-authored-by: Abhijeet Singh <[email protected]>
Co-authored-by: Kamil B. Demirci <[email protected]>
Co-authored-by: Denzil Samuel <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Anik Dhabal Babu <[email protected]>
Co-authored-by: Omar López <[email protected]>
Co-authored-by: Hariom Balhara <[email protected]>
Co-authored-by: Sahil Padvi <[email protected]>
Co-authored-by: Patel Divyesh <[email protected]>
Co-authored-by: neo773 <[email protected]>
Co-authored-by: Mehul <[email protected]>
This commit is contained in:
+18









sean-brydon
gitstart-calcom
Shivam Kalra
Peer Richelsen
alannnc
nicktrn
tedspare
Alex van Andel
mohammed gehad
Monto
Carina Wollendorfer
Udit Takkar
Udit Takkar
Hariom Balhara
Mehul
Crowdin Bot
GitStart-Cal.com
Leo Giovanetti
DexterStorey
Monto
Abhijeet Singh
Kamil B. Demirci
Denzil Samuel
Anik Dhabal Babu
Omar López
Sahil Padvi
Patel Divyesh
neo773 authored and
GitHub committed 2023-09-14 09:45:13 +01:00
1 parent
605e744a58
commit
a2d1dbebba
18 files changed
+502
-42
No files matched your search
@@ -17,6 +17,8 @@ import {
|
||||
import { useState } from "react";
|
||||
import { useVirtual } from "react-virtual";
|
||||
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
|
||||
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "../table/TableNew";
|
||||
import type { ActionItem } from "./DataTableSelectionBar";
|
||||
import { DataTableSelectionBar } from "./DataTableSelectionBar";
|
||||
@@ -32,6 +34,7 @@ export interface DataTableProps<TData, TValue> {
|
||||
selectionOptions?: ActionItem<TData>[];
|
||||
tableCTA?: React.ReactNode;
|
||||
isLoading?: boolean;
|
||||
onRowMouseclick?: (row: Row<TData>) => void;
|
||||
onScroll?: (e: React.UIEvent<HTMLDivElement, UIEvent>) => void;
|
||||
CTA?: React.ReactNode;
|
||||
tableOverlay?: React.ReactNode;
|
||||
@@ -47,6 +50,8 @@ export function DataTable<TData, TValue>({
|
||||
tableContainerRef,
|
||||
isLoading,
|
||||
tableOverlay,
|
||||
/** This should only really be used if you dont have actions in a row. */
|
||||
onRowMouseclick,
|
||||
onScroll,
|
||||
}: DataTableProps<TData, TValue>) {
|
||||
const [rowSelection, setRowSelection] = useState({});
|
||||
@@ -137,7 +142,11 @@ export function DataTable<TData, TValue>({
|
||||
const row = rows[virtualRow.index] as Row<TData>;
|
||||
|
||||
return (
|
||||
<TableRow key={row.id} data-state={row.getIsSelected() && "selected"}>
|
||||
<TableRow
|
||||
key={row.id}
|
||||
data-state={row.getIsSelected() && "selected"}
|
||||
onClick={() => onRowMouseclick && onRowMouseclick(row)}
|
||||
className={classNames(onRowMouseclick && "hover:cursor-pointer")}>
|
||||
{row.getVisibleCells().map((cell) => {
|
||||
return (
|
||||
<TableCell key={cell.id}>
|
||||
|
||||
@@ -49,7 +49,7 @@ const SheetOverlay = React.forwardRef<
|
||||
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
||||
|
||||
const sheetVariants = cva(
|
||||
"fixed z-50 scale-100 gap-4 bg-default m-4 rounded-xl p-6 opacity-100 shadow-lg border border-default overflow-y-scroll ",
|
||||
"fixed z-50 scale-100 gap-4 bg-default m-4 rounded-xl p-6 opacity-100 shadow-lg border border-default flex flex-col ",
|
||||
{
|
||||
variants: {
|
||||
position: {
|
||||
@@ -138,17 +138,24 @@ const sheetVariants = cva(
|
||||
|
||||
export interface DialogContentProps
|
||||
extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
|
||||
VariantProps<typeof sheetVariants> {}
|
||||
VariantProps<typeof sheetVariants> {
|
||||
bottomActions?: React.ReactNode;
|
||||
}
|
||||
|
||||
const SheetContent = React.forwardRef<React.ElementRef<typeof SheetPrimitive.Content>, DialogContentProps>(
|
||||
({ position, size, className, children, ...props }, ref) => (
|
||||
({ position, size, className, children, bottomActions, ...props }, ref) => (
|
||||
<SheetPortal position={position}>
|
||||
<SheetOverlay />
|
||||
<SheetPrimitive.Content
|
||||
ref={ref}
|
||||
className={classNames(sheetVariants({ position, size }), className)}
|
||||
{...props}>
|
||||
{children}
|
||||
{...props}
|
||||
className={classNames(sheetVariants({ position, size }), className)}>
|
||||
<div className="h-full overflow-y-scroll">{children}</div>
|
||||
{bottomActions && (
|
||||
<div className="mt-auto flex justify-end">
|
||||
<div className="flex gap-2">{bottomActions}</div>
|
||||
</div>
|
||||
)}
|
||||
<SheetPrimitive.Close className="focus:ring-emphasis data-[state=open]:bg-deafult absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none">
|
||||
<X className="h-4 w-4" />
|
||||
<span className="sr-only">Close</span>
|
||||
|
||||
@@ -36,7 +36,10 @@ const TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTML
|
||||
({ className, ...props }, ref) => (
|
||||
<tr
|
||||
ref={ref}
|
||||
className={classNames("hover:muted data-[state=selected]:bg-muted border-subtle border-b", className)}
|
||||
className={classNames(
|
||||
"hover:bg-muted data-[state=selected]:bg-subtle border-subtle border-b",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user