Skip to content

Conversation

@thisconnect
Copy link
Collaborator

@thisconnect thisconnect commented Oct 23, 2025

Title was never used, and small only in one place (Send) for the noFeeTargets warning message.

Replaced small font in send View by using <label> element (most other text elements use Label element on that page, so it shows the smaller font size.

Tested by patching the api endpoint with:

diff --git a/frontends/web/src/api/account.ts b/frontends/web/src/api/account.ts
index cbef324d9..2d26f3347 100644
--- a/frontends/web/src/api/account.ts
+++ b/frontends/web/src/api/account.ts
@@ -20,6 +20,7 @@ import type { TDetailStatus } from './bitsurance';
 import type { SuccessResponse } from './response';
 import type { NonEmptyArray } from '@/utils/types';
 import { apiGet, apiPost } from '@/utils/request';
+// import { FeeTargets } from '@/routes/account/send/feetargets';

 export type NativeCoinCode = 'btc' | 'tbtc' | 'rbtc' | 'ltc' | 'tltc' | 'eth' | 'sepeth';

@@ -379,7 +380,7 @@ export type TFeeTargetList = {
 };

 export const getFeeTargetList = (code: AccountCode): Promise<TFeeTargetList> => {
-  return apiGet(`account/${code}/fee-targets`);
+  return apiGet(`account/${code}/fee-targets`).then(() => ({ defaultFeeTarget: 'custom', feeTargets: [] }));
 };

@thisconnect
Copy link
Collaborator Author

This would help me later with #3623

Title was never used, and small only in one place (Send) for the
noFeeTargets warning message.

Replaced small font in send View by using `<label>` element (most
other text elements use Label element on that page, so it shows
the smaller font size.

Tested by patching the api endpoint with:

```diff
diff --git a/frontends/web/src/api/account.ts b/frontends/web/src/api/account.ts
index cbef324..2d26f3347 100644
--- a/frontends/web/src/api/account.ts
+++ b/frontends/web/src/api/account.ts
@@ -20,6 +20,7 @@ import type { TDetailStatus } from './bitsurance';
 import type { SuccessResponse } from './response';
 import type { NonEmptyArray } from '@/utils/types';
 import { apiGet, apiPost } from '@/utils/request';
+// import { FeeTargets } from '@/routes/account/send/feetargets';

 export type NativeCoinCode = 'btc' | 'tbtc' | 'rbtc' | 'ltc' | 'tltc' | 'eth' | 'sepeth';

@@ -379,7 +380,7 @@ export type TFeeTargetList = {
 };

 export const getFeeTargetList = (code: AccountCode): Promise<TFeeTargetList> => {
-  return apiGet(`account/${code}/fee-targets`);
+  return apiGet(`account/${code}/fee-targets`).then(() => ({ defaultFeeTarget: 'custom', feeTargets: [] }));
 };
```
@thisconnect thisconnect force-pushed the frontend-cleanup-message branch from 44c4436 to f22cb0d Compare October 23, 2025 11:40
Copy link
Collaborator

@sutterseba sutterseba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@thisconnect thisconnect merged commit 5e78a5a into BitBoxSwiss:master Oct 23, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants