Skip to content

Store user contributions in browser-storage #159

@IanMayo

Description

@IanMayo

Here's the initial description of the problem:

  • analyst has added cursors to a gram image, and wishes to check they're valid
  • analyst clicks on Analysis link, which takes browser to analysis page
  • analyst goes back to the gram page, and their cursors have been lost (page refresh)

Initial answer is to teach user how to open link in new tab, and offer to modify script to generate links that always open analysis table in new popup tab.

Longer answer is to offer to store user contributions (cursors, harmonics, dopplers) in the browser. This was seen as beneficial, since once trainer has annotated a gram, the annotations will still be there next time they open the gram. They would be stored as a JSON array of entries, in a browser storage slot that has the current page as index.

This capability would require a Clear gram button, which would clear the stored annotations for this page.

Hmm, but what about students using a PC that was used by a student on a previous course? We wouldn't like them to see the cursors/harmonics/doppler for the previous user.

This would require a Clear all button (if that's possible, since we're not on the exact same web page - though we are at the same (file-based) TLD).

Or, we set these cookies to expire, after, say 2 weeks (length of time to be discussed with analyst).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions