Skip to content

Preserve recommendation state after returning from project detail page#185

Open
jwalkorat wants to merge 1 commit into
komalharshita:mainfrom
jwalkorat:fix/preserve-recommendation-state
Open

Preserve recommendation state after returning from project detail page#185
jwalkorat wants to merge 1 commit into
komalharshita:mainfrom
jwalkorat:fix/preserve-recommendation-state

Conversation

@jwalkorat
Copy link
Copy Markdown

@jwalkorat jwalkorat commented May 16, 2026

Summary

Added recommendation state preservation when returning from a project detail page.

The selected form inputs are stored using sessionStorage and automatically restored when navigating back to the homepage.


Related Issue

Closes #52


Type of Change

  • Bug fix
  • Feature
  • Data
  • Documentation
  • Style
  • Refactor
  • Test

What Was Changed

File Change made
static/script.js Added sessionStorage restore logic for recommendations

How to Test This PR

  1. Run:
    python app.py

  2. Open:
    http://127.0.0.1:5000

  3. Fill the form and generate recommendations

  4. Open any project page

  5. Navigate back to the homepage

  6. Verify:

    • form inputs are restored
    • recommendations reload automatically
    • page scrolls to recommendations section

Test Results

Tested manually in browser.


Self-Review Checklist

  • Read CONTRIBUTING.md
  • Used correct branch naming
  • No debug statements added
  • Only related files modified
  • Tested on desktop and mobile

Notes for Reviewer

None.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

@jwalkorat is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting your first pull request to DevPath.

Before review:

  • Complete the PR template fully
  • Ensure all tests pass
  • Link your PR to an issue
  • Keep changes scoped to the issue

A maintainer will review your contribution soon.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preserve recommendation state after returning from project detail page

1 participant