-
Notifications
You must be signed in to change notification settings - Fork 4.7k
docs: restructure functional-routing #1872
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
base: master
Are you sure you want to change the base?
Conversation
kravaring
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.
Just some minor comments, in overall looks good
|
|
||
| **As a** user | ||
| **I want** to navigate through pages of search results | ||
| **So that** I can view more items and keep my place in the app |
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.
'and keep my place in the app' => 'keep track of the viewed items'?
Not sure, but the initial verbiage sounds confusing :(
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.
right, updated 0fce00a
|
|
||
| **As a** user | ||
| **I want** to view item details alongside the search results | ||
| **So that** I can see more information without losing my place in the list |
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.
Maybe 'losing current position'?
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.
Margaryta-Maletz
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.
I believe, we should discuss my comments tomorrow
| - Create an About page with application author information | ||
| - Include a link to the RS School React course | ||
| - Add navigation to reach the About page from the main application | ||
| ## Functional Requirements (max **100 points**) |
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.
Row 9:
Focus on routing and functional components. Remove any button or functionality which throws exceptions unnecessarily.
What is our decision: delete or not delete?
| - Pagination controls are visible after items are loaded. | ||
| - Changing the page updates the URL with the correct `page` parameter. | ||
| - The visible page matches the page in the URL at all times. |
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.
| - Pagination controls are visible after items are loaded. | |
| - Changing the page updates the URL with the correct `page` parameter. | |
| - The visible page matches the page in the URL at all times. | |
| - Pagination controls are visible after items are loaded. [10 points] | |
| - Changing the page updates the URL with the correct `page` parameter. [10 points] | |
| - The visible page matches the page in the URL at all times. [10 points] |
| - **Then** the current page is displayed in the URL as a query parameter (e.g., `?page=2`) | ||
| - **And** the pagination controls reflect the current page | ||
| - **And** pagination appears only after the list of items is loaded | ||
|
|
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.
I would add something else about behavior when changing the input in the search bar. The page should be changed to 1. What do you think about that?
|
|
||
| - **Given** I am viewing the item list | ||
| - **When** I navigate to a different page using pagination controls | ||
| - **Then** the current page is displayed in the URL as a query parameter (e.g., `?page=2`) |
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.
| - **Then** the current page is displayed in the URL as a query parameter (e.g., `?page=2`) | |
| - **Then** the current page is displayed in the URL as a query parameter (e.g., `?page=2` or `/:page` ) |
| - Clicking an item opens a details panel on the right, using `<Outlet>`. | ||
| - The left side always shows the list of results. | ||
| - A loading indicator is visible while details are loading. | ||
| - The details panel can be closed via a close button or by clicking the main panel. | ||
| - The URL always reflects the current page and selected item. | ||
| - On initial load, no item is selected and the details panel is closed. |
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.
| - Clicking an item opens a details panel on the right, using `<Outlet>`. | |
| - The left side always shows the list of results. | |
| - A loading indicator is visible while details are loading. | |
| - The details panel can be closed via a close button or by clicking the main panel. | |
| - The URL always reflects the current page and selected item. | |
| - On initial load, no item is selected and the details panel is closed. | |
| - Clicking an item opens a details panel on the right, using `<Outlet>`. [8 points] | |
| - The left side always shows the list of results. [8 points] | |
| - A loading indicator is visible while details are loading. [8 points] | |
| - The details panel can be closed via a close button or by clicking the main panel. [8 points] | |
| - The URL always reflects the current page and selected item. [8 points] | |
| - On initial load, no item is selected and the details panel is closed. [5 points] |
| - The About page displays author information and a link to the RS School React course. | ||
| - The About page is accessible via a navigation link from the main application. |
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.
| - The About page displays author information and a link to the RS School React course. | |
| - The About page is accessible via a navigation link from the main application. | |
| - The About page displays author information and a link to the RS School React course. [5 points] | |
| - The About page is accessible via a navigation link from the main application. [5 points] |
| - The About page displays author information and a link to the RS School React course. | ||
| - The About page is accessible via a navigation link from the main application. | ||
|
|
||
| ### Feature 4: 404 Page (**10 points**) |
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.
| ### Feature 4: 404 Page (**10 points**) | |
| ### Feature 4: 404 Page (**15 points**) |
| - A 404 page is displayed for all unknown or non-existing routes. | ||
| - The 404 page contains a clear message that the page was not found. | ||
| - The 404 page provides a navigation option (e.g., button or link) to return to the main app. |
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 404 page is displayed for all unknown or non-existing routes. | |
| - The 404 page contains a clear message that the page was not found. | |
| - The 404 page provides a navigation option (e.g., button or link) to return to the main app. | |
| - A 404 page is displayed for all unknown or non-existing routes. [5 points] | |
| - The 404 page contains a clear message that the page was not found. [5 points] | |
| - The 404 page provides a navigation option (e.g., button or link) to return to the main app. [5 points] |
| - Pick one router and follow its official documentation for setup and navigation. | ||
|
|
||
| ### Penalties | ||
|
|
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 to discuss this penalties
** Technical Requirements **
Component Conversion ... - 50 points
custom hook for localStorage operations ... -20 points
| - Details panel should be closed either on the "close" button click or on the main panel click - **10** | ||
| - About page is implemented with author information and a link to the RS School React course - **5** | ||
| - 404 is implemented - **5** | ||
| - New tests are added for the new functionality - **15** |
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.
Delete cross-check score from 182 to 192 rows
Title of Pull Request
Restructure functional routing task
🤔 This is a
Description
restructure functional routing task
Additional Information
https://github.com/rolling-scopes-school/tasks/blob/feature/react-functional-routing-task/react/modules/tasks/functional-routing.md
Checklist