Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new application db schema #191

Closed
wants to merge 68 commits into from
Closed
Show file tree
Hide file tree
Changes from 53 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
b04bf79
created Drawer component
fvcci Aug 25, 2024
5cc521d
decoupled Drawer out of welcome page
fvcci Sep 7, 2024
4394d34
decoupled Drawer out of dashboard, grade, me, and scanner pages
fvcci Sep 7, 2024
4c1d275
change ApplicationTable button text from View Application to View
fvcci Sep 7, 2024
96319de
remove unused files
fvcci Sep 7, 2024
b6286bd
cleaning up file dependencies
fvcci Sep 7, 2024
9273b0d
removed navigation file
fvcci Sep 7, 2024
ed04075
created revision 1 of the table
fvcci Sep 8, 2024
70b83b8
adding cockroach-data to gitignore
fvcci Sep 8, 2024
49692ae
created FormStructureQuestion for many to many relationship
fvcci Sep 9, 2024
d6ccff4
Merge branch 'main' of github.com:deltahacks/portal into new-db-schema
fvcci Sep 16, 2024
8374749
feat: add new database schema to support dynamic form structures
fvcci Sep 16, 2024
f3d18cb
fix: changed QuestionCategory from enum to model to allow for dynamic…
fvcci Sep 17, 2024
7aa1f05
fix: added prisma migration for the new schema
fvcci Sep 17, 2024
be3c3fa
fix: removed overly restrictive @unique property from table fields an…
fvcci Sep 24, 2024
c8e34ba
fix: removed redundant ids
fvcci Sep 25, 2024
c517fa9
fix: new required field on answer types to handle optional questions
fvcci Sep 27, 2024
b253dd4
fix: updated prisma to the latest release
fvcci Sep 27, 2024
75ab663
fix: improved database schema
fvcci Sep 27, 2024
ecb0557
feat: created 'prisma db seed dH10ApplicationFormStructure' script
fvcci Sep 27, 2024
a23d47d
fix: renamed dH10ApplicationFormStructure command to seed command
fvcci Sep 27, 2024
b52f2c7
refactor: column renaming and fixed multi update bug in seeding
fvcci Sep 27, 2024
55e954e
refactor: added answer typing
fvcci Sep 27, 2024
74d1f58
refactor: added question typing
fvcci Sep 27, 2024
9cb4af2
feat: rerouted application submit button from dh10application to dyna…
fvcci Sep 27, 2024
46e1ae8
refactor: moved status tracking from user context to form context
fvcci Sep 29, 2024
6b4a23e
refactor: decoupled out createDeltahcksXForm commands
fvcci Sep 29, 2024
c14dca0
refactor: decoupled config and session user application queries
fvcci Sep 30, 2024
0d48ad4
feat: replaced trpc.application.status with trpc.application.getAppli…
fvcci Sep 30, 2024
945f214
feat: redo applications without application deletion
fvcci Sep 30, 2024
5dba207
refactor: removed dead code
fvcci Sep 30, 2024
4f23ef4
refactor: apply.tsx page decoupled killswitch and user application logic
fvcci Sep 30, 2024
854bcc7
feat: rerouted getApplications to use new db
fvcci Sep 30, 2024
acccbc4
feat: rerouted getStatus and getStatusCount to use new db with getApp…
fvcci Sep 30, 2024
5643866
feat: querying prev auto fill from deltahacksX db
fvcci Oct 1, 2024
a468bc3
feat: grading queries from new db
fvcci Oct 1, 2024
e317d2d
fix: getPrevAutoFill TRPC type error
fvcci Oct 1, 2024
1b4a840
refactor: renamed AnswerType to AnswerRestriction
fvcci Oct 1, 2024
89e0305
refactor: rename AnswerType to AnswerRestriction
fvcci Oct 1, 2024
b2dd083
fix: users delete their application on application redo due to autofi…
fvcci Oct 1, 2024
71c2476
fix: compressed migrations
fvcci Oct 1, 2024
9ed9840
fix: created hackathonUYear assertion
fvcci Oct 1, 2024
6a1b5db
refactor: removed answerRestrictions file
fvcci Oct 1, 2024
c49fa5d
refactor: severed relationship between Answer and FormSubmission and …
fvcci Oct 1, 2024
abddc86
refactor: renamed some database fields
fvcci Oct 1, 2024
35ec63b
refactor: removed deprecating User.dh10application table as it is sti…
fvcci Oct 1, 2024
e4264b0
refactor: generalized formYear to be formStructureId so that forms ca…
fvcci Oct 2, 2024
6b015a7
refactor: removed AnswerRestrictions database
fvcci Oct 2, 2024
8ef5e9e
fix: applied code rabbit suggested edits
fvcci Oct 2, 2024
b1e2a42
ci: run qa db migration
arian81 Oct 2, 2024
5cfa931
refactor: did coderabbit suggestions
fvcci Oct 2, 2024
bd24419
refactor: separated seeding data into a separate file
fvcci Oct 2, 2024
d1642aa
Merge branch 'new-db-schema' of github.com:deltahacks/portal into new…
fvcci Oct 2, 2024
143e3e0
fix: modified schema such that questions are unique to each form
fvcci Oct 3, 2024
efdbdfc
fix: Changed QuestionCategory id to be [name, fromStructureId] so tha…
fvcci Oct 3, 2024
89fe2c7
fix: made categories and forms unique
fvcci Oct 3, 2024
de25d26
refactor: added question positioning relative to categories instead o…
fvcci Oct 3, 2024
f46cfd3
refactor: fixed grammer issue
fvcci Oct 3, 2024
6d00a15
fix: updated commands to be compatible with the new db desiogn
fvcci Oct 3, 2024
01d18b8
fix: null checks for query to directQueries and application submit AP…
fvcci Oct 3, 2024
b8b3440
feat: API endpoints for fileBuilder db
fvcci Oct 3, 2024
8d00c21
fix: code rabbit review
fvcci Oct 6, 2024
cebccc7
refactor: renamed directQueries to configQueries
fvcci Oct 6, 2024
a9d88df
feat: renamed fileBuilder to formBuilder
fvcci Oct 6, 2024
bc93313
feat: added name field to FormStructure
fvcci Oct 7, 2024
90adc6d
feat: made createForm backend endpoint
fvcci Oct 7, 2024
2f49c98
feat: removed QuestionCategory and added FormItem table
fvcci Oct 8, 2024
74817dd
fix: added required props field to welcome page GSSP
fvcci Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ yarn-error.log*

# typescript
*.tsbuildinfo

cockroach-data
101 changes: 52 additions & 49 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,79 +10,82 @@
"format": "prettier --write \"**/*.{ts,tsx,md,mdx,json,js,mjs,cjs}\"",
"format:check": "prettier --check \"**/*.{ts,tsx,md,mdx,json,js,mjs,cjs}\""
},
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed/seed.ts"
},
"dependencies": {
"@babel/plugin-transform-react-display-name": "^7.23.3",
"@formkit/auto-animate": "^0.8.1",
"@fullcalendar/bootstrap5": "^6.0.2",
"@fullcalendar/core": "^6.0.2",
"@fullcalendar/daygrid": "^6.0.2",
"@fullcalendar/react": "^6.0.2",
"@fullcalendar/timegrid": "^6.0.2",
"@hookform/resolvers": "^3.3.2",
"@babel/plugin-transform-react-display-name": "^7.24.7",
"@formkit/auto-animate": "^0.8.2",
"@fullcalendar/bootstrap5": "^6.1.15",
"@fullcalendar/core": "^6.1.15",
"@fullcalendar/daygrid": "^6.1.15",
"@fullcalendar/react": "^6.1.15",
"@fullcalendar/timegrid": "^6.1.15",
"@hookform/resolvers": "^3.9.0",
"@logsnag/node": "^1.0.1",
"@next-auth/prisma-adapter": "^1.0.4",
"@prisma/client": "^5.6",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-slot": "^1.0.2",
"@next-auth/prisma-adapter": "^1.0.7",
"@prisma/client": "^5.20.0",
fvcci marked this conversation as resolved.
Show resolved Hide resolved
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-slot": "^1.1.0",
"@sendgrid/mail": "^7.7.0",
"@syncfusion/ej2-react-schedule": "^20.4.43",
"@tanstack/react-query": "^4.35.7",
"@tanstack/react-table": "^8.10.7",
"@trpc/client": "^10.38.5",
"@trpc/next": "^10.38.5",
"@trpc/react-query": "^10.38.5",
"@trpc/server": "^10.38.5",
"@zxing/browser": "^0.1.1",
"bootstrap": "^5.2.3",
"bootstrap-icons": "^1.10.3",
"@syncfusion/ej2-react-schedule": "^20.4.53",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-table": "^8.20.5",
"@trpc/client": "^10.45.2",
"@trpc/next": "^10.45.2",
"@trpc/react-query": "^10.45.2",
"@trpc/server": "^10.45.2",
"@zxing/browser": "^0.1.5",
"bootstrap": "^5.3.3",
"bootstrap-icons": "^1.11.3",
"class-variance-authority": "^0.7.0",
"clsx": "^1.2.1",
"daisyui": "^4.0.9",
"daisyui": "^4.12.10",
"devextreme": "22.2.3",
"devextreme-react": "22.2.3",
"fork-react-qr-reader": "^3.0.1-beta-1",
"fork-react-qr-reader": "3.0.1-beta-1",
"ical-js-parser": "^0.6.12",
"ical.js": "^1.5.0",
"lucide-react": "^0.294.0",
"next": "^13.4.8",
"next-auth": "^4.15.1",
"next": "^13.5.6",
"next-auth": "^4.24.7",
"next-themes": "^0.2.1",
"papaparse": "^5.3.2",
"planby": "^1.1.2",
"posthog-js": "^1.150.0",
"papaparse": "^5.4.1",
"planby": "^1.1.7",
"posthog-js": "^1.161.5",
"prisma-generate": "^0.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.47.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.53.0",
"react-hook-form-persist": "^3.0.0",
"react-icons": "^4.7.1",
"react-qr-code": "^2.0.11",
"react-qr-reader": "^3.0.0-beta-1",
"react-icons": "^4.12.0",
"react-qr-code": "^2.0.15",
"react-qr-reader": "3.0.0-beta-1",
"react-select": "^5.8.0",
"react-timelines": "^2.6.1",
"superjson": "^1.10.0",
"tailwind-merge": "^2.1.0",
"superjson": "^1.13.3",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"validator": "^13.11.0",
"zod": "^3.18.0"
"validator": "^13.12.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/logrocket-react": "^3.0.3",
"@types/node": "18.0.0",
"@types/react": "18.0.14",
"@types/react-dom": "18.0.5",
"@types/validator": "^13.11.6",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"autoprefixer": "^10.4.8",
"@types/validator": "^13.12.2",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"autoprefixer": "^10.4.20",
"eslint": "8.22.0",
"eslint-config-next": "^13.4.16",
"postcss": "^8.4.16",
"prettier": "^2.8.2",
"eslint-config-next": "^13.5.6",
"postcss": "^8.4.47",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.1.13",
"prisma": "^5.6",
"tailwindcss": "^3.1.8",
"prisma": "^5.19.1",
"tailwindcss": "^3.4.11",
"typescript": "4.7.4"
},
"ct3aMetadata": {
Expand Down
Loading
Loading