Ways we can use localStorage

Created on 21 March 2023, over 1 year ago
Updated 9 June 2023, over 1 year ago

Problem/Motivation

Alright, @mherchel, I'm convinced we should use local storage. Now let's talk about implementation. We would need to delegate responsibility of ensuring the checkbox is checked to javascript (as Gin does: https://git.drupalcode.org/project/gin/-/blob/8.x-3.x/js/sidebar.js)

This might cause trouble for the work I've done to handle loading the off-canvas dialog in same_page_preview.module.

Let's study this...

While studying this we found the implementation of localStorage to be quick and easy. This leads us to question what else we could tuck into localStorage. A couple quick ideas of settings we could store

  • scroll position of preview
  • "full screen" mode
  • the view mode drop down
  • other state (like whether the preview is out of date)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cosmicdreams Minneapolis/St. Paul

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024