| | 1 | == Use-case 3 - View Components |
| | 2 | |
| | 3 | Initating actor: Guest or User \\ |
| | 4 | Other Actors: / \\ |
| | 5 | |
| | 6 | The user wants to browse PC components in the system and optionally filter the results by brand or/and by price. |
| | 7 | The system returns only the components that match the selected criteria. |
| | 8 | |
| | 9 | == Scenario |
| | 10 | |
| | 11 | Step 1. User clicks on COMPONENTS button in the navigation bar. \\ |
| | 12 | Step 2. User selects component category (for example Processors) \\ |
| | 13 | Step 3. System queries the database \\ |
| | 14 | {{{ |
| | 15 | SELECT * |
| | 16 | FROM components |
| | 17 | WHERE type = 'cpu' |
| | 18 | ORDER BY price DESC |
| | 19 | LIMIT 100; |
| | 20 | }}} |
| | 21 | Step 4. System returns components from the "Processor" category. \\ |
| | 22 | Step 5. Optionally the user can apply a brand filter on the left side of the panel, for example filtering all components that are made by "Intel". \\ |
| | 23 | |