Commit graph

25538 commits

Author SHA1 Message Date
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
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
Manav Rathi 89b832d21f
Baby's first steps 2024-04-15 12:47:55 +05:30
Manav Rathi 0161739bc0
Outline the plan 2024-04-15 12:41:17 +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
Neeraj Gupta d8c798e5a2
[FEAT] Multipart upload support (#1347)
## Description

Add multipart file upload support
2024-04-15 12:00:49 +05:30
Neeraj Gupta 177d35a32e Merge branch 'main' into multipart 2024-04-15 11:59:49 +05:30
Neeraj Gupta 6300984bd1 Merge branch 'main' into multipart 2024-04-15 11:59:15 +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 f5fa3128a7
[desktop] Fix desktop payments redirect (#1447)
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

- [x] Signing up for a new account, purchasing a plan and verifying that
we went back to the app as expected
- [x] Existing account, after pressing back from the manage payments
page we go back to the app as expected
2024-04-15 11:05: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
ashilkn 2a835e80a4 [mob] bump up photos version to v0.8.81 2024-04-15 10:58:35 +05:30
ashilkn 48cbe17ccd [mob] Make the borders of settings drawer not-round 2024-04-15 10:58:35 +05:30
Neeraj Gupta 2638a06551 [mob][photos] Enable multiPart upload for internal users 2024-04-15 10:56:41 +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
Neeraj Gupta 601a776b7a Merge branch 'main' into multipart 2024-04-15 10:37:42 +05:30
Ashil bb90b2d3bc
[mob][photos] Upgrade flutter (#1434)
## Description

- Update flutter
- Update packages
- Fix UI issues because of update (material 3)
- bump up version to v0.8.80

## Tests

- [x] Building on android and iOS.

---------

Co-authored-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2024-04-15 10:21:18 +05:30
Manav Rathi 5a3545e56e
[web] Use the public link origin provided by the server (#1444)
When implementing https://github.com/ente-io/ente/pull/1443 it was found
that the Photos web app wasnt' using the sharedCollectionUrl prefix that
is returned by the server. Instead, it was using
NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT as the baseHost, while mobile client
completely rely on the server for returning the correct hostUrl.

**Tested by**

Running against the modified server, and verifying that changes to
apps.public-albums were being used.
2024-04-15 10:09:55 +05:30
Neeraj Gupta c73dc36a8c
[Server] Fix data cleanup pipeline for recovered account (#1410)
## Description
For accounts that were recovered post deletion (within x days), we were
not removing the entry from data_cleanup cron.

The data_clean up cron anyways verify that the account is indeed deleted
before proceeding with deletion, so it was not causing any harm, but the
cron was logging error.

## Tests

- [x] Verify that data clean up entry is removed if the account is
recovered
- [x] Verify that for existing data_cleanup entry for already recovered
account, the entry is deleted from cron.
2024-04-15 10:09:29 +05:30
Manav Rathi 92b5b56ac7
Add docs 2024-04-15 10:06:14 +05:30
Manav Rathi bcfd144ce9
[web] Use the public link origin provided by the server
When implementing https://github.com/ente-io/ente/pull/1443 it was found that
the Photos web app wasnt' using the sharedCollectionUrl prefix that is returned
by the server. Instead, it was using NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT as the
baseHost, while mobile client completely rely on the server for returning the
correct hostUrl.

**Tested by**

Running against the modified server, and verifying that changes to
apps.public-albums were being used.
2024-04-15 09:57:01 +05:30
Neeraj Gupta 8ed2c7cff9
[server] Pick base publicHost url from config (#1443)
## Description

## Tests
Ran locally with the config in local.yaml and verified that it's
modified as well when I had put localhost:3002 in the museum.yaml config
2024-04-15 09:56:21 +05:30
github-actions[bot] 2387d7875c
[auth] New translations (#1240)
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-04-15 09:36:11 +05:30
Manav Rathi 2ae119b2ec
[desktop] Fix export related IPC - Part 4/x (#1441) 2024-04-14 20:23:04 +05:30
Manav Rathi 18ac361688
Remove unused IPC method 2024-04-14 20:11:25 +05:30
Manav Rathi 87077417a2
Remove dup 2024-04-14 20:07:17 +05:30
Manav Rathi d0ac3ea9ca
Remove newly dead code 2024-04-14 20:00:59 +05:30
Manav Rathi a5f9fdd10d
Restructure selection 2024-04-14 19:59:13 +05:30
Manav Rathi 881a963fde
Inline 2024-04-14 19:46:26 +05:30
Manav Rathi f9560ec533
Inline 2024-04-14 19:43:31 +05:30
Manav Rathi 22616bb77d
Remove top level error suppressors 2024-04-14 19:42:30 +05:30
Manav Rathi 4d19c46d7c
Replace exception handling for control flow 2024-04-14 19:39:35 +05:30