Commit Graph

29607 Commits

Author SHA1 Message Date
Manav Rathi
1cd5536eb1 Update message 2024-06-25 15:58:30 +05:30
Manav Rathi
5b411ce55a Fix lint 2024-06-25 15:58:30 +05:30
Manav Rathi
012aae17ec Fix formatting 2024-06-25 15:58:29 +05:30
Manav Rathi
e6b4d220a3 Fix 2024-06-25 15:58:29 +05:30
Manav Rathi
c988c30910 Validate in the other places where we request the password 2024-06-25 15:58:29 +05:30
Manav Rathi
3ae1b18bf1 Comment 2024-06-25 15:58:29 +05:30
Manav Rathi
a093c1dd34 Flatten 2024-06-25 15:58:29 +05:30
Manav Rathi
25a79e4146 Before computing with the keyattributes 2024-06-25 15:58:29 +05:30
Manav Rathi
47630408b6 We need the SRP attributes to detect changes 2024-06-25 15:58:29 +05:30
Manav Rathi
9c0a66b036 Cleanup 2024-06-25 15:58:29 +05:30
Manav Rathi
d8650aa33d router.reload is an undocumented, semi-deprecated, oneliner
Ref:
- https://github.com/vercel/next.js/discussions/53517
- https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/router/router.ts#L1007-L1009
2024-06-25 15:58:29 +05:30
Manav Rathi
a6645bce8b Wait for validity check to complete before verification 2024-06-25 15:58:29 +05:30
Manav Rathi
05816a3894 Note the field 2024-06-25 15:58:28 +05:30
Manav Rathi
e4e75b573f Reduce indentation 2024-06-25 15:58:28 +05:30
Manav Rathi
3f6ef61204 Use 2024-06-25 15:58:28 +05:30
Manav Rathi
326f7d647e validity 2024-06-25 15:58:28 +05:30
Manav Rathi
3d7e425f48 WIP 2024-06-25 15:58:28 +05:30
Manav Rathi
767f2479af wip 2024-06-25 15:58:28 +05:30
Manav Rathi
edceebd8fb The error in the background is potentially confusing too 2024-06-25 15:58:28 +05:30
Manav Rathi
685a3ca4c7 Upd 2024-06-25 15:58:27 +05:30
Manav Rathi
3a4dc21470 Component state for this component needs refactoring, for now read from source 2024-06-25 15:58:27 +05:30
Manav Rathi
ce3233a01f Also do it on incorrect password entry 2024-06-25 15:58:27 +05:30
Manav Rathi
2f8abd5b7f Give it a chance to kick in 2024-06-25 15:58:27 +05:30
Manav Rathi
f5d6037e31 Use the value 2024-06-25 15:58:27 +05:30
Manav Rathi
a03c8e3a55 Sketch 2024-06-25 15:58:27 +05:30
Manav Rathi
f64b0238c9 [server] Return key attributes in the session-validity response (#2288)
Smoke tested locally. Was also more thoroughly tested as part of
https://github.com/ente-io/ente/pull/2230.
2024-06-25 15:53:59 +05:30
Manav Rathi
06e7626206 [server] Return key attributes in the session-validity response 2024-06-25 15:25:04 +05:30
Ashil
a6dae9a661 [mob][photos] Fix file bottom bar not disappearing when in fullscreen (#2286)
## Description

When viewing photos/videos and enabling fullscreen (with a tap on
scree), the bottom bar wasn't disappearing like it used to. This PR
fixes this regression.
2024-06-25 14:21:25 +05:30
Manav Rathi
3d84937d06 [web] New translations (#2277)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-06-25 13:17:34 +05:30
Manav Rathi
2bc8cca55f [desktop] Cache the handle to the zip files to improve metadata parsing speed (#2287)
This should _significantly_ (hours => seconds) improve the performance
of the metadata parsing step during import of large Google Takeout zips,
and bring them to par as if the user had drag-and-dropped the unzipped
folder instead.

In my monkey tests, it seems that beyond a certain zip size (few GBs),
reopening the handle to a stream zip overshadows the time taken to read
the individual JSONs. This effect seems to grow very big for big zips to
a point where the metadata parsing step takes hours.

But note that I'm only testing this on synthetic exemplars I've created.
After merging it'll also need testing on more realistic huge takeout
examples.
2024-06-25 13:17:04 +05:30
Manav Rathi
24691b8652 Seems to work without it 2024-06-25 13:10:52 +05:30
ashilkn
522d1da0e9 [mob][photos] Fix file bottom bar not disappearing when in fullscreen 2024-06-25 13:09:24 +05:30
Manav Rathi
cef1dee2a0 Rely 2024-06-25 12:57:18 +05:30
Manav Rathi
3220da556d Use 2024-06-25 12:56:49 +05:30
Neeraj Gupta
ea6e098583 [auth][windows] Update letsencrypt root cert (#2285)
## Description

## Tests
auth-v3.0.18-beta.1
2024-06-25 12:42:10 +05:30
Neeraj Gupta
610a5d8dcb [auth] Whitelist for windows only 2024-06-25 12:41:56 +05:30
Ashil
f67dc4893f [mob][photos] Cache results for Magic section (only visible to internal users) (#2282)
## Description

- Use cached results for magic section so that it does't anymore have to
wait for ML framework to be initialised and doesn't have to re-compute
results every time, which means faster loading of the search tab.
- For internal users, all results in
[here](https://discover.ente.io/v1.json) will show up.
- For non-internal users, once available, results will be limited to 4.
- 4 random prompts are selected from
[here](https://discover.ente.io/v1.json) with non-empty results and are
cached.
- The cache updates when the data updates
[here](https://discover.ente.io/v1.json) (checks size to compare) or in
3 days since the last update.
2024-06-25 12:33:39 +05:30
Neeraj Gupta
185bed19aa [auth] Bump version 2024-06-25 12:29:39 +05:30
Neeraj Gupta
3094d74b6a [auth] Add latest letsencrypt ca 2024-06-25 12:29:25 +05:30
Manav Rathi
5c3cfb7403 Clear 2024-06-25 12:20:59 +05:30
Manav Rathi
5d0926ebb2 Impl 2024-06-25 12:16:23 +05:30
Manav Rathi
a49c7834d8 Cache the handle to the zip files - prep 2024-06-25 12:07:14 +05:30
Neeraj Gupta
2f327b1929 [mobile] New translations (#2278)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-06-25 12:00:54 +05:30
Neeraj Gupta
b7892f4257 [auth] New translations (#2279)
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)
2024-06-25 12:00:25 +05:30
Neeraj Gupta
f5bcdd0d9e [mob][photos] Fix build failing (#2284)
```lib/core/error-reporting/super_logging.dart:20:8: Error: Error when reading 'lib/services/machine_learning/face_ml/face_ml_exceptions.dart': No such file or directory
import "package:photos/services/machine_learning/face_ml/face_ml_exceptions.dart";
       ^
lib/core/error-reporting/super_logging.dart:239:20: Error: 'CouldNotRetrieveAnyFileData' isn't a type.
      if (error is CouldNotRetrieveAnyFileData ||
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception


FAILURE: Build failed with an exception.
2024-06-25 11:59:43 +05:30
ashilkn
6736ad73ec [mob][photos] Fix build failing 2024-06-25 10:51:19 +05:30
ashilkn
75dcf18d75 [mob][photos] Minor UI fix 2024-06-25 10:15:16 +05:30
ashilkn
e722024f8f [mob][photos] Catch any exceptions or errors when getting results for magic section and return an empty list to avoid showing a blank search tab 2024-06-25 10:13:43 +05:30
Manav Rathi
a714c0d70b [docs] Configure custom server - web/desktop (#2281) 2024-06-25 10:02:35 +05:30
Manav Rathi
51bcf02b96 [docs] Configure custom server - web/desktop 2024-06-25 10:01:01 +05:30