Skip to content

Fix synced local tweaks#1220

Open
eleboucher wants to merge 3 commits into
SableClient:devfrom
eleboucher:fix/sync-local-tweak-css
Open

Fix synced local tweaks#1220
eleboucher wants to merge 3 commits into
SableClient:devfrom
eleboucher:fix/sync-local-tweak-css

Conversation

@eleboucher

@eleboucher eleboucher commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Description

Restores locally imported CSS tweaks after settings sync on a new device. The change migrates legacy cache-only tweaks, restores listing and application without IndexedDB races, bounds aggregate CSS payloads, preserves source-only oversized tweaks, and reports partial sync when necessary.

Verification

  • npm run test:run -- src/app/utils/settingsSync.test.ts src/app/hooks/useSettingsSync.test.tsx src/app/theme/syncedTweakCss.test.ts src/app/pages/ThemeManager.test.tsx src/app/theme/processThemeImport.test.ts src/app/features/settings/cosmetics/ThemeCatalogSettings.test.tsx (65 passed)
  • npm run fmt:check -- src/app/utils/settingsSync.ts src/app/utils/settingsSync.test.ts
  • git diff --check
  • npm run typecheck remains blocked by pre-existing Matrix OAuth exports and the missing sharekit declaration; no errors point to this change.

Fixes #1208

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

AI disclosure:

  • Partially AI assisted (clarify which code was AI assisted and briefly explain what it does).
  • Fully AI generated (explain what all the generated code does in moderate detail).

@eleboucher
eleboucher requested review from 7w1 and hazre as code owners July 22, 2026 18:22
@eleboucher eleboucher changed the title fix: restore synced local tweaks Fix synced local tweaks Jul 22, 2026
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.

[Android] Synced-in Tweaks fail to be listed, enabled or cleared/removed

1 participant