Commit graph

32 commits

Author SHA1 Message Date
PatMulligan
cf82ed478d pass showKeys as prop to merchant-details child and use emit to toggle (#105)
previously, index and its child compoment merchant-details had their own
booleans and their values were not synched. Using a prop avoids this
problem
2024-10-25 15:19:13 +03:00
Vlad Stan
889152a80b Fix subscription errors (#81)
* pref: merge filters in one

* chore: load nit

* feat: restore individual order
2023-09-12 15:03:37 +03:00
Vlad Stan
d1cdc3cd5c feat: show shipping cost for order 2023-07-05 09:58:34 +03:00
Vlad Stan
1a82fc030a feat: show order details for customer 2023-07-04 08:40:49 +02:00
Vlad Stan
e6f2750272 chore: code clean-up 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
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
547c477ce6 fix: shipping cost; update UI on new order 2023-04-03 11:57:55 +03:00
Vlad Stan
8d1998c33b feat: dinamically refresh orders 2023-03-30 13:58:14 +03:00
Vlad Stan
4974192b21 feat: navigate from chat to orders 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
05ecc65e5a feat: allow delete merchant from nostr 2023-03-23 11:14:34 +02:00
Vlad Stan
260bea9ccf fix: clear merchant screen on delete 2023-03-23 09:47:40 +02:00
Vlad Stan
d7d7869b0e feat: link order to DMs 2023-03-17 10:51:20 +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
152fe5baab feat: add merchant-details 2023-03-14 14:31:30 +02:00
Vlad Stan
b7c099c935 feat: add empty DMs box 2023-03-14 14:31:30 +02:00
Vlad Stan
b446629707 feat: add basic order-list 2023-03-07 09:12:14 +02:00
Vlad Stan
5ad070684d feat: import private key 2023-03-02 16:00:40 +02:00
Vlad Stan
2acce94fe9 feat: allow restore from nsec 2023-03-02 15:52:40 +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
dcda99830e feat: basic shipping zones UI 2023-02-28 13:08:58 +02:00
Vlad Stan
7c15f8ff45 fix: set merchant after create 2023-02-28 12:28:51 +02:00
Vlad Stan
f568b1b927 feat: show merchant keypair 2023-02-28 12:21:34 +02:00
Vlad Stan
99492b36c8 feat: init merchant 2023-02-28 11:46:40 +02:00
Vlad Stan
d1173e0e73 fix: js references 2023-02-28 09:50:49 +02:00
Tiago Vasconcelos
cc65c91726 Initial skeleton 2023-02-27 18:13:26 +00:00