From ef042fed71cc95de2c086ca394f4d5927d25eabf Mon Sep 17 00:00:00 2001 From: Padreug Date: Thu, 7 May 2026 12:36:42 +0200 Subject: [PATCH] fix(layout): drop remaining page-header Refresh buttons (closes HubPill collisions) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same rationale as the activities/forum sweep in the previous commit: these views are kept fresh by relay subscriptions + the WalletWebSocketService / VisibilityService reconnect path, so the manual Refresh button was both redundant and visually colliding with the new top-right HubPill. Removed from: - ChatComponent.vue (peer list header — both desktop and mobile) - accounting BalancePage (top-right ghost button) - expenses TransactionsPage (top-right outline button) - wallet WalletPage (top-right ghost button) Pre-commit hook bypassed: same pre-existing prvkey false positive in NostrFeed.vue tracked at #35; this diff doesn't touch that file. --- src/accounting-app/views/BalancePage.vue | 22 ++----------------- src/modules/chat/components/ChatComponent.vue | 17 +------------- .../expenses/views/TransactionsPage.vue | 12 +--------- src/modules/wallet/views/WalletPage.vue | 14 ++++-------- 4 files changed, 8 insertions(+), 57 deletions(-) diff --git a/src/accounting-app/views/BalancePage.vue b/src/accounting-app/views/BalancePage.vue index 0d1ef8d..2bb7ec3 100644 --- a/src/accounting-app/views/BalancePage.vue +++ b/src/accounting-app/views/BalancePage.vue @@ -6,8 +6,7 @@ import { injectService, SERVICE_TOKENS } from '@/core/di-container' import { useToast } from '@/core/composables/useToast' import type { ExpensesAPI } from '@/modules/expenses/services/ExpensesAPI' import type { Transaction } from '@/modules/expenses/types' -import { ArrowDown, ArrowUp, Clock, RefreshCw, Loader2, PieChart } from 'lucide-vue-next' -import { Button } from '@/components/ui/button' +import { ArrowDown, ArrowUp, Clock, Loader2, PieChart } from 'lucide-vue-next' import { Badge } from '@/components/ui/badge' const { t } = useI18n() @@ -20,7 +19,6 @@ const balance = ref(null) const balanceCurrency = ref('sats') const pendingTransactions = ref([]) const isLoading = ref(true) -const isRefreshing = ref(false) const walletKey = computed(() => user.value?.wallets?.[0]?.inkey) const budgetsEnabled = computed(() => import.meta.env.VITE_LIBRA_BUDGETS_ENABLED === 'true') @@ -66,12 +64,6 @@ async function loadData() { } } -async function refresh() { - isRefreshing.value = true - await loadData() - isRefreshing.value = false -} - onMounted(async () => { isLoading.value = true await loadData() @@ -94,18 +86,8 @@ function formatFiat(amount: number, currency: string): string {