chore: update package versions and dependencies across multiple files (#413)

* chore: update package versions and dependencies across multiple files

- Bumped application version to 2.21.3 in package.json.
- Updated dependencies including turbo to version 2.6.1, @next/bundle-analyzer and @next/eslint-plugin-next to version 16.0.3, and @supabase/supabase-js to version 2.81.1.
- Adjusted @types/node, @types/react, and @types/react-dom versions for consistency.
- Refactored package.json files to utilize catalog dependencies for improved management.
- Incremented various other dependencies such as react-i18next to version 16.3.3 and tailwind-merge to version 3.4.0.

* chore: downgrade @next/bundle-analyzer and @next/eslint-plugin-next to version 16.0.2 and update next to version 16.0.2 in pnpm-lock.yaml and pnpm-workspace.yaml

- Updated package versions for consistency across the project.
- Adjusted the overflow property in the PageWithSidebar component for improved layout handling.

* feat: add sorting functionality to DataTable header

- Implemented click handler for sortable headers in the DataTable component, allowing users to toggle sorting between ascending and descending order.
- Enhanced user interaction by updating the header's visual state based on the current sorting direction.

* fix: update layout and structure in UserHomePage and DashboardDemo components

- Added a new div structure within the PageBody of UserHomePage for improved layout.
- Simplified the grid structure in DashboardDemo by adjusting the number of columns for better responsiveness.
- Enhanced the PageWithSidebar component to ensure proper flex behavior and layout consistency.

* refactor: simplify PageBody structure in UserHomePage

- Removed unnecessary div elements within the PageBody of UserHomePage for cleaner layout.
- Enhanced readability and maintainability of the component structure.
This commit is contained in:
Giancarlo Buomprisco
2025-11-18 22:34:53 +07:00
committed by GitHub
parent 7569ebaaad
commit 3e6fef41c7
35 changed files with 2324 additions and 2155 deletions

View File

@@ -19,14 +19,14 @@
"react-dropzone": "^14.3.8",
"react-top-loading-bar": "3.0.2",
"recharts": "2.15.3",
"tailwind-merge": "^3.3.1"
"tailwind-merge": "^3.4.0"
},
"devDependencies": {
"@kit/eslint-config": "workspace:*",
"@kit/prettier-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@supabase/supabase-js": "2.80.0",
"@tanstack/react-query": "5.90.7",
"@supabase/supabase-js": "catalog:",
"@tanstack/react-query": "catalog:",
"@tanstack/react-table": "^8.21.3",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
@@ -38,12 +38,12 @@
"prettier": "^3.6.2",
"react-day-picker": "^9.11.1",
"react-hook-form": "^7.66.0",
"react-i18next": "^16.2.4",
"react-i18next": "^16.3.3",
"sonner": "^2.0.7",
"tailwindcss": "catalog:",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.9.3",
"zod": "^3.25.74"
"zod": "catalog:"
},
"prettier": "@kit/prettier-config",
"imports": {

View File

@@ -358,6 +358,14 @@ export function DataTable<RecordData extends DataItem>({
>
{header.isPlaceholder ? null : (
<div
onClick={() =>
header.column.getCanSort() &&
header.column.toggleSorting(
header.column.getIsSorted() === 'asc'
? true
: false,
)
}
className={cn(
'flex items-center gap-2',
header.column.getCanSort()
@@ -380,6 +388,7 @@ export function DataTable<RecordData extends DataItem>({
: 'text-muted-foreground/50',
)}
/>
<ChevronDown
className={cn(
'-mt-1 h-3 w-3',

View File

@@ -35,18 +35,22 @@ function PageWithSidebar(props: PageProps) {
const { Navigation, Children, MobileNavigation } = getSlotsFromPage(props);
return (
<div className={cn('flex min-w-0 flex-1', props.className)}>
<div
className={cn('flex min-w-0 flex-1 overflow-x-hidden', props.className)}
>
{Navigation}
<div
className={
props.contentContainerClassName ??
'mx-auto flex h-screen w-full flex-col bg-inherit'
'mx-auto flex h-screen w-full min-w-0 flex-1 flex-col bg-inherit'
}
>
{MobileNavigation}
<div className={'bg-background flex flex-1 flex-col px-4 lg:px-0'}>
<div
className={'bg-background flex min-w-0 flex-1 flex-col px-4 lg:px-0'}
>
{Children}
</div>
</div>
@@ -109,13 +113,13 @@ export function PageBody(
className?: string;
}>,
) {
const className = cn('flex w-full flex-1 flex-col lg:px-4', props.className);
const className = cn('flex min-w-0 flex-1 flex-col lg:px-4', props.className);
return <div className={className}>{props.children}</div>;
}
export function PageNavigation(props: React.PropsWithChildren) {
return <div className={'flex-1 bg-inherit'}>{props.children}</div>;
return <div className={'bg-inherit'}>{props.children}</div>;
}
export function PageDescription(props: React.PropsWithChildren) {