Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(plugins): lower the unused-key entry the moved components reach again, and test the marked install

Mauricea3664e711737
diff --git a/client/scripts/i18n-unused-baseline.json b/client/scripts/i18n-unused-baseline.json
index 218e126e8..7c9e4560a 100644
--- a/client/scripts/i18n-unused-baseline.json
+++ b/client/scripts/i18n-unused-baseline.json
@@ -1,5 +1,5 @@
{
- "admin.ts": 126,
+ "admin.ts": 112,
"atlas.ts": 9,
"backup.ts": 10,
"budget.ts": 36,
diff --git a/client/src/components/Admin/AdminPluginsPanel.test.tsx b/client/src/components/Admin/AdminPluginsPanel.test.tsx
index 0fc27b390..d8e9848d3 100644
--- a/client/src/components/Admin/AdminPluginsPanel.test.tsx
+++ b/client/src/components/Admin/AdminPluginsPanel.test.tsx
@@ -489,10 +489,10 @@ describe('AdminPluginsPanel — TREK-version compatibility', () => {
fireEvent.click(await screen.findByText('Discover'))
}
- it('blocks Install when no published version runs on this TREK, and says why', async () => {
+ it('marks a plugin no published version runs on, and still lets the admin install it', async () => {
await openDiscover({ trek: '>=4.0.0', hostVersion: '3.3.0', compatible: false, latestCompatible: null })
- const btn = await screen.findByRole('button', { name: /^incompatible$/i })
- expect(btn).toBeDisabled()
+ expect(await screen.findByText('Not confirmed for TREK 3.3.0 yet')).toBeInTheDocument()
+ expect(screen.getByRole('button', { name: /^install$/i })).toBeEnabled()
})
it('offers the newest version that DOES run here rather than a dead button', async () => {