Skip to content

Fix puzzle widget theme sync#2983

Merged
veloce merged 2 commits into
lichess-org:mainfrom
r3econ:puzzle-widget-theme-sync-problem
Apr 14, 2026
Merged

Fix puzzle widget theme sync#2983
veloce merged 2 commits into
lichess-org:mainfrom
r3econ:puzzle-widget-theme-sync-problem

Conversation

@r3econ

@r3econ r3econ commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Fixes two bugs related to the puzzle widget (one of them probably also affecting kid mode in blog feed widgets).

Bug 1

We have recently changed the entitlements files from group.org.lichess.mobileV2 to group.org.lichess.mobileV2.LichessWidgets, but both the Dart (_kIosAppGroupId in lib/src/app.dart) and Swift (LichessAppGroup.id in ios/LichessWidgets/LichessAppGroup.swift) code still referenced the old ID. So the app wrote into one suite and the widget read from another (which fell back to defaults)

Fix: Simple app group name fix

Bug 2

An updated would not have boardTheme/pieceSet written, and the widget would use its Swift-side fallback defaults (defaultThemeName/defaultPieceSet) instead of the app's actual preferences

Fix: Sync at app start

Demo

1.mov

@veloce veloce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@veloce veloce merged commit 481b4c5 into lichess-org:main Apr 14, 2026
1 check passed
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.

2 participants