refactor: event types infinite scroll (#15949)
* chore * chore * feat: paginated event types * fix: event types page * fix: k bar * fix: event type order * fix: type error * chore: remove commented code * chore: type err * chore: type err and feedback * feat: add old component * chore: missing import * fix: add isInfiniteScrollEnabled prop * chore: type err * chore: type error * feat: auto fetch next page when button is in view * Update packages/lib/server/repository/eventType.ts * Update packages/lib/server/repository/eventType.ts * chore: feedback * fix: managed event types * fix: Review fixes for event-types-infinite-scroll (#16047) * Review fixes * chore: missing import --------- Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Udit Takkar <[email protected]> * chore: type error * chore * fix: delete event type * fix: create event dialog * fix: create and duplicate dialog * chore: simplify return type * fix: type * chore: invalidate query * chore: remove query * fix duplicated event not showing. --------- Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
18 files changed
+1377
-59
No files matched your search
@@ -12,6 +12,7 @@ export type AvatarGroupProps = {
|
||||
}[];
|
||||
className?: string;
|
||||
truncateAfter?: number;
|
||||
hideTruncatedAvatarsCount?: boolean;
|
||||
};
|
||||
|
||||
export const AvatarGroup = function AvatarGroup(props: AvatarGroupProps) {
|
||||
@@ -52,7 +53,7 @@ export const AvatarGroup = function AvatarGroup(props: AvatarGroupProps) {
|
||||
" text-inverted m-auto flex h-full w-full items-center justify-center text-center",
|
||||
props.size === "sm" ? "text-[12px]" : "text-2xl"
|
||||
)}>
|
||||
+{numTruncatedAvatars}
|
||||
+{props.hideTruncatedAvatarsCount ? null : numTruncatedAvatars}
|
||||
</span>
|
||||
</li>
|
||||
)}
|
||||
|
||||
@@ -7,6 +7,7 @@ import { AvatarGroup } from "@calcom/ui";
|
||||
type UserAvatarProps = Omit<React.ComponentProps<typeof AvatarGroup>, "items"> & {
|
||||
users: (Pick<User, "name" | "username" | "avatarUrl"> & {
|
||||
profile: Omit<UserProfile, "upId">;
|
||||
hideTruncatedAvatarsCount?: boolean;
|
||||
})[];
|
||||
};
|
||||
export function UserAvatarGroup(props: UserAvatarProps) {
|
||||
@@ -22,6 +23,7 @@ export function UserAvatarGroup(props: UserAvatarProps) {
|
||||
alt: user.name || "",
|
||||
title: user.name || "",
|
||||
image: getUserAvatarUrl(user),
|
||||
hideTruncatedAvatarsCount: user.hideTruncatedAvatarsCount,
|
||||
}))}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user