ekzyis
fe267cd3b9
Calculate image fee info in postgres function
...
* we now calculate image fee info in a postgres function which is much cleaner
* we use this function inside `create_item` and `update_item`: image fees are now deducted in the same transaction as creating/updating the item!
* reversed changes in `serializeInvoiceable`
2023-11-02 01:48:34 +01:00
ekzyis
31fa3dcf26
Add avatar cache busting using random query param
2023-11-02 01:48:34 +01:00
ekzyis
7043b4f1d1
refactor: Unify <ImageUpload> and <Upload> component
2023-11-02 01:48:34 +01:00
ekzyis
1708c77458
Remove unnecessary text field in query
2023-11-02 01:48:34 +01:00
ekzyis
30a413e494
Fix multiplication with feesPerImage
2023-11-02 01:48:34 +01:00
ekzyis
7f38d750b9
Fix stale image fees served
2023-11-02 01:48:34 +01:00
ekzyis
fe503140e9
Remove dragOver style on drop
2023-11-02 01:48:34 +01:00
ekzyis
d6f6cd8b0b
Use Drag and Drop API for image upload
2023-11-02 01:48:34 +01:00
ekzyis
e9b3ac43dc
Fix image fee display in receipts
2023-11-02 01:48:34 +01:00
ekzyis
9885f7d768
Support upload of multiple files at once
2023-11-02 01:48:34 +01:00
ekzyis
1b7b869fdb
Remove 'Uploading <name>...' from text input on error
2023-11-02 01:48:34 +01:00
ekzyis
af7cbd0846
Remove unnecessary async
2023-11-02 01:48:34 +01:00
ekzyis
8890517f40
Remove 's' from 'image fees' in receipts
2023-11-02 01:48:34 +01:00
ekzyis
008510ee15
Add 0 base fee in edit receipt
2023-11-02 01:48:34 +01:00
ekzyis
1272e15a0e
Fix stale fees shown
...
If we pay for an image and then want to edit the comment, the cache might return stale date; suggesting we didn't pay for the existing image yet.
2023-11-02 01:48:34 +01:00
ekzyis
b3c9e9ebf2
Fix image fees in edit receipt
2023-11-02 01:48:34 +01:00
ekzyis
bcadbb2dcd
Fix algebraic order of fees
...
Spam fees must come immediately after the base fee since it multiplies the base fee.
2023-11-02 01:48:34 +01:00
ekzyis
28bde328fc
Show amount of unpaid images in receipt
2023-11-02 01:48:34 +01:00
ekzyis
a8998df4b0
Also update image fees on blur
...
This makes sure that the images fees reflect the current state. For example, if an image was removed.
We could also add debounced requests.
2023-11-02 01:48:34 +01:00
ekzyis
221dd5bb1d
Show image fees in frontend
2023-11-02 01:48:34 +01:00
ekzyis
30aed4e805
Use Github style upload
...
* removed upfront fees
* removed images provider since we no longer need to keep track of unsubmitted images on the client
* removed User.images resolver
* removed deleteImage mutation
* use Github style upload where it shows ![Uploading <filename>...]() first and then replaces that with  after successful upload
2023-11-02 01:48:34 +01:00
ekzyis
eb4700070f
Overwrite old avatar
2023-11-02 01:48:34 +01:00
ekzyis
086e1aea3a
Mark images as submitted on client after successful mutation
2023-11-02 01:48:34 +01:00
ekzyis
f79792cd4d
Add margin-top
2023-11-02 01:48:34 +01:00
ekzyis
db525e9195
Mark S3 images as submitted in imgproxy job
2023-11-02 01:48:34 +01:00
ekzyis
a61d00ba8b
Fetch unsubmitted images from database
2023-11-02 01:48:34 +01:00
ekzyis
9ac774c0e7
Link and remove image
2023-11-02 01:48:34 +01:00
ekzyis
d2b93502bc
Show uploaded images below text input
2023-11-02 01:48:34 +01:00
ekzyis
7a83813c85
Upload images to S3 on selection
2023-11-02 01:48:34 +01:00
ekzyis
de7b8547ec
Open file explorer to select image
2023-11-02 01:48:34 +01:00
ekzyis
955e5cfc88
Add icon to add images
2023-11-02 01:48:34 +01:00
keyan
8bc3f5b384
Revert "halloween animation"
...
This reverts commit e9390262958040638078dafa302b3af781c6cd9f.
2023-11-01 11:57:55 -05:00
keyan
8881b19e45
Revert "protect zaps from webgl occasionally being unavailable"
...
This reverts commit b5828cdf94662ad29ae121a100e448327180a302.
2023-11-01 11:57:17 -05:00
keyan
b5828cdf94
protect zaps from webgl occasionally being unavailable
2023-10-31 09:48:39 -05:00
keyan
e939026295
halloween animation
2023-10-29 16:50:03 -05:00
keyan
30d8c92fe2
fix accidental reply hit on mobile
2023-10-26 15:49:28 -05:00
keyan
835554b3cd
small adjustments to secondary form text
2023-10-26 15:12:21 -05:00
keyan
7589295e8c
fix url UX exposing state
2023-10-26 14:36:20 -05:00
keyan
43a54d407e
keep as much context as possible when navigating deeper in comment threads
2023-10-26 14:24:49 -05:00
keyan
39625f7e08
improve markdown tab spacing
2023-10-26 13:28:12 -05:00
keyan
43d3ba1807
better search layout spacing
2023-10-26 13:01:01 -05:00
keyan
e8aaf1956e
fix spacing on mixed items
2023-10-26 12:52:06 -05:00
keyan
4d98110282
restore ctrl+click on item title clicking
2023-10-26 12:30:13 -05:00
keyan
02b98582b8
add spacing to comment reply button
2023-10-26 12:17:43 -05:00
keyan
41cb6ac3d8
continue notification polling even if found
2023-10-26 11:53:27 -05:00
ekzyis
cbcf80e1ba
Fix QR code overflow on mobile ( #589 )
...
Co-authored-by: ekzyis <ek@stacker.news>
2023-10-26 10:36:46 -05:00
keyan
0c9131f698
only show invoice data on full page
2023-10-23 19:58:33 -05:00
keyan
302f3459a1
fix markdown inline code and headings
2023-10-23 17:14:37 -05:00
keyan
67ec82b6d9
disambiguate preimage after payment from hold preimage
2023-10-23 16:44:09 -05:00
keyan
3929593d90
don't poll for notifications if we already know
2023-10-22 16:26:52 -05:00