Commit graph

865 commits

Author SHA1 Message Date
Manav Rathi
f21ccd4935
Rearrange 2024-04-17 19:38:07 +05:30
Manav Rathi
170ea0c997
Cleanup 2024-04-17 19:21:40 +05:30
Manav Rathi
a22423d039
WIP 2 2024-04-17 17:00:51 +05:30
Manav Rathi
52c35108ca
WIP 1 2024-04-17 15:51:51 +05:30
Manav Rathi
ee89506923
Unlegacy isDir 2024-04-17 14:27:48 +05:30
Manav Rathi
00c400f682
Reword 2024-04-17 14:19:11 +05:30
Manav Rathi
4971099da9
Merge 2024-04-17 13:41:10 +05:30
Manav Rathi
75e07353be
Thank you tsc 2024-04-17 12:38:52 +05:30
Manav Rathi
184ba91a2d
Refactor 2024-04-17 12:34:00 +05:30
Manav Rathi
652be207be
Update another place 2024-04-17 12:11:08 +05:30
Manav Rathi
fb1d2c800a
Dedup 2024-04-17 12:07:15 +05:30
Manav Rathi
871cb417d6
Replace 2024-04-17 12:03:45 +05:30
Manav Rathi
2d5ab044ee
Docs 2024-04-17 11:55:07 +05:30
Manav Rathi
637d830f19
Replace encodelivephoto 2024-04-17 11:51:35 +05:30
Manav Rathi
3172104578
Start using @/media's version 2024-04-17 10:08:08 +05:30
Manav Rathi
d80358552f
Trim spaces for more forgiving copy paste 2024-04-16 21:02:57 +05:30
Manav Rathi
c98d5a3e40
Filter out files with HEIC previews 2024-04-16 21:00:47 +05:30
Manav Rathi
2dd705d7f7
Not better not worse 2024-04-16 20:49:47 +05:30
Manav Rathi
0a248e5ce5
Prepare 2024-04-16 20:22:12 +05:30
Manav Rathi
598a885df2
Refactor
This doesn't fix the initial gap, functionality is still the same, but the flow
is now easier to understand.
2024-04-16 20:17:28 +05:30
Manav Rathi
138b775c13
At a more opportune place 2024-04-16 19:57:08 +05:30
Manav Rathi
2bb3e152f8
Precache 2024-04-16 19:54:00 +05:30
Manav Rathi
f78e4d3914
Fix live photo cast 2024-04-16 19:42:53 +05:30
Manav Rathi
9a6f3133b1
Reduce API 2024-04-16 16:17:27 +05:30
Manav Rathi
afec29d6e7
Inline and spruce 2024-04-16 15:54:28 +05:30
Manav Rathi
8fbff7e3a3
Inline 2024-04-16 15:33:47 +05:30
Manav Rathi
96ea996401
Inline 2024-04-16 15:29:56 +05:30
Manav Rathi
cf889b24af
Inline 2024-04-16 15:28:23 +05:30
Manav Rathi
cd4b2a6810
Inline 2024-04-16 15:26:35 +05:30
Manav Rathi
415fa79271
[desktop] Make export work with the new IPC (#1461)
There is one piece of the puzzle still missing - the files are being
sent wholesale instead of being streamed - and this might cause memory
issues. I haven't benchmarked yet, leaving this until we get some
response from the upstream issue
https://github.com/electron/electron/issues/41872 (hopefully it's just
some thing I missed).

But otherwise, ran export on a trivial library and it worked fine, so
everything is at least hooked up properly now.
2024-04-16 15:12:34 +05:30
Manav Rathi
2403c19f70
Add a temporary fallback 2024-04-16 14:50:25 +05:30
Manav Rathi
450e494a5e
Throwing darts 2024-04-16 11:34:34 +05:30
Manav Rathi
81d1563c3d
Also reproducible on latest beta 2024-04-16 10:17:51 +05:30
Manav Rathi
1e202a76c4
Works if we don't stream 2024-04-16 09:39:43 +05:30
Manav Rathi
d7b0beb949
[web] Clear search bar state when value is falsey
Updates https://github.com/ente-io/ente/pull/1453 so that we also clear the
existing state by calling the setFoo methods even when value is falsey.
2024-04-16 09:03:35 +05:30
Manav Rathi
2577cfe2f1
Replace cast with @ts-expect-error 2024-04-15 21:43:38 +05:30
Manav Rathi
020ed59d40
[web] Fix dev mode error on search input (#1453)
## Description
Ran into error after clearing search bar of queries by hitting
backspace.

>  The error is shown below
> Thank you to the team for considering 


## Tests
**Error**
![Screenshot 2024-04-15
184234](https://github.com/ente-io/ente/assets/82031202/f5f9845c-9420-4746-998b-2c67136d69cd)
**Fix**
Fixed by wrapping the line-causing error around by an `if` block.
2024-04-15 20:50:06 +05:30
daviddeepan
09c07e58e6 search-input runtime-error fix 2024-04-15 19:54:33 +05:30
Manav Rathi
83d2644bf4
Fix double slashing 2024-04-15 19:43:30 +05:30
Manav Rathi
67aacf8391
Replace everywhere 2024-04-15 19:40:50 +05:30
Manav Rathi
c99c4ac839
Use new method 2024-04-15 19:35:19 +05:30
Manav Rathi
6b331612b6
writeStream 2024-04-15 18:39:08 +05:30
Manav Rathi
a74d904989
Use a test stream
Example taken from https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests
2024-04-15 16:00:25 +05:30
Manav Rathi
2a425b0f9b
Add duplex parameter to a streaming request
Attempt to solve the following error in the browser's console when trying to
make the request:

    [error] download and save failed: TypeError: Failed to construct 'Request':
    The `duplex` member must be specified for a request with a streaming body
2024-04-15 14:22:00 +05:30
Manav Rathi
89b832d21f
Baby's first steps 2024-04-15 12:47:55 +05:30
Manav Rathi
3ea4879cf0
Remove text qualifier
The type already enforces that. And it reads better and the call sites this way.
2024-04-15 12:20:41 +05:30
Manav Rathi
73ef03a5d9
Move read/write whole files into fs 2024-04-15 12:17:33 +05:30
Manav Rathi
896cf0f785
Disable full file caches for now
This is only needed for ML indexing, let us revisit this once the ML flow is
done instead of adding a premature and possibly disk-space heavy optimization.
2024-04-15 11:50:23 +05:30
Manav Rathi
95c0f53d21
Preserve parameters
This was needed for the purchase success to be relayed back.
2024-04-15 10:59:07 +05:30
Manav Rathi
8d24a489f6
[desktop] Fix payment redirect
Fixes: https://github.com/ente-io/ente/issues/1440

There were two issues:

- It was a backward incompatible change to change the scheme from ente:// to
  next://. Revert.

- We also need to setup a top level redirect when the user presses back without
  making any changes to their subscription.

**Tested by**

Running payments app and desktop app locally, and verifying that after
interactions with the payments endpoint we go back to the desktop app's actual
contents correctly.
2024-04-15 10:47:14 +05:30