Commit graph

44 commits

Author SHA1 Message Date
0b7639adf5 Improve merchant creation with automatic keypair generation
Enhance the merchant creation process by automatically generating Nostr keypairs
for users who don't have them, and streamline the API interface.

Changes:
- Add CreateMerchantRequest model to simplify merchant creation API
- Auto-generate Nostr keypairs for users without existing keys
- Update merchant creation endpoint to use user account keypairs
- Improve error handling and validation in merchant creation flow
- Clean up frontend JavaScript for merchant creation

This ensures all merchants have proper Nostr keypairs for marketplace
functionality without requiring manual key management from users.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 00:47:46 +01:00
Vlad Stan
0fc26d096f V1 (#106) 2024-11-06 11:50:21 +02:00
rleed
83c94e94db Changes to deactivate/reactivate products (#89) 2024-11-04 10:59:04 +02:00
Vlad Stan
5c83bf8972 Custom shipping cost (#86)
* feat: simple UI for shipping zone per product

* feat: add empty cost

* fix: backwards compatible zones

* feat: finish UI for product shipping cost

* fix: some ui issues

* feat: add per product shipping cost

* feat: show receipt for product

* fix: publish per product shipping cost
2023-09-21 17:29:13 +03:00
Vlad Stan
1a3fc62106 feat: add auto-reply on payment (#82) 2023-09-15 10:21:03 +03:00
Vlad Stan
927d8661ef fix: do not add a default for merchant time column 2023-07-11 08:56:37 +02:00
Vlad Stan
02d9fcfbfd feat: update shipping zone when re-issuing invoice 2023-07-04 17:15:20 +02:00
Vlad Stan
93e362530b feat: show failed order error message 2023-07-04 16:20:08 +02:00
Vlad Stan
b89d761b04 feat: prepare for merchant active/restoring state 2023-07-04 08:40:49 +02:00
Vlad Stan
51c4147e65 Product delete (#64)
* feat: restore stalls from `nostr` as pending

* feat: stall and prod last update time

* feat: restore products and stalls as `pending`

* feat: show pending stalls

* feat: restore stall

* feat: restore a stall from nostr

* feat: add  blank `Restore Product` button

* fix: handle no talls to restore case

* feat: show restore dialog

* feat: allow query for pending products

* feat: restore products

* chore: code clean-up

* fix: last dm and last order query

* chore: code clean-up

* fix: subscribe for stalls and products on merchant create/restore

* feat: add message type to orders

* feat: simplify messages; code format

* feat: add type to DMs; restore DMs from nostr

* fix: parsing ints

* fix: hide copy button if invoice not present

* fix: do not generate invoice if product not found

* feat: order restore: first version

* refactor: move some logic into `services`

* feat: improve restore UX

* fix: too many calls to customer DMs

* fix: allow `All` customers filter

* fix: ws reconnect on server restart

* fix: query for customer profiles only one

* fix: unread messages per customer per merchant

* fix: disable `user-profile-events`

* fix: customer profile is optional

* fix: get customers after new message debounced

* chore: code clean-up

* feat: auto-create zone

* feat: fixed ID for default zone

* feat: notify order paid
2023-06-30 13:12:56 +03:00
Vlad Stan
e06b9af4c3 fix: do not erase merchant profile 2023-04-19 10:27:47 +03:00
Vlad Stan
929d45bed8 fix: missing image_urls 2023-04-06 11:57:50 +03:00
Vlad Stan
d032c8b259 feat: add more images for product 2023-04-03 18:36:14 +03:00
Vlad Stan
547c477ce6 fix: shipping cost; update UI on new order 2023-04-03 11:57:55 +03:00
Vlad Stan
e04b9dc448 feat: keep track of new messages 2023-03-30 13:58:14 +03:00
Vlad Stan
89f46fff35 feat: keep customer profiles up to date 2023-03-30 13:58:14 +03:00
Vlad Stan
c6bca39df8 feat: stubs for sync from nostr 2023-03-24 15:10:30 +02:00
Vlad Stan
5694c4112f feat: send id in event content 2023-03-23 15:41:43 +02:00
Vlad Stan
05ecc65e5a feat: allow delete merchant from nostr 2023-03-23 11:14:34 +02:00
Vlad Stan
69dcbcb002 feat: optimize filtering for DMs 2023-03-14 14:31:30 +02:00
Vlad Stan
ef6f2ebe33 feat: store event_created_at for some events 2023-03-14 14:31:30 +02:00
Vlad Stan
240da5277f feat: basic chat 2023-03-14 14:31:30 +02:00
Vlad Stan
192ef1770e feat: save incoming DMs 2023-03-14 14:31:30 +02:00
Vlad Stan
8094bcaf8a feat: handle order paid 2023-03-07 13:10:01 +02:00
Vlad Stan
76af65c148 feat: show more details about the order 2023-03-07 12:00:43 +02:00
Vlad Stan
40c25ad085 feat: show orders per stall 2023-03-07 10:31:25 +02:00
Vlad Stan
da41ed3651 feat: add address for order 2023-03-06 18:07:52 +02:00
Vlad Stan
1b317b1b9b refactor: extract simpler methods 2023-03-06 18:01:05 +02:00
Vlad Stan
35298a4f44 feat: send invoice back for order 2023-03-06 17:33:55 +02:00
Vlad Stan
bee52340a2 feat: return payment-request for order 2023-03-06 16:31:34 +02:00
Vlad Stan
d0471744e0 feat: create order on DM 2023-03-06 15:03:02 +02:00
Vlad Stan
cec7d2ee25 feat: listen for direct messages 2023-03-03 18:24:53 +02:00
Vlad Stan
39f79fbda5 feat: add currency to product 2023-03-03 11:30:48 +02:00
Vlad Stan
dccd781553 feat: show stall ID 2023-03-03 11:23:09 +02:00
Vlad Stan
54978c847f feat: publish events for products 2023-03-03 11:08:55 +02:00
Vlad Stan
8ce68f38f6 feat: add to_nostr_event for product 2023-03-02 18:45:27 +02:00
Vlad Stan
5328ce170c fat: add create product logic 2023-03-02 17:42:28 +02:00
Vlad Stan
5a526f86f1 chore: label updates 2023-03-02 14:25:23 +02:00
Vlad Stan
f95db75495 fix: store id for shipping zone 2023-03-02 13:41:10 +02:00
Vlad Stan
c0dce31231 feat: validate currency for stall shipping zones 2023-03-02 10:36:39 +02:00
Vlad Stan
5972c44ad1 feat: publish event on C_UD for stalls 2023-03-02 10:14:11 +02:00
Vlad Stan
e9b7494bb6 feat: basic stall flow 2023-03-01 11:35:04 +02:00
Vlad Stan
31c5a82cb9 feat: manage shipping zones 2023-02-28 16:30:09 +02:00
Vlad Stan
99492b36c8 feat: init merchant 2023-02-28 11:46:40 +02:00