From 744535eace931c957b0de63d87869e28ce84e77b Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Tue, 15 Apr 2025 23:24:29 +0200 Subject: [PATCH] chore: remove fetchEurPrice as it is not used anymore --- .../settings/ScreenSpecificSettings.svelte | 10 --------- src/routes/Status.svelte | 3 --- static/swagger.json | 4 ---- static/swagger.yml | 3 --- tests/playwright/test.ts | 22 ------------------- tests/shared.ts | 1 - 6 files changed, 43 deletions(-) diff --git a/src/lib/components/settings/ScreenSpecificSettings.svelte b/src/lib/components/settings/ScreenSpecificSettings.svelte index 4aa703b..2def344 100644 --- a/src/lib/components/settings/ScreenSpecificSettings.svelte +++ b/src/lib/components/settings/ScreenSpecificSettings.svelte @@ -105,16 +105,6 @@ size={$uiSettings.inputSize} col={{ md: '6', xl: '12', xxl: '6' }} /> - - {#if !$settings.actCurrencies} - - {/if}
{$_('section.settings.screens')}
diff --git a/src/routes/Status.svelte b/src/routes/Status.svelte index a659af0..4b6e76c 100644 --- a/src/routes/Status.svelte +++ b/src/routes/Status.svelte @@ -306,9 +306,6 @@ {/if} {/if} - {#if $settings.fetchEurPrice} - {$_('section.status.fetchEuroNote')} - {/if}

{/if} diff --git a/static/swagger.json b/static/swagger.json index 04efa57..a1b9ee9 100644 --- a/static/swagger.json +++ b/static/swagger.json @@ -343,10 +343,6 @@ "Settings": { "type": "object", "properties": { - "fetchEurPrice": { - "type": "boolean", - "description": "Fetch EUR price instead of USD" - }, "fgColor": { "type": "string", "default": 16777215, diff --git a/static/swagger.yml b/static/swagger.yml index 15d918c..8db6611 100644 --- a/static/swagger.yml +++ b/static/swagger.yml @@ -232,9 +232,6 @@ components: Settings: type: object properties: - fetchEurPrice: - type: boolean - description: Fetch EUR price instead of USD fgColor: type: string default: 16777215 diff --git a/tests/playwright/test.ts b/tests/playwright/test.ts index 92a600d..3e482bb 100644 --- a/tests/playwright/test.ts +++ b/tests/playwright/test.ts @@ -73,28 +73,6 @@ test('time values can not be zero or negative', async ({ page }) => { } }); -test('info message when fetch eur price is enabled', async ({ page }) => { - delete (settingsJson as { actCurrencies?: string[] }).actCurrencies; - - await page.goto('/'); - await page.getByRole('button', { name: 'Show all' }).click(); - - const inputField = 'input#fetchEurPrice'; - const switchElement = await page.locator(inputField); - - expect(switchElement).toBeTruthy(); - const isSwitchEnabled = await switchElement.isChecked(); - expect(isSwitchEnabled).toBe(false); - - await expect(page.getByText('the WS Price connection will show')).toBeHidden(); - - await switchElement.click(); - const isSwitchNowEnabled = await switchElement.isChecked(); - expect(isSwitchNowEnabled).toBe(true); - - await expect(page.getByText('the WS Price connection will show')).toBeVisible(); -}); - test('npub values will be converted to hex pubkeys', async ({ page }) => { await page.goto('/'); await page.getByRole('button', { name: 'Show all' }).click(); diff --git a/tests/shared.ts b/tests/shared.ts index 9ee570c..4b3de93 100644 --- a/tests/shared.ts +++ b/tests/shared.ts @@ -84,7 +84,6 @@ export const settingsJson = { mcapBigChar: true, mdnsEnabled: true, otaEnabled: true, - fetchEurPrice: false, hostnamePrefix: 'btclock', hostname: 'btclock-d60b14', ip: '192.168.20.231',