Skip to content

Cache "open" applications #219

@jbriones1

Description

@jbriones1

Motivation behind the feature and what it will do

Right now, the super unused tab bar only needs to handle one tab and refreshing the page doesn't cause any issues. Once more applications pop up, I think we could cache the what tabs are "open" and have them show up if the page is refreshed or the site is visited again.

Which part of the application will this feature be for?

The tab bar on the main site.

Minimal Viable Product

  • When a user's tab info is updated, that will be saved to local storage
  • When a user returns to the site or refreshes the page the tab bar status should automatically repopulate, giving the impression that the site has saved your session

Code changes

  • Updating the application.ts behaviour to save its state to local storage as a stringified JSON
  • When the user open the site, application.ts will try to read the tab state and restore it if it's possible
    • Any invalid applications will be skipped when restoring a session

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmainRelated to the main site

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions