Skip to content

Conversation

@calebyhan
Copy link
Collaborator

@calebyhan calebyhan commented Nov 19, 2025

Now that the backend is mostly done, we can integrate all CRUD functions into the table.

Changes:

  • route.ts: fixed to accomodate backend mock auth
  • page.tsx: demo page for student table
  • DeleteConfirmDialog.tsx: sample dialog popup for deleting entry, just as sample so intended to be replaced later
  • StudentTable.tsx: component for the table itself
  • StudentTableCreateEdit.tsx: edited to change for the updated call/text pref enum
  • TableTemplate.tsx: these changes might be in progress in a different pr, or not necessary at all, need review on this
  • studentService.ts: service for all the table functions
  • student.ts: paginated response type

Closes #81

@github-actions
Copy link

github-actions bot commented Nov 19, 2025

Test Results Summary

294 tests  ±0   294 ✅ ±0   7s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 4ba2eea. ± Comparison against base commit 9b98cc9.

♻️ This comment has been updated with latest results.

@calebyhan calebyhan requested a review from naasanov November 19, 2025 05:11
Copy link
Collaborator

@naasanov naasanov left a 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

Copy link
Collaborator

@naasanov naasanov left a 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.

}
}

async getLocations(): Promise<PaginatedLocationResponse> {
Copy link
Collaborator

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]",
Copy link
Collaborator

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

Suggested change
email: "[email protected]",
email: "[email protected]",
accessToken: "fake-access-token-for-dev",
refreshToken: "fake-refresh-token-for-dev",

Copy link
Collaborator

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

@naasanov naasanov merged commit 35be6a4 into main Nov 20, 2025
2 checks passed
@naasanov naasanov deleted the calebyhan/table-backend-integration branch November 20, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Table Backend Integration

3 participants