Skip to content

Filter state resets on page refresh β€” persist active filters using localStorageΒ #502

@Kartikeyji17

Description

@Kartikeyji17

πŸ› Describe the bug

When a user applies filters (language, competition level, domain etc.)
and refreshes the page, all filter selections are lost and reset to
default. This forces users to reapply filters every single time they
revisit or refresh the page.

πŸ” Steps to Reproduce

  1. Open the GSoC Org Finder
  2. Apply any filter (e.g. Python language or Low Competition chip)
  3. Refresh the page (F5)
  4. All filters are reset β€” none of the previous selections remain

βœ… Expected Behavior

Active filters should persist across page refreshes using localStorage.
The project already uses localStorage for browsing history analytics,
so the same approach can be extended to save and restore filter state.

❌ Actual Behavior

All filters reset to default on every page refresh with no state saved.

πŸ“Έ Screenshots

No screenshot needed β€” reproducible on any browser by applying
filters and pressing F5.

🌱 Contributor Checklist

  • I am participating via GSSoC
  • I have read the contribution guidelines
  • I checked for existing issues before creating this

πŸ’» Environment

  • Browser: Chrome
  • Device: Desktop
  • OS: Windows

πŸ“ Additional Context

The fix will only involve src/js/app.js. On every filter change,
active filters will be saved to localStorage. On page load, saved
filters will be read and reapplied automatically. No new dependencies
needed.

I would like to work on this issue under #GSSoC'26.
Please assign it to me @S3DFX-CYBER βœ…

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions