Skip to content

[Feature]: Add Recommendation History Using Local Storage #770

@shrushtigaynar

Description

@shrushtigaynar

What problem does this solve?

Problem Statement

Currently, users lose their project recommendations when they refresh the page or generate a new set of recommendations. This makes it difficult to revisit previously suggested projects and compare different recommendations.

Proposed Solution

Implement a Recommendation History feature using browser localStorage.

Proposed solution

Implement a Recommendation History feature using browser localStorage.

Requirements

  • Store the last 5 recommendation results.
  • Display a "Recent Recommendations" section on the homepage.
  • Show:
    • Project Title
    • Difficulty Level
    • Interest Category
  • Automatically remove the oldest recommendation when more than 5 recommendations are stored.
  • Add a "Clear History" button.
  • No backend changes should be required.

Benefits

  • Improves user experience by preserving previous recommendations.
  • Allows users to revisit and compare previous project suggestions.
  • Lightweight implementation using client-side storage.
  • Enhances usability without affecting the existing recommendation engine.

Possible Files Affected

  • templates/
  • static/js/
  • static/css/

Additional Notes

The UI should remain consistent with the existing design and recommendation history should persist across page refreshes.

Alternatives considered

No response

Which part of the app does this affect?

Homepage and form

Estimated complexity

Medium (one function and one template change)

Before submitting

  • I searched existing issues and this has not been requested before.
  • This change would benefit contributors beyond my own use case.

i would like to work on this issue under gssoc
kindly assign this to me

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions