Closed vicb closed 3 months ago
This pull request updates the plugin to retain the current model when it is opened. The change is implemented by modifying the modelName initialization in Plugin.svelte to use W.store.get('product') instead of a default model. The changelog has been updated to reflect this change in version 4.1.4.
Files | Changes |
---|---|
libs/windy-sounding/CHANGELOG.md libs/windy-sounding/src/Plugin.svelte |
Updated the plugin to keep the current model when opening, and documented this change in the changelog. |
The recent update to the windy-plugin-fxc-soundings
introduces version 4.1.4, enhancing user experience by allowing the plugin to retain the current model upon reopening. Additionally, the package.json
has been updated to reflect version changes and minor dependency upgrades. A significant refactor in the Plugin.svelte
component shifts the modelName
retrieval from a static default to a dynamic fetch from application state, promoting greater flexibility in model handling.
File | Change Summary |
---|---|
libs/windy-sounding/CHANGELOG.md | Added release entry for version 4.1.4, highlighting the new feature of retaining current model upon reopening. |
libs/windy-sounding/package.json | Updated version from 4.1.3 to 4.1.4; upgraded @reduxjs/toolkit (2.2.6 to 2.2.7) and preact (10.22.1 to 10.23.1). |
libs/windy-sounding/src/Plugin.svelte | Modified modelName source from a static default import to a dynamic fetch from W.store.get('product') , enhancing flexibility and removing reliance on DEFAULT_MODEL . |
sequenceDiagram
participant User
participant Plugin
participant Store
User->>Plugin: Open Plugin
Plugin->>Store: Fetch current model
Store-->>Plugin: Return model name
Plugin-->>User: Display Plugin with model
🐰 In fields where breezes play,
New changes hop in bright array.
With models held, our work is sweet,
Dynamic paths beneath our feet.
Let’s cheer this change, oh what a sight!
A plugin that’s a pure delight! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by Sourcery
This pull request enhances the plugin functionality by ensuring that the current model is retained when the plugin is opened, instead of defaulting to a predefined model.
Summary by CodeRabbit
New Features
Improvements
Changes