Commit graph

25601 commits

Author SHA1 Message Date
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
Vishnu Mohandas 7ada38cca0
[auth] New translations (#1456)
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)
2024-04-16 13:41:23 +05:30
Vishnu Mohandas 3c464549cf
Remove submodules (#1460) 2024-04-16 11:47:29 +05:30
vishnukvmd 4cede0feb0 Remove submodules 2024-04-16 11:46:37 +05:30
Vishnu Mohandas d9cef398cf
[photos] v0.8.82 (#1459) 2024-04-16 11:36:53 +05:30
vishnukvmd 3b5a2e9d2a [photos] v0.8.82 2024-04-16 11:36:35 +05:30
Manav Rathi 450e494a5e
Throwing darts 2024-04-16 11:34:34 +05:30
Prateek Sunal 4b2ebec11b
[FEAT] Route widget on click to image (#1418) (#1435)
## Description

Previously clicking on it was opening favorites album but now it will
open favorites album as well as image.

## Tests
2024-04-16 11:28:51 +05:30
Manav Rathi 2bc22f472e
[web] New translations (#1455)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-04-16 11:27:16 +05:30
Manav Rathi b104334fc6
[server] Specify a default for apps.public-albums (#1458)
local.yaml is only loaded in the local environment, and will not be used
in production. To avoid specifying it in both production and local
configurations, use it as a default specified in the code instead
(that's the pattern we're using in other places too from what I
remember, maybe we should refactor that too, but that's a bigger task
not tied to this change).

**Tested by**

On a local dev cluster

- [x] Not specifying anything and ensuring that the default is picked
- [x] Specifying an override in museum.yaml and verifying that is used
instead
2024-04-16 11:26:44 +05:30
Manav Rathi 81d1563c3d
Also reproducible on latest beta 2024-04-16 10:17:51 +05:30
Manav Rathi d53a4a14b8
Try another reader 2024-04-16 09:46:55 +05:30
Manav Rathi 1e202a76c4
Works if we don't stream 2024-04-16 09:39:43 +05:30
Manav Rathi 74b9a2a408
[server] Specify a default for apps.public-albums
local.yaml is only loaded in the local environment, and will not be used in
production. To avoid specifying it in both production and local configurations,
use it as a default specified in the code instead (that's the pattern we're
using in other places too from what I remember, maybe we should refactor that
too, but that's a bigger task not tied to this change).

**Tested by**

On a local dev cluster
- Not specifying anything and ensuring that the default is picked
- Specifying an override in museum.yaml and verifying that is used instead
2024-04-16 09:19:13 +05:30
Manav Rathi bd00471a08
[web] Clear search bar state when value is falsey (#1457)
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:09:18 +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
Crowdin Bot 22c080c2aa New Crowdin translations by GitHub Action 2024-04-16 02:03:30 +00:00
Crowdin Bot 0f4624e829 New Crowdin translations by GitHub Action 2024-04-16 01:37:39 +00:00
Prateek Sunal 311d23873e chore: bump version 2024-04-15 21:44:49 +05:30
Prateek Sunal 0956e3ccc4 Merge remote-tracking branch 'origin/main' into mobile-widgetsimproved 2024-04-15 21:43:52 +05:30
Manav Rathi 2577cfe2f1
Replace cast with @ts-expect-error 2024-04-15 21:43:38 +05:30
Prateek Sunal 587f721683 fix: revert old 2024-04-15 21:43:30 +05:30
Manav Rathi a5be903abe
Try writing the stream manually (same result) 2024-04-15 21:37:38 +05:30
Manav Rathi 8d76966d99
Upgrade Electron and other dependencies
This was primarily for getting the latest Electron, but I ran `yarn
upgrade-interactive` and upgraded the other non-breaking deps (mostly dev) too.

Reason for wanting electron is to try and see if this backport fixes the issue
with our streams not getting faithfully written:
https://github.com/electron/electron/pull/41052

In some ad-hoc and quick testing, I noticed that the new `writeStream` we've
implemented works fine for files up to 128 K, presumably some chunk size, but
then begins to diverge. Sounds similar (but not exactly the same) as this issue:
https://github.com/electron/electron/issues/39658

Unfortunately, this didn't fix the issue we're facing, so our case is perhaps
different.
2024-04-15 21:21:09 +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
Manav Rathi 2c5ed5bce9
[desktop] Streaming IPC - Part 2/x (#1454)
The data is getting streamed, but not correctly in some cases. So the
mechanics are in place, need to figure out the readable stream chunks
etc.
2024-04-15 20:48:48 +05:30
daviddeepan 09c07e58e6 search-input runtime-error fix 2024-04-15 19:54:33 +05:30
Manav Rathi f2e352c344
Handle spaces 2024-04-15 19:50:56 +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
Neeraj Gupta 61f05f8eff
[mob][photos] Use modificationTime as creationTime if it's lower than… (#1451)
… creationTime

## Description

## Tests
2024-04-15 16:40:59 +05:30
Neeraj Gupta c840ac4d6c
[mob][photos] Upgrade connectivity_plus pkg (#1450)
## Description

## Tests
2024-04-15 16:26:30 +05:30
Manav Rathi d9ce28e4a3
[desktop] Streaming IPC 🚅 - Proof of concept (#1452) 2024-04-15 16:05:23 +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 8cdb31783b
Enhance 2024-04-15 15:57:57 +05:30
Manav Rathi 4c88f5eec9
Add write handler 2024-04-15 15:53:40 +05:30
Neeraj Gupta fdb9e4e205 [mob][photos] Use modificationTime as creationTime if it's lower than creationTime 2024-04-15 15:46:47 +05:30
Manav Rathi 0881212e4f
Rearrange 2024-04-15 15:44:11 +05:30
Manav Rathi 720e84ba1f
Prune
Refs:
- https://www.electronjs.org/docs/latest/api/protocol
- https://github.com/electron/electron/issues/39031
- https://github.com/electron/electron/issues/38749
2024-04-15 15:25:33 +05:30
Neeraj Gupta 5bac629c2b [mob][photos] Fix connectivityResult check 2024-04-15 15:21:43 +05:30
Manav Rathi 057fe9bbb1
Allow fetches for "stream"
Ref:
- https://github.com/electron/electron/issues/40362
2024-04-15 15:08:10 +05:30
Neeraj Gupta ab1ac9cf11 [mob][lint] error on unrelated_type_equality_checks rule voilation 2024-04-15 15:04:10 +05:30
Neeraj Gupta 223a4ffcfd [mob][photos] Upgrade connectivity_plus pkg 2024-04-15 15:00:59 +05:30
Prateek Sunal d46d74c6e2
Merge branch 'main' into mobile-widgetsimproved 2024-04-15 14:50:28 +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 9eab93cfdf
Suppress webpack's critical dependency warnings for libheif
Supressing it for now since it obscures other important information in the console.

Upstream issue, which currently doesn't have a workaround:
https://github.com/catdad-experiments/libheif-js/issues/23

Full error message:

     ⚠ ../../node_modules/libheif-js/libheif-wasm/libheif-bundle.js
    Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

    Import trace for requested module:
    ../../node_modules/libheif-js/libheif-wasm/libheif-bundle.js
    ../../node_modules/libheif-js/wasm-bundle.js
    ../../node_modules/heic-decode/index.js
    ../../node_modules/heic-convert/index.js
    ./src/worker/convert.worker.ts
    ./src/utils/comlink/ComlinkConvertWorker.ts
    ./src/services/heic-convert/service.ts
    ...

Refs:
- https://stackoverflow.com/questions/38392697/webpack-umd-critical-dependency-cannot-be-statically-extracted
2024-04-15 13:47:46 +05:30