@samitouri / QOSami-HFS / commits / 40b9e4cf

admin/plugins: renamed "search online" to "get more", it's clearer and fits xs screens

Massimo Melina committed Dec 23, 2025 at 19:49 UTC 40b9e4cf2c74a78086506b6dd59e04fe6847b34b
2 files changed +4 -10
admin/src/PluginsPage.ts
+3 -7
@@ -8,8 +8,8 @@ import { useBreakpoint } from "./mui"
8
9 const TABS = {
10 "Installed": InstalledPlugins,
11 - "Search online|Search": OnlinePlugins,
12 - "Check updates|Updates": () => h(InstalledPlugins, { updates: true }),
11 + "Get more": OnlinePlugins,
12 + "Check updates": () => h(InstalledPlugins, { updates: true }),
13 }
14 const LABELS = Object.keys(TABS)
15 const PANES = Object.values(TABS)
@@ -17,7 +17,6 @@ export const PLUGIN_ERRORS = { ENOTFOUND: "Cannot reach github.com", ECONNREFUSE
17
18 export default function PluginsPage() {
19 const [tab, setTab] = useState(0)
20 - const tooSmall = !useBreakpoint('sm')
20 return h(Fragment, {},
21 h(Tabs, {
22 value: tab,
@@ -25,10 +24,7 @@ export default function PluginsPage() {
24 setTab(i)
25 }
26 }, LABELS.map(x =>
28 - h(Tab, {
29 - key: x,
30 - label: x.split('|').slice(tooSmall ? -1 : 0)[0]
31 - }))),
27 + h(Tab, { key: x, label: x }))),
28 h(PANES[tab])
29 )
30 }
e2e/frontend.spec.ts
+1 -3
@@ -256,7 +256,7 @@ test('admin1', async ({ page }) => {
256 await clickAdminMenu(page, 'Plugins')
257 await expect(page.getByText('antibrute')).toBeVisible() // wait for data
258 await screenshot(page)
259 - await page.getByRole('tab', { name: 'Search' }).click()
259 + await page.getByRole('tab', { name: 'Get more' }).click()
260 await page.getByRole('tab', { name: 'updates' }).click()
261 await clickAdminMenu(page, 'Custom HTML')
262 await expect(page.getByRole('combobox', { name: 'Section Style' })).toBeVisible() // wait for data to be loaded
@@ -443,8 +443,6 @@ test('anew', async ({ page, browserName }) => {
443 await adminPage.locator('.MuiDialog-container').press('Escape')
444 await adminPage.locator('#vfs').click()
445 await adminPage.getByText('folder1', { exact: true }).click()
446 - await adminPage.getByRole('treeitem', { name: 'folder1' }).locator('path').first().click()
447 - await adminPage.getByText('folder1', { exact: true }).click()
446 await adminPage.getByRole('button', { name: 'Cut' }).click()
447 await adminPage.locator('div').filter({ hasText: 'InfoNow that this is marked' }).nth(1).click()
448 await adminPage.getByRole('button', { name: 'Close' }).click()