Skip to content
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

Duplicate Buttons for Same City Search #38

Open
adaharshsingh opened this issue Oct 9, 2024 · 2 comments
Open

Duplicate Buttons for Same City Search #38

adaharshsingh opened this issue Oct 9, 2024 · 2 comments

Comments

@adaharshsingh
Copy link
Owner

when users search for the same city multiple times. It shows the bug as shown in the image. i.e button become more than 3.

Proposed Solution

  • We need to modify the current logic to ensure that only three buttons are displayed for the most recent unique searches.
  • If a user searches for a city that already exists among the displayed buttons, it should not create a duplicate button but rather update the existing button's position.

Steps to Reproduce the bug

  • Search for Any city thrice , for examle , search for "Bhubaneswar."
  • Search for "Bhubaneswar" again two more times.
  • Now search for any random city like delhi
  • Observe that instead of showing three buttons, it results in more buttons with 3 Bhubaneswar buttons.

Screenshot 2024-10-09 152831

Expected Behavior

  • The application should display a maximum of three buttons for the most recent unique city searches.
  • If the user searches for a city already displayed, the button should update its position rather than create a new one.
@swarupn17
Copy link

Hey @adaharshsingh I can do this task. Please can you assign this task to me.
Thanks !

@adaharshsingh
Copy link
Owner Author

Go Ahead!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants