Skip to content

Conversation

@a-ng-d
Copy link
Owner

@a-ng-d a-ng-d commented Nov 20, 2025

This pull request introduces several improvements and refactorings across the codebase, focusing on user language handling, UI bridge communication, palette update logic, and dependency updates. Notably, it enhances localization support, streamlines palette update mechanics, and updates dependencies for better stability and feature support.

Localization and Language Handling:

  • User language is now set and retrieved using globalConfig.lang, improving flexibility and centralizing configuration. Additional supported languages (zh-CN, pt-BR, fr-FR) are registered in globalConfig. [1] [2] [3] [4]
  • The palette "updated at" date is now formatted using toLocaleDateString with the current language, providing better localization of date displays.

UI Bridge and Communication:

  • Refactored message handling in loadUI to use an actions map for better maintainability and extensibility of UI-to-canvas communication. [1] [2]
  • After updating a document, a DOCUMENT_SELECTED message is sent to the UI, ensuring UI state syncs with document changes.

Palette Update Logic:

  • Simplified and improved the logic for updating nested palette properties: removed the flattenObject helper and now creates missing nested objects as needed. [1] [2]

Dependency and Configuration Updates:

  • Updated several dependencies in package.json, including @a_ng_d/figmug-ui and added @mistralai/mistralai.
  • Updated submodule packages/ui-ui-color-palette to a new commit.
  • Increased the harmonyCreate operation limit from 50 to 100 in globalConfig.
  • Refactored imports for Sentry and Supabase initialization for consistency. [1] [2]

Other Configuration Tweaks:

  • Removed the unused aiApiUrl from globalConfig.urls.
  • Bumped package version to 5.1.1 in package.json.

@a-ng-d a-ng-d self-assigned this Nov 20, 2025
@a-ng-d a-ng-d added bug Something isn't working enhancement New feature or request release Stable version quick win Low effort/High value labels Nov 20, 2025
@a-ng-d a-ng-d merged commit 3cba977 into dev Nov 20, 2025
1 check passed
@a-ng-d a-ng-d added this to the Syrah milestone Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request quick win Low effort/High value release Stable version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants