You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since there's potential that there could be a LOT of STARs on the platform, the Mentors/TAs can end up having to scroll for a long time if the list is exceptionally long.
Requirements:
Have two Sort buttons - By date and By name
Default SORT BY should be date
Upon clicking of the Sort button, the user will be redirected to a new URL - it's the Dashboard URL + sort={option} with the {option} being either date or name
If the sort key exists in the URL, the DB query changes its SORT BY value
At the top, between the two Sort buttons there should be a list of pages IF the number of pages is more than 1
Similarly to the Sort buttons, upon clicking on a page the URL updates with page={x} where {x} is the number of the page
If the page key exists in the URL, the DB query changes its LIMIT and OFFSET values (read more docs here)
LIMIT is the same - 100, which is a good balance between page length and usability
OFFSET is 100 x page, so on page number 3, the value for OFFSET is 300
Note:
When using API side pagination you CANNOT do Search in the frontend. It has to go through the DB, since the FE would not have the STARs from the other pages.
The text was updated successfully, but these errors were encountered:
droud-dev
changed the title
Mentor/TA Dashboard - STARs sorting and pagination
Stretch goal: Mentor/TA Dashboard - STARs sorting and pagination
Mar 4, 2023
Since there's potential that there could be a LOT of STARs on the platform, the Mentors/TAs can end up having to scroll for a long time if the list is exceptionally long.
Requirements:
By date
andBy name
SORT BY
should be datesort={option}
with the{option}
being eitherdate
orname
sort
key exists in the URL, the DB query changes itsSORT BY
valuepage={x}
where{x}
is the number of the pagepage
key exists in the URL, the DB query changes itsLIMIT
andOFFSET
values (read more docs here)LIMIT
is the same - 100, which is a good balance between page length and usabilityOFFSET
is 100 xpage
, so on page number 3, the value forOFFSET
is 300Note:
When using API side pagination you CANNOT do Search in the frontend. It has to go through the DB, since the FE would not have the STARs from the other pages.
The text was updated successfully, but these errors were encountered: