dewv / nlcAttendance

Attendance tracking for the Naylor Learning Center at Davis & Elkins College
MIT License
2 stars 2 forks source link

Implement infinite scrolling for visit list (v2) #167

Closed smattingly closed 3 years ago

smattingly commented 3 years ago

I found a good example of what we are trying to do. Here is the demo, and here is the tutorial.

})();


- [x] We will need to implement the API URL that the browser code above accesses to fetch the data. This is where the logic removed from the `<tbody>` tags above will be relocated. To understand how this will work, load [page 1](https://api.javascripttutorial.net/v1/quotes/?page=1&limit=10) and [page 2](https://api.javascripttutorial.net/v1/quotes/?page=2&limit=10) from the demo I found. Notice how the URL is the same except for parameters. The browser code above fetches these data pages as needed and populates them in the table.
BroadusA commented 3 years ago

03/25: I have completed the first three checkboxes and am currently reviewing the demos from above.

BroadusA commented 3 years ago

3/29: Can we work on the API section tomorrow around 10:45 if possible ?

smattingly commented 3 years ago

@BroadusA I am nearly finished with my server side part. In the code I provided above, I have made an edit that changes two lines. Both lines are marked with a comment: // modified. Please change your code to match the edits to those two lines (but don't include the marker comments).

smattingly commented 3 years ago

@BroadusA Once again, I have modified the code given above, changing the URL and the fetch call in lines 6 and 7. Please match those changes in your code.

Then, you will need to pull my changes from GitHub. You can try doing that by clicking the "sync" arrows circle in the GitPod tool bar. Depending on what files you have changed, there may or may not be some cleanup we have to do to combine our changes. Let me know if you are able to pull my changes and launch the app in GitPod, then we'll debug from there.

BroadusA commented 3 years ago

4/9: Professor Mattingly and I have been working on some troubleshooting while trying to sync our codes together.

smattingly commented 3 years ago

Good work, @BroadusA. @dewv/managers will take it from here.