From 087563bce77ba8e60dd128bf51a8ffa9dcf965dc Mon Sep 17 00:00:00 2001
From: "soroush.asadi"
Date: Tue, 2 Jun 2026 01:52:29 +0330
Subject: [PATCH] feat(settings): use-my-current-location button; surface
ticket-load error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Location card gets a 'موقعیت فعلی من' button that fills lat/lng from the browser's geolocation. Support ticket list now shows the resolved (localized) error instead of a generic message, so a failure is diagnosable.
Co-Authored-By: Claude Opus 4.8
---
.../settings/settings-shop-panel.tsx | 20 +++++++++++++++++++
.../src/components/support/support-screen.tsx | 5 ++++-
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/web/dashboard/src/components/settings/settings-shop-panel.tsx b/web/dashboard/src/components/settings/settings-shop-panel.tsx
index 5dc41ff..ef6477e 100644
--- a/web/dashboard/src/components/settings/settings-shop-panel.tsx
+++ b/web/dashboard/src/components/settings/settings-shop-panel.tsx
@@ -366,6 +366,26 @@ export function SettingsShopPanel({ cafeId }: SettingsShopPanelProps) {
>
ذخیره موقعیت
+
{(latInput || lngInput) && (
{isError ? (
- {t("loadFailed")}
+ {apiError(error, t("loadFailed"))}