Skip to content

Commit

Permalink
Status Cards & Results (#259)
Browse files Browse the repository at this point in the history
* Dashboard card & New Anlaysis form

* create `ResetButton` component
* remove `useFormStatus` from SubmitButton component
* dashboard is a route to itself

* add missing utils

* add @ rules for new folders

* update packages

* remove react-hook-form; create useForm hook to handle forms using zod schema; display validation errors

* add hooks

* update packages

* update packages; update results page
  • Loading branch information
robahtou authored Nov 24, 2024
1 parent 3b3f0d4 commit 545b4b2
Show file tree
Hide file tree
Showing 27 changed files with 1,621 additions and 3,289 deletions.
31 changes: 4 additions & 27 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,39 +1,16 @@
import path, { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';


const __dirname = dirname(fileURLToPath(import.meta.url));


/** @type {import('next').NextConfig} */
const nextConfig = {
compress: true,
devIndicators: {
buildActivityPosition: 'bottom-right'
},

eslint: {
ignoreDuringBuilds: false
},

generateEtags: true,
httpAgentOptions: {
keepAlive: true
},
logging: {
fetches: {
fullUrl: false
}
ignoreDuringBuilds: true
},
compress: true,
poweredByHeader: false,

reactStrictMode: true,
typescript: {
ignoreBuildErrors: true
},

experimental: {
optimizePackageImports: [],
typedRoutes: true
reactCompiler: true
}
};

Expand Down
33 changes: 14 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,39 @@
{
"name": "bna-admin-amplify",
"name": "bna-dashboard",
"version": "0.1.0",
"private": true,
"devDependencies": {
"@types/node": "22.9.0",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@typescript-eslint/eslint-plugin": "8.14.0",
"@typescript-eslint/parser": "8.14.0",
"@types/node": "22.9.1",
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"autoprefixer": "10.4.20",
"babel-plugin-react-compiler": "19.0.0-beta-0dec889-20241115",
"del-cli": "6.0.0",
"eslint": "9.15.0",
"eslint-config-next": "15.0.3",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react-hooks": "5.0.0",
"next": "15.0.3",
"postcss": "8.4.49",
"postcss-custom-media": "11.0.5",
"postcss-import": "16.1.0",
"postcss-media-minmax": "5.0.0",
"postcss-nesting": "13.0.1",
"typescript": "5.6.3"
"typescript": "5.7.2"
},
"dependencies": {
"@aws-amplify/ui-react": "6.5.5",
"@hookform/resolvers": "^3.9.1",
"aws-amplify": "6.8.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"@aws-amplify/ui-react": "6.7.0",
"@hookform/resolvers": "3.9.1",
"aws-amplify": "6.9.0",
"postgres": "3.4.5",
"react": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0-rc-66855b96-20241106",
"react-error-boundary": "4.1.2",
"react-hook-form": "7.53.2",
"react-spinners": "0.14.1",
"ws": "8.18.0",
"zod": "3.23.8"
},
"scripts": {
"start": "next dev",
"start": "next dev --turbo",
"build": "next build",
"build:start": "next start",
"lint": "next lint",
"repack": "del node_modules package-lock.json pnpm-lock.yaml && pnpm install"
"repack": "del .next node_modules package-lock.json pnpm-lock.yaml && pnpm install"
}
}
Loading

0 comments on commit 545b4b2

Please sign in to comment.