chore: lock the plugin boundary and remove 2.9.0 leftovers

This commit is contained in:
LukeGus committed 2026-09-25 07:24:46 -05:00
1 parent 6489b62ece
commit 2961297989
399 files changed
+3964 -5627

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
"scripts": {
"build": "termix-plugin build",
"test": "termix-plugin test",
"typecheck": "tsc -b ../../tsconfig.plugins.json ../../tsconfig.plugins.frontend.json",
"typecheck": "tsc -b ../../tsconfig.plugins.backend.json ../../tsconfig.plugins.frontend.json",
"validate": "termix-plugin validate"
},
"devDependencies": {
@@ -3,6 +3,6 @@ import { SecretSourceManager } from "./SecretSourceManager";
import { SecretReferenceHint } from "./SecretReferenceHint";
export function activate(app: TermixApp): void {
app.registerComponent("secret-sources.hint", SecretReferenceHint);
app.registerComponent("secret-sources.manager", SecretSourceManager);
app.registerComponent("credentials.secretHint", SecretReferenceHint);
app.registerComponent("credentials.secretManager", SecretSourceManager);
}
@@ -24,7 +24,7 @@ describe(`${manifest.id} activate`, () => {
rendered = await renderWithApp(plugin, { manifest, locales });
render(
<PluginComponent
id="secret-sources.hint"
id="credentials.secretHint"
onManage={vi.fn()}
fallback={<span>fallback</span>}
/>,
@@ -41,7 +41,9 @@ describe(`${manifest.id} activate`, () => {
} as never,
});
const onClose = vi.fn();
render(<PluginComponent id="secret-sources.manager" onClose={onClose} />);
render(
<PluginComponent id="credentials.secretManager" onClose={onClose} />,
);
expect(await screen.findByText(locales.title)).toBeTruthy();
});
@@ -49,7 +51,10 @@ describe(`${manifest.id} activate`, () => {
const app = await renderWithApp(plugin, { manifest, locales });
await app.deactivate();
render(
<PluginComponent id="secret-sources.hint" fallback={<span>gone</span>} />,
<PluginComponent
id="credentials.secretHint"
fallback={<span>gone</span>}
/>,
);
expect(await screen.findByText("gone")).toBeTruthy();
});