Skip to content

fix: add import fallbacks for missing optional tokens (v1.2.3)#13

Merged
kkugot merged 2 commits intomainfrom
release/v1.2.3
Mar 23, 2026
Merged

fix: add import fallbacks for missing optional tokens (v1.2.3)#13
kkugot merged 2 commits intomainfrom
release/v1.2.3

Conversation

@kkugot
Copy link
Copy Markdown
Owner

@kkugot kkugot commented Mar 23, 2026

Summary

Make import-export.sh more tolerant of incomplete theme files by filling the two commonly omitted optional tokens during import.


Context / Motivation

Users can have valid theme files that omit selectedListItemText or backgroundMenu, but the import flow previously treated those gaps as hard failures instead of following the same fallback behavior used by the app.


Changes

  • add import-time fallbacks for selectedListItemText -> background
  • add import-time fallbacks for backgroundMenu -> backgroundElement
  • preserve existing color, defs, and single-mode import handling while producing clearer missing-token errors for truly required fields
  • bump the package version to 1.2.3

Testing

  • npm run test
  • npm run lint
  • npm run build
  • ✅ verified public/import-export.sh with the provided incomplete theme JSON

Version

Patch release: 1.2.3

@kkugot kkugot merged commit e9d9309 into main Mar 23, 2026
1 check passed
@kkugot kkugot deleted the release/v1.2.3 branch March 23, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant