From 4c62daf46c63c67324ecedd3f3d22c25077514da Mon Sep 17 00:00:00 2001 From: padreug Date: Tue, 6 Jan 2026 18:59:52 +0100 Subject: [PATCH] Connect Store Settings to actual store data via API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rewrote MarketSettings.vue to use real Stall model fields - Added updateStall API method to nostrmarketAPI.ts - Editable fields: name, description, imageUrl - Read-only fields: currency, shipping zones (set at creation) - Form validation with Zod schema - Loading states and proper error handling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../market/components/MarketSettings.vue | 494 +++++++----------- src/modules/market/services/nostrmarketAPI.ts | 28 + 2 files changed, 228 insertions(+), 294 deletions(-) diff --git a/src/modules/market/components/MarketSettings.vue b/src/modules/market/components/MarketSettings.vue index 44ade18..6c90733 100644 --- a/src/modules/market/components/MarketSettings.vue +++ b/src/modules/market/components/MarketSettings.vue @@ -2,331 +2,237 @@
-

Market Settings

-

Configure your store and market preferences

+

Store Settings

+

Configure your store information

- -
- + +
+
- -
- -
-
-

Store Information

-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- -
-
+ +
+
+
+

No Store Found

+

+ Create a store first to manage its settings +

+
- -
-
-

Payment Configuration

-
-
- - -
-
- - -
-
- -
- +
+ +
+

Store Information

+
+ + + Store Name * + + - -
-
-
-
- -
-
-
+ + + + - -
-
-

Nostr Network Configuration

-
-
- -
-
- - -
-
- - -
-
-
-
- - -

Your Nostr public key for receiving orders

-
-
- -
-
- - {{ orderEvents.isSubscribed ? 'Connected to Nostr network' : 'Connecting to Nostr network...' }} - -
-
-
-
- -
-
-
+ + + Description + +