ekzyis
6b840258c0
Fix NULL returned for size24h, sizeNow
2023-11-02 01:48:34 +01:00
ekzyis
30a413e494
Fix multiplication with feesPerImage
2023-11-02 01:48:34 +01:00
ekzyis
d8511ba6d2
Fix bad image fee return statements
2023-11-02 01:48:34 +01:00
ekzyis
7f38d750b9
Fix stale image fees served
2023-11-02 01:48:34 +01:00
ekzyis
cb56ee8b58
Fix free upload quota
2023-11-02 01:48:34 +01:00
ekzyis
4e3e1a4a6a
Increase max upload size to 10MB to allow HQ camera pictures
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
fe7d78038b
Add schedule to delete unused images
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
b71f320b59
Fix fees in sats deducted from msats
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
1af6a5c98d
Remove unnecessary avatar check during image fees calculation
2023-11-02 01:48:34 +01:00
ekzyis
e7175fbe87
Use megabytes in error message
2023-11-02 01:48:34 +01:00
ekzyis
78c756a42c
Add comments regarding avatar upload
2023-11-02 01:48:34 +01:00
ekzyis
726f10c396
Allow anons to get presigned URLs
2023-11-02 01:48:34 +01:00
ekzyis
ed3a681950
Add image fees during item creation/update
...
* we calculate image fees during item creation and update now
* function imageFees returns queries which deduct fees from user and mark images as paid + fees
* queries need to be run inside same transaction as item creation/update
2023-11-02 01:48:34 +01:00
ekzyis
900592020f
Add Upload.paid boolean column
...
One item can have multiple images linked to it, but an image can also be used in multiple items (many-to-many relation).
Since we don't really care to which item an image is linked and vice versa, we just use a boolean column to mark if an image was already paid for.
This makes fee calculation easier since no JOINs are required.
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
167a4189ca
Add fees for presigned URLs
2023-11-02 01:48:34 +01:00
ekzyis
eb4700070f
Overwrite old avatar
2023-11-02 01:48:34 +01:00
ekzyis
ef0506d7c6
Allow items to have multiple uploads linked
2023-11-02 01:48:34 +01:00
ekzyis
51bc4b82d0
Also delete objects in S3
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
VaibhavWakde52
e24e2a6b20
Update README.md ( #593 )
2023-11-01 14:54:41 -05: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
b5bf3299f2
add /bitcoin.pdf easter egg
2023-10-31 11:02:13 -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
d43155243a
give self subscription proper migration name
2023-10-28 18:48:07 -05:00
keyan
e3b81b7746
add top meme and fact to newsletter script
2023-10-28 18:28:13 -05:00