Skip to content

Impossible to save custom themes to library after importing JSON #287

Description

@DuluozPast

Hi,
I would like to report an issue regarding the custom keyboard theme management (JSON import/export).
The Issue: When I import a theme by pasting its raw JSON string into the editor, the colors load perfectly on the live preview keyboard. However, it is impossible to actually save this theme to my saved themes library.
The issue is exactly the same if I try the alternative logical route:
Click "New" to create a theme.
Type a "theme name".
Click "Import" and paste the raw JSON string.
The live draft updates correctly with the imported colors, but there is no button or action to confirm and permanently save this draft. As soon as I exit the screen, the theme is lost.
Technical Insight: It looks like importing the raw JSON string successfully updates "keyboard_theme_hardware" (the active customizer state) but doesn't trigger a write or append to "keyboard_theme_saved_themes". This might be because the pasted string only contains the properties inside "theme": {} (missing the wrapping "name" object), or because the "Save" action is missing/unresponsive after importing.
Would it be possible to add a "Save Theme" button in the customizer, or ensure that the New -> Name -> Import workflow properly persists the theme to the library?
Thank you so much for your amazing work on Pastiera!
 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions