adobe / adobe/leonardo

Data loss with page refresh

Open
#162 2 comments 2 reactions 0 assignees View on GitHub
bug UI
Dominant language
JavaScript
Stars
2.1k
Forks
130
PR merge metrics
No merged PRs in 30d

Description

## Description

In the previous version, each theme or colour scale seemed to have an automatic custom url so if you accidentally closed a window, you could simply check your history and reopen it. Now with the generic working url, there is no option to reload your work. I tried using the naming feature but this also had no impact.

In Adaptive Color Theme there is an option to "share theme url" but this link only works for the initial page load and then resets itself to "https://leonardocolor.io/theme.html#" repeating the same data loss issue.

## Steps to reproduce

1. Go to http://leonardocolor.io/
2. Click on ... Adaptive Color Theme OR Color Scales > add colour > refresh page
3. Observe ... page reset to basic and previous data is lost

## Expected behavior

Expect page data to automatically save like it did before and have custom urls. Either creating a custom url containing the pages data or custom url with theme / color name.

## Screenshots

## Environment
- **Browser(s) and OS(s):**
macOS Monterey Version 12.3.1
Safari Version 15.4 (17613.1.17.1.13)

## Additional context

There is an option to share url for theme only works if you intentionally click it - not great for accidentally closing / refreshing a window which is very common.

Contributor guide

Open the contributing guide

Research direction

Start at http://leonardocolor.io/ and reproduce the reset through Adaptive Color Theme or Color Scales > add colour, then inspect how the page state and shared theme URL are handled. Done means refreshing or reopening the page preserves the created data, and the generated theme URL remains usable beyond the initial load.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.