-
-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
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.
UX/UI
✅ First acceptance criterion passed, I can filter the list to show only resources of a given topic:
❌ Second acceptance criterion failed, the pagination doesn't work correctly with topic filtering - it won't show resources from subsequent pages, and the number of pages shown doesn't correspond with the number of filtered resources
❓ It wasn't an explicit requirement, but did you realise you can't remove filtering by topic?
❓ Would it make sense for this to be closer to the pagination controls?
Implementation
✅ Resource list component uses topci service (mostly) sensibly
✅ Existing tests have been updated accordingly to keep pipeline passing
❌ Resource list has gained quite a lot of complexity but no additional low-level test cases for that
❌ No E2E test cases (except a brief check that the select is rendered at all)
💡 Also for you specifically we'd talked about SQL stuff, which still isn't shown here - even if we don't get to fixing pagination check my suggestion about using the topic ID, that would involve some.
Key:
- ✅ approval, nothing needs doing before merge
- ❌ problem, needs fixing before merge
- ❓ question, needs answering before merge
- 💡 suggestion, can be followed or ignored
A note on the conflicts: you can rebase this branch if you'd like to, but you are not required to. #33 changed the way the frontend is built and tested, which (among other things) requires a |
@textbook I Removed Home.test since i moved fetching resources into its own hook and also placed Pagination into resourceList therefor no functionality left in home page. |
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.
Thank you for iterating on this! I think we can consider this complete as far as the Tech Products application process is concerned.
If I were reviewing this as an actual change to merge (or not) into the codebase, I'd still want to do further work. Fundamentally this can't work in a sensible way without having an endpoint that handles filtering and pagination, so you can ask for e.g. "the third page of 20 resources in the React topic".
Also I think changing the filter selection currently resets the user's page size choice, which is a bit awkward (and would particularly conflict with the intent of #17).
I've left some comments for your information, but no further changes are needed for the application.
@textbook Thank you for your comment. I do agree with you If i understand it correctly we need to send topic id some how to backend and filter resource in there therefor we do not need to bring all data into front end and do filtering and pagination there. 👍 |
|
🍞 Closing as stale (more than one month without updates) |
This is a:
Description
we want user to be able to filter resource based on Topic we also want to make sure filter is apply to all pages not just current pages which means if we have same topic in other pages as well they must be shown when filter topic apply.
You can check out to FilterTopic branch and
npm run dev
choose topic from drop down menu and see the result or see screen recording belowScreencast from 11-03-24 12:02:33.webm
Links
Author checklist
main
from a branch named<category>/<name>
, e.g.feature/edit-spaceships
orbugfix/restore-oxygen