UI Color Palette /one 5.1.1 Syrah #14
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
globalConfig.lang, improving flexibility and centralizing configuration. Additional supported languages (zh-CN,pt-BR,fr-FR) are registered inglobalConfig. [1] [2] [3] [4]toLocaleDateStringwith the current language, providing better localization of date displays.UI Bridge and Communication:
loadUIto use anactionsmap for better maintainability and extensibility of UI-to-canvas communication. [1] [2]DOCUMENT_SELECTEDmessage is sent to the UI, ensuring UI state syncs with document changes.Palette Update Logic:
flattenObjecthelper and now creates missing nested objects as needed. [1] [2]Dependency and Configuration Updates:
package.json, including@a_ng_d/figmug-uiand added@mistralai/mistralai.packages/ui-ui-color-paletteto a new commit.harmonyCreateoperation limit from 50 to 100 inglobalConfig.Other Configuration Tweaks:
aiApiUrlfromglobalConfig.urls.5.1.1inpackage.json.