Skip to content

[Feature]: Remember Last Selected Algorithm Across Page Refreshes #777

Description

@AbishmaB

Problem or limitation

Currently, the selected algorithm resets to the default whenever the page is refreshed or reopened. Users who frequently explore the same algorithm must manually select it again each time, which interrupts the learning experience and adds unnecessary repetitive steps.

Proposed solution

Store the user's last selected algorithm in the browser's localStorage and automatically restore it when the application loads. If no previously selected algorithm is found or the stored value is no longer valid, the application should fall back to the default algorithm without affecting existing behavior.

Alternatives considered

Another possible approach would be to preserve the selected algorithm only during the current browser session using sessionStorage. However, using localStorage provides a better user experience by remembering the user's preference even after the browser is closed and reopened.

Use case

This would help users who regularly work with the same algorithm or revisit the application for practice. Instead of selecting the same algorithm every time they refresh or reopen the page, they can continue from where they left off, making the workflow smoother and more convenient.

Additional context

This feature is a small frontend enhancement that can be implemented without any backend changes. It improves usability while keeping the existing application behavior intact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GSSoCOfficial issue for GSSoC contributors

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions