Skip to content

Commit

Permalink
fix: pagination and packages (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiol authored Aug 14, 2024
1 parent 9201c27 commit 27699e5
Show file tree
Hide file tree
Showing 12 changed files with 76 additions and 35 deletions.
5 changes: 3 additions & 2 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
"@ufb/eslint-config": "workspace:*",
"@ufb/prettier-config": "workspace:*",
"@ufb/tsconfig": "workspace:*",
"eslint": "^9.0.0",
"eslint": "catalog:",
"prettier": "catalog:",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
Expand All @@ -113,6 +114,6 @@
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.4.5"
"typescript": "catalog:"
}
}
5 changes: 3 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
"@ufb/prettier-config": "workspace:*",
"@ufb/tsconfig": "workspace:*",
"autoprefixer": "^10.4.19",
"eslint": "^9.0.0",
"eslint": "catalog:",
"prettier": "catalog:",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jiti": "^1.21.6",
Expand All @@ -107,7 +108,7 @@
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"ts-toolbelt": "^9.6.0",
"typescript": "^5.4.5",
"typescript": "catalog:",
"undici": "~5.28.4"
}
}
2 changes: 1 addition & 1 deletion apps/web/src/entities/user/ui/user-management-table.ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const UserManagementTable: React.FC<IProps> = () => {
disabledNextPage={
pagination.pageIndex + 1 >= (data?.meta.totalPages ?? 1)
}
disabledPrevPage={pagination.pageIndex <= 1}
disabledPrevPage={pagination.pageIndex < 1}
setLimit={table.setPageSize}
/>
<TableSearchInput
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/widgets/feedback-table/ui/feedback-table-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const FeedbackTableBar: React.FC<IProps> = (props) => {
disabledNextPage={
pagination.pageIndex + 1 >= (meta?.totalPages ?? 1)
}
disabledPrevPage={pagination.pageIndex <= 1}
disabledPrevPage={pagination.pageIndex < 1}
short
/>
<div className="bg-fill-tertiary h-4 w-[1px]" />
Expand Down Expand Up @@ -180,7 +180,7 @@ const FeedbackTableBar: React.FC<IProps> = (props) => {
disabledNextPage={
pagination.pageIndex + 1 >= (meta?.totalPages ?? 1)
}
disabledPrevPage={pagination.pageIndex <= 1}
disabledPrevPage={pagination.pageIndex < 1}
/>
<div className="w-[272px]">
<DateRangePicker
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/widgets/issue-table/ui/issue-table.ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const IssueTable: React.FC<IProps> = ({ projectId }) => {
disabledNextPage={
pagination.pageIndex + 1 >= (data?.meta.totalPages ?? 1)
}
disabledPrevPage={pagination.pageIndex <= 1}
disabledPrevPage={pagination.pageIndex < 1}
setLimit={table.setPageSize}
/>
<div className="w-[300px]">
Expand Down
5 changes: 3 additions & 2 deletions packages/ufb-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
"@ufb/eslint-config": "workspace:*",
"@ufb/prettier-config": "workspace:*",
"@ufb/tsconfig": "workspace:*",
"eslint": "^9.0.0",
"eslint": "catalog:",
"prettier": "catalog:",
"react": "^18.2.0",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
"typescript": "catalog:"
}
}
4 changes: 2 additions & 2 deletions packages/ufb-tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"@ufb/eslint-config": "workspace:*",
"@ufb/prettier-config": "workspace:*",
"autoprefixer": "^10.4.19",
"eslint": "^9.0.0",
"eslint": "catalog:",
"glob": "^11.0.0",
"postcss": "^8.4.38",
"postcss-cli": "^11.0.0",
"postcss-import": "^16.1.0",
"postcss-nesting": "^12.1.2",
"prejss-cli": "^0.3.3",
"prettier": "^3.2.5",
"prettier": "catalog:",
"tailwindcss": "^3.4.3"
}
}
6 changes: 4 additions & 2 deletions packages/ufb-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"@ufb/prettier-config": "workspace:*",
"@ufb/tailwind": "workspace:*",
"@ufb/tsconfig": "workspace:*",
"eslint": "^9.0.0",
"tailwindcss": "^3.4.3"
"eslint": "catalog:",
"prettier": "catalog:",
"tailwindcss": "^3.4.3",
"typescript": "catalog:"
}
}
62 changes: 46 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
packages:
- apps/*
- packages/*
- tooling/*
- tooling/*

catalog:
eslint: ^9.7.0
prettier: ^3.3.3
typescript: ^5.5.3
5 changes: 3 additions & 2 deletions tooling/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
"devDependencies": {
"@ufb/prettier-config": "workspace:*",
"@ufb/tsconfig": "workspace:*",
"eslint": "^9.0.0",
"eslint": "catalog:",
"rimraf": "^6.0.0",
"typescript": "^5.4.5"
"prettier": "catalog:",
"typescript": "catalog:"
},
"prettier": "@ufb/prettier-config"
}
4 changes: 2 additions & 2 deletions tooling/prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
},
"dependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.0"
},
"devDependencies": {
"@types/node": "20.14.14",
"@ufb/tsconfig": "workspace:*",
"typescript": "^5.4.5"
"typescript": "^5.5.4"
},
"prettier": "@ufb/prettier-config"
}

0 comments on commit 27699e5

Please sign in to comment.