Skip to content

Persist DevIndex Animation Settings and Batch LocalStorage Reads #9301

@tobiu

Description

@tobiu

We want to persist the user's choices for the animation checkboxes in DevIndex so that users with low-end devices can permanently disable them.

To avoid sending multiple worker messages on startup, we will:

  1. Enhance the Neo.main.addon.LocalStorage.readLocalStorageItem method to accept an array of strings for opts.key. If an array is provided, it will return an object containing all requested key-value pairs.
  2. In DevIndex.view.ViewportController, update the startup logic to fetch ['devindexTheme', 'devindexSlowHeaderVisuals', 'devindexAnimateGridVisuals'] in a single call and apply them.
  3. Update the DevIndex checkbox handlers to persist their state to localStorage when changed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions