Skip to content

Add Recent Search History for Better User Experience #156

Description

@Adithyakp86

🚀 Feature Request

Description

Currently, users can search for a city's weather, but previous searches are not saved. Adding a recent search history feature would improve usability by allowing users to quickly revisit previously searched locations.

Proposed Solution

  • Store the last 5–10 searched cities using Local Storage.
  • Display recent searches below the search bar.
  • Allow users to click a previous city to fetch its weather again.
  • Add an option to clear the search history.

Benefits

  • Improves user experience.
  • Reduces repetitive typing.
  • Makes navigation faster.
  • Beginner-friendly feature for contributors.

Acceptance Criteria

  • Recent searches are saved in Local Storage.
  • Maximum of 10 cities are stored.
  • Clicking a city fetches its weather instantly.
  • Users can clear all saved searches.
  • Feature works on both desktop and mobile devices.

Labels

enhancement good first issue javascript frontend hacktoberfest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions