Commit graph

17 commits

Author SHA1 Message Date
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
b8fe674dd7 fix: remove closed websocket 2023-04-11 19:16:05 +03:00
Vlad Stan
e05b54468a feat: add reconnect to nostrclient 2023-04-11 19:03:41 +03:00
Vlad Stan
62737e7a79 fix: filter and notifications 2023-04-03 15:11:46 +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
482961a2ef chore: code clean-up 2023-03-16 18:34:37 +02:00
Vlad Stan
fb888c1c3d refactor: reorder and rename methods 2023-03-16 16:32:22 +02:00
Vlad Stan
f6b5034e74 feat: extract nostr_client class 2023-03-16 16:01:14 +02:00
Vlad Stan
6498f1aa96 fix: create invoice for fresh merchant 2023-03-15 23:08:37 +02:00
Vlad Stan
92c0833991 feat: delete merchant from the local DB 2023-03-14 16:26:04 +02:00
Vlad Stan
9931a08566 fix: publish events via websocket 2023-03-14 16:00:01 +02:00
Vlad Stan
3e0b480f0a feat: user merchant_id instead of user_id 2023-03-14 14:31:30 +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
5972c44ad1 feat: publish event on C_UD for stalls 2023-03-02 10:14:11 +02:00