diff --git a/apps/app/.ladle/config.mjs b/apps/app/.ladle/config.mjs index 7cdaf0cf82..730d9b8564 100644 --- a/apps/app/.ladle/config.mjs +++ b/apps/app/.ladle/config.mjs @@ -39,7 +39,10 @@ function formatNetworkUrls(serverUrl) { /** @type {import("@ladle/react").UserConfig} */ export default { - stories: ["src/**/*.stories.tsx"], + stories: [ + "src/**/*.stories.tsx", + "../../plugins/provider-retry/**/*.stories.tsx", + ], defaultStory: "", viteConfig: "./.ladle/vite.config.ts", host: "0.0.0.0", diff --git a/apps/app/.ladle/ladle.css b/apps/app/.ladle/ladle.css index bed95ebd9b..2668db92df 100644 --- a/apps/app/.ladle/ladle.css +++ b/apps/app/.ladle/ladle.css @@ -6,6 +6,7 @@ silently rendered unstyled here while working in the real app, which builds the plugin's CSS separately. */ @source "../../../plugins/automations"; +@source "../../../plugins/provider-retry"; .ladle-main { padding: 0; diff --git a/apps/app/src/components/plugin/PluginSettingsSections.tsx b/apps/app/src/components/plugin/PluginSettingsSections.tsx index d1242e41f5..92b9101ab0 100644 --- a/apps/app/src/components/plugin/PluginSettingsSections.tsx +++ b/apps/app/src/components/plugin/PluginSettingsSections.tsx @@ -29,27 +29,39 @@ function PluginSettingsSectionList({ }) { return (
- {section.description} -
- ) : null} -+ {section.description} +
+ ) : null} +- {provenanceLine} -
- ) : null} - {!isRunning && - plugin.description !== null && - plugin.description.length > 0 ? ( -- {plugin.description} -
- ) : null} - {plugin.statusDetail !== null && plugin.statusDetail.length > 0 ? ( -- {plugin.statusDetail} -
- ) : null} -- This plugin declares no settings. -
- ) - ) : ( -- {plugin.enabled - ? `Settings are unavailable while the plugin is ${plugin.status}.` - : "Enable this plugin to edit its settings."} -
+ + v{plugin.version} + + {plugin.status === "running" ? null : ( ++ {provenanceLine} +
+ ) : null} + {plugin.description !== null && plugin.description.length > 0 ? ( ++ {plugin.description} +
+ ) : null} + {plugin.statusDetail !== null && plugin.statusDetail.length > 0 ? ( ++ {plugin.statusDetail} +
) : null}+ Settings are unavailable while the plugin is {plugin.status}. +
++ Plugin settings are unavailable because its frontend did not + load. +
++ This plugin declares no settings. +
+