Vlad Stan
da284ba768
feat: prepare for merchant active/restoring state
2023-07-04 08:40:49 +02:00
Vlad Stan
503ee3cd3a
fix: default zone ID
2023-06-30 13:15:35 +03:00
Vlad Stan
33adae672d
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
3138027c7e
chore: code format
2023-05-04 12:50:22 +03:00
Vlad Stan
81a9cc4358
fix: use relative import
2023-05-04 12:49:39 +03:00
Vlad Stan
dcb98ba982
fix: use singular for for customer entity
2023-05-04 12:22:27 +03:00
Vlad Stan
19f67e474a
feat: allow to add test public key
2023-05-04 12:15:45 +03:00
Vlad Stan
af780a3080
feat: add reconnect to nostrclient
2023-04-11 19:03:41 +03:00
Vlad Stan
4996a6b7fd
feat: add more images for product
2023-04-03 18:36:14 +03:00
Vlad Stan
ef49983e10
feat: dinamically refresh orders
2023-03-30 13:58:14 +03:00
Vlad Stan
021326e773
feat: filter orders
2023-03-30 13:58:14 +03:00
Vlad Stan
87c0477b33
feat: keep track of new messages
2023-03-30 13:58:14 +03:00
Vlad Stan
afb21b100f
feat: show customer names
2023-03-30 13:58:14 +03:00
Vlad Stan
330a734932
feat: republish to nostr
2023-03-24 14:52:34 +02:00
Vlad Stan
b483fc2bac
feat: part: republish to nostr
2023-03-23 14:33:05 +02:00
Vlad Stan
dd4d677ce1
feat: allow delete merchant from nostr
2023-03-23 11:14:34 +02:00
Vlad Stan
9d63d2f5d8
feat: link order to DMs
2023-03-17 10:51:20 +02:00
Vlad Stan
3d41954c32
feat: show DMs for customers
2023-03-16 18:34:56 +02:00
Vlad Stan
da5490f581
feat: stop websocket when extension is un-installed
2023-03-16 16:32:46 +02:00
Vlad Stan
62e54322f5
feat: extract nostr_client class
2023-03-16 16:01:14 +02:00
Vlad Stan
0265b481d9
fix: catch AssertionErrors
2023-03-16 15:27:07 +02:00
Vlad Stan
7ce4fd76d0
feat: update product quantity when invoice paid
2023-03-16 11:59:38 +02:00
Vlad Stan
aeebae863e
fix: do not allow two merchants with the same public key
2023-03-16 09:56:30 +02:00
Vlad Stan
c976c9918a
fix: create invoice for fresh merchant
2023-03-15 23:08:37 +02:00
Vlad Stan
e183deb5e0
fix: use merchant id instead of user id
2023-03-15 11:25:52 +02:00
Vlad Stan
64dbd958b0
feat: delete merchant from the local DB
2023-03-14 16:26:04 +02:00
Vlad Stan
2b591afccf
chore: code clean-up
2023-03-14 14:31:30 +02:00
Vlad Stan
d58c97f080
feat: user merchant_id instead of user_id
2023-03-14 14:31:30 +02:00
Vlad Stan
fa6b07ff37
feat: optimize filtering for DMs
2023-03-14 14:31:30 +02:00
Vlad Stan
b61e8933eb
refactor: do not go over http to create order
2023-03-14 14:31:30 +02:00
Vlad Stan
caaca7bf88
refactor: clean-up tasks.py
2023-03-14 14:31:30 +02:00
Vlad Stan
7a1759413c
refactor: extract create_order
2023-03-14 14:31:30 +02:00
Vlad Stan
70effcc515
feat: store event_created_at for some events
2023-03-14 14:31:30 +02:00
Vlad Stan
c355e3111c
feat: basic chat
2023-03-14 14:31:30 +02:00
Vlad Stan
5e6e9b8d26
feat: save incoming DMs
2023-03-14 14:31:30 +02:00
Vlad Stan
463bfd8367
feat: add destroy extension enpoint
2023-03-07 14:34:05 +02:00
Vlad Stan
30511b1fce
feat: add ship/unship functionality
2023-03-07 14:30:58 +02:00
Vlad Stan
aa0d662a4f
feat: handle order paid
2023-03-07 13:10:01 +02:00
Vlad Stan
f98e66038d
feat: show more details about the order
2023-03-07 12:00:43 +02:00
Vlad Stan
fc02609d47
feat: show orders per stall
2023-03-07 10:31:25 +02:00
Vlad Stan
8cdcb144b9
feat: send invoice back for order
2023-03-06 17:33:55 +02:00
Vlad Stan
12c32b019f
feat: return payment-request for order
2023-03-06 16:31:34 +02:00
Vlad Stan
2912589b70
feat: create order on DM
2023-03-06 15:03:02 +02:00
Vlad Stan
3988933e40
feat: listen for direct messages
2023-03-03 18:24:53 +02:00
Vlad Stan
b9cf037565
feat: add currency to product
2023-03-03 11:30:48 +02:00
Vlad Stan
68927666ee
refactor: stalls use sign_and_send_to_nostr
2023-03-03 11:22:48 +02:00
Vlad Stan
b6ae448bea
feat: publish events for products
2023-03-03 11:08:55 +02:00
Vlad Stan
71739afc0a
feat: update product
2023-03-02 18:38:06 +02:00
Vlad Stan
48d6b44d0c
feat: delete product
2023-03-02 18:15:17 +02:00
Vlad Stan
e32cebffad
feat: add products table
2023-03-02 18:05:49 +02:00