-
Notifications
You must be signed in to change notification settings - Fork 0
Table Backend Integration #98
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
Conversation
naasanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple requests. Code looks great so far. Probably hold off on extending to other tables for now cuz of the modularization requests, but I will take a look at the fixes as soon as possible after you push them
naasanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a couple comments. Aside from that there are some other things like optimistic rendering but we can leave that for extra tickets after we get the main impl in. You are good to start extending to the rest of the tables once you get those fixes in.
…into calebyhan/table-backend-integration
…into calebyhan/table-backend-integration
| } | ||
| } | ||
|
|
||
| async getLocations(): Promise<PaginatedLocationResponse> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need backend -> frontend types mapping
| return { | ||
| id: "1", | ||
| name: "Admin User", | ||
| email: "[email protected]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverting back to what it is in main
| email: "[email protected]", | |
| email: "[email protected]", | |
| accessToken: "fake-access-token-for-dev", | |
| refreshToken: "fake-refresh-token-for-dev", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't review this yet
Now that the backend is mostly done, we can integrate all CRUD functions into the table.
Changes:
route.ts: fixed to accomodate backend mock authpage.tsx: demo page for student tableDeleteConfirmDialog.tsx: sample dialog popup for deleting entry, just as sample so intended to be replaced laterStudentTable.tsx: component for the table itselfStudentTableCreateEdit.tsx: edited to change for the updated call/text pref enumTableTemplate.tsx: these changes might be in progress in a different pr, or not necessary at all, need review on thisstudentService.ts: service for all the table functionsstudent.ts: paginated response typeCloses #81