Skip to content

Ask for confirmation before losing unsaved changes #24

@egmontkob

Description

@egmontkob

Calling it a "Skin Editor", providing an editable text file with and a button to apply the changes and another to download the file, obviously all encourage a workflow of editing the file in the browser.

Yet, it's very easy to lose changes:

  • Close the browser tab
  • Switch to a different skin in the Skin Editor.

These actions should ask for confirmation if there are unsaved (undownloaded) changes.


Alternatively, would we want to rebrand / rework it to a read-only Skin Viewer?

People could use a more familiar text editor of their choice. There'd be an Upload button on the homepage that displays the uploaded skin. (You can easily follow this workflow already if you copy-paste the file's contents into the textarea, or if you run the Skin Editor locally.)

Instead of a black-and-white HTML textarea, we could reasonably color the skin file (each color name with itself), or present the color in a popup window on hover, or highlight the corresponding entry from the palette (if it's a 256-palette color). When hovering over a keyword, we could flash the corresponding cells in the screenshot.

Sure it needs some development (which I'm not planning to do now), but might be a direction to go in the future.

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