Dushyant Goyal
@goyal-DushiAll comments
- @wyasynSubmitted 7 months ago@goyal-DushiPosted 7 months ago
Hi , there are few bugs in your application.
BUG 1 : Multiple countries data coming while viewing single country detail
Steps to reproduce
- Click on any country to view their details
- Type in name of another country in the search box and click on search
Issue : You will see that the country searched for comes above the country initially present in the UI, instead, it should either get replaced with the new search result or you shouldn't have the search box and filter by region while viewing a particular country detail !
BUG 2 : Neighboring countries not clickable
- The neighboring countries are not clickable
BUG 3 : Region filter goes away on Back click
After applying region filter, if we select a particular country to view its details and move back using the back button, the previously applied region filter goes away !
BUG 4: Search result vanishes from UI after blur
Looks like CSS issue : After typing any country name inside the search result, if we click outside the search box, the typed value goes away from the input field
Marked as helpful0 - @Aya-Saeed261Submitted almost 2 years ago
Feedback and suggestions are welcome :)
@goyal-DushiPosted almost 2 years agoI really liked your app. Just have few enhancement you could consider.
- Try also including Rock paper scissor game in it. So, you can have a switch which can toggle b/w the 2 types of games, the Rock paper & Scissor one , and the bonus one. : )
- Have a Reset button so that if someone wants to start a clean game, we could reset the whole progress !
1 - @MariaLuisaMDSubmitted almost 2 years ago
In this challenge I had some difficulties with the DOM and hover states, as well as some specific difficulties in the JS. I had to research a lot on how to solve the problems that arose, it took me longer than I expected to finish, but I found a good challenge. Suggestions on design and how to improve are always welcome
@goyal-DushiPosted almost 2 years agoIt works well, just few UI tips you can consider :
- Give input field some padding from right so that the number input doesn't stick to edges
- The label tag used for input field is missing attribute ( for )
- The heading spelling : SPL ( I ) TTER not SPL ( Y ) TTER :)
Also, as a bonus, try saving the input values entered by user in local storage of browser so that on page refresh, the values aren't lost. On reset, you can clear local storage.
Marked as helpful0 - @abdraoufxSubmitted about 2 years ago
- Any Feedbacks Are Welcome !!
@goyal-DushiPosted about 2 years agoI think you can work on the logic where you are determining the winner. So, in your code I found that you are using switch case statements to implement the logic. I had rather say there is better way to do that.
you can check my solution. I have implemented Rock paper scissor game !
https://github.com/goyal-Dushi/frontend-designs/blob/main/src/pages/RPSgame/components/GameResult.tsx
Marked as helpful0 - @0marDSubmitted about 2 years ago
This was quite a complex challenge for me, but I did it, although I know it could have been done in a better way So any suggestion is welcome.
@goyal-DushiPosted about 2 years agoYou should use form element for submission of any input value ( present in your HTML validation report) . divs are only used as layout elements. If you don't want to provide any href to a tags, you can use it like this <a role="button" tabindex="0" ...>...</a> or <a href="javascript:void(0);">something</a> or use <span> in case you are unsure of any links to be provided.
It is good practice and increases accessibility.
Rest looks fine!
Marked as helpful1 - @EmmanuelBalderasBSubmitted about 2 years ago
This was a fun one! Any feedback is appreciated and welcomed!
I couldn't figure out how to only let the user select only one option.
@goyal-DushiPosted about 2 years agoSo, to answer your doubt, you need to maintain a variable state of the button that has been clicked in your clicked function and then, when next time user clicks any button, you need to check if it the same or different button that has been clicked by comparing with the state variable.
- if same, then do nothing and return
- if different button, the removed all the styling applied to state variable button ( the previous button clicked ) , update the state variable with new button, and apply required styling to new button.
Also, use ' ./ ' for you image paths, ( relative path ) , so that it can find your images. Currently on website, images aren't loading !
Marked as helpful1