diff --git a/.dockerignore b/.dockerignore index 36d8451c..f2e4585c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,3 @@ -/postgres-data /node_modules /public/build .git diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 8f2bbcd8..b8ab4786 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -79,5 +79,14 @@ module.exports = { node: true, }, }, + + // Shadcn-ui + { + files: ["**/components/ui/*.tsx"], + rules: { + "react/prop-types": "off", + "jsx-a11y/heading-has-content": "off", + }, + }, ], }; diff --git a/.gitignore b/.gitignore index bd245827..fad0d964 100644 --- a/.gitignore +++ b/.gitignore @@ -18,5 +18,3 @@ node_modules /public_key.pem Caddyfile - -postgres-data diff --git a/.prettierignore b/.prettierignore index 7eb001a3..5051a612 100644 --- a/.prettierignore +++ b/.prettierignore @@ -6,7 +6,6 @@ node_modules /cypress/screenshots /cypress/videos -/postgres-data /app/styles/tailwind.css /coverage diff --git a/README.md b/README.md index 23b54c01..a1406952 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,9 @@ You need to have a PostgreSQL database running. The easiest way is to use Docker npm run docker:dev ``` -(Stores data in `./postgres-data`) +(Stores data in a Docker volume) (You can get a psql shell with `npm run psql:dev`) -(On CTRL-C the database is stopped. To remove container use `docker system prune`) +(On CTRL-C the database is stopped. To remove container and volume use `npm run docker:devrm`) The database can be initialized with diff --git a/app/admin/UserTableRow.tsx b/app/admin/UserTableRow.tsx index 3beb5209..2b15e0a0 100644 --- a/app/admin/UserTableRow.tsx +++ b/app/admin/UserTableRow.tsx @@ -1,5 +1,8 @@ import type { User } from "~/models/user.server"; import type { ExpertiseLevel } from "@prisma/client"; +import { TableCell, TableRow } from "~/components/ui/table"; +import { Checkbox } from "~/components/ui/checkbox"; +import { Label } from "~/components/ui/label"; interface IProps { user: User; @@ -16,13 +19,11 @@ export const UserTableRow = ({ }: IProps) => { const usersExpertiseLevels = user.expertiseLevels; return ( - - {user.email} - - + {user.email} + + { if (window.confirm("Are you sure?") === false) { @@ -33,38 +34,37 @@ export const UserTableRow = ({ onUpdate(data); }} /> - - -