Commit graph

65 commits

Author SHA1 Message Date
Vlad Stan
4ae8b21cb8 fix: ui testing 2023-07-18 16:40:43 +02:00
Vlad Stan
6b44f8c27f fix: error message 2023-07-05 09:08:09 +03:00
Vlad Stan
02d9fcfbfd feat: update shipping zone when re-issuing invoice 2023-07-04 17:15:20 +02:00
Vlad Stan
b5aed1224a feat: allow invoice re-issue 2023-07-04 16:20:08 +02:00
Vlad Stan
1a82fc030a feat: show order details for customer 2023-07-04 08:40:49 +02:00
Vlad Stan
2b84ebc83b fix: notification for orders 2023-07-04 08:40:49 +02:00
Vlad Stan
21a77d643f feat: activate/deactivate merchant 2023-07-04 08:40:49 +02:00
Vlad Stan
b89d761b04 feat: prepare for merchant active/restoring state 2023-07-04 08:40:49 +02:00
Vlad Stan
4ebed5455c fix: default zone ID 2023-06-30 13:15:35 +03: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
f120f25041 chore: code format 2023-05-04 12:50:22 +03:00
Vlad Stan
eeabc34b6f fix: use relative import 2023-05-04 12:49:39 +03:00
Vlad Stan
fab419d974 fix: use singular for for customer entity 2023-05-04 12:22:27 +03:00
Vlad Stan
f7dd15e775 feat: allow to add test public key 2023-05-04 12:15:45 +03:00
Vlad Stan
e05b54468a feat: add reconnect to nostrclient 2023-04-11 19:03:41 +03:00
Vlad Stan
d032c8b259 feat: add more images for product 2023-04-03 18:36:14 +03:00
Vlad Stan
8d1998c33b feat: dinamically refresh orders 2023-03-30 13:58:14 +03:00
Vlad Stan
5b03c324f1 feat: filter orders 2023-03-30 13:58:14 +03:00
Vlad Stan
e04b9dc448 feat: keep track of new messages 2023-03-30 13:58:14 +03:00
Vlad Stan
a719517b9c feat: show customer names 2023-03-30 13:58:14 +03:00
Vlad Stan
13150f6360 feat: republish to nostr 2023-03-24 14:52:34 +02:00
Vlad Stan
ccb32dba99 feat: part: republish to nostr 2023-03-23 14:33:05 +02:00
Vlad Stan
05ecc65e5a feat: allow delete merchant from nostr 2023-03-23 11:14:34 +02:00
Vlad Stan
d7d7869b0e feat: link order to DMs 2023-03-17 10:51:20 +02:00
Vlad Stan
b45927a15d feat: show DMs for customers 2023-03-16 18:34:56 +02:00
Vlad Stan
80125a7d71 feat: stop websocket when extension is un-installed 2023-03-16 16:32:46 +02:00
Vlad Stan
f6b5034e74 feat: extract nostr_client class 2023-03-16 16:01:14 +02:00
Vlad Stan
9ce316debe fix: catch AssertionErrors 2023-03-16 15:27:07 +02:00
Vlad Stan
b7dfa22026 feat: update product quantity when invoice paid 2023-03-16 11:59:38 +02:00
Vlad Stan
3794eac915 fix: do not allow two merchants with the same public key 2023-03-16 09:56:30 +02:00
Vlad Stan
6498f1aa96 fix: create invoice for fresh merchant 2023-03-15 23:08:37 +02:00
Vlad Stan
856ad53b7e fix: use merchant id instead of user id 2023-03-15 11:25:52 +02:00
Vlad Stan
92c0833991 feat: delete merchant from the local DB 2023-03-14 16:26:04 +02:00
Vlad Stan
90bbc79734 chore: code clean-up 2023-03-14 14:31:30 +02:00
Vlad Stan
3e0b480f0a feat: user merchant_id instead of user_id 2023-03-14 14:31:30 +02:00
Vlad Stan
69dcbcb002 feat: optimize filtering for DMs 2023-03-14 14:31:30 +02:00
Vlad Stan
bf670c3545 refactor: do not go over http to create order 2023-03-14 14:31:30 +02:00
Vlad Stan
7f3438d07f refactor: clean-up tasks.py 2023-03-14 14:31:30 +02:00
Vlad Stan
c0c737378b refactor: extract create_order 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
9558181914 feat: add destroy extension enpoint 2023-03-07 14:34:05 +02:00
Vlad Stan
612d31eae0 feat: add ship/unship functionality 2023-03-07 14:30:58 +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
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