Page views
-
+
{number.format(data.screenViews)}
diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/loading.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/loading.tsx
deleted file mode 100644
index 9cf2cf50..00000000
--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/loading.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import FullPageLoadingState from '@/components/full-page-loading-state';
-
-export default FullPageLoadingState;
diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-list/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-list/index.tsx
index 3753d613..b3548c1c 100644
--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-list/index.tsx
+++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-list/index.tsx
@@ -11,7 +11,7 @@ interface Props {
filters?: IChartEventFilter[];
}
-const limit = 50;
+const limit = 40;
async function ProfileListServer({ projectId, cursor, filters }: Props) {
const [profiles, count] = await Promise.all([
diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-list/profile-list.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-list/profile-list.tsx
index 1f5ba303..f79ccf51 100644
--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-list/profile-list.tsx
+++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/profile-list/profile-list.tsx
@@ -23,7 +23,7 @@ interface ProfileListProps {
}
export function ProfileList({ data, count, limit = 50 }: ProfileListProps) {
const { organizationSlug, projectId } = useAppParams();
- const { cursor, setCursor } = useCursor();
+ const { cursor, setCursor, loading } = useCursor();
return (
@@ -32,6 +32,7 @@ export function ProfileList({ data, count, limit = 50 }: ProfileListProps) {
size="sm"
cursor={cursor}
setCursor={setCursor}
+ loading={loading}
count={count}
take={limit}
/>
diff --git a/apps/dashboard/src/components/pagination.tsx b/apps/dashboard/src/components/pagination.tsx
index 8a46e361..4c8cbe87 100644
--- a/apps/dashboard/src/components/pagination.tsx
+++ b/apps/dashboard/src/components/pagination.tsx
@@ -29,6 +29,7 @@ export function Pagination({
setCursor,
className,
size = 'base',
+ loading,
}: {
take: number;
count: number;
@@ -36,6 +37,7 @@ export function Pagination({
setCursor: Dispatch>;
className?: string;
size?: 'sm' | 'base';
+ loading?: boolean;
}) {
const lastCursor = Math.floor(count / take) - 1;
const isNextDisabled = count === 0 || lastCursor === cursor;
@@ -56,42 +58,43 @@ export function Pagination({
)}
{size === 'base' && (
+ icon={ChevronsLeftIcon}
+ />
)}
+ icon={ChevronLeftIcon}
+ />
+ icon={ChevronRightIcon}
+ />
+
{size === 'base' && (
+ icon={ChevronsRightIcon}
+ />
)}
);
diff --git a/apps/dashboard/src/components/ui/button.tsx b/apps/dashboard/src/components/ui/button.tsx
index 9c54cb6f..ba7a0525 100644
--- a/apps/dashboard/src/components/ui/button.tsx
+++ b/apps/dashboard/src/components/ui/button.tsx
@@ -76,9 +76,10 @@ const Button = React.forwardRef