Compare commits

...

2062 Commits

Author SHA1 Message Date
Neeraj Gupta
c84acfd588 [auth] Bump version (#1779)
## Description

## Tests
2024-05-20 17:37:49 +05:30
Neeraj Gupta
41ba5b79e3 [auth] Bump version 2024-05-20 17:37:28 +05:30
Manav Rathi
6676c67cc3 [desktop] Fix logout (#1778) 2024-05-20 17:31:11 +05:30
Manav Rathi
dae9bdd583 [desktop] Fix logout 2024-05-20 17:21:10 +05:30
Manav Rathi
41b22abc66 [desktop] ML touchups (#1777) 2024-05-20 14:49:50 +05:30
Manav Rathi
7049a901f8 Fix the app version in debug mode 2024-05-20 14:46:18 +05:30
Manav Rathi
cb86ab84f3 Send user agent 2024-05-20 14:28:27 +05:30
Manav Rathi
69b4fde936 Update TODOs based on discussion 2024-05-20 13:57:52 +05:30
Manav Rathi
c2edac6192 Fix error I observed in logs
> TypeError: Cannot read properties of undefined (reading 'method')
2024-05-20 11:43:10 +05:30
Manav Rathi
d7bd0f0200 [desktop] Fix ML put error 2024-05-20 11:33:43 +05:30
Manav Rathi
07ba9ef1d6 [desktop] ML: Clarify that existing indexed people will not show in this update (#1775) 2024-05-20 10:48:22 +05:30
Manav Rathi
10934b08a8 Handle first search on app start 2024-05-20 10:39:11 +05:30
Manav Rathi
34a8bdcf47 Remove unnecessary rounding 2024-05-20 10:15:41 +05:30
Manav Rathi
78420f65ab Case 2024-05-20 10:09:41 +05:30
Manav Rathi
20dcf3e473 Annotate 2024-05-20 10:04:33 +05:30
Manav Rathi
e97225fa10 Remove 2024-05-20 09:57:42 +05:30
Manav Rathi
476edd8cf5 Remove unused code paths
Only internal users come into such scenarios currently
2024-05-20 09:52:32 +05:30
Manav Rathi
a3aa3755c6 [desktop] Clarify that existing indexed people will not show
These auto complete suggestions and the list of people in the photo details are
not shown when ML search is disabled, and it is disabled for non-internal users,
so updated the description.
2024-05-20 09:45:55 +05:30
Manav Rathi
531547cd48 [web] Fix race condition in initialization of search worker (#1772)
During app init, two worker instances would get created in some cases
and two getInstances raced because of the await. This was causing the
search results to be empty until the page is reloaded (since the files
array was empty in the worker that got assigned, but the files would get
set to the other worker instance that lost the race).
2024-05-19 20:26:34 +05:30
Manav Rathi
97b964fd6c [web] Fix race condition in initialization of search worker
During app init, two worker instances would get created in some cases and two
getInstances raced because of the await. This was causing the search results to
be empty until the page is reloaded (since the files array was empty in the
worker that got assigned, but the files would get set to the other worker
instance that lost the race).
2024-05-19 20:21:37 +05:30
Manav Rathi
69f06f753c [web] ML cleanup - Part 7/x (#1771) 2024-05-19 20:19:59 +05:30
Manav Rathi
e5a96222b9 Use 2024-05-19 19:14:48 +05:30
Manav Rathi
5c92bc5b89 Reduce scope 2024-05-19 19:08:07 +05:30
Manav Rathi
f692638ede Try to find a split point 2024-05-19 19:03:25 +05:30
Manav Rathi
c2e42266a6 Remove unused 2024-05-19 18:57:35 +05:30
Manav Rathi
2db8c779b4 Convert to function (in preparation of declassing) 2024-05-19 18:56:42 +05:30
Manav Rathi
2d9831bc59 Move 2024-05-19 18:15:56 +05:30
Manav Rathi
b026d861ff Relative 2024-05-19 18:10:13 +05:30
Manav Rathi
d9ba96b928 lf 2024-05-19 17:58:37 +05:30
Manav Rathi
ffcf015e1c lf 2024-05-19 16:58:24 +05:30
Manav Rathi
b71b6142c5 Tweak 2024-05-19 16:57:19 +05:30
Manav Rathi
568e470752 Inline 2024-05-19 16:51:07 +05:30
Manav Rathi
faf415277e Trim 2024-05-19 16:46:01 +05:30
Manav Rathi
bfc81b1ab6 Inline 2024-05-19 16:44:19 +05:30
Manav Rathi
d99c10c15e Inline 2024-05-19 16:41:42 +05:30
Manav Rathi
d39cf15f26 Prune 2024-05-19 16:31:43 +05:30
Manav Rathi
37abeac87b Comment out 2024-05-19 15:36:37 +05:30
Manav Rathi
7f5c951910 Split 2024-05-19 15:34:43 +05:30
Manav Rathi
87c7999370 Reduce API surface for migration 2024-05-19 15:21:45 +05:30
Manav Rathi
ee894a668c Reduce distance to server type 2024-05-19 13:23:08 +05:30
Manav Rathi
6b5788539b Move out 2024-05-19 13:17:58 +05:30
Manav Rathi
9346ce3255 Prune 2024-05-19 13:12:27 +05:30
Manav Rathi
40dfeb5bca Tweak 2024-05-19 12:57:47 +05:30
Manav Rathi
2e46f993f0 Remove duplicate alignment calculation 2024-05-19 12:50:31 +05:30
Manav Rathi
ded2402483 Rearrange 2024-05-19 12:43:24 +05:30
Manav Rathi
393a8f11dd Rearrange 2024-05-19 12:28:54 +05:30
Manav Rathi
82485ef9a1 Tweak 2024-05-19 12:24:17 +05:30
Manav Rathi
b36d3befe0 Split 2024-05-19 12:10:53 +05:30
Manav Rathi
e6ed6b4916 Tinker 2024-05-19 12:06:59 +05:30
Manav Rathi
6427c09f52 Don't let face crop save failures abort the entire indexing 2024-05-19 11:59:03 +05:30
Manav Rathi
9abc22ade5 Remove unused 2024-05-19 11:57:13 +05:30
Manav Rathi
1466ece701 Cache the caches 2024-05-19 11:54:00 +05:30
Neeraj Gupta
33a3eeb9b4 [server] Improve log (#1769)
## Description

## Tests
2024-05-19 08:35:29 +05:30
Neeraj Gupta
0949102959 Improve logs 2024-05-19 08:33:29 +05:30
Neeraj Gupta
367431bef8 Improve log 2024-05-19 08:31:32 +05:30
Neeraj Gupta
3bdb1e6277 [server] Remove fallback check as dc column was added with default dc b2 (#1768)
## Description

## Tests
2024-05-19 08:23:38 +05:30
Neeraj Gupta
113b776aea [server] Remove fallback check as dc column was added with default dc b2 2024-05-19 08:21:32 +05:30
Manav Rathi
99ed1bc9af Show saved crops 2024-05-19 07:18:18 +05:30
Manav Rathi
c1f0f67656 [meta] Prune gitignore (#1767)
About the auth dbs, discussed in chat: These files got created once when
debugging auth build for linux. They were probably accidental, so
removing them for now (will add back if there is a workflow when they
actively get recreated).
2024-05-18 21:28:22 +05:30
Manav Rathi
894acda782 [meta] Prune
About the auth dbs, discussed in chat: These files got created once when
debugging auth build for linux. They were probably accidental, so removing them
for now (will add back if there is a workflow when they actively get recreated).
2024-05-18 21:23:47 +05:30
Manav Rathi
b6a2985432 [web] ML cleanup - Part 6/x (#1766) 2024-05-18 20:57:24 +05:30
Manav Rathi
3ade7b797e Fix duplicate check 2024-05-18 20:50:35 +05:30
Manav Rathi
93c498b0f4 Remove unused context 2024-05-18 20:39:57 +05:30
Manav Rathi
6849041735 Tweak 2024-05-18 20:26:20 +05:30
Manav Rathi
a4494f5c6a Tweak 2024-05-18 20:23:31 +05:30
Manav Rathi
97adb89494 Tweak 2024-05-18 20:18:39 +05:30
Manav Rathi
fe8ff0a12a Remove redundant 2024-05-18 20:16:00 +05:30
Manav Rathi
8975546294 Simplify 2024-05-18 20:13:43 +05:30
Manav Rathi
acd3568dc6 Tinker 2024-05-18 20:06:29 +05:30
Manav Rathi
3b6760c65e Remove unused blazeflaze landmarks 2024-05-18 19:55:51 +05:30
Manav Rathi
6304d90b52 Inline 2024-05-18 19:50:13 +05:30
Manav Rathi
410b6e7d3e Tinker 2024-05-18 19:41:34 +05:30
Manav Rathi
a161203d0b Inline 2024-05-18 19:32:34 +05:30
Manav Rathi
c8623bab12 Cleanup 2024-05-18 17:42:27 +05:30
Manav Rathi
aa76448747 Shorten 2024-05-18 17:32:42 +05:30
Manav Rathi
139370c997 Shorten 2024-05-18 17:31:39 +05:30
Manav Rathi
4d5ba47be4 Sugar 2024-05-18 17:27:41 +05:30
Manav Rathi
3f18fb84a1 Rearrange 2024-05-18 17:20:42 +05:30
Manav Rathi
39a75430a5 Inline 2024-05-18 17:19:29 +05:30
Manav Rathi
c557e4a7a5 Inline 2024-05-18 16:56:18 +05:30
Manav Rathi
a2e7231c37 Prune 2024-05-18 16:52:54 +05:30
Manav Rathi
9ba028b79d Isolate 2024-05-18 16:52:25 +05:30
Manav Rathi
8f43c3d712 Simplify 2024-05-18 16:19:55 +05:30
Manav Rathi
76cfae12a5 Point of use 2024-05-18 16:02:27 +05:30
Manav Rathi
b29436e160 Prune 2024-05-18 16:00:07 +05:30
Manav Rathi
bcbd805404 Inline 2024-05-18 15:58:41 +05:30
Manav Rathi
433d0e81fc Prune 2024-05-18 15:57:36 +05:30
Manav Rathi
bef7574c29 Trim 2024-05-18 15:53:10 +05:30
Manav Rathi
996d9ccda5 [web] ML cleanup - Part 5/x (#1762) 2024-05-18 11:06:04 +05:30
Manav Rathi
772215eddc Rearrange 2024-05-18 10:59:18 +05:30
Manav Rathi
e13f59606f Inline 2024-05-18 10:56:19 +05:30
Manav Rathi
4840214d89 Rearrange 2024-05-18 10:51:31 +05:30
Manav Rathi
b3b79c2b90 Rearrange 2024-05-18 10:48:09 +05:30
Manav Rathi
f25b4b37d0 Site of use 2024-05-18 10:46:34 +05:30
Manav Rathi
8a5bffc3e9 Remove unused 2024-05-18 10:43:44 +05:30
Manav Rathi
2791eeb270 Remove unused 2024-05-18 10:42:39 +05:30
Manav Rathi
bd3bdf64c2 Tweak 2024-05-18 10:40:49 +05:30
Manav Rathi
56aaad62be Tweak 2024-05-18 10:33:32 +05:30
Manav Rathi
88f9186be0 Split 2024-05-18 10:25:35 +05:30
Manav Rathi
9fa828e384 Restrict 2024-05-18 10:23:50 +05:30
Manav Rathi
42d767cac3 Shorten 2024-05-18 10:18:09 +05:30
Manav Rathi
17d78f23bb Shorten 2024-05-18 10:14:15 +05:30
Manav Rathi
246d44648b Reify 2024-05-18 10:11:16 +05:30
Manav Rathi
33d3428222 Move 2024-05-18 10:07:39 +05:30
Manav Rathi
295717ac2f Simplify 2024-05-18 09:59:53 +05:30
Manav Rathi
9808dce44d Pretty 2024-05-18 09:56:20 +05:30
Manav Rathi
fb81a59d4b Site of use 2024-05-18 09:51:42 +05:30
Manav Rathi
1edafd3568 [web] ML cleanup - Part 4/x (#1761) 2024-05-18 09:28:02 +05:30
Manav Rathi
0188749692 Prune 2024-05-18 09:21:17 +05:30
Manav Rathi
46ad045ed4 Merge 2024-05-18 09:19:14 +05:30
Manav Rathi
58193c0d7f Remove unused exports 2024-05-18 09:18:32 +05:30
Manav Rathi
87f60149e1 Remove DB dependency from indexer 2024-05-18 09:16:53 +05:30
Manav Rathi
ae70eb33dd Inline 2024-05-18 09:13:48 +05:30
Manav Rathi
e224ad19d3 Separate 2024-05-18 09:12:49 +05:30
Manav Rathi
f9346c56e9 Inline 2024-05-18 09:02:59 +05:30
Manav Rathi
e15460684d Inline 2024-05-18 08:51:57 +05:30
Manav Rathi
93cdf73a66 Inline 2024-05-18 08:50:48 +05:30
Manav Rathi
eaadc54184 Inline 2024-05-18 08:48:37 +05:30
Manav Rathi
5eb21fafbe Extract indexer 2024-05-18 08:43:01 +05:30
Manav Rathi
8edb506b29 Prune 2024-05-18 08:07:49 +05:30
Manav Rathi
a7e6b1bf5b Prune 2024-05-18 08:04:09 +05:30
Manav Rathi
0109602168 Inline 2024-05-18 08:03:17 +05:30
Manav Rathi
25ced9ce9d Prune 2024-05-18 08:00:42 +05:30
Manav Rathi
fcd4459e6d Move currently unused cluster stuff out of the way 2024-05-18 07:49:15 +05:30
Manav Rathi
295f4a0c2a Essence 2024-05-18 07:27:58 +05:30
Manav Rathi
512766ebed Essence 2024-05-18 07:21:43 +05:30
Manav Rathi
d4449d0f0b Remove noise 2024-05-18 07:10:24 +05:30
Manav Rathi
85562806a3 Prune 2024-05-18 07:07:48 +05:30
Manav Rathi
a18566ff86 Remove error message persistence 2024-05-18 07:05:47 +05:30
Manav Rathi
5c7361262d Prune 2024-05-18 07:00:46 +05:30
Prateek Sunal
19874e2186 chore: bump version to 301 2024-05-17 17:27:34 +05:30
Prateek Sunal
718b78adf0 chore(auth): update Podfile 2024-05-17 17:27:34 +05:30
Neeraj Gupta
fd63597ef3 [auth] iOS build changes (#1758)
## Description

## Tests
2024-05-17 17:27:11 +05:30
Neeraj Gupta
38ab7ae157 [auth] iOS build changes 2024-05-17 17:26:42 +05:30
Neeraj Gupta
d00a032b17 [auth] New translations (#1751)
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)
2024-05-17 16:50:47 +05:30
Neeraj Gupta
401cf92695 Make embedding bucket configurable (#1726)
## Description

## Tests
- [x] New ml data is doing to new bucket
- [x] For existing embedding, fall back logic is working as expected, we
are returning the object immediately and copying the object to new
bucket in an async manner.
- [x] Verified that the dc values were getting updated correctly on copy
or insert.
- [x] Verified that on deletion, we are deleting files from all dcs
where the derived file is present.
2024-05-17 15:45:41 +05:30
Neeraj Gupta
89b01f0a39 Query DB to get fallback DC 2024-05-17 15:40:09 +05:30
Manav Rathi
b7bdd89708 [desktop] Add note about xdg-open bug on Ubuntu (#1756)
Was able to reproduce the issue in Ubuntu 24.04 LTS

Ref: https://github.com/electron/electron/issues/31485
2024-05-17 15:27:08 +05:30
Manav Rathi
b420eece38 [desktop] Add note about xdg-open bug on Ubuntu
Ref: https://github.com/electron/electron/issues/31485
2024-05-17 15:24:42 +05:30
Neeraj Gupta
e33d85412c Fix query for add new DC 2024-05-17 15:08:57 +05:30
Neeraj Gupta
da155464fa Remove updated_at trigger for embeddings table 2024-05-17 15:08:48 +05:30
Manav Rathi
32b12dbc09 [web] Fail to start if the port is taken (#1755)
This prevents cases say where the web app is running in a terminal, but
when we try to run the desktop app it silently switches to a different
and then failing to load in a manner that is harder to debug compared to
if it'd failed outright.

Ref:
-
https://github.com/vercel/next.js/discussions/23932#discussioncomment-599284
2024-05-17 14:44:15 +05:30
Manav Rathi
103d907781 [web] Fail to start if the port is taken
This prevents cases say where the web app is running in a terminal, but when we
try to run the desktop app it silently switches to a different and then failing
to load in a manner that is harder to debug compared to if it'd failed outright.

Ref:
- https://github.com/vercel/next.js/discussions/23932#discussioncomment-599284
2024-05-17 14:35:10 +05:30
Manav Rathi
61683713e9 [desktop] RC (#1754) 2024-05-17 14:24:37 +05:30
Manav Rathi
af7c2edf98 Remove debugging lines 2024-05-17 14:21:37 +05:30
Manav Rathi
58d8f131da [desktop] Add a CORS workaround for uploads to arbitrary testing buckets (#1753)
This workaround already existed in older versions (See
`addAllowOriginHeader`), I had recently removed it, now putting it back.
2024-05-17 11:58:31 +05:30
Manav Rathi
f61b5118ba Add a CORS workaround for uploads to arbitrary testing buckets
Workaround for the following error when trying to upload from the desktop app to a staging bucket

> ente://app/gallery:1 Access to XMLHttpRequest at
  'https://xxx-staging-xxx.s3.xxx.backblazeb2.com/...' from origin 'ente://app'
  has been blocked by CORS policy: Response to preflight request doesn't pass
  access control check: The 'Access-Control-Allow-Origin' header has a value
  'null' that is not equal to the supplied origin.
2024-05-17 11:56:10 +05:30
Neeraj Gupta
d847d0601b [auth] Bump version to v3.0.0 (#1752)
## Description

## Tests
2024-05-17 11:48:08 +05:30
Neeraj Gupta
e7607160a0 [auth] Bump version to v3.0.0 2024-05-17 11:46:14 +05:30
Neeraj Gupta
fd50461214 Add dc in the log ctx 2024-05-17 10:52:00 +05:30
Manav Rathi
4160be30b9 Fix tag 2024-05-17 10:14:29 +05:30
Manav Rathi
4c3d549bbf [web] New translations (#1750)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-05-17 09:35:10 +05:30
Crowdin Bot
22cd8df340 New Crowdin translations by GitHub Action 2024-05-17 02:05:34 +00:00
Crowdin Bot
3d9aa05b07 New Crowdin translations by GitHub Action 2024-05-17 01:41:51 +00:00
Prateek Sunal
2ab7000af1 [FIX] Auth Macos build (#1746)
## Description

Updated Podfile

## Tests
2024-05-16 22:55:19 +05:30
Manav Rathi
50c1f3301e [web] Add Ubuntu section in getting started docs (#1747)
The `npm install -g corepack` was needed on Ubuntu 24 (See
https://github.com/yarnpkg/berry/discussions/5060)
2024-05-16 21:47:11 +05:30
Manav Rathi
20a7e47cde lint fix 2024-05-16 21:43:41 +05:30
Manav Rathi
ca2f124304 yarn pretty 2024-05-16 21:42:19 +05:30
Manav Rathi
ff5fbf3984 Update README 2024-05-16 21:42:03 +05:30
Manav Rathi
589d50e475 Mention in docs 2024-05-16 21:33:15 +05:30
Manav Rathi
1fbaa1e85d Link 2024-05-16 21:31:01 +05:30
Manav Rathi
23138800e0 [web] Add ubuntu instructions to the getting started docs 2024-05-16 21:28:34 +05:30
Prateek Sunal
34626e9da1 chore(auth): update podfile 2024-05-16 21:09:49 +05:30
Manav Rathi
7fe2a98eec [desktop] Fix warning on windows auto update (#1745)
> disableWebInstaller is set to false, you should set it to true if you
do not
plan on using a web installer. This will default to true in a future
version.
2024-05-16 20:56:12 +05:30
Manav Rathi
b9c4682adc [desktop] Fix warning on windows auto update
> disableWebInstaller is set to false, you should set it to true if you do not
  plan on using a web installer. This will default to true in a future version.
2024-05-16 20:54:24 +05:30
Manav Rathi
f75bb91af0 [desktop] Prevent accidental dismissal of auto update dialog (#1744) 2024-05-16 20:17:36 +05:30
Manav Rathi
9fc07b592b [desktop] Prevent accidental dismissal of auto update dialog 2024-05-16 20:07:11 +05:30
Manav Rathi
2d13c1ebb5 [web] Disable clustering (#1743) 2024-05-16 19:32:25 +05:30
Manav Rathi
25435dd693 [web] Disable clustering 2024-05-16 19:31:05 +05:30
Manav Rathi
55822d50ed [docs] Add yarn to package.json (#1742)
Same as b3ec2481bd
2024-05-16 19:13:25 +05:30
Manav Rathi
0e39bcdcd2 [docs] Add yarn to package.json
Same as b3ec2481bd
2024-05-16 19:06:00 +05:30
Manav Rathi
a61ef1b820 [docs] Add some more context to web + albums section of external-s3 guide (#1741)
Thanks to Zul from our community Discord. These clarifications were
provided by them, I just made some grammatical edits to fit the document
better.
2024-05-16 19:01:44 +05:30
Manav Rathi
ca504acf0f [docs] Add some more context to web + albums section of external-s3 guide
Thanks to Zul from Discord. These clarifications were provided by them, I just
made some grammatical edits to fit the document better.
2024-05-16 19:00:43 +05:30
Neeraj Gupta
a4ef4ce2c1 [mob] Show progress for downloading of clip models (#1738)
## Description

## Tests
Tested locally, enabled for internal users only.
2024-05-16 17:09:26 +05:30
Neeraj Gupta
18c083551e [mobile] New translations (#1716)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-05-16 17:08:18 +05:30
Neeraj Gupta
9c740dc810 Fix lint 2024-05-16 17:05:18 +05:30
Neeraj Gupta
698ceca49e Lint fix 2024-05-16 16:21:55 +05:30
Neeraj Gupta
51138e9263 Increase initial timeout val for b2 dc 2024-05-16 16:21:08 +05:30
Neeraj Gupta
08555954d2 Document 2024-05-16 16:10:51 +05:30
Neeraj Gupta
b404b77da3 Update dc while copying derived file 2024-05-16 16:08:38 +05:30
Manav Rathi
b2082e3c2a [desktop] Update to electron 30.0.6 (#1740)
https://github.com/electron/electron/releases/tag/v30.0.6
2024-05-16 15:54:52 +05:30
Neeraj Gupta
e1153a4471 [mob] Show progress for downloading of clip models 2024-05-16 15:54:20 +05:30
Manav Rathi
17f3839e88 [desktop] Update to electron 30.0.6
https://github.com/electron/electron/releases/tag/v30.0.6
2024-05-16 15:51:15 +05:30
Manav Rathi
b3ec2481bd [web] Make corepack happy (#1739)
Latest Node 20 (20.13.1) ships with an updated corepack which seems to
insist
putting a package manager field in package.json
(https://github.com/nodejs/corepack/pull/413).

Let it have its way, hoping that this doesn't break someone's workflow
(depending on how they installed yarn without corepack or if they have a
node
version that doesn't have corepack).
2024-05-16 15:50:22 +05:30
Manav Rathi
e430ee3606 lf 2024-05-16 15:49:13 +05:30
Manav Rathi
eaa0ddc468 Same for desktop 2024-05-16 15:46:43 +05:30
Manav Rathi
8c2654e30a [web] Make corepack happy
Latest Node 20 (20.13.1) ships with an updated corepack which seems to insist
putting a package manager field in package.json
(https://github.com/nodejs/corepack/pull/413).

Let it have its way, hoping that this doesn't break someone's workflow
(depending on how they installed yarn without corepack or if they have a node
version that doesn't have corepack).
2024-05-16 15:43:02 +05:30
Neeraj Gupta
a522631c2b Refactor 2024-05-16 15:19:22 +05:30
Manav Rathi
a0cb8b850e [web] ML cleanup - Part 3/x (#1737) 2024-05-16 15:11:10 +05:30
Manav Rathi
33272776d1 lf 2024-05-16 15:07:15 +05:30
Manav Rathi
7156a42d92 Unused 2024-05-16 15:06:02 +05:30
Manav Rathi
3603ca3d9b Reintroduce in worker 2024-05-16 14:52:36 +05:30
Manav Rathi
f7099c9bfe Prune 2024-05-16 14:46:42 +05:30
Manav Rathi
2452467796 Bypass 2024-05-16 14:42:15 +05:30
Manav Rathi
23087ee8dc Shuffle 2024-05-16 14:37:52 +05:30
Manav Rathi
fca668b8e6 Inline 2024-05-16 14:34:24 +05:30
Manav Rathi
865ddc0fa9 Inline 2024-05-16 14:30:43 +05:30
Manav Rathi
fb53ae7163 Unwrap 2024-05-16 14:27:28 +05:30
Manav Rathi
a293141444 Remove unused contexty 2024-05-16 14:21:38 +05:30
Manav Rathi
b1d9da663e Prune 2024-05-16 14:19:57 +05:30
Manav Rathi
054b4c7cfb Unclass indexer 2024-05-16 14:17:20 +05:30
Manav Rathi
3db91d2034 Cleanup 2024-05-16 13:52:45 +05:30
Manav Rathi
84c737ddd3 Unclass 2024-05-16 13:51:15 +05:30
Manav Rathi
43a3df5bbf embeddings 2024-05-16 13:43:18 +05:30
Neeraj Gupta
20e9a6a1fc Refactor 2024-05-16 13:39:47 +05:30
Manav Rathi
73946d9b8e Tinker 2024-05-16 13:36:03 +05:30
Manav Rathi
48cc9a08b6 Rename 2024-05-16 13:29:45 +05:30
Manav Rathi
839b4c04a9 Unclass 2024-05-16 13:29:27 +05:30
Manav Rathi
36af1cfacd Move 2024-05-16 13:19:33 +05:30
Manav Rathi
d8f7078418 Move 2024-05-16 13:17:27 +05:30
Manav Rathi
569808c291 Rearrange 2024-05-16 13:16:20 +05:30
Manav Rathi
7160ae700f Inline 2024-05-16 13:07:55 +05:30
Manav Rathi
db05afb9ff Inline and move 2024-05-16 13:03:00 +05:30
Neeraj Gupta
3485b31475 Clean up & new line 2024-05-16 12:58:42 +05:30
Neeraj Gupta
b53a70cf65 Avoid retry if object is missing 2024-05-16 12:57:31 +05:30
Manav Rathi
fca2d460f9 Disable clustering 2024-05-16 12:55:05 +05:30
Manav Rathi
adda781dcc Fix initial run 2024-05-16 12:54:15 +05:30
Neeraj Gupta
3f1ee82ec5 Inline 2024-05-16 12:52:20 +05:30
Neeraj Gupta
4cc866fa12 Refactor 2024-05-16 12:49:23 +05:30
Manav Rathi
ad684c46c3 Remove old file handling 2024-05-16 12:43:58 +05:30
Manav Rathi
8a071fd45b Inline 2024-05-16 12:24:38 +05:30
Manav Rathi
79aea6a979 Inline 2024-05-16 12:24:00 +05:30
Neeraj Gupta
e0738db6ae Minor refactor 2024-05-16 12:23:25 +05:30
Manav Rathi
c48042546e Inline and move 2024-05-16 12:15:11 +05:30
Manav Rathi
2a35b0ec9c Inline clustering 2024-05-16 12:07:11 +05:30
Manav Rathi
fbebbd3583 Clean alignment 2024-05-16 11:44:24 +05:30
Neeraj Gupta
3c7d86da8d Minor refactor 2024-05-16 11:35:46 +05:30
Manav Rathi
19f06e6494 Rename 2024-05-16 11:33:03 +05:30
Neeraj Gupta
6e204d828c Delete derived data from all datacenters 2024-05-16 11:33:01 +05:30
Manav Rathi
24c33fceb7 Remove class 2024-05-16 11:28:55 +05:30
Manav Rathi
c127b7fc7e doc 2024-05-16 11:23:48 +05:30
Manav Rathi
0993d81b57 Remove unused clustering methods 2024-05-16 11:15:10 +05:30
Manav Rathi
dfd91beaff Inline 2024-05-16 11:13:34 +05:30
Manav Rathi
cfbd7806c8 Inline 2024-05-16 11:10:41 +05:30
Manav Rathi
2c0e8c76c3 From discussion 2024-05-16 11:09:02 +05:30
Manav Rathi
1856e344db Remove unused clustering method 2024-05-16 11:03:03 +05:30
Neeraj Gupta
64ecdfa153 Store dc during insert or update 2024-05-16 10:58:00 +05:30
Manav Rathi
6ce956c5bb Inline 2024-05-16 10:52:00 +05:30
Manav Rathi
7d122f825c Inline 2024-05-16 10:47:15 +05:30
Manav Rathi
095e8c7091 Inline 2024-05-16 10:44:36 +05:30
Manav Rathi
dd38232836 Subsume 2024-05-16 10:41:05 +05:30
Neeraj Gupta
95d2c5436a [auth] Bump version: 2.0.58 (#1736)
## Description

## Tests
2024-05-16 10:35:52 +05:30
Neeraj Gupta
2d69a82eac [auth] Bump version: 2.0.58 2024-05-16 10:35:28 +05:30
Neeraj Gupta
76f3c8bf47 fix(auth): set maxlength limit of 100 to tags (#1733)
## Description

## Tests
2024-05-16 10:28:14 +05:30
Manav Rathi
01108141c2 Inline 2024-05-16 10:24:15 +05:30
Manav Rathi
0f00803519 Inline 2024-05-16 10:24:15 +05:30
Manav Rathi
160e360941 Inline 2024-05-16 10:24:15 +05:30
Manav Rathi
0a9f7b8635 Remove unused 2024-05-16 10:24:15 +05:30
Manav Rathi
0752800ecf [web] Embeddings diff improvements (#1735)
- Do not rely on the server sending back exactly as many entries as we
requested, it may return less in case some of the embeddings cannot be
fetched temporarily.

- Stop relying on the sort order - Instead of the last value, take the
max from amongst all returned values.

/cc @ua741
2024-05-16 10:22:36 +05:30
Neeraj Gupta
da188aa753 Add datacenter column for embeddings 2024-05-16 10:19:58 +05:30
Manav Rathi
c8a4fa16a1 [web] Embeddings diff improvements
- Do not rely on the server sending back exactly as many entries as we
  requested, it may return less in case some of the embeddings cannot be
  fetched temporarily.

- Stop relying on the sort order - Instead of the last value, take the max from
  amongst all returned values.
2024-05-16 10:09:12 +05:30
Prateek Sunal
5f6e88bb33 fix(auth): set maxlength limit of 100 to tags 2024-05-15 18:14:46 +05:30
Neeraj Gupta
851f914ef8 Add wasabi-derived in list of dcs 2024-05-15 17:50:05 +05:30
Neeraj Gupta
7eabea3884 Rename embedding dc to derived storage 2024-05-15 16:37:23 +05:30
Manav Rathi
aa6b904b0b [desktop] Upgrade to Electron 30.0.5 to fix Linux crash when maximizing window (#1731) 2024-05-15 16:02:47 +05:30
Manav Rathi
f64d4943ed log.warn 2024-05-15 15:57:45 +05:30
Manav Rathi
e88f7fde36 Upgrade to Electron 30.0.5 to fix Linux crash when maximizing window
https://github.com/electron/electron/pull/42179
2024-05-15 15:43:46 +05:30
Manav Rathi
ab89bc4816 Reorder and attach logs 2024-05-15 15:41:46 +05:30
Manav Rathi
b9ffc2d5b6 yarn upgrade-interactive eslint-plugin-react-hooks 2024-05-15 15:28:58 +05:30
Manav Rathi
1f4bac8fac Update build-deps 2024-05-15 15:27:05 +05:30
Manav Rathi
bb6a8913f1 Add links 2024-05-15 15:25:58 +05:30
Manav Rathi
ca8cdf8da1 Cleanup TODOs 2024-05-15 15:14:28 +05:30
Neeraj Gupta
cc457eca98 Add log when embedding is fetched after retry 2024-05-15 14:25:28 +05:30
Neeraj Gupta
bc004a41d5 [FEAT] Pinning and Tags (#1541)
## Description

Add pinning to auth

## Tests
2024-05-15 14:20:20 +05:30
Neeraj Gupta
47d9d3cd1e Merge branch 'main' into auth-v3 2024-05-15 14:15:34 +05:30
Manav Rathi
4c0e9f4d3a [web] Lint concurrently (#1730)
🚅
2024-05-15 14:03:34 +05:30
Manav Rathi
45183422e2 [web] Lint concurrently 2024-05-15 13:59:10 +05:30
Manav Rathi
69460418ef [web] Systematize logout (#1729)
+ ML cleanup
2024-05-15 13:58:17 +05:30
Manav Rathi
10b58fc19b lf 2024-05-15 13:48:34 +05:30
Manav Rathi
901c401d2a Et 2024-05-15 13:43:24 +05:30
Manav Rathi
08c725bede Reorder 2024-05-15 13:33:20 +05:30
Manav Rathi
8726ca8a59 Fin 2024-05-15 13:31:06 +05:30
Manav Rathi
eba910e202 mlwm 2024-05-15 13:30:26 +05:30
Manav Rathi
1648229f4c Download 2024-05-15 13:29:09 +05:30
Manav Rathi
585c0a8285 export 2024-05-15 13:26:45 +05:30
Prateek Sunal
eb7d6d4bbb fix(auth): update getAllTags logic 2024-05-15 13:24:48 +05:30
Manav Rathi
5dd3315ca2 mlwm 2024-05-15 13:24:05 +05:30
Manav Rathi
e3b7ffaeb4 clip 2024-05-15 13:21:33 +05:30
Manav Rathi
176431ba1f Electron side 2024-05-15 13:18:03 +05:30
Manav Rathi
96cd6b3759 rl3 2024-05-15 12:48:33 +05:30
Manav Rathi
0f45244457 Redo logout 2 2024-05-15 12:43:19 +05:30
Neeraj Gupta
7f486f74e0 Fix failing workflow for photos internal release (#1723)
`Error: Changes are sent for review automatically. The query parameter
changesNotSentForReview must not be set.`
2024-05-15 12:17:06 +05:30
Manav Rathi
0bcc6e3f3f Redo logout 2024-05-15 11:46:37 +05:30
Manav Rathi
76a09b1473 Clean 2024-05-15 10:53:45 +05:30
Manav Rathi
d78628b66a Move 2024-05-15 10:49:50 +05:30
Manav Rathi
c2fe134c92 Inline 2024-05-15 10:39:38 +05:30
Manav Rathi
eaefdb56a0 Move 2024-05-15 10:28:14 +05:30
Manav Rathi
8eb3170067 Flatten 2024-05-15 10:08:28 +05:30
Manav Rathi
34a3a8700e Inline 2024-05-15 10:05:02 +05:30
Manav Rathi
495eaec4b2 Remove unused branch 2024-05-15 09:54:37 +05:30
Prateek Sunal
d762bf0a59 fix(auth): revert demo code 2024-05-14 23:51:43 +05:30
Prateek Sunal
b714392fb2 fix(auth): update parse error message 2024-05-14 23:51:24 +05:30
Prateek Sunal
2bc40812d6 fix(auth): splash icon 2024-05-14 20:24:01 +05:30
Manav Rathi
0abc2a7e43 [desktop] Ignore imagemagick on ARM in one more place (#1727) 2024-05-14 19:53:27 +05:30
Manav Rathi
8034be2187 lf 2024-05-14 19:53:14 +05:30
Manav Rathi
78a649cae3 [desktop] Ignore imagemagick on ARM in one more place 2024-05-14 19:47:45 +05:30
Neeraj Gupta
3adadee82b [mob] Minor fixes (#1724)
## Description
In case of semantic search, the cache update was taking time due to
debouncer.
It was resulting in re-indexing of certain files. Also, the status of
indexing was stale as we were relying on same event to schedule update
of cache and refresh status (which relies on cache).
## Tests
2024-05-14 19:01:56 +05:30
Manav Rathi
bbfd2ae640 [web] ML purge - Part 2/x (#1725) 2024-05-14 17:00:28 +05:30
Neeraj Gupta
835a773f13 Add fallback logic to read embedding from hot bucket 2024-05-14 17:00:16 +05:30
Neeraj Gupta
b4af04433a [mob] Generated strings 2024-05-14 16:43:44 +05:30
Neeraj Gupta
e4dcdeb030 [mob] Minor fix to reflect correct status for indexing 2024-05-14 16:42:13 +05:30
Neeraj Gupta
d6599f178b [mob] Fix: use DB to identify indexed fileIDs 2024-05-14 16:25:44 +05:30
Manav Rathi
589a41fed6 Tinker 2024-05-14 16:00:43 +05:30
Manav Rathi
6613d57989 Sync face embeddings only for internal users 2024-05-14 15:57:08 +05:30
Manav Rathi
75814415ce Tinker 2024-05-14 15:55:48 +05:30
Manav Rathi
613324a4ae R 2024-05-14 15:52:11 +05:30
Neeraj Gupta
43b318c1c7 [mob] Add IF EXISTS check for create table 2024-05-14 15:50:26 +05:30
Manav Rathi
8378b76a8c Remove unused model 2024-05-14 15:28:01 +05:30
Manav Rathi
9c0f1fac92 Inline 2024-05-14 15:17:13 +05:30
ashilkn
68aec34636 [mob][photos] Bump up version 2024-05-14 15:14:30 +05:30
Ashil
74ebd00e3c Fix workflow failing on photos internal release
`Error: Changes are sent for review automatically. The query parameter changesNotSentForReview must not be set.`
2024-05-14 15:12:22 +05:30
Ashil
58741bfcd7 [mob][photos] Bump up to v0.8.95 (#1722) 2024-05-14 14:56:14 +05:30
Neeraj Gupta
87b087f295 Minor refactor 2024-05-14 14:52:07 +05:30
Manav Rathi
c5f02a47d4 Subsume 2024-05-14 14:50:18 +05:30
Neeraj Gupta
74a6e32538 Fix error check for no-object found 2024-05-14 14:37:24 +05:30
Neeraj Gupta
18d1bb60ca Delete embeddings from hot bucket if different from embedding bucket 2024-05-14 14:18:50 +05:30
Manav Rathi
d7f11f72be Move 2024-05-14 14:16:59 +05:30
Manav Rathi
86c9deb7b8 Last util 2024-05-14 14:15:09 +05:30
Manav Rathi
b75977186f Inline 2024-05-14 14:11:31 +05:30
Manav Rathi
77bacc518c Inline 2024-05-14 14:08:35 +05:30
Manav Rathi
8efe47cffb Inline 2024-05-14 14:04:08 +05:30
Neeraj Gupta
3e7b16288f Add support for configuring diff bucket for embeddings 2024-05-14 14:03:35 +05:30
Manav Rathi
da1ae5d2a4 Inline 2024-05-14 14:03:16 +05:30
Manav Rathi
533c649bcb Inline 2024-05-14 14:01:52 +05:30
Manav Rathi
a10d5a4ff5 Inline 2024-05-14 13:59:59 +05:30
Manav Rathi
b97988e04a Move 2024-05-14 13:11:20 +05:30
Manav Rathi
373273d368 Inline 2024-05-14 13:08:01 +05:30
Manav Rathi
a4981ec244 Inline 2024-05-14 13:06:10 +05:30
Manav Rathi
0a713eb98f Don't pass as clip embedding when null 2024-05-14 13:01:09 +05:30
Manav Rathi
348bedbdf2 Remove duplicate fields
Discussed with mobile team
2024-05-14 13:00:03 +05:30
Manav Rathi
d73a1e17cc [web] ML prune - Part 1/x (#1719) 2024-05-14 12:57:08 +05:30
Manav Rathi
289d52c682 lint-fix 2024-05-14 12:52:06 +05:30
Manav Rathi
f0832d9648 [web] New translations (#1715)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-05-14 12:50:58 +05:30
Manav Rathi
2a2cf04918 Prune 2024-05-14 12:48:59 +05:30
Manav Rathi
9934ead51d Log what we send 2024-05-14 12:00:19 +05:30
Neeraj Gupta
bce3f40a16 Avoid retry for 404 error 2024-05-14 11:44:41 +05:30
Manav Rathi
76cb218cce Prune 2024-05-14 11:35:40 +05:30
Manav Rathi
f3e3fb45bb Last 2024-05-14 11:35:40 +05:30
Manav Rathi
746a023014 Unabstract 2024-05-14 11:35:40 +05:30
Manav Rathi
fc1957be49 Inline 2024-05-14 11:35:40 +05:30
Manav Rathi
0c8549a840 Inline 2024-05-14 11:35:40 +05:30
Manav Rathi
b37f67d6ed Remove unnecessary dependency 2024-05-14 11:35:37 +05:30
Manav Rathi
8b46606a2e Remove unused types 2024-05-14 10:28:20 +05:30
Manav Rathi
068ed78fe0 Consolidate types 2024-05-14 10:25:01 +05:30
Manav Rathi
5c9b3f551a [docs] Clarify (#1718) 2024-05-14 10:16:36 +05:30
Manav Rathi
1894d53b18 [docs] Clarify 2024-05-14 10:16:07 +05:30
Crowdin Bot
8699ec98ca New Crowdin translations by GitHub Action 2024-05-14 01:57:31 +00:00
Crowdin Bot
7e063b6be8 New Crowdin translations by GitHub Action 2024-05-14 01:40:01 +00:00
Prateek Sunal
9e11377bd0 fix(auth): don't append codeDisplay twice 2024-05-13 20:38:55 +05:30
Manav Rathi
8a8d240bfd [desktop] Fix large video conversion (#1713)
This was the last pending TODO for getting the new build at par with how
the olde one behaved.
2024-05-13 20:19:39 +05:30
Manav Rathi
859adea2eb Mark completed TODO 2024-05-13 20:17:15 +05:30
Manav Rathi
bf7c97c006 Remove ffmpeg timeout 2024-05-13 20:03:21 +05:30
Manav Rathi
0b797cebed Trace the error 2024-05-13 18:50:12 +05:30
Manav Rathi
5e9e1623ae Clear input file 2024-05-13 18:45:35 +05:30
Manav Rathi
6553976beb Fix time reporting 2024-05-13 18:37:42 +05:30
Vishnu Mohandas
87ed5c1d62 Revert "Move padding within to increase tap-able area" (#1712)
This reverts commit 0b212bf7a6.
2024-05-13 17:44:35 +05:30
vishnukvmd
65574a0d81 Revert "Move padding within to increase tap-able area"
This reverts commit 0b212bf7a6.
2024-05-13 17:43:09 +05:30
Neeraj Gupta
acd61fc084 Fixed typo 2024-05-13 16:33:48 +05:30
Neeraj Gupta
be44665128 [server] Refactor embedding fetch 2024-05-13 16:33:36 +05:30
Manav Rathi
15b4a18c1a Tie it together 2024-05-13 16:26:37 +05:30
Manav Rathi
3c7c14e11c conv 2024-05-13 16:18:03 +05:30
Manav Rathi
c76b2f0794 done 2024-05-13 16:11:22 +05:30
Neeraj Gupta
282611610d [mob] Keep fetching embeddings till no embedding is returned (#1709)
## Description

## Tests
2024-05-13 15:51:29 +05:30
Neeraj Gupta
883e246f30 [mob] Keep fetching embeddings till no embedding is returned 2024-05-13 15:50:27 +05:30
Manav Rathi
0e3649f9b6 Scaffold 2024-05-13 15:50:22 +05:30
Manav Rathi
1b8b840ecf Process 2024-05-13 15:37:35 +05:30
Manav Rathi
b82507f74c Handle logout 2024-05-13 15:00:21 +05:30
Manav Rathi
11811053fa Web 2024-05-13 14:40:32 +05:30
Manav Rathi
a21cc51eb0 Plan 2024-05-13 14:20:44 +05:30
Neeraj Gupta
5195aaa8de [auth] Add code display test 2024-05-13 13:51:23 +05:30
Neeraj Gupta
50613b8c57 [server] Add option to updateMetadata without versionChange (#1708)
## Description

## Tests
2024-05-13 13:31:58 +05:30
Manav Rathi
acc3f7b30f [desktop] Imagemagick related tweaks (#1707)
Related: https://github.com/ente-io/ImageMagick
2024-05-13 13:05:45 +05:30
Manav Rathi
b7292f2629 Add a log line for debugging 2024-05-13 11:35:24 +05:30
Manav Rathi
957c2a64df Keep the order in the documentation examples
https://imagemagick.org/Usage/thumbnails/
2024-05-13 11:33:25 +05:30
Manav Rathi
631b1772e4 Fix mangled parameter being passed to imagemagick
Similar: https://github.com/ente-io/ente/pull/1175
2024-05-13 11:31:34 +05:30
Manav Rathi
9ca8ef9e74 The bundled binary is x86 only, bail out early on ARM
Error: Error invoking remote method 'generateImageThumbnail': Error: Command failed: '/tmp/.mount_ente-1lYbIWw/resources/image-magick' '/home/m/Downloads/VM/IMG_4484.WEBP' -auto-orient -define 'jpeg:size=1440x1440' -thumbnail '720x720>' -unsharp '0x.5' -quality 70 '/tmp/ente/9aNsp1FdLe.jpeg'
/bin/sh: 1: /tmp/.mount_ente-1lYbIWw/resources/image-magick: Exec format error

The binary is from https://github.com/ente-io/ImageMagick/
2024-05-13 11:22:13 +05:30
Manav Rathi
95cf306be2 [desktop] --no-sandbox does not prevent the SUID abort when added from JS (#1706)
- Revert the workaround
- Document the behaviour I observed
- (Unrelated) Add the other CHANGELOG entries in preparation for the
release
2024-05-13 10:21:36 +05:30
Manav Rathi
644e67f648 --no-sandbox does not prevent the SUID abort when added from JS
From https://github.com/toeverything/AFFiNE/issues/6722#issuecomment-2081805954

> Disable sandboxing entirely by launching with --no-sandbox. Adding this
  argument from JS is unfortunately insufficient, as the GPU process is launched
  before the main process JS is run.

Ref:
* https://github.com/electron/electron/issues/17972
2024-05-13 10:19:44 +05:30
Neeraj Gupta
2b58568230 [FEAT] Resumable Multipart Upload (#1406)
## Description


## Test Cases
Resumed Uploads

- [x] Verify that uploads are resuming
- [x] Verify that on resumption, parts that are already uploaded, we are
not re-uploading them.
- [x] Verify that we are able to download file from another client after
resuming
- [x] Verify that if `multiUpartUploadSize` changes, existing inflight
upload is either discarded or it's continue using old size.
- [x] Verify that if file is modified during upload, then on resumption
the existing upload is discarded
2024-05-12 20:48:17 +05:30
Neeraj Gupta
cf361aaa90 [mobile] New translations (#1669)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-05-12 20:47:01 +05:30
Manav Rathi
3ba7bcbf06 Add the other CHANGELOG entries 2024-05-12 20:00:48 +05:30
Manav Rathi
5b92133aae [desktop] Pass the SUID workaround correctly
The flag itself is documented as supported:
https://www.electronjs.org/docs/latest/api/command-line-switches

I was just passing it incorrectly (hopefully).
2024-05-12 18:41:10 +05:30
Manav Rathi
8328bbe5be [docs] Add more notes to the configuring S3 page (#1700) 2024-05-12 18:20:54 +05:30
Manav Rathi
1a11488959 Typo 2024-05-12 18:19:30 +05:30
Manav Rathi
036238c984 [docs] Add more notes to the configuring S3 page 2024-05-12 18:18:44 +05:30
Manav Rathi
4839ad738c [docs] Fix description (#1698) 2024-05-12 16:50:34 +05:30
Manav Rathi
34ead5616d [docs] Fix description 2024-05-12 16:44:18 +05:30
Manav Rathi
c005998312 [docs] Expand on the S3 configuration (#1697) 2024-05-12 16:41:02 +05:30
Manav Rathi
bc98287532 [docs] Expand on the S3 configuration 2024-05-12 16:39:08 +05:30
Vishnu Mohandas
e96c9dd2a3 [server] Make sender email configurable (#1696)
Ref:
https://github.com/ente-io/ente/discussions/1582#discussioncomment-9404061
2024-05-12 16:06:17 +05:30
Manav Rathi
321f97cdae [server] Make sender email configurable 2024-05-12 16:00:15 +05:30
Manav Rathi
170e0b3e60 [desktop] Add a workaround for the SUID sandbox helper error on Linux (#1695)
I am able to reproduce this on Ubuntu 24 ARM.

> The SUID sandbox helper binary was found, but is not configured
correctly.

See:
- https://github.com/electron/electron/issues/17972
-
https://stackoverflow.com/questions/63780918/building-electron-linux-distro-the-suid-sandbox-helper-binary-was-found-but-i
2024-05-12 15:42:39 +05:30
Manav Rathi
d188abfe65 Add a workaround for the SUID sandbox helper error on Linux
I am able to reproduce this on Ubuntu 24 ARM.

> The SUID sandbox helper binary was found, but is not configured correctly.

See:
- https://github.com/electron/electron/issues/17972
- https://stackoverflow.com/questions/63780918/building-electron-linux-distro-the-suid-sandbox-helper-binary-was-found-but-i
2024-05-12 15:35:18 +05:30
Manav Rathi
944a075fb1 [web] Show api host on dev builds (#1694)
<img width="295" alt="Screenshot 2024-05-12 at 08 59 32"
src="https://github.com/ente-io/ente/assets/24503581/86319eeb-1837-44c3-89a0-4ee502400295">
2024-05-12 09:10:48 +05:30
Manav Rathi
c652abb9f9 [web] Show api host on dev builds 2024-05-12 08:59:42 +05:30
Manav Rathi
ca9190045e [docs] Desktop installation troubleshooting (#1690) 2024-05-11 22:06:27 +05:30
Manav Rathi
055af7335e vcpp 2024-05-11 22:03:54 +05:30
Manav Rathi
92ded91868 Add a arm64 appimage docs page 2024-05-11 21:54:42 +05:30
Manav Rathi
a4a5ea11cd [desktop] RC (#1689)
- Whitelist uid
- electron 30.0.3
- Document log paths
2024-05-11 19:25:48 +05:30
Manav Rathi
2a3bf41937 Update instructions 2024-05-11 19:19:56 +05:30
Manav Rathi
c7aa5ccd1f Document log paths 2024-05-11 18:56:37 +05:30
Manav Rathi
be329bc1c9 electron 30.0.3
https://github.com/electron/electron/releases/tag/v30.0.3

Fixed an issue where fs.createWriteStream could write out of order
https://github.com/electron/electron/pull/42046

Fixed crash after upgrade on Linux
https://github.com/electron/electron/pull/42064
2024-05-11 18:52:07 +05:30
Manav Rathi
131af10cc5 Whitelist 2024-05-11 18:48:54 +05:30
Prateek Sunal
4abdc62f8a fix(auth): update light mode splash 2024-05-11 16:07:14 +05:30
Prateek Sunal
297c3af47c fix(auth): update dark mode splash 2024-05-11 15:57:45 +05:30
Prateek Sunal
4040525a4c fix(auth): update splash screen 2024-05-11 15:54:13 +05:30
Manav Rathi
bb63e13ba3 [web] Firefox video stream decryption (#1688)
Fix an issue (manifesting on Firefox) where the size of an individual
chunk we got back from a readable stream was a multiple of
`decryptionChunkSize`. Main change in the PR is converting the `if`
condition to a `while` loop, rest is refactoring unrelated to the exact
issue.
2024-05-11 14:34:19 +05:30
Manav Rathi
d553087633 Cleanup 2024-05-11 13:58:44 +05:30
Manav Rathi
e8c2717bf7 Cleanup 2024-05-11 13:50:06 +05:30
Manav Rathi
8f6da1ec35 Cleanup 2024-05-11 13:47:21 +05:30
Manav Rathi
291911bf98 Fix! 2024-05-11 13:40:38 +05:30
Neeraj Gupta
6a186ef420 [server] Add option to updateMetadata without versionChange 2024-05-11 13:31:46 +05:30
Manav Rathi
ce38d2beca Debug 2024-05-11 13:07:31 +05:30
Manav Rathi
064827162b Inline 2024-05-11 11:35:11 +05:30
Manav Rathi
38eceb34ba Inline 2024-05-11 11:27:45 +05:30
Manav Rathi
550ad94257 Inline 2024-05-11 11:24:07 +05:30
Prateek Sunal
7a643712ac fix(auth): don't package splash with app 2024-05-11 10:27:51 +05:30
Manav Rathi
6f82881ac3 [web] New translations (#1687)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-05-11 10:15:50 +05:30
Crowdin Bot
0125afe3dc New Crowdin translations by GitHub Action 2024-05-11 04:40:43 +00:00
Manav Rathi
17e3102c80 [web] Add missing localization key (#1686) 2024-05-11 10:10:06 +05:30
Manav Rathi
6ad0fa3900 [web] Add missing localization key 2024-05-11 10:05:55 +05:30
Neeraj Gupta
0443946790 [server] Fix panic in copy file + increase emb fetch timeout (#1685)
## Description

## Tests
2024-05-11 09:51:12 +05:30
Neeraj Gupta
ef5740e728 [server] Increase emb fetchTimeout to 15seconds 2024-05-11 09:47:14 +05:30
Neeraj Gupta
0dcc3c974c [server] Ignore uploadUrl limit while copying files 2024-05-11 09:46:39 +05:30
Manav Rathi
ef7ce642d9 [web] Fix edited file name (#1684) 2024-05-11 09:45:02 +05:30
Manav Rathi
b2cac9cb74 both 2024-05-11 09:26:13 +05:30
Manav Rathi
d2b59565cb Remove unnecessary dependency 2024-05-11 09:14:40 +05:30
Manav Rathi
fe64e904e1 Rewrite 2024-05-11 09:13:49 +05:30
Manav Rathi
8125ca966e Save 2024-05-11 08:43:23 +05:30
Manav Rathi
4cb0e51e34 Vids 2024-05-11 08:38:39 +05:30
Manav Rathi
3a2cc86136 Channel 2024-05-11 08:31:17 +05:30
Manav Rathi
98e3a53f92 Attach mime type 2024-05-11 08:27:04 +05:30
Prateek Sunal
10e717a4ef fix(auth): update splash 2024-05-10 23:12:44 +05:30
Manav Rathi
74901999ad [meta] Rename workflow to match other workflows (#1683) 2024-05-10 23:05:16 +05:30
Manav Rathi
2871fe7162 [meta] Rename workflow to match other workflows 2024-05-10 23:03:57 +05:30
Manav Rathi
c4418f453d [docs] Remove WIP banner from cast docs (#1682) 2024-05-10 22:56:28 +05:30
Manav Rathi
95534432f8 Remove banner 2024-05-10 22:54:48 +05:30
Manav Rathi
986611ff2a yarn pretty 2024-05-10 22:51:56 +05:30
Manav Rathi
d36226e82c [web] tsc when linting (#1681) 2024-05-10 22:50:50 +05:30
Manav Rathi
4c1f1b5b9e Fix job name 2024-05-10 22:48:46 +05:30
Manav Rathi
c9d490ce20 M 2024-05-10 22:44:55 +05:30
Manav Rathi
6283cccac3 tsc when linting 2024-05-10 22:31:52 +05:30
Manav Rathi
9e3a8429f8 [web] Work around yet another Next.js dark pattern (#1680) 2024-05-10 22:25:45 +05:30
Manav Rathi
902074022a ff
This reverts commit 6568cb19a9.
2024-05-10 22:22:39 +05:30
Manav Rathi
6568cb19a9 f 2024-05-10 22:14:09 +05:30
Manav Rathi
12eea7820d [web] Make next shut up
It is not the telemetry which is the problem, it is the fact that they spam
everywhere in the logs when building that telemetry is on. And they've not
intentionally given a way to disable this cleanly.

https://github.com/vercel/next.js/discussions/31400
2024-05-10 22:05:26 +05:30
Prateek Sunal
ea72300fe5 fix(auth): encode ',' as %2C for correctly importing later on 2024-05-10 21:43:28 +05:30
Manav Rathi
6a4b86d1f0 [web] Migrate off deprecated cf action (#1679) 2024-05-10 21:17:52 +05:30
Manav Rathi
811e56fe99 Move to different file 2024-05-10 21:17:18 +05:30
Manav Rathi
3341be45f8 [web] Migrate off deprecated Cloudflare action
Refs:
- https://developers.cloudflare.com/pages/get-started/direct-upload/
- https://developers.cloudflare.com/workers/wrangler/commands/#deploy-1
- https://github.com/cloudflare/pages-action/issues/117
- https://github.com/cloudflare/wrangler-action
2024-05-10 21:16:08 +05:30
Manav Rathi
aedb65594f [meta] Attempt to silence Cloudflare warning (#1678) 2024-05-10 20:57:40 +05:30
Manav Rathi
7238a34e4c [meta] Attempt to silence Cloudflare warning 2024-05-10 20:57:03 +05:30
Prateek Sunal
36685f4827 fix(auth): store all colors in EnteColorScheme 2024-05-10 20:24:15 +05:30
Manav Rathi
db86bec93c [web] Switch to (almost) continuous deployments (#1677) 2024-05-10 20:15:10 +05:30
Manav Rathi
938cecf2d3 Move from deprecated action
Test with first one, will move the rest subsequently

Ref:
- https://github.com/cloudflare/pages-action/issues/117#issuecomment-2053610761
- https://github.com/cloudflare/wrangler-action
2024-05-10 20:11:12 +05:30
Manav Rathi
10fba07e25 Docs 2024-05-10 20:03:00 +05:30
Manav Rathi
54c9cdeed8 [web] Switch to (almost) continuous deployments
Every day except Sunday, at 8:00 am, the code on main will be automatically
deployed to production for all web apps (photos, auth, cast, accounts, payments)
2024-05-10 19:43:15 +05:30
Vishnu Mohandas
32e8a4430d [server] Add timeout while fetching embedding (#1676)
## Description

## Tests
2024-05-10 17:28:06 +05:30
Neeraj Gupta
3a70dcd930 [server] Add timeout while fetching embedding 2024-05-10 17:18:41 +05:30
Neeraj Gupta
5caa9c5f61 [auth] New translations (#1670)
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)
2024-05-10 16:23:33 +05:30
Neeraj Gupta
4a05178550 [server] Avoid pulling files with no-embedding info (#1675)
## Description

## Tests
Tested locally
2024-05-10 16:22:10 +05:30
Neeraj Gupta
5feb009b74 Fix lint warning 2024-05-10 16:19:27 +05:30
Neeraj Gupta
87a2f0e0df [server] Avoid pulling files with no-embedding info 2024-05-10 16:09:49 +05:30
Manav Rathi
9bf933b04c [web] Fix lints and imports (#1672) 2024-05-10 14:39:14 +05:30
Manav Rathi
f5eb997768 tsc 2024-05-10 14:34:24 +05:30
Manav Rathi
fa9a0cc09f Fix import 2024-05-10 14:30:49 +05:30
Manav Rathi
a7533b3871 [web] New translations (#1668)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-05-10 14:17:37 +05:30
Manav Rathi
0458b79fc3 [web] Cast ready to roll (#1671) 2024-05-10 14:17:00 +05:30
Manav Rathi
08c37c69ff Gap 2024-05-10 14:09:59 +05:30
Manav Rathi
bce3af5db4 Remove debug logs 2024-05-10 14:09:31 +05:30
Manav Rathi
950bb3489f Chromecast 2nd gen can't even handle resize
randomly crashes for some images
2024-05-10 14:08:37 +05:30
Manav Rathi
58dfa36372 Fix 2024-05-10 13:52:41 +05:30
Manav Rathi
1a90ce9d80 Slighter 2024-05-10 13:41:56 +05:30
Manav Rathi
ac25c88d9b Fix 2024-05-10 13:40:37 +05:30
Manav Rathi
bb8d2369c0 Tinker 2024-05-10 13:32:18 +05:30
Manav Rathi
ff51114aa1 Don't try HEIC conversion when running on Chromecast
It crashed the 2nd gen device when we tried...
2024-05-10 13:14:31 +05:30
Manav Rathi
b30df1d083 not x 2024-05-10 13:11:48 +05:30
Manav Rathi
72c99de344 Different variations 2024-05-10 13:00:02 +05:30
Manav Rathi
7c0cc15a73 Try without blur 2024-05-10 12:18:07 +05:30
Manav Rathi
83351f41f8 debug 1 2024-05-10 12:06:27 +05:30
Manav Rathi
3d51c91d09 Show cast option in shared albums 2024-05-10 11:58:40 +05:30
Manav Rathi
3dae87abaa Handle files with an heic extension that are not actually heic 2024-05-10 11:52:21 +05:30
Manav Rathi
d110645703 Fix text 2024-05-10 11:17:59 +05:30
Manav Rathi
ff9a286910 Allow disabling localStorage logs 2024-05-10 11:14:45 +05:30
Manav Rathi
1b3e11f713 Log errors/warnings to the console always 2024-05-10 11:00:13 +05:30
Manav Rathi
19d5d08d74 Send collection ID 2024-05-10 10:24:39 +05:30
Manav Rathi
bd8ff3f454 Account for the transition 2024-05-10 10:20:03 +05:30
Manav Rathi
cf3394fd15 Remove unnecessary container 2024-05-10 10:18:27 +05:30
Manav Rathi
93487581c7 heic on cast too 2024-05-10 10:08:01 +05:30
Manav Rathi
4dd7d3b087 tsc 2024-05-10 10:03:03 +05:30
Manav Rathi
6a51152c0f Propagate 2024-05-10 09:57:55 +05:30
Manav Rathi
e549ad5425 Cleanup 2024-05-10 09:46:56 +05:30
Manav Rathi
000f8ae32b object-fit 2024-05-10 09:45:02 +05:30
Manav Rathi
531b4a4e40 Remove preloading
It isn't doing anything really (when I look at results), we already have the image in memory anyway.
2024-05-10 09:38:04 +05:30
Manav Rathi
3b6e811f69 better 2024-05-10 09:31:11 +05:30
Manav Rathi
57dae1d333 transition
Ref:
https://stackoverflow.com/questions/19808764/transition-for-background-image-in-firefox?noredirect=1&lq=1
2024-05-10 09:21:27 +05:30
Manav Rathi
029cc128c1 Reduce lag
perhaps helps. the background is more problematic.
2024-05-10 09:09:15 +05:30
Crowdin Bot
5b55497a1a New Crowdin translations by GitHub Action 2024-05-10 02:08:19 +00:00
Crowdin Bot
07bc431cae New Crowdin translations by GitHub Action 2024-05-10 01:58:38 +00:00
Crowdin Bot
bd9b414dc9 New Crowdin translations by GitHub Action 2024-05-10 01:41:32 +00:00
Manav Rathi
ebb05e4bdf HEIC convert 2024-05-09 21:17:47 +05:30
Manav Rathi
8167e353f0 Make tsc happy 2024-05-09 20:45:41 +05:30
Manav Rathi
7d56230b91 Move down 2024-05-09 20:44:52 +05:30
Manav Rathi
5c87bd0d6a Deeper 2024-05-09 20:24:13 +05:30
Manav Rathi
ad53ba82c4 context 2024-05-09 20:16:18 +05:30
Manav Rathi
b443eebec3 401 2024-05-09 20:14:58 +05:30
Manav Rathi
7bcf3984e2 Fix Chromecast check 2024-05-09 20:11:06 +05:30
Vishnu Mohandas
c29db9bcfb [server] always use upperCase for castCode (#1666)
## Description

## Tests
2024-05-09 17:58:17 +05:30
Neeraj Gupta
b100d455dd [server] always use upperCase for castCode 2024-05-09 17:49:53 +05:30
Manav Rathi
d9b5fda0a8 Handle token expiry 2024-05-09 17:34:23 +05:30
Manav Rathi
a0e152fd72 Only use thumbnails on Chromecast 2024-05-09 17:27:53 +05:30
Manav Rathi
f5ce1da295 svh did not work when running on Chromecast 2024-05-09 17:20:39 +05:30
Manav Rathi
19ff216714 Cleanup 2024-05-09 17:19:34 +05:30
Manav Rathi
211b41680b See if that helps 2024-05-09 17:02:14 +05:30
Manav Rathi
3e4f88338e Reduce 2024-05-09 16:42:15 +05:30
Prateek Sunal
5ef92e338d fix(auth): remove all codes 2024-05-09 15:56:36 +05:30
Manav Rathi
0d3a76c065 Fix 2024-05-09 15:50:32 +05:30
Manav Rathi
139b56071a Disable resizing 2024-05-09 15:49:26 +05:30
Manav Rathi
dc1b90e3f7 Revert to thumbnails temporarily 2024-05-09 15:41:38 +05:30
Manav Rathi
c30f122205 Undef 2024-05-09 15:16:32 +05:30
Manav Rathi
910dd83931 Both 2024-05-09 15:12:51 +05:30
Manav Rathi
dd3b8d94af fix 2024-05-09 15:07:42 +05:30
Manav Rathi
17df2003be Size is in the metadata 2024-05-09 14:58:45 +05:30
Manav Rathi
a81e1b4074 Resize 2024-05-09 14:53:25 +05:30
Manav Rathi
64572d5880 Move back 2024-05-09 14:35:01 +05:30
Manav Rathi
72fa6c653f Move to @/media 2024-05-09 14:23:30 +05:30
Manav Rathi
5c04864b0e Integrate 2024-05-09 14:07:04 +05:30
Manav Rathi
26ca761895 wip 2024-05-09 13:57:10 +05:30
Prateek Sunal
6496eea162 fix(auth): ignore files 2024-05-09 13:55:02 +05:30
Prateek Sunal
7c43908ca2 fix(auth): revert manifest 2024-05-09 13:54:53 +05:30
Prateek Sunal
da70ba70c1 feat(auth): add new icons 2024-05-09 13:54:37 +05:30
Manav Rathi
85d722f5fc wip 2024-05-09 13:37:16 +05:30
Manav Rathi
dc525c4f8d Move 2024-05-09 13:16:29 +05:30
Manav Rathi
e58424d2c0 Move into class 2024-05-09 13:13:33 +05:30
Manav Rathi
482639a03c Rename 2024-05-09 13:06:40 +05:30
Prateek Sunal
1b8441033b fix(cut): save button getting cut 2024-05-09 13:06:35 +05:30
Vishnu Mohandas
f60e094aed Storage bump (#1662)
## Description
- Increase free trial limit from 1 GB to 5 GBs
- Update the storage for existing users on the free plan
- Push the subscription expiry time for existing users on the free plan
2024-05-09 11:57:40 +05:30
vishnukvmd
e55af84157 Fix queries 2024-05-09 11:57:15 +05:30
Manav Rathi
9089f0b28d [web] Show email on password screen (#1664)
<img width="292" alt="Screenshot 2024-05-09 at 11 39 46"
src="https://github.com/ente-io/ente/assets/24503581/6e0a615e-473d-4eed-b2b9-7e65ea57b578">
2024-05-09 11:43:13 +05:30
Manav Rathi
75d2396398 [web] Show email on password screen 2024-05-09 11:40:18 +05:30
Manav Rathi
70878e8f54 [web] Deduce parent directory (#1663) 2024-05-09 11:03:29 +05:30
Manav Rathi
78d80bfd58 Add missing dep 2024-05-09 11:01:18 +05:30
Manav Rathi
e92bbdb8c6 Understand, document and fix 2024-05-09 10:37:06 +05:30
Manav Rathi
ac67566f45 Update react-dropzone
Release notes don't seem to have any breaking changes:
https://github.com/react-dropzone/react-dropzone/releases

Need to update to figure out where exactly the path property is coming from.
2024-05-09 10:03:03 +05:30
Manav Rathi
bedb515dc2 Cleanup 2024-05-09 09:54:06 +05:30
vishnukvmd
330cfe6f7c Update free plan storage 2024-05-09 09:30:55 +05:30
vishnukvmd
84cbf33299 Bump up free trial 2024-05-09 09:30:14 +05:30
Prateek Sunal
35aa8fc5bd fix(auth): workflow for fedora 2024-05-08 22:43:38 +05:30
Prateek Sunal
639ef13e94 fix[auth]: update dependencies of appimage 2024-05-08 22:39:40 +05:30
Prateek Sunal
ea37b5a041 fix: don't try to publish aab in fedora workflow 2024-05-08 21:02:52 +05:30
Neeraj Gupta
e528e5406f [server] convert email to lowerCase (#1660)
## Description

## Tests
2024-05-08 20:47:29 +05:30
Neeraj Gupta
316473f5cf [server] convert email to lowerCase 2024-05-08 20:35:21 +05:30
Manav Rathi
d69ff79a67 [web] Cast improvements (#1659) 2024-05-08 20:26:06 +05:30
Vishnu Mohandas
72d0b0ad85 Retry requests to fetch embeddings thrice before throwing an error (#1658) 2024-05-08 20:19:30 +05:30
Manav Rathi
402d0a917e Everything 2024-05-08 20:00:35 +05:30
Prateek Sunal
cbda271c15 chore[auth]: fix typo and lint fixes 2024-05-08 19:59:36 +05:30
Manav Rathi
74fd98c398 Position spinner 2024-05-08 19:58:56 +05:30
Manav Rathi
415258c86d Cleanup 2024-05-08 19:52:55 +05:30
Manav Rathi
5aab9e798e Rename 2024-05-08 19:47:06 +05:30
Manav Rathi
477e30232c Add empty state 2024-05-08 19:36:27 +05:30
Manav Rathi
805c80face Inline 2024-05-08 19:29:51 +05:30
Manav Rathi
39bf379788 Uncomment TODO leftover 2024-05-08 19:28:02 +05:30
Manav Rathi
1e5f5ff506 Convert 2024-05-08 19:26:31 +05:30
Manav Rathi
5e1fdd6565 Use 2024-05-08 19:22:27 +05:30
Manav Rathi
079bdbd4cd styled 2024-05-08 19:19:20 +05:30
Manav Rathi
ff25971611 Clear TODO 2024-05-08 19:13:03 +05:30
vishnukvmd
028e784a40 Retry requests to fetch embeddings thrice before throwing an error 2024-05-08 17:34:37 +05:30
Neeraj Gupta
16c32cac90 [mob][multipart] Rename column 2024-05-08 17:12:16 +05:30
Neeraj Gupta
8bc1488866 [mob][multipart] Change error message 2024-05-08 17:11:51 +05:30
Neeraj Gupta
d92bcd41cb [mob][multipart] Aggresively clear temp dir in debug mode 2024-05-08 17:11:06 +05:30
Neeraj Gupta
2850fb6923 [mob][multipart] Refactor 2024-05-08 17:06:32 +05:30
Neeraj Gupta
f4845baa9b [mob][multipart] Avoid deleting multipart enc files if upload is in progress 2024-05-08 17:04:39 +05:30
Manav Rathi
83a84295ba Fix the condition 2024-05-08 16:35:31 +05:30
Manav Rathi
f45902e290 Try without the workaround 2024-05-08 16:30:34 +05:30
Manav Rathi
5e73257b71 debug 2024-05-08 16:17:02 +05:30
Neeraj Gupta
92357f697d [mob][multipart] Upload thumbnail after file is uploaded 2024-05-08 15:48:17 +05:30
Neeraj Gupta
91c570341d Lint fix 2024-05-08 15:44:21 +05:30
Neeraj Gupta
83ff0e9e38 [mob][multipart] Minor refactor 2024-05-08 15:42:47 +05:30
Manav Rathi
dbbb3c848a [cast] Tweaks to try and get it to work on older cast devices (#1657) 2024-05-08 15:33:40 +05:30
Neeraj Gupta
a49b5f55dd [mob][multipart] Minor refactor 2024-05-08 15:30:25 +05:30
Manav Rathi
afa9c35c0b Also ignore deploy-f's 2024-05-08 15:27:59 +05:30
Neeraj Gupta
0db4842d81 [mob][multipart] Fix multipart flow for fileUpdate 2024-05-08 15:22:53 +05:30
Manav Rathi
9d7c23d1c5 Restore the preload to see if looks less abrupt 2024-05-08 15:20:29 +05:30
Manav Rathi
d7a4e728da Completely on demand in an attempt to work on the lowmem Chromecast device 2024-05-08 14:58:16 +05:30
Manav Rathi
93444d3a49 Back to normal files 2024-05-08 14:04:39 +05:30
Manav Rathi
22e33737e8 Forego checks if client doesn't follow the protocol 2024-05-08 14:02:23 +05:30
Manav Rathi
ddb19e2333 Restart on collection ID mismatches 2024-05-08 13:57:59 +05:30
Neeraj Gupta
68da13aa29 [mob][multipart] Store fileName instead of path 2024-05-08 13:41:31 +05:30
Manav Rathi
816f8cecd6 Rearrange 2024-05-08 13:24:06 +05:30
Neeraj Gupta
7cbeeacd82 [mob] Don't delete encrypt file in case of upload error 2024-05-08 13:09:01 +05:30
Manav Rathi
b7734406b8 Fix 2024-05-08 12:55:03 +05:30
Manav Rathi
7658b99742 Fix 2024-05-08 12:55:03 +05:30
Manav Rathi
3b7dbe6628 Fix 2024-05-08 12:55:03 +05:30
Manav Rathi
2f87c3cf5a Debug 2 2024-05-08 12:55:03 +05:30
Manav Rathi
c9601c33c3 Debug 2024-05-08 12:55:03 +05:30
Manav Rathi
b917237db2 Code can become invalid after timeout 2024-05-08 12:55:03 +05:30
Manav Rathi
943f9ea9c1 Wait for pairing code before initializing cast 2024-05-08 12:55:03 +05:30
Manav Rathi
8f2580e13f [server] Tag the source code for latest ghcr.io Docker image with museum/ghcr (#1656)
Helps with easily finding changes since last publish.
2024-05-08 12:19:08 +05:30
Manav Rathi
17ffc8051a Use server 2024-05-08 12:16:53 +05:30
Manav Rathi
0b7dd0eb14 [desktop] Don't invoke electron-builder twice on CI (#1655) 2024-05-08 12:14:14 +05:30
Manav Rathi
b22361d652 yarn lint-fix 2024-05-08 12:12:03 +05:30
Manav Rathi
4db07149ae [desktop] Don't invoke electron-builder twice on CI 2024-05-08 12:10:20 +05:30
Neeraj Gupta
e3569ccb67 [mob][DebugMode]Restrict one part upload during one upload session. 2024-05-08 11:52:50 +05:30
Neeraj Gupta
149c03d4db perf: avoid re-calculating length 2024-05-08 11:46:38 +05:30
Neeraj Gupta
34ea7749ab Add logs for part upload 2024-05-08 11:37:37 +05:30
Manav Rathi
848fa34b56 [server] Tag the source code for latest ghcr.io Docker image with museum/ghcr
Helps with easily finding changes since last publish.
2024-05-08 11:27:11 +05:30
Manav Rathi
0178c64e34 [desktop] RC (#1654) 2024-05-08 11:22:49 +05:30
Manav Rathi
7e0ef23bc1 yarn lint-fix 2024-05-08 11:20:28 +05:30
Manav Rathi
212f863733 Restore the yarn-timeout workaround
e.g. see a recent build failures:
https://github.com/ente-io/photos-desktop/actions/runs/8996782367/job/24713793588

there was another one recently. both of these were on the Windows runner, in one
case the message was:

    info There appears to be trouble with your network connection. Retrying...

in another case the issue manifested later

    D:\a\photos-desktop\photos-desktop\web\node_modules\date-fns\formatISO\index.js:11
    /**

    SyntaxError: Invalid or unexpected token
        at internalCompileFunction (node:internal/vm:128:18)
        at wrapSafe (node:internal/modules/cjs/loader:1280:20)

but retrying fixed it, so I'm counting it as a broken package install.
2024-05-08 11:17:15 +05:30
Neeraj Gupta
27aaf98c4d Improve log 2024-05-08 11:16:09 +05:30
Neeraj Gupta
220e80e467 [mob] Clean up stale upload files inside uploader 2024-05-08 11:12:32 +05:30
Neeraj Gupta
7487b76b9d [mob][config] Log skipped files 2024-05-08 11:08:28 +05:30
Neeraj Gupta
1ae8787a29 [mob][config] Move cleanUp interval constant 2024-05-08 11:06:07 +05:30
Neeraj Gupta
2de5b641a7 [mob][config] Skip deleting temp encrypted files for upload 2024-05-08 11:04:54 +05:30
Neeraj Gupta
588bf74202 [mob] Move upload prefix constant to constants 2024-05-08 10:55:21 +05:30
Manav Rathi
a07d999b74 Clarify 2024-05-08 10:26:21 +05:30
Manav Rathi
491b014bc8 [desktop] Mark as rc (#1653) 2024-05-08 10:16:03 +05:30
Manav Rathi
771a02c36b rc 2024-05-08 10:15:12 +05:30
Manav Rathi
1031801c66 [desktop] Tinker with the release flow (#1652) 2024-05-08 10:12:05 +05:30
Manav Rathi
145a7cee2a yarn lint-fix 2024-05-08 10:10:34 +05:30
Manav Rathi
0d1ad8b8e1 More release shenanigans 2024-05-08 10:04:16 +05:30
Manav Rathi
8eac3d701f Finalize 2024-05-07 21:09:15 +05:30
Manav Rathi
8635162259 Force a version 2024-05-07 20:38:51 +05:30
Manav Rathi
abe8a5eed0 Force a feed URL 2024-05-07 20:38:51 +05:30
Manav Rathi
40abb5c0ac [desktop] Misc fixes (#1650) 2024-05-07 20:38:27 +05:30
Manav Rathi
0949f32638 Use provided timeoutMS 2024-05-07 20:35:59 +05:30
Manav Rathi
63c3842770 Write export record after operation completion 2024-05-07 20:35:59 +05:30
Manav Rathi
ff3c37e703 Write file exported record after success 2024-05-07 20:35:59 +05:30
Prateek Sunal
f3c05d2006 fix(auth): improve workflow 2024-05-07 20:30:45 +05:30
Prateek Sunal
a9d63a178a fix(auth): separate fedora workflow 2024-05-07 20:26:31 +05:30
Prateek Sunal
0810967aae fix(auth): store error in Code 2024-05-07 20:05:19 +05:30
Prateek Sunal
e1239a6490 fix(auth): use global logger 2024-05-07 19:57:10 +05:30
Prateek Sunal
d88a7ec117 fix(auth): incorrect text during export 2024-05-07 19:53:34 +05:30
Prateek Sunal
ef318d89ae fix(auth): move color to ente color scheme 2024-05-07 19:52:40 +05:30
Prateek Sunal
3c793258a8 chore(auth): rename toExportFormat 2024-05-07 19:26:17 +05:30
Prateek Sunal
851c04f714 fix(auth): don't export display 2024-05-07 19:25:00 +05:30
Prateek Sunal
7628991dad fix(auth): revert remove linesplitter 2024-05-07 19:24:34 +05:30
Prateek Sunal
aa5c41b59d fix(auth): toast on desktop 2024-05-07 19:04:42 +05:30
Prateek Sunal
54f6f8656d fix(auth): code display for new codes 2024-05-07 19:01:39 +05:30
Manav Rathi
eb60c3f811 [desktop] Fix notarization warnings and other minor fixes (#1648) 2024-05-07 16:21:09 +05:30
Manav Rathi
977557146b Improve 2024-05-07 16:18:04 +05:30
Neeraj Gupta
12b4ab122e Merge branch 'main' into mobile-resumable 2024-05-07 15:36:29 +05:30
Manav Rathi
2208d686da Add a potential approach
Refs:
- Testing auto updates
  https://github.com/electron-userland/electron-builder/issues/3053
- https://github.com/electron-userland/electron-builder/issues/1505
- https://github.com/electron-userland/electron-builder/issues/1393
2024-05-07 15:13:43 +05:30
Manav Rathi
5d3bb71bbf Make the hide dock icon setting macOS only 2024-05-07 14:30:37 +05:30
Manav Rathi
c090300175 Remove electron-builder-notarize
The environment variables we are passing get picked by the built in notarization
code in electron-builder which signs successfully.

    notarization successful

But thereafter electron-builder-notarize starts throwing some errors:

    Error: The appleIdPassword property is required when using notarization with password credentials
        at validateNotaryToolAuthorizationArgs (/Users/runner/work/photos-desktop/photos-desktop/desktop/node_modules/electron-notarize/src/validate-args.ts:107:13)
    Skipping notarization: The appleIdPassword property is required when using notarization with appleId
        at module.exports (/Users/runner/work/photos-desktop/photos-desktop/desktop/node_modules/electron-builder-notarize/validate.js:42:18)

Since the notarization has already happened, we don't need this
2024-05-07 14:25:22 +05:30
Manav Rathi
425cc9050b [web] dynamic free storage (#1644)
Behave like the mobile app and use the server's response to show the
storage value for the free plan instead of hardcoding it to 1 GB.

Tested with a local museum:
<img width="203" alt="Screenshot 2024-05-07 at 13 12 39"
src="https://github.com/ente-io/ente/assets/24503581/79a81a3f-614e-4e0a-9839-de39d7e9396a">
2024-05-07 13:17:24 +05:30
Manav Rathi
7f35a27f37 Undefs 2024-05-07 13:08:43 +05:30
Manav Rathi
c2804b33fa Use storage 2024-05-07 13:05:09 +05:30
Manav Rathi
45865a8376 Share 2024-05-07 12:58:10 +05:30
Manav Rathi
fe99383d7f Inline 2024-05-07 12:52:26 +05:30
Manav Rathi
98d38a3e44 Forward storage 2024-05-07 12:43:14 +05:30
Manav Rathi
54e8cd498f Inline 2024-05-07 12:25:23 +05:30
Manav Rathi
07d75a5dea Fixes 2024-05-07 12:23:05 +05:30
Manav Rathi
cb482c60b6 [web] Tell the Crowdin push action not to create a PR (#1643) 2024-05-07 12:02:33 +05:30
Manav Rathi
a567009e2a [web] Tell the Crowdin push action not to create a PR 2024-05-07 12:02:08 +05:30
Vishnu Mohandas
bc75eff172 v0.8.94 (#1642) 2024-05-07 11:43:25 +05:30
vishnukvmd
c5a88499bc v0.8.94 2024-05-07 11:42:32 +05:30
Neeraj Gupta
752850922c [mob] Fix keepPhotos action for hidden albums (#1640)
## Description
While deleting a hidden collection, if user clicks on `Keep photos`,
then we were moving those photos to uncat instead of default hidden
collection.

## Tests
Monkey tested locally
2024-05-07 11:40:54 +05:30
Vishnu Mohandas
d2ccd0a453 [auth] Update Simple Icons (#1641) 2024-05-07 11:40:39 +05:30
vishnukvmd
95063ea442 Update podfile 2024-05-07 11:36:59 +05:30
vishnukvmd
96f22c5e1f Update Simple Icons 2024-05-07 11:36:50 +05:30
Neeraj Gupta
307aaa4c21 [mob] Fix keepPhotos behaviour for hiddenCollections 2024-05-07 11:35:28 +05:30
Neeraj Gupta
aee1c5e88c [mob] generated files 2024-05-07 11:33:48 +05:30
Manav Rathi
500d163df0 [web] Rename storage_unit i18n key (#1639)
and remove separate gb
2024-05-07 11:30:58 +05:30
Manav Rathi
ce9ad0f406 Rename 2024-05-07 11:28:35 +05:30
Manav Rathi
ee8a6cfb55 [web] dynamic free storage - prepare for changes (#1637) 2024-05-07 11:15:29 +05:30
Neeraj Gupta
0a57f3f955 [mob] Enable shared item action (#1638)
## Description

## Tests
Monkey tested locally
2024-05-07 11:14:11 +05:30
Neeraj Gupta
920f8fcd37 [mob] Remove unused import 2024-05-07 11:12:46 +05:30
Manav Rathi
521950075f yarn lint-fix 2024-05-07 11:12:23 +05:30
Neeraj Gupta
68cdc3a1b4 [auth] New translations (#1631)
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)
2024-05-07 11:12:19 +05:30
Neeraj Gupta
f348a81904 [mob] Enable saving shared items for all users 2024-05-07 11:11:46 +05:30
Manav Rathi
e9bf6d7171 Add a new action 2024-05-07 11:10:09 +05:30
Vishnu Mohandas
3fc4fcd7f9 [mobile] New translations (#1630)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-05-07 10:59:06 +05:30
Vishnu Mohandas
d45ea7a338 Update copy (#1634) 2024-05-07 10:57:27 +05:30
vishnukvmd
487216fd99 v0.8.92 2024-05-07 10:57:18 +05:30
vishnukvmd
11ced154ce Update copy 2024-05-07 10:50:49 +05:30
Manav Rathi
491b814a2e Convert the third one too 2024-05-07 10:45:06 +05:30
Neeraj Gupta
20c2df773d [mob][cast] Enable cast for all 2024-05-07 10:39:52 +05:30
Neeraj Gupta
ab33bc34a1 [mob] Allow fav for shared items 2024-05-07 10:36:22 +05:30
Neeraj Gupta
a39e6b54cc [mob] Disable auto-cast for iOS (#1633)
## Description

## Tests
Tested on sim
2024-05-07 10:35:35 +05:30
Manav Rathi
ccf336e00f 2 2024-05-07 10:35:22 +05:30
Neeraj Gupta
12fb606e77 [mob] Disable auto-cast for iOS 2024-05-07 10:32:48 +05:30
Manav Rathi
7993a07607 1 2024-05-07 10:28:05 +05:30
Neeraj Gupta
c632713752 [mob] Fix _googlecast._tcp value in Info.plist 2024-05-07 10:24:50 +05:30
Manav Rathi
daeccdab32 Move 2024-05-07 10:05:49 +05:30
Manav Rathi
c4756fb847 [desktop] More fixes leading on to the release (#1632) 2024-05-07 09:49:04 +05:30
Manav Rathi
1c2e3479c8 [web] New translations (#1629)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-05-07 09:48:50 +05:30
Manav Rathi
08b5672f93 Migrate off from deprecated API 2024-05-07 09:46:12 +05:30
Manav Rathi
6efbaacdd1 Add note about keychain 2024-05-07 09:43:32 +05:30
Manav Rathi
939b228a0d Note about appDir 2024-05-07 09:37:44 +05:30
Crowdin Bot
68e4b77266 New Crowdin translations by GitHub Action 2024-05-07 02:07:43 +00:00
Crowdin Bot
86e617e54b New Crowdin translations by GitHub Action 2024-05-07 01:58:25 +00:00
Crowdin Bot
e3fae854db New Crowdin translations by GitHub Action 2024-05-07 01:40:22 +00:00
Prateek Sunal
62441b86bd fix(auth): don't make app unusable on error 2024-05-06 21:08:39 +05:30
Manav Rathi
e934cc8cb4 Allow UID 1 to re-index 2024-05-06 20:12:38 +05:30
Manav Rathi
94ec766bc6 Add missing conditional 2024-05-06 19:42:42 +05:30
Manav Rathi
66f705ed9b Use the correct key 2024-05-06 19:32:57 +05:30
Manav Rathi
555eda0619 Check 2024-05-06 19:28:05 +05:30
Manav Rathi
333f364d38 Serve legacy face crops 2024-05-06 19:20:25 +05:30
Vishnu Mohandas
90c8fb09a3 Update copy for Cast (#1626) 2024-05-06 18:55:48 +05:30
Vishnu Mohandas
be01f88058 Update copy for Cast 2024-05-06 17:32:14 +05:30
Manav Rathi
0af7d2c13e Retain the devtools option for perhaps another build to help in extreme cases 2024-05-06 16:31:18 +05:30
Manav Rathi
8a8d29e6b9 Fix loading of preload scripts 2024-05-06 16:29:51 +05:30
Manav Rathi
a8d3a8bfe8 Remove duplicate notarization attempt
From build logs:

     • notarization successful
    Error: The appleIdPassword property is required when using notarization with password credentials
        at validateNotaryToolAuthorizationArgs (/Users/runner/work/photos-desktop/photos-desktop/desktop/node_modules/electron-notarize/src/validate-args.ts:107:13)

Not sure, but at the face of it (since this was not enabled earlier too), our
notarization process kicks in during signing because of the presence of env
vars, and specifying it again here starts a separate process we haven't
configured.
2024-05-06 16:08:23 +05:30
Manav Rathi
5f964e533c Show always (for temp debugging) 2024-05-06 16:07:35 +05:30
Neeraj Gupta
06e65fbf37 [cli] Improve documentation for ente account add (#1625)
## Description

## Tests
Tested locally
2024-05-06 15:54:42 +05:30
Neeraj Gupta
f097535756 [cli] Improve ente account add doc 2024-05-06 15:53:47 +05:30
Neeraj Gupta
d8e917ac40 [cli] Hint user to create a account before adding to cli 2024-05-06 15:51:15 +05:30
Neeraj Gupta
28167561f6 [mob] Bump version 0.8.91+611 (#1624)
## Description

## Tests
2024-05-06 15:33:41 +05:30
Manav Rathi
51e9383ce0 lint 2024-05-06 15:33:21 +05:30
Neeraj Gupta
0531438cf0 [mob] Bump version 0.8.91+611 2024-05-06 15:33:15 +05:30
Manav Rathi
c2f5c3968c Note what I noticed 2024-05-06 15:31:07 +05:30
Manav Rathi
90d56f3886 Show dev tools always 2024-05-06 15:26:26 +05:30
Manav Rathi
aa81e14fed Draft release for testing 2024-05-06 15:22:21 +05:30
Neeraj Gupta
56192fe7af [mob] Cast improvements (#1623)
## Description

## Tests
Tested locally
2024-05-06 14:46:46 +05:30
Neeraj Gupta
b5f56bf350 [mobile] New translations (#1617)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-05-06 14:46:25 +05:30
Neeraj Gupta
bdcad0515c [mob][cast] Increase discovery timeout to 7seconds 2024-05-06 14:44:54 +05:30
Neeraj Gupta
371f3b538f [mob][cast] Improve logs 2024-05-06 14:42:58 +05:30
Neeraj Gupta
d779fc05bd [mob][cast] Fix cast progress state 2024-05-06 14:41:52 +05:30
Neeraj Gupta
1d1ee1248c [mob][cast] Send collectionID during pairing 2024-05-06 14:19:27 +05:30
Neeraj Gupta
06e43bf276 [mob] Fix cast button refresh state 2024-05-06 14:17:59 +05:30
Manav Rathi
0df7ba60b3 [docs] Add note about connecting web/desktop app to custom server (#1622) 2024-05-06 14:13:53 +05:30
Manav Rathi
f37769d340 [docs] Add note about connecting web/desktop app to custom server 2024-05-06 14:12:45 +05:30
Manav Rathi
4da4dcaeb5 [web] New translations (#1621)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-05-06 10:33:17 +05:30
Crowdin Bot
6db94b7595 New Crowdin translations by GitHub Action 2024-05-06 05:00:53 +00:00
Manav Rathi
78e97c1c01 [web] Enable German (#1620)
German translation has reached almost 100% coverage, time to enable it.
Thank you to all the translators in Crowdin 🙏
2024-05-06 10:30:16 +05:30
Neeraj Gupta
70216e39df [auth] New translations (#1619)
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)
2024-05-06 10:28:59 +05:30
Manav Rathi
ea57815945 Add a TODO and fix typo 2024-05-06 10:23:08 +05:30
Manav Rathi
9804d448f6 Enable German (has reached 100%) 2024-05-06 10:19:55 +05:30
Manav Rathi
59d8b9bfbb Remove misused translation strings 2024-05-06 10:17:29 +05:30
Manav Rathi
a288c8305a Add TODO about better translation 2024-05-06 10:07:27 +05:30
Manav Rathi
2b381fdb91 [web] New translations (#1618)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-05-06 09:57:11 +05:30
Crowdin Bot
98b2df1d39 New Crowdin translations by GitHub Action 2024-05-06 04:24:05 +00:00
Crowdin Bot
e59007590d New Crowdin translations by GitHub Action 2024-05-06 04:23:57 +00:00
Crowdin Bot
6df40fe950 New Crowdin translations by GitHub Action 2024-05-06 04:23:54 +00:00
Manav Rathi
4aaed67ffe [meta] Namespace translation branch names, and allow force deploy for WIP apps (#1616)
- Namespace Crowdin PR branches
- Allow force deploying cast and accounts (while they're still in dev)
2024-05-06 09:53:16 +05:30
Manav Rathi
51b103a620 Allow force deploying cast and accounts (while they're still in dev) 2024-05-06 09:52:00 +05:30
Manav Rathi
0194fe65c7 Namespace Crowdin PR branches 2024-05-06 09:48:38 +05:30
Manav Rathi
de9a4a5300 [web] Rework cast (#1611)
* HEIC conversion is still pending, but that should be easy to add if
the rest everything is working fine on Chromecast
* Have tested on manual pairing
2024-05-06 09:46:33 +05:30
Vishnu Mohandas
6041cd73bd Fix typo 2024-05-05 14:56:43 +05:30
Manav Rathi
c92380eb10 Once over 2024-05-04 19:08:48 +05:30
Manav Rathi
fa8f229fcb Help tsc 2024-05-04 19:02:07 +05:30
Manav Rathi
34c30e4520 Remove unused file 2024-05-04 18:59:29 +05:30
Manav Rathi
6a6b77f1d2 Remove unused code 2024-05-04 18:56:52 +05:30
Manav Rathi
575e4809d8 Random order 2024-05-04 18:48:43 +05:30
Manav Rathi
ee503b3bce Shuffle 2024-05-04 18:37:48 +05:30
Manav Rathi
094f1daef3 Get all files 2024-05-04 18:22:36 +05:30
Manav Rathi
3c000b5c62 First time 2024-05-04 17:50:29 +05:30
Manav Rathi
42089403fd Account for processing in the timings 2024-05-04 17:32:02 +05:30
Manav Rathi
2ae2b73c59 Simplify revoke 2024-05-04 17:17:10 +05:30
Manav Rathi
438b6430e0 Simplify 2024-05-04 16:59:10 +05:30
Prateek Sunal
68f0a1d259 fix(auth): add mounted check for tags 2024-05-04 16:10:43 +05:30
Prateek Sunal
45eda72966 fix(auth): remove boxShadow from gradient_button.dart 2024-05-04 15:47:59 +05:30
Prateek Sunal
612ed18473 fix(auth): border radius of gradient_button.dart 2024-05-04 15:44:53 +05:30
Manav Rathi
b6add9650a Revoke 2024-05-04 15:30:39 +05:30
Manav Rathi
b809523ec9 More 2024-05-04 14:41:06 +05:30
Prateek Sunal
270f1f1b22 chore(auth): update pubspec.lock 2024-05-04 14:39:47 +05:30
Prateek Sunal
b5d49afce5 fix(auth): errors in merge 2024-05-04 14:35:46 +05:30
Prateek Sunal
d1a15b129a fix: logics and ui (button, error code) 2024-05-04 14:34:05 +05:30
Manav Rathi
77036ee29a Rearrange 2024-05-04 14:26:18 +05:30
Manav Rathi
b42326bd9b Remove unused saved data 2024-05-04 14:23:56 +05:30
Manav Rathi
1d11c906ef Reorder 2024-05-04 14:21:44 +05:30
Manav Rathi
80301b14f4 Rearrange 2024-05-04 14:18:44 +05:30
Prateek Sunal
838983ec61 fix: logics and ui (button, error code) 2024-05-04 14:16:05 +05:30
Manav Rathi
bf66697bcb t2 2024-05-04 13:24:58 +05:30
Manav Rathi
8b75393ea0 gen 2024-05-04 12:39:55 +05:30
Manav Rathi
b520996af5 Sketch 2024-05-04 12:28:15 +05:30
Vishnu Mohandas
2308a731e3 Update changelog (#1609) 2024-05-04 12:16:17 +05:30
vishnukvmd
1fac0fc50d Update changelog 2024-05-04 12:15:22 +05:30
Manav Rathi
882af50507 Reorder 2024-05-04 11:18:23 +05:30
Manav Rathi
efdf980558 busywork 2024-05-04 11:15:06 +05:30
Manav Rathi
fdeb0f9493 Match 2024-05-04 11:12:43 +05:30
Manav Rathi
c2a2370510 Mirror 2024-05-04 11:11:49 +05:30
Manav Rathi
3d8d6e9fac Remove unused remove code 2024-05-04 10:52:12 +05:30
Manav Rathi
3c3955017e Start chromecast SDK only once 2024-05-04 10:49:33 +05:30
Manav Rathi
1dafec15c7 Unused 2024-05-04 10:31:59 +05:30
Manav Rathi
2ca88ef0a3 Placeholder 2024-05-04 10:26:52 +05:30
Manav Rathi
a058897c48 Simplify 2024-05-04 10:24:37 +05:30
Manav Rathi
3ca1bd7729 Fuse 2024-05-04 10:17:09 +05:30
Manav Rathi
4b674c22c1 Inline 2024-05-04 10:15:31 +05:30
Manav Rathi
75a9abab0f Inline 2024-05-04 10:11:59 +05:30
Manav Rathi
949dd22f81 Inline 2024-05-04 10:03:53 +05:30
Manav Rathi
8bcbdeb6e2 Rename 2024-05-04 09:56:24 +05:30
Manav Rathi
6175c2617c Rearrange 2024-05-04 09:08:48 +05:30
Manav Rathi
0f64a506e5 Comments 2024-05-04 09:00:58 +05:30
Manav Rathi
8a4f5e2934 Fix 2024-05-04 08:55:54 +05:30
Manav Rathi
54bb32d5e7 3 phase 2024-05-04 08:44:58 +05:30
Manav Rathi
159d207d1f Phases 2024-05-04 07:27:10 +05:30
Manav Rathi
5dc4352196 Ignore nulls 2024-05-04 07:13:32 +05:30
Manav Rathi
afa8303d91 Split phases 2024-05-04 06:59:06 +05:30
Manav Rathi
a86a818924 pp 2024-05-04 06:34:52 +05:30
Manav Rathi
5388112b48 Pair 2 2024-05-03 21:57:30 +05:30
Manav Rathi
90a87a8e4f Pair 1 2024-05-03 21:42:33 +05:30
github-actions[bot]
ae2f939a4d [mobile] New translations (#1538)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-05-03 20:16:02 +05:30
Neeraj Gupta
791506b510 [mobile][cast] Fix minor UI issues (#1588)
## Description

## Tests
2024-05-03 20:14:21 +05:30
Ashil
b45262c75b [mob][photos] band aid fix for word gettng cut to next line in SelectionActionButton (#1607) 2024-05-03 19:57:01 +05:30
Vishnu Mohandas
7f6e8228af [mob][photos] Fix BG task not getting killed (#1608)
## Description

`BackgroundFetch.finish(taskId)` doesn't seems to be killing the BG
task.
Explicitly killing the Isolate does the work.
2024-05-03 19:56:35 +05:30
Manav Rathi
021ff4611c Remove indirection 2024-05-03 19:25:52 +05:30
Manav Rathi
b7842765e8 Document 2024-05-03 19:24:04 +05:30
ashilkn
8154dc4a7c [mob][photos] Remove logs added for debugging 2024-05-03 19:21:56 +05:30
ashilkn
b494c308b1 [mob][photos] Merge main 2024-05-03 19:19:30 +05:30
Manav Rathi
30464772e2 Inline 2024-05-03 19:19:18 +05:30
ashilkn
d911479031 [mob][photos] Remove logs added for debugging 2024-05-03 19:17:48 +05:30
Manav Rathi
1d8be29bd6 Add missing dependency array 2024-05-03 19:07:25 +05:30
Manav Rathi
c750329fb1 Fix type only import
Ref:
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/28190#issuecomment-444339277
2024-05-03 19:02:04 +05:30
Manav Rathi
a0c5dd84c7 Add typings 2024-05-03 19:00:16 +05:30
Manav Rathi
08f23efeca Use in cast 2024-05-03 18:47:44 +05:30
Manav Rathi
34c664ac33 Move to @/media 2024-05-03 18:37:57 +05:30
Prateek Sunal
8370d2a9f1 fix: try to fix button tint 2024-05-03 16:58:59 +05:30
Vishnu Mohandas
5527836eab [mob][photos] Bump up to v0.8.90 (#1601) 2024-05-03 15:43:09 +05:30
Vishnu Mohandas
5f3b253607 Changelog (#1599) 2024-05-03 15:42:59 +05:30
Vishnu Mohandas
27ef12b222 [mob][photos] Request for ACCESS_MEDIA_LOCATION permission if not granted (#1600)
## Description


a5d05decf2/mobile/lib/utils/photo_manager_util.dart (L8)

^passing true here should let the app have `ACCESS_MEDIA_LOCATION`
permission. But looks like that isn't working for a small set of users.
So, asking for permission explicitly.
2024-05-03 15:42:47 +05:30
ashilkn
21faf76611 [mob][photos] Bump up to v0.8.90 2024-05-03 15:34:19 +05:30
vishnukvmd
ff45d11384 Changelog 2024-05-03 15:12:53 +05:30
Vishnu Mohandas
a5d05decf2 [web] New translations (#1598)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-05-03 15:09:56 +05:30
ashilkn
377a8b1128 [mob][photos] Request for ACCESS_MEDIA_LOCATION permission if not granted 2024-05-03 15:08:04 +05:30
Crowdin Bot
c31ce04c6e New Crowdin translations by GitHub Action 2024-05-03 09:31:18 +00:00
Vishnu Mohandas
7a5b425c82 Update copies for Cast (#1597) 2024-05-03 15:00:33 +05:30
vishnukvmd
8dc6e1ab6a Fix lint error 2024-05-03 14:59:42 +05:30
vishnukvmd
03e9aef848 Update copies for Cast 2024-05-03 14:54:31 +05:30
Manav Rathi
a127d43d54 [desktop] Prepare for release (#1596)
- **Run the electron builder in the correct path**
- **Provide repository**
- **Move to new notarization mechanism**
- **Use an Electron Builder version that supports notarytool**
2024-05-03 14:46:18 +05:30
Manav Rathi
2b9ee7824d lint 2024-05-03 14:44:24 +05:30
Neeraj Gupta
dc1d2c5b7b [FIX] Handle Steam host (#1539)
## Description

It is same as Totp with 5 digits.
Related: https://github.com/ente-io/ente/discussions/1038
2024-05-03 14:39:40 +05:30
Manav Rathi
ea812561c6 Run everywhere 2024-05-03 14:38:56 +05:30
Prateek Sunal
7ced2f5139 Merge branch 'main' into auth-stream-otpauth 2024-05-03 14:26:30 +05:30
Neeraj Gupta
8831560151 Minor fix 2024-05-03 14:21:59 +05:30
Neeraj Gupta
679922bdfe Refactor 2024-05-03 14:19:12 +05:30
Neeraj Gupta
536de8a3fa Minor refactor 2024-05-03 14:17:23 +05:30
Neeraj Gupta
da45ea3173 [auth] Improve _getDigits 2024-05-03 14:09:36 +05:30
Prateek Sunal
8bf9a2544c chore: bump version 2024-05-03 13:57:09 +05:30
Prateek Sunal
b374dc0dd0 fix: add digits to setup page and create stream type 2024-05-03 13:56:59 +05:30
Neeraj Gupta
26e17d8464 [server][cast] Generate alphaNumberic codes for cast (#1595)
## Description

## Tests
2024-05-03 13:51:27 +05:30
Manav Rathi
3fafc5fd99 Use an Electron Builder version that supports notarytool
We need the following patch (from the release notes of v25.0.0-alpha.6)
https://github.com/electron-userland/electron-builder/releases

> feat: Make notarization with Apple ID more usable by
> https://github.com/electron-userland/electron-builder/pull/8159
2024-05-03 13:17:58 +05:30
ashilkn
b221b80625 Merge branch 'main' into fix_bg_task_not_getting_killed 2024-05-03 13:12:24 +05:30
ashilkn
075d8d9769 [mob][photos] bump up version 2024-05-03 13:07:29 +05:30
ashilkn
ec93a02674 [mob][photos] fix: BG process not getting killed when app is brought to foreground 2024-05-03 13:05:02 +05:30
Manav Rathi
b24d80a267 Move to new notarization mechanism
Refs:
- https://www.electron.build/configuration/mac.html#NotarizeLegacyOptions
- https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/src/macPackager.ts
- https://github.com/samuelmeuli/action-electron-builder/issues/101
2024-05-03 13:02:19 +05:30
Neeraj Gupta
48bfe5b2fe [web][cast] Use deviceCode generated by sever (#1594)
## Description

## Tests
2024-05-03 12:38:46 +05:30
Neeraj Gupta
a62edad446 [server][cast] Fix err handling 2024-05-03 12:36:02 +05:30
Neeraj Gupta
627eab472c [server][cast] Only log ip mismatch instances 2024-05-03 12:32:16 +05:30
Neeraj Gupta
ad5cfdc6db [server][cast] convert deviceCode input to upperCase 2024-05-03 12:31:26 +05:30
Neeraj Gupta
99b13d18b0 [server][cast] Generate alphaNumeric deviceCode 2024-05-03 12:29:32 +05:30
Neeraj Gupta
8a85932512 refactor 2024-05-03 12:27:48 +05:30
Neeraj Gupta
b9b928797c [web][cast] Use server to generate deviceCode 2024-05-03 12:24:52 +05:30
Neeraj Gupta
48f24d48b5 [server] Move generateAlphaNumString to util 2024-05-03 12:11:35 +05:30
Manav Rathi
0f3555468d Provide repository
Fixes:

    Cannot detect repository by .git/config. Please specify "repository" in the package.json (https://docs.npmjs.com/files/package.json#repository).
    Please see https://electron.build/configuration/publish  failedTask=build stackTrace=Error: Cannot detect repository by .git/config. Please specify "repository" in the package.json (https://docs.npmjs.com/files/package.json#repository).
2024-05-03 12:09:03 +05:30
Prateek Sunal
b52133fe57 fix: revert totp changes 2024-05-03 12:00:29 +05:30
Prateek Sunal
c6084c6148 fix: add code error widget 2024-05-03 11:59:28 +05:30
Manav Rathi
c04a30a37c [web] New translations (#1586)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-05-03 11:31:06 +05:30
Manav Rathi
0165c72064 [desktop] Run the electron builder in the correct path (#1593)
Also add a convenience script to the [photos-desktop
repo](https://github.com/ente-io/photos-desktop/blob/main/.github/trigger-release.sh):

```sh
#!/bin/sh

set -o errexit

version="$1"
if test -z "$version"
then
    echo "usage: `basename $0` <version-including-v>"
    exit 1
fi

set -o xtrace

cp ../ente/desktop/CHANGELOG.md CHANGELOG.md
cp ../ente/desktop/.github/workflows/desktop-release.yml .github/workflows/
git add CHANGELOG.md .github/workflows/desktop-release.yml
git commit -m "$version"
git push origin main

git tag "$version"
git push origin "$version"
```
2024-05-03 11:30:17 +05:30
Manav Rathi
e9feec37d5 Run the electron builder in the correct path 2024-05-03 11:28:06 +05:30
Manav Rathi
79e15827d3 [desktop] Use same convention as other preexisting tags in our repo (#1592) 2024-05-03 11:09:43 +05:30
Manav Rathi
5d0e62cf5f Use same convention as other preexisting tags in our repo 2024-05-03 11:08:06 +05:30
Manav Rathi
d68e607d4a [desktop] Fix ref ref in action (#1591)
ref_name is the (from my understanding) the shorthand we need for
prefixing. Untested, will do a test build.
2024-05-03 11:02:46 +05:30
Manav Rathi
647cc0d803 [desktop] Fix ref ref in action
ref_name is the (from my understanding) the shorthand we need for prefixing. Untested, will do a test build.
2024-05-03 11:00:55 +05:30
Manav Rathi
383d570ece [desktop] Prepare for beta release (#1590) 2024-05-03 10:51:45 +05:30
Manav Rathi
ddad863b31 Prepare for release 2024-05-03 10:50:21 +05:30
Neeraj Gupta
486d89f506 [mob] Log n/w when mobileBackUpIsDisabled and backup is happening (#1589)
## Description

## Tests
2024-05-03 10:34:34 +05:30
Neeraj Gupta
024f160ca0 [mob] Improve log 2024-05-03 10:14:27 +05:30
Neeraj Gupta
cdfbd402d2 [cli] Documentation improvement (#1587)
- Clarify that config.yaml needs to go to CWD
- Add a notice about ente account add (I think it is the second time
someone got confused about this)

Maybe we can also print a notice or the help docs when `ente` is run
without any arguments (just a thought for future changes)
2024-05-03 10:02:15 +05:30
Manav Rathi
977d212be6 Add a notice about ente account add 2024-05-03 09:42:17 +05:30
Manav Rathi
3eda263d26 Clarify cwd 2024-05-03 09:38:58 +05:30
Crowdin Bot
d08c2b4fa0 New Crowdin translations by GitHub Action 2024-05-03 01:40:38 +00:00
Prateek Sunal
b860d3a056 fix: push theme for button 2024-05-03 01:59:43 +05:30
Manav Rathi
9324c739fd [desktop] Electron 30 (#1584)
Upgrade to Electron 30 to get the streaming request fix we need.

Also add a workaround to get POSIX paths from webUtils on Windows. For
the test case, see this
[Fiddle](https://gist.github.com/mnvr/91eaca21b0651926565274ee80f10ad5).
2024-05-02 21:49:44 +05:30
Prateek Sunal
25fb9cfe13 fix: add new ente button 2024-05-02 21:42:16 +05:30
Prateek Sunal
ab93eb4e8e fix: bump gradlew files 2024-05-02 21:40:59 +05:30
Manav Rathi
0c4da8c86a POSIX paths 2024-05-02 21:38:02 +05:30
Manav Rathi
6a99002064 Start using it 2024-05-02 21:25:44 +05:30
Manav Rathi
67eed1aa89 Upgrade to Electron 30
This picks up the stream fix we need
> Fixed data corruption when protocol.handle() processed incoming data asynchronously. #41933 (Also in 31)
>
> https://github.com/electron/electron/releases/tag/v30.0.2
2024-05-02 21:20:26 +05:30
Manav Rathi
151e7abc19 [desktop] Resurrect desktop build (#1583)
Untested, this is the plan.
2024-05-02 20:25:13 +05:30
Manav Rathi
2f2d15c9f2 lint 2024-05-02 20:22:40 +05:30
Manav Rathi
fecfb4a8b7 Hopes and dreams 2024-05-02 19:52:39 +05:30
Manav Rathi
3b3d24e9e0 It'll need to live in the releases repo, reword accordingly 2024-05-02 19:34:58 +05:30
Manav Rathi
aed781b0ff Use same credentials as the auth app
While we won't actually be using the monorepo for releases, get the action to a
known state:

- MAC_OS_CERTIFICATE and MAC_OS_CERTIFICATE_PASSWORD is the same GitHub secret
  that the auth app already uses

- Need to add APPLE_API_KEY, APPLE_API_KEY_ID, APPLE_API_KEY_ISSUER_ID.
2024-05-02 19:05:52 +05:30
Manav Rathi
fa182b951d [desktop] Resurrect build
Untested
2024-05-02 12:55:08 +05:30
Manav Rathi
85522a946a [desktop] Short-circuit ML (#1580)
This is so that we can make a release. Post-release, we'll come back to
this and give it the finishing touches and re-enable it. This avoids
doing a re-indexing for actual users in case we need to change stuff
during the finishing touches.
2024-05-02 12:07:09 +05:30
Manav Rathi
68721b8168 Pick from the correct table 2024-05-02 11:11:24 +05:30
Manav Rathi
8327c2b881 Remove unused ElectronFile 2024-05-02 10:23:56 +05:30
Vishnu Mohandas
ab471dde96 Replace Isar with SQLite for storing CLIP embeddings (#1575)
## Description
- This PR removes the dependency on Isar, and sets up a SQLite DB for
storing embeddings.
- The existing DB is deleted, and the new DB is populated by pulling
embeddings from the server. Local migration was possible, but that would
have required us to keep Isar as a dependency for an unknown period of
time.
- For 30k embeddings, DB size has dropped from ~420MB to ~115MB. The
first load on a Pixel 7 has increased from ~500ms to ~600ms.
- More details @ https://ente.io/blog/tech/sqlite-objectbox-isar/#update

## Tests
- [x] Verified over internal builds that semantic search is working as
expected

> Note: This fixes that jank that would happen when a foreground process
tries to read data from the Isar DB while a background process is alive.
2024-05-02 09:35:24 +05:30
Prateek Sunal
e4b2bf08c1 chore: bump packages 2024-05-01 23:26:39 +05:30
Prateek Sunal
49c0295b21 fix: use Future.wait for edit and delete tag 2024-05-01 23:26:30 +05:30
Prateek Sunal
8d096ecf04 chore: bump version 2024-05-01 23:08:30 +05:30
Prateek Sunal
ee5362ad6c fix: unselect tag on tap on selected one 2024-05-01 23:08:09 +05:30
Prateek Sunal
e7ed34bb78 fix: update tag colors 2024-05-01 23:07:35 +05:30
Manav Rathi
cd5c1e35fa Disable live clip, rely on the thumbnailed version 2024-05-01 21:05:29 +05:30
Manav Rathi
30f22e333a Pass file when we have it 2024-05-01 21:04:41 +05:30
Manav Rathi
5ba2e35af6 Force disable it for non internal users 2024-05-01 20:13:08 +05:30
Manav Rathi
0226a99fa3 Disable enabling ML search 2024-05-01 20:09:36 +05:30
Manav Rathi
2690b874ee Make the migration a no-op 2024-05-01 19:49:09 +05:30
vishnukvmd
11d6cdd7c1 Rename variables 2024-05-01 19:36:09 +05:30
Manav Rathi
eb64cd8367 [desktop] More IPC enhancements and fixes (#1577)
Heading towards a wrap.
2024-05-01 19:08:41 +05:30
Manav Rathi
90b5054fcb chokidar seemed to have gotten stuck after a close
Not sure if something else was off, but after a close new watches in the same
session (after logging in) stopped reacting.
2024-05-01 19:02:43 +05:30
Manav Rathi
932f26684d Electron logout 2024-05-01 18:50:10 +05:30
Manav Rathi
4eb51061cb For real 2024-05-01 18:21:45 +05:30
Manav Rathi
de4aa3a6ca URL encode 2024-05-01 18:15:52 +05:30
Manav Rathi
c988884ab1 Setting pathname had no effect 2024-05-01 17:56:46 +05:30
Manav Rathi
b967d4bbea URL encode better
e.g. fixes the reading of a file with a hash in the name
2024-05-01 17:39:28 +05:30
Manav Rathi
0a93ba67a1 Fix warnings
Refs:
https://stackoverflow.com/questions/69730364/what-is-the-purpose-of-shouldforwardprop-option-in-styled
2024-05-01 17:04:44 +05:30
Manav Rathi
d30a8b8033 [desktop] Finalize zip handling (#1576)
And other fixes. Getting close to a stable desktop build.
2024-05-01 15:42:12 +05:30
Manav Rathi
9dd865ff6e Comment 2024-05-01 15:31:42 +05:30
vishnukvmd
bc32c89d77 Rename DB 2024-05-01 15:14:44 +05:30
vishnukvmd
1cd9fb1021 v0.8.88 2024-05-01 15:12:57 +05:30
Manav Rathi
10f2c3db6f Mention why we're normalizing 2024-05-01 15:12:50 +05:30
vishnukvmd
5f131693f4 Use Int instead of String to represent an enum 2024-05-01 15:12:48 +05:30
Manav Rathi
4c28e83dbb Optimize 2024-05-01 15:07:58 +05:30
Manav Rathi
36984012a8 They're all optionals now 2024-05-01 15:00:18 +05:30
Manav Rathi
cb73bc143d Research 2024-05-01 15:00:14 +05:30
Manav Rathi
52909f6f21 The handler adds its own error message prefix
Error occurred in handler for 'generateImageThumbnail': Error: This feature in not available on the current OS/arch
2024-05-01 14:06:34 +05:30
Manav Rathi
5ffc2f20fd Replicate previous behaviour 2024-05-01 13:57:33 +05:30
Manav Rathi
f2a764aac2 Fix export trash movement 2024-05-01 13:42:09 +05:30
Manav Rathi
f91dddda93 Fix paths 2024-05-01 13:35:42 +05:30
Manav Rathi
6086d43635 Don't log a potentially huge list 2024-05-01 12:32:33 +05:30
Manav Rathi
ff5a167f48 Might not be JSONStringify-able 2024-05-01 11:33:49 +05:30
vishnukvmd
de92a9dd64 v0.8.87 2024-05-01 10:41:36 +05:30
vishnukvmd
81feeef792 Remove dependency on Isar 2024-05-01 10:41:15 +05:30
Manav Rathi
55c603d345 Tweak logs 2024-05-01 10:39:35 +05:30
Manav Rathi
15b013ea36 Verified with a console log 2024-05-01 10:19:21 +05:30
Manav Rathi
38969d6f45 Fix zip reader 2024-05-01 10:17:51 +05:30
Vishnu Mohandas
74f93efe16 Don't send changes for review in internal build 2024-05-01 10:03:26 +05:30
Manav Rathi
bd2969daff Fix inverted condition 2024-05-01 10:03:03 +05:30
Vishnu Mohandas
baf943550f Don't sent internal build for review 2024-05-01 10:01:41 +05:30
Manav Rathi
633aee9dfd [desktop] Fix pending uploads state management (#1574)
and various other 
2024-05-01 09:29:30 +05:30
Manav Rathi
eb1d8a8210 Add a workaround for broken yarn classic dependency resolution
...that causes `yarn install` to fail.

Ref:
- https://github.com/isaacs/jackspeak/issues/5
- https://github.com/yargs/cliui/issues/159
2024-05-01 09:27:56 +05:30
Manav Rathi
735213b474 linter linter on the wall who's the fairest of them all 2024-05-01 09:17:17 +05:30
Manav Rathi
7056e04c02 Fix lint for web
Copy overrides from desktop
2024-05-01 09:13:41 +05:30
Manav Rathi
abee517f8c Fix remote build by recreating yarn.lock 2024-05-01 09:13:20 +05:30
Manav Rathi
42b214a4ba Remove duplicate state and reset store on successful completion
Clears out the collection name
2024-05-01 09:05:12 +05:30
Manav Rathi
e18731e625 yarn upgrade-interactive typescript and lints 2024-05-01 08:51:47 +05:30
Manav Rathi
9cbf69f9b3 upgrade-interactive 2024-05-01 08:46:43 +05:30
Manav Rathi
6c716ad892 Tell prettier not to print the names of the files it processes 2024-05-01 08:30:35 +05:30
Manav Rathi
4e8f2e65f0 Handle undefined better 2024-05-01 08:25:55 +05:30
Prateek Sunal
ebbd946fc2 chore: bump version for auth to 256 (#1573)
## Description

## Tests
2024-05-01 02:05:14 +05:30
Prateek Sunal
b39b470b95 chore: bump version 2024-05-01 01:48:32 +05:30
Vishnu Mohandas
292065a7b5 [FIX] Rpm build for Auth (#1466)
## Description

Try to remove missing deps error in auth desktop.
2024-05-01 01:42:43 +05:30
Prateek Sunal
d0d5ead80b fix: install patchelf for dynamic linking 2024-05-01 01:07:13 +05:30
Prateek Sunal
ac9f5095d1 fix: rpm deps and webview package 2024-05-01 01:05:10 +05:30
Prateek Sunal
c9c7f0c8f4 fix: width of popup menu button 2024-05-01 00:59:03 +05:30
Manav Rathi
c353ceaaf9 [desktop] IPC refactoring and general cleanup (#1572) 2024-04-30 23:13:05 +05:30
Manav Rathi
a0d44b58e2 Fix load
Using .on("ready" was not causing the window to start loading the renderer
unless createWindow was made async.
2024-04-30 22:48:46 +05:30
Manav Rathi
54e8d64b9e Fix the loading of utils/index
Naming it index doesn't cause isDev to be loaded.
2024-04-30 22:46:04 +05:30
vishnukvmd
9d6059a176 v0.8.86 2024-04-30 20:06:40 +05:30
vishnukvmd
348b784674 Remove Isar DB for Embeddings 2024-04-30 19:52:30 +05:30
vishnukvmd
c0e12e84ef Merge branch 'main' into embedding_sqlite 2024-04-30 19:10:58 +05:30
Manav Rathi
1eff04fe92 Enable lints 2024-04-30 18:57:19 +05:30
Manav Rathi
50a1447020 Stylistic 2024-04-30 18:54:58 +05:30
Manav Rathi
76c98bdf32 handle unsafe returns 2024-04-30 18:50:15 +05:30
Manav Rathi
7e2ee61a97 void expressions are fine 2024-04-30 18:46:59 +05:30
Manav Rathi
7b16fa9f38 void 2024-04-30 18:42:24 +05:30
Manav Rathi
9a28172565 iife wrapper 2024-04-30 18:37:50 +05:30
Manav Rathi
bda5226796 More unawaited 2024-04-30 18:34:32 +05:30
Neeraj Gupta
f7a62c91e9 Cast logs v2 (#1569)
## Description

## Tests
2024-04-30 18:21:23 +05:30
Neeraj Gupta
d81684a93b [web][cast] More logs 2024-04-30 18:20:01 +05:30
Neeraj Gupta
13d5a9f71a [web][cast] Add logs 2024-04-30 18:09:35 +05:30
Neeraj Gupta
262e8852de [web][cast] Add slide logs (#1566)
## Description

## Tests
2024-04-30 17:47:08 +05:30
Neeraj Gupta
ecfb7d944d [web][cast] Add slide logs 2024-04-30 17:45:50 +05:30
Manav Rathi
82316ff290 Unawaited promises 2024-04-30 17:43:30 +05:30
Manav Rathi
d308d334f8 tt 2024-04-30 17:41:12 +05:30
Neeraj Gupta
b3fc9bb682 [cast] Add logs (#1564)
## Description

## Tests
2024-04-30 17:34:16 +05:30
Neeraj Gupta
20459afc7b [cast] Add logs 2024-04-30 17:33:25 +05:30
Manav Rathi
f4660baeb8 Remove unnecessary awaits 2024-04-30 16:58:58 +05:30
Manav Rathi
9cce8b379c Remove unnecessary asyncs 2024-04-30 16:51:19 +05:30
Manav Rathi
46d67f0c49 Disentagle map from modifications 2024-04-30 16:49:56 +05:30
Manav Rathi
1076471d51 Turn one off 2024-04-30 16:42:52 +05:30
Vishnu Mohandas
569f7c0c47 [mob][photos] Add support for casting (#1556)
## Description

## Tests
2024-04-30 16:41:05 +05:30
Vishnu Mohandas
f00a04710b Add an option to download multiple items (#1563)
## Description

<img width="373" alt="Screenshot 2024-04-30 at 4 06 33 PM"
src="https://github.com/ente-io/ente/assets/1161789/f4bc463e-654d-4e5f-8d7d-27308149068b">

## Tests

- [x] Tested on Simulator

> Note: If the downloaded item was not owned by the user, but was shared
with them, it will get re-uploaded into the user's own account. This is
the existing behavior, so have left it untouched. Will wait for customer
feedback before updating the implementation to ignore such items.
2024-04-30 16:40:59 +05:30
Manav Rathi
7fb912c9df ensure 2024-04-30 16:34:48 +05:30
Manav Rathi
9e279da6b3 annotations 2024-04-30 16:30:19 +05:30
Manav Rathi
01c77c3949 unk 2024-04-30 16:29:24 +05:30
Manav Rathi
9771db6ade Use the built in transformer 2024-04-30 16:28:48 +05:30
Manav Rathi
994ca4b6a3 That's why cache fails 2024-04-30 16:25:35 +05:30
Neeraj Gupta
e7a5e1be3f Merge branch 'main' into cast 2024-04-30 16:24:28 +05:30
vishnukvmd
99e72a119f Update download icon 2024-04-30 16:13:48 +05:30
Manav Rathi
755ee4a0c2 hopefully 2024-04-30 16:13:16 +05:30
Neeraj Gupta
90baf7efb9 [mob] Add Ente popup menu widget (#1562)
## Description

## Tests
2024-04-30 16:12:05 +05:30
Manav Rathi
a9671481d8 Allow numbers to be used in template literals 2024-04-30 16:10:56 +05:30
vishnukvmd
fe5e6c18e8 Provide option to download multiple items 2024-04-30 16:06:03 +05:30
vishnukvmd
cdddbc4602 Increase severity of error log 2024-04-30 16:05:44 +05:30
vishnukvmd
d7bef6cd4d Log filetype 2024-04-30 16:05:06 +05:30
vishnukvmd
db47f8eaf5 Add copy 2024-04-30 16:05:00 +05:30
vishnukvmd
6f338867e4 Add log 2024-04-30 16:04:50 +05:30
vishnukvmd
872245cf0e Update package for icons 2024-04-30 16:04:32 +05:30
Manav Rathi
9b996ff353 Lint+ 2024-04-30 16:03:52 +05:30
Manav Rathi
51ffaa4a90 Preempt 2024-04-30 16:00:32 +05:30
Manav Rathi
2f3a2421f7 Strict 2024-04-30 15:51:22 +05:30
Manav Rathi
824e73f150 strict 2024-04-30 15:30:57 +05:30
Manav Rathi
9cc730e6a9 more posix 2024-04-30 14:56:13 +05:30
Neeraj Gupta
268c7d8a99 [mob] Use EntePopupMenuItem in gallery_app_bar 2024-04-30 14:42:21 +05:30
Neeraj Gupta
ebed315cb0 [mob] Add popup item widget 2024-04-30 14:41:54 +05:30
vishnukvmd
ae057da331 Remove redundant code 2024-04-30 14:37:15 +05:30
Manav Rathi
5681f14967 Clarify that entry names are guaranteed to be posixy 2024-04-30 14:31:06 +05:30
vishnukvmd
24fc486721 Pull out the code to download a file to gallery 2024-04-30 14:29:12 +05:30
Manav Rathi
612d8682b5 strict 2024-04-30 14:21:43 +05:30
Manav Rathi
0c312c0ea1 strict 3 2024-04-30 14:10:59 +05:30
Manav Rathi
bee2cd533c strict 2 2024-04-30 14:01:28 +05:30
Manav Rathi
72b9113d30 ensure 2024-04-30 13:59:00 +05:30
Manav Rathi
333f9c58f2 strict 1 2024-04-30 13:56:11 +05:30
Manav Rathi
14348351a9 Fix call of undefined 2024-04-30 13:44:46 +05:30
Manav Rathi
8400620488 Gone from desktop 2024-04-30 13:42:41 +05:30
Manav Rathi
4feefb9b8d Fix comment 2024-04-30 13:41:18 +05:30
Manav Rathi
b52c9f558f Remove cache size overrides
Need a bit more benchmarking or real world feedback to see if this is even something that is helping us.
2024-04-30 13:39:58 +05:30
Manav Rathi
6c4adb1127 Housekeeping 2024-04-30 13:37:17 +05:30
Manav Rathi
d6aeef85d6 Rearrange 2024-04-30 13:33:18 +05:30
Manav Rathi
f84937f8c1 Bye ElectronFile 2024-04-30 13:26:55 +05:30
Manav Rathi
f5754eb2e1 Remove uses of path 2024-04-30 13:01:29 +05:30
Manav Rathi
a148f1a7af [web] New translations (#1560)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-04-30 12:40:08 +05:30
Manav Rathi
2099663a93 [web] Revert "search-bar component added" (#1561)
This reverts commit 4ed194f397.

@daviddeepan I had to revert your PR unfortunately.

Two main functional issues was:

- When trying to upload files, if I would search something without
results, the dialog would just close instantly.

- As a user, I expect to be able to move out of the search bar with
escape. However, pressing escape closes the whole dialog, causing the
user's drag and dropped or selected files to be lost. This is not
specifically a problem with the code added in this commit, however this
UX will need to be fixed in some way before introducing the search bar.

One medium issue:

- The dialog box kept changing size when I searched. This is visually
jarring.

Other minor issues:

- The input element did not match the look and feel for the rest of the
search input elements in the app. Aligning the search bar to the left
and right of the album thumbnails and using the MUI Input element (as
our code uses MUI elements in other places) might've fixed it.

- There were various debugging console.logs left over, once of which
even seemed like a case we need to handle.

- The strings were not localized.

---

Again, I appreciate your effort, but I think let us leave this for now,
we can come back to it in the future after having thought more about the
UX.
2024-04-30 12:38:57 +05:30
Manav Rathi
92a066d322 Revert "search-bar component added"
This reverts commit 4ed194f397.

Two main functional issues was:

- When trying to upload files, if I would search something without results, the
  dialog would just close.

- As a user, I expect to be able to move out of the search bar with
  escape. However, pressing escape closes the whole dialog, causing the user's
  drag and dropped or selected files to be lost. This is not specifically a
  problem with the code added in this commit, however this UX will need to be
  fixed in some way before introducing the search bar.

One medium issue:

- The dialog box kept changing size when I searched. This is visually jarring.

Other minor issues:

- The input element did not match the look and feel for the rest of the search
  input elements in the app. Aligning the search bar to the left and right of
  the album thumbnails and using the MUI Input element (as our code uses MUI
  elements in other places) might've fixed it.

- There were various debugging console.logs left over, once of which even seemed
  like a case we need to handle.

- The strings were not localized.
2024-04-30 12:31:24 +05:30
Crowdin Bot
25fd5d5422 New Crowdin translations by GitHub Action 2024-04-30 06:42:25 +00:00
Manav Rathi
09bc15ddd3 [web] Upload refactoring - Zip file support (#1559) 2024-04-30 12:11:46 +05:30
Manav Rathi
e2cd1ea380 Fallback 2024-04-30 12:03:05 +05:30
Manav Rathi
ab95b4daee Inline 2024-04-30 11:51:25 +05:30
Manav Rathi
92ecbf9fa1 Add search bar within the Album selection screen #564 (#1558)
## Description
Search bar component for the ente-web added.
The component for web and mobile responsiveness is shown below.

> Thank you to the team for considering 


## Tests
Normal screen--
![Screenshot 2024-04-30
103238](https://github.com/ente-io/ente/assets/82031202/c4d8b033-2624-4985-b9ba-18e5eca29f0f)
Mobile screen--
![Screenshot 2024-04-30
111031](https://github.com/ente-io/ente/assets/82031202/4246a71b-3dd3-4de3-b4e0-f06185926faa)
2024-04-30 11:38:37 +05:30
Manav Rathi
8ee9b2be32 Use only the currently uploaded items 2024-04-30 11:36:28 +05:30
Manav Rathi
1f110929b2 connect 2024-04-30 11:08:55 +05:30
daviddeepan
4ed194f397 search-bar component added 2024-04-30 11:05:27 +05:30
Manav Rathi
68f3f1e714 more 2024-04-30 11:01:50 +05:30
Manav Rathi
a5177a3742 fore 2024-04-30 10:51:20 +05:30
Manav Rathi
761fd560a1 Separate file 2024-04-30 10:43:12 +05:30
Manav Rathi
c1a3fb4896 docs 2024-04-30 10:31:33 +05:30
Manav Rathi
5f0103682b entries 2024-04-30 10:24:41 +05:30
Manav Rathi
7ad4069b99 hobgoblins 2024-04-30 10:23:33 +05:30
Manav Rathi
afb0e1aff3 web 2024-04-30 10:20:37 +05:30
Manav Rathi
73baf5a375 Uncollide with ZipEntry from StreamZip 2024-04-30 10:08:31 +05:30
Manav Rathi
e9bf26e421 Extract 2024-04-30 09:59:02 +05:30
Manav Rathi
77fe4f9f03 wip ze ipc 2024-04-30 09:39:38 +05:30
Manav Rathi
93991c3a7f up 2024-04-30 09:25:59 +05:30
Manav Rathi
baf491c624 up 2024-04-30 09:10:27 +05:30
Manav Rathi
ff8aba816a cont 2024-04-29 21:48:31 +05:30
Manav Rathi
39737b985b teach readstream about zips 2024-04-29 21:40:10 +05:30
Manav Rathi
6bcf985390 or can it 2024-04-29 21:27:45 +05:30
Manav Rathi
eb608f4bdd ren 2024-04-29 21:12:47 +05:30
Manav Rathi
fca398f296 impl 2024-04-29 21:07:20 +05:30
Manav Rathi
38094f317a wipx 2024-04-29 20:58:58 +05:30
Manav Rathi
2c62f983a8 wipx 2024-04-29 20:42:57 +05:30
Manav Rathi
61de0c9c9c Before the changes 2024-04-29 19:55:04 +05:30
Manav Rathi
3ef727537c UploadItem 2024-04-29 19:46:50 +05:30
Manav Rathi
cca33074fb Pending uploads 2024-04-29 19:29:52 +05:30
Prateek Sunal
77b30ef65d fix: complete edit and delete tag logic 2024-04-29 18:59:35 +05:30
Prateek Sunal
f065481d47 chore: add doc 2024-04-29 18:19:29 +05:30
Prateek Sunal
35672eeec0 feat: tags ui and logic complete 2024-04-29 18:18:00 +05:30
Vishnu Mohandas
e7ca750168 Fixed typo (#1555)
## Description
Fixed a small typo
2024-04-29 17:39:13 +05:30
vishnukvmd
8ecb7710de v0.8.85 2024-04-29 17:34:00 +05:30
vishnukvmd
0f5007b8d2 Update key 2024-04-29 17:32:42 +05:30
vishnukvmd
64f2be09e6 Replace Isar with SQLite 2024-04-29 17:30:56 +05:30
Manav Rathi
c1ef0199be Partial integration 2024-04-29 17:16:43 +05:30
vishnukvmd
104a7a5f00 Fix queries 2024-04-29 17:10:53 +05:30
Neeraj Gupta
9e7c82d5b9 [mob][photos] Extract string 2024-04-29 16:59:28 +05:30
Neeraj Gupta
5c645d50f0 [mob][photos] Show custom error on ip mismatch 2024-04-29 16:56:53 +05:30
Neeraj Gupta
7c9160478d [mob][photos] Extract strings 2024-04-29 16:45:43 +05:30
vishnukvmd
bb6cd41ec8 Implement SQLite version of EmbeddingsDB 2024-04-29 16:44:07 +05:30
Manav Rathi
0fbafcc4f5 Remove unused sharedFiles app context prop
setSharedFiles was removed in 3b468cb154 (years ago).
2024-04-29 16:33:04 +05:30
Manav Rathi
2d40f530a7 more 2024-04-29 15:51:20 +05:30
Prateek Sunal
5a18fe3746 feat: tags selection by text field 2024-04-29 15:41:17 +05:30
Manav Rathi
864a53afa2 more 2024-04-29 15:23:46 +05:30
Manav Rathi
d94f0a0f56 wip 2024-04-29 15:08:46 +05:30
Prateek Sunal
12635be0d2 fix: complete pinned design 2024-04-29 14:48:40 +05:30
Manav Rathi
2fa1fcac65 impl 2024-04-29 14:34:05 +05:30
Manav Rathi
3d298a9cd4 separate type 2024-04-29 14:23:33 +05:30
BifrostTenmei
e258aa3524 Fixed typo 2024-04-29 10:53:20 +02:00
Neeraj Gupta
16888c8aad [mob][photos] Fix lint warning 2024-04-29 14:14:23 +05:30
Neeraj Gupta
bd07759d8e [mob][photos] Show loading indicator on device tap 2024-04-29 14:05:41 +05:30
Manav Rathi
3b6204f47d Take 2 2024-04-29 13:49:02 +05:30
Neeraj Gupta
b12e6221d4 [mob][photos] Change button type to neutral 2024-04-29 13:46:18 +05:30
Manav Rathi
2d8bcd2530 Propagate 2024-04-29 11:59:08 +05:30
Manav Rathi
63841abd30 Envision 2024-04-29 11:44:43 +05:30
Neeraj Gupta
195ad01f14 [mob][photos] Add timeout for stop casting 2024-04-29 11:26:13 +05:30
Neeraj Gupta
7411125194 [mob][photos] Add support for closing session 2024-04-29 11:20:17 +05:30
Manav Rathi
e8687caba2 wip pending 2024-04-29 11:07:57 +05:30
Neeraj Gupta
4b97f832b2 [mob][photos] Finish auto-pair integration 2024-04-29 10:23:19 +05:30
Manav Rathi
aa111b2a24 Outline the plan 2024-04-29 10:12:53 +05:30
Manav Rathi
75c058fc4c This is where it comes from 2024-04-29 09:53:54 +05:30
Manav Rathi
7ce34c9b2e [web] Allow thumbnail cache to be optional (#1552)
See:
https://github.com/ente-io/ente/discussions/1449#discussioncomment-9255346

I'm not yet sure what was the case why it was not initialized, hoping to
get some logs for the error when initializing the cache to see how we
got to this state. But meanwhile, ensure that the code works even
without the cache.
2024-04-29 09:28:41 +05:30
Manav Rathi
0f46a25a5d [web] Allow thumbnail cache to be optional
See: https://github.com/ente-io/ente/discussions/1449#discussioncomment-9255346

I'm not yet sure what was the case why it was not initialized, hoping to get
some logs for the error when initializing the cache to see how we got to this
state. But meanwhile, ensure that the code works even without the cache.
2024-04-29 09:25:55 +05:30
Vishnu Mohandas
6f52df1fda Fixed typo (#1549)
## Description
Fixed a small typo
2024-04-28 22:36:20 +05:30
BifrostTenmei
d46dbf1e73 Fixed typo 2024-04-28 18:20:58 +02:00
Manav Rathi
24b64f9522 Verify assumption 2024-04-28 20:38:50 +05:30
Manav Rathi
13f0ff3af5 wip zip selection on web itself 2024-04-28 20:31:11 +05:30
Manav Rathi
a3d06c54af Prune 2024-04-28 17:38:03 +05:30
Manav Rathi
243d019e8b Potential implementation 2024-04-28 17:24:11 +05:30
Manav Rathi
e65307517d Scaffold 2024-04-28 17:08:22 +05:30
Manav Rathi
0e9507be34 Understand better 2024-04-28 16:47:03 +05:30
Manav Rathi
0202f8f38b More debug 2024-04-28 16:32:45 +05:30
Manav Rathi
42b0b6e9bb convert to mp4 2024-04-28 16:28:57 +05:30
Manav Rathi
7179b0a603 less line 2024-04-28 15:58:15 +05:30
Manav Rathi
69193e374c Wait for i18n loaded before accessing messages 2024-04-28 15:51:45 +05:30
Vishnu Mohandas
650a078fd7 Fixed typo (#1544)
## Description
Fixed a small typo
2024-04-28 13:32:03 +05:30
Manav Rathi
c61d58f6ea [web] Upload refactoring - Part x/x (happy paths working checkpoint) (#1547)
Checkpoint
- Both upload and export work now (in both the desktop and web apps)
- Uploads after individual selection and takeout uploads still need to
be fixed when in desktop
2024-04-28 13:31:58 +05:30
Manav Rathi
c90e9b7fd1 Add a debug inspector 2024-04-28 13:26:43 +05:30
Manav Rathi
b66972e884 Handle missing stacks 2024-04-28 12:48:00 +05:30
Manav Rathi
05b9f834cf ffmpeg wasm timings 2024-04-28 12:42:34 +05:30
Manav Rathi
e7a4e3e7c2 fix logger 2024-04-28 12:27:36 +05:30
Manav Rathi
85d0a72df3 Rework the stream handling 2024-04-28 11:32:23 +05:30
Manav Rathi
9a37141d29 Not yet sure how but desktop drag drops have the full path 2024-04-27 20:50:45 +05:30
Manav Rathi
7836562ff1 less noise 2024-04-27 20:21:54 +05:30
Manav Rathi
17275ed29d Inline 2024-04-27 18:03:09 +05:30
Manav Rathi
bb2ddec163 Inline
The zip-file tests are no longer directly usable, the way we read the files has
changed, these will have to be recreated in a new form.
2024-04-27 17:45:34 +05:30
BifrostTenmei
c2b55d4389 Fixed typo 2024-04-27 13:58:27 +02:00
Manav Rathi
6671a62c78 duh 2024-04-27 17:06:33 +05:30
Manav Rathi
536bcf1091 Add a fixed size block transformer
Surprisingly, this is not a primitive. Or maybe I didn't find it.

The highWaterMark-ing didn't work, that seems more of a recommendation than an
enforcement.
2024-04-27 17:00:01 +05:30
Manav Rathi
31a70674ff Revert "Read in 4 MB blocks"
This reverts commit db30d8d81e.
2024-04-27 16:49:22 +05:30
Prateek Sunal
17ad0a97d3 fix: disable privacy screen on debug mode 2024-04-27 16:13:09 +05:30
Prateek Sunal
adbb8f38c9 fix: encoding and decoding logic 2024-04-27 16:02:42 +05:30
Prateek Sunal
8a4229122e fix: use steam digits instead of hardcoding it 2024-04-27 15:45:50 +05:30
Prateek Sunal
e4ea377ee0 fix: use steam digits instead of hardcoding it everywhere 2024-04-27 15:44:58 +05:30
Prateek Sunal
e84b9da35e fix: typo and lint 2024-04-27 15:43:05 +05:30
Prateek Sunal
6cd624c90c fix: don't run tray window code on mobile 2024-04-27 15:43:05 +05:30
Prateek Sunal
1418741229 fix: treat steam host same as totp with 5 digits 2024-04-27 15:43:05 +05:30
Prateek Sunal
a22f38ca3b fix: add toasts for pin, update card ui, add pin svgs 2024-04-27 15:09:04 +05:30
Prateek Sunal
e26c817e18 fix: parsing of rawData and sorting while fetching codes 2024-04-27 13:32:01 +05:30
Prateek Sunal
38b0046885 fix: remove toString and update toExportFormat code 2024-04-27 13:22:35 +05:30
Prateek Sunal
5f921e701a fix: go back to otpauth instead of converting to json 2024-04-27 12:33:59 +05:30
Neeraj Gupta
4ce6fa790f [mob] Add method to close cast and keep track of active casts 2024-04-27 12:16:48 +05:30
Manav Rathi
db30d8d81e Read in 4 MB blocks
Refs:
- https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream
2024-04-26 18:48:33 +05:30
Manav Rathi
31608ab8fa Inline 2024-04-26 18:18:15 +05:30
Manav Rathi
e786bed078 Inline 2024-04-26 18:16:22 +05:30
Manav Rathi
3074bc108f Fix 2024-04-26 17:49:50 +05:30
Manav Rathi
8ba952c3b8 Remove unused 2024-04-26 17:48:10 +05:30
Manav Rathi
2724760d6c Remove NodeJS global 2024-04-26 17:47:08 +05:30
Manav Rathi
9f41539330 Enhance 2024-04-26 17:47:08 +05:30
Manav Rathi
1c59a36c73 Partially revert 699a12cc79 2024-04-26 16:11:19 +05:30
Manav Rathi
21ad409c61 Don't overwrite what net.fetch already added 2024-04-26 16:06:45 +05:30
Manav Rathi
faba29b422 console.log(Object.fromEntries(res.headers.entries())); 2024-04-26 15:58:47 +05:30
Prateek Sunal
5cc25c6ef7 fix: sort codes correctly based on pinning status 2024-04-26 15:23:05 +05:30
Prateek Sunal
b516bc8a52 feat: add pinning 2024-04-26 14:17:12 +05:30
Manav Rathi
88eb0d687e Fix log 2024-04-26 13:51:48 +05:30
Manav Rathi
cc94615823 fix 2024-04-26 13:46:44 +05:30
Manav Rathi
a6ee7ac2bd [web] Upload refactoring - Part x/x (+ checkpoint) (#1540)
The main web side refactoring is done, and uploads initiated from the
web are still going through correctly. Next up will be getting back to
the desktop side, and tie the loose ends and prune the remaining
references to the `ElectronFile` that can't be IPC-ed.
2024-04-26 12:37:35 +05:30
Manav Rathi
0a70451add Tweak log 2024-04-26 12:18:11 +05:30
Manav Rathi
87d3bdc717 Scan 2024-04-26 12:14:51 +05:30
Manav Rathi
fa0d1331a8 bye getUint8ArrayView 2024-04-26 11:10:07 +05:30
Manav Rathi
4a0bf42fe3 Peck 2024-04-26 11:07:03 +05:30
Manav Rathi
390f628557 Clone 2024-04-26 10:58:56 +05:30
Manav Rathi
b93638e354 type merge 2024-04-26 10:57:50 +05:30
Manav Rathi
b66d74c652 Get to FileWithCollection 2024-04-26 10:47:06 +05:30
Manav Rathi
070d9e1a62 fop 2024-04-26 10:20:37 +05:30
Manav Rathi
879f3389d1 Inner types 2024-04-26 10:17:52 +05:30
Manav Rathi
a7f5061eb6 And the next 2024-04-26 09:45:06 +05:30
Manav Rathi
f47732ff5e Type the next stage 2024-04-26 09:33:17 +05:30
Manav Rathi
eec61b0a13 Propagate niceness 2024-04-26 09:18:26 +05:30
Manav Rathi
9fa9d6d5dc Invert 2024-04-26 08:47:31 +05:30
Manav Rathi
19fd1b5ce4 Rename 2024-04-26 08:41:13 +05:30
Manav Rathi
16a07c79f4 Rename 2024-04-26 08:34:22 +05:30
Manav Rathi
c1103b656c [web] Upload refactoring - Part x/x (#1536) 2024-04-25 21:33:03 +05:30
Manav Rathi
8067d9b9b9 Start with a new copy each time
Otherwise all the map keys refer to the same object
2024-04-25 21:22:09 +05:30
Manav Rathi
1b93e9d1c1 Do it 2024-04-25 19:35:05 +05:30
Manav Rathi
2e3b86a2e9 Agenda 2024-04-25 19:22:05 +05:30
Neeraj Gupta
6d864a71a7 [web][cast] Close on sender disconnect (#1534)
## Description

## Tests
2024-04-25 18:17:19 +05:30
Neeraj Gupta
1dc8ac6023 [web][cast] Close on sender disconnect 2024-04-25 18:14:02 +05:30
Neeraj Gupta
dddbb959b5 [mob][photos] Refactor 2024-04-25 17:45:03 +05:30
Manav Rathi
38fe3f5300 Types 2024-04-25 16:54:49 +05:30
Manav Rathi
e90657ce5c Interim type 2024-04-25 16:35:45 +05:30
Neeraj Gupta
483cfd1f39 [mob][photos] Lint suggestions 2024-04-25 16:28:30 +05:30
Neeraj Gupta
864f5c1fd4 [mob][photos] Extract strings 2024-04-25 16:25:04 +05:30
Manav Rathi
c2c5267e9b Tinker 2024-04-25 16:19:47 +05:30
Manav Rathi
73292a5405 aic 2024-04-25 15:48:54 +05:30
Manav Rathi
ca0afc2f3a File sizes 2024-04-25 15:47:34 +05:30
Manav Rathi
ac9a272c70 Cache name 2024-04-25 15:33:44 +05:30
Manav Rathi
4ae4e42260 log.warn 2024-04-25 15:19:46 +05:30
Neeraj Gupta
9894f88654 [server] Cast changes (#1532)
## Description

- Add IP check before completing cast pair
- Rate limit register device/TV API
- Clean up older sessions after 7 days.

## Tests
2024-04-25 15:05:36 +05:30
Neeraj Gupta
32b5e8210e [web][cast] Remove debug logs and castDebugger (#1533)
## Description

## Tests
2024-04-25 15:03:19 +05:30
Neeraj Gupta
a243db032c [web][cast] Remove help qrcode 2024-04-25 15:00:25 +05:30
Neeraj Gupta
3f62357016 [web][cast] Remove debug logs and castDebugger 2024-04-25 14:59:02 +05:30
Manav Rathi
7086130129 Finalize uploader 2024-04-25 14:54:16 +05:30
Neeraj Gupta
94d0378e18 [server] Clean up old cast sessions 2024-04-25 14:43:25 +05:30
Manav Rathi
72b1df0b75 Rearrange 2024-04-25 14:41:48 +05:30
Manav Rathi
3ac81df561 Vids 2024-04-25 14:38:08 +05:30
Manav Rathi
c8542211b4 Images 2024-04-25 14:21:06 +05:30
Manav Rathi
eb4d83749f Hash 2024-04-25 14:08:03 +05:30
Neeraj Gupta
4694bf6b7e [server] Ratelimit add device code API for cast 2024-04-25 14:07:10 +05:30
Neeraj Gupta
8038583d5a [server] Restrict casting to same IP 2024-04-25 14:03:25 +05:30
Manav Rathi
0a09a915e9 Thread lastModifiedMs 2024-04-25 13:55:34 +05:30
Manav Rathi
6aa096d3d3 More 2024-04-25 13:46:10 +05:30
Manav Rathi
3c90a3438b Streamline 2024-04-25 13:21:38 +05:30
Neeraj Gupta
badd9263f4 [server] Add ip column 2024-04-25 13:14:37 +05:30
Neeraj Gupta
ef0873082a Fixed typo 2024-04-25 13:02:54 +05:30
Manav Rathi
c76d12f4a7 Document based on current understanding 2024-04-25 12:52:42 +05:30
Manav Rathi
c13812c31a Move to library 2024-04-25 12:46:21 +05:30
Neeraj Gupta
f777bdba1b [mob][photos] Extract strings 2024-04-25 12:44:46 +05:30
Manav Rathi
891ba97e0a Rearrange 2024-04-25 12:30:49 +05:30
Manav Rathi
0675b04f84 Inline 2024-04-25 12:21:29 +05:30
Manav Rathi
0603f8ffb9 Extract 2024-04-25 12:15:09 +05:30
Manav Rathi
79d26173a4 Inline 2024-04-25 12:07:14 +05:30
Neeraj Gupta
36dbda895c [mob][photos] Send pair req after getting receiver status 2024-04-25 11:50:49 +05:30
Neeraj Gupta
e903fbf9bc [mob][photos] Continue showing pair dialog in case of error 2024-04-25 11:50:02 +05:30
Manav Rathi
f5ef478a90 Propogate last modified time
It should've also been possible to use the regular Last-Modified HTTP header,
however that'd have caused a potential loss of precsion if I correctly
understand the string format that we'll need to use.

Refs:
- https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString
- https://nodejs.org/api/fs.html#class-fsstats
2024-04-25 11:46:04 +05:30
Manav Rathi
e8e53b2ca5 Prepare for inlining 2024-04-25 11:15:42 +05:30
Manav Rathi
420f52f78f Live photos too 2024-04-25 10:31:30 +05:30
Manav Rathi
476d8de72a Wrap 2024-04-25 10:16:16 +05:30
Manav Rathi
5324d805c6 Rejig type 2024-04-25 09:56:25 +05:30
Manav Rathi
2e7b12ad29 Agenda and rearrange 2024-04-25 09:21:18 +05:30
Manav Rathi
7f3d9690c0 exactType => extension 2024-04-24 22:02:46 +05:30
Manav Rathi
e03a0a09d4 lowercase extension 2024-04-24 21:28:30 +05:30
Manav Rathi
34d44f599d Cleanup 2024-04-24 21:12:56 +05:30
Manav Rathi
852fc7830f Document 2024-04-24 21:05:09 +05:30
Manav Rathi
5c07751c8c Rename 2024-04-24 20:59:30 +05:30
Manav Rathi
1106393045 Inline 2024-04-24 20:54:56 +05:30
Manav Rathi
d05ca58f57 Move to correct package 2024-04-24 20:46:36 +05:30
Manav Rathi
c684b5fd69 [web] Upload refactoring - Part x/x (#1531) 2024-04-24 18:51:43 +05:30
Manav Rathi
1447d4976f lint-fix and beautifuller 2024-04-24 18:48:44 +05:30
Manav Rathi
af79db90d0 Doesn't work for us yet
Current version throws
    Module build failed: UnhandledSchemeError: Reading from "node:buffer" is not handled by plugins (Unhandled scheme).
    Webpack supports "data:" and "file:" URIs by default.
    You may need an additional plugin to handle "node:" URIs.

See: https://github.com/sindresorhus/file-type/issues/502

There are ways around by using polyfills, e.g.
- https://stackoverflow.com/questions/76500464/issues-while-using-gradio-client-in-next-js/76522223#76522223
- https://github.com/vercel/next.js/discussions/33982

but since no functional changes in the detection that impact us have been made,
stay back at the old version for now.
2024-04-24 18:44:09 +05:30
Manav Rathi
38e18f29bd Update file-type dependency and move it to its correct package.json
Refs:
- https://github.com/sindresorhus/file-type/releases/tag/v17.0.0

Went through the release notes since v16 to check that none of the MIME types we
care about have changed.
2024-04-24 18:27:30 +05:30
Manav Rathi
f3c798148c type-detect 2024-04-24 18:06:52 +05:30
Manav Rathi
319fe0fb71 Rename 2024-04-24 16:21:58 +05:30
Manav Rathi
2a8417af1c Rename 2024-04-24 16:18:36 +05:30
Manav Rathi
81c729a405 Inline 2024-04-24 16:18:01 +05:30
Manav Rathi
6f6ade1901 Inline 2024-04-24 16:14:10 +05:30
Manav Rathi
2b82c61853 Inline 2024-04-24 16:08:57 +05:30
Manav Rathi
e217635a1b Remove linkage 2024-04-24 16:07:28 +05:30
Manav Rathi
105157c164 Shout less 2024-04-24 15:55:55 +05:30
Neeraj Gupta
a935f2e2cf [web][cast] Disable cast stop (#1529)
## Description

## Tests
2024-04-24 15:46:19 +05:30
Neeraj Gupta
a5dfc97035 [web][cast] disable cast stop 2024-04-24 15:41:18 +05:30
Neeraj Gupta
aced4bb5cf [mob][photos] Update cast selection dialog 2024-04-24 15:22:24 +05:30
Manav Rathi
c8fc007898 [web] Fix build (#1528) 2024-04-24 15:19:43 +05:30
Manav Rathi
e5545e9c80 Make tsc happy to allow builds to complete 2024-04-24 15:16:46 +05:30
Manav Rathi
e0975130b6 More context from Discord 2024-04-24 15:10:15 +05:30
Manav Rathi
cf576c07f7 [desktop] [web] Upload refactoring (#1527) 2024-04-24 14:59:20 +05:30
Manav Rathi
80802d44e3 Better log 2024-04-24 14:55:41 +05:30
Manav Rathi
f32a396b36 Fix video thumbnailing (the .jpeg extension is required) 2024-04-24 14:37:14 +05:30
Manav Rathi
5f146aa597 Fix 2024-04-24 13:45:56 +05:30
Manav Rathi
7dba4c0af4 Fix 2024-04-24 13:41:35 +05:30
Manav Rathi
a08df9a839 Clarification after asking in Discord 2024-04-24 13:36:10 +05:30
Neeraj Gupta
729e2adfd1 [mob] Use separate widget for auto-cast 2024-04-24 13:21:12 +05:30
Manav Rathi
9de8a3d40a Fixes 2024-04-24 13:19:37 +05:30
Manav Rathi
e919dfd09d Scope 2024-04-24 13:08:54 +05:30
Manav Rathi
c486919547 Reuse 2024-04-24 13:06:11 +05:30
Manav Rathi
0566d2ee93 Spruce 2024-04-24 13:01:53 +05:30
Manav Rathi
51a1c77720 Get to a mergeable state 2024-04-24 12:50:55 +05:30
Manav Rathi
d96f710d6d Prune 2024-04-24 12:35:27 +05:30
Manav Rathi
239688b7d8 Remove potentially dangerous wip forks 2024-04-24 12:27:33 +05:30
Manav Rathi
06dbf5fb06 Phasal types 2024-04-24 12:21:52 +05:30
Manav Rathi
58b1c4b489 Doodle 2024-04-24 11:49:58 +05:30
Manav Rathi
cb0b549027 Rename 2024-04-24 11:42:35 +05:30
Manav Rathi
00c0780de1 Reorder 2024-04-24 11:40:35 +05:30
Neeraj Gupta
bed14d8ee9 [mob][photos] Use cast Icon in appbar 2024-04-24 11:38:22 +05:30
Manav Rathi
feb59b00d2 Move 2024-04-24 11:36:34 +05:30
Manav Rathi
e490f194e7 Line 2024-04-24 11:31:16 +05:30
Manav Rathi
58d2670171 Prune 2024-04-24 11:29:54 +05:30
Manav Rathi
3b0433c4ab Reorder 2024-04-24 11:17:41 +05:30
Manav Rathi
bded3c6706 Prune 2024-04-24 11:14:34 +05:30
Vishnu Mohandas
0e8166eadd Favorite button (#1526)
## Description
Wanted to increase the tap area for the favorite button. Ended up fixing
some other iOS specific issues that were getting silently ignored
(related to home widget and update service).

## Tests
- [x] Tested in Simulator
2024-04-24 11:09:49 +05:30
Manav Rathi
5b928883a6 Tinker 2024-04-24 11:03:49 +05:30
vishnukvmd
b5cf67ca98 Update like button widget 2024-04-24 11:00:23 +05:30
vishnukvmd
0b212bf7a6 Move padding within to increase tap-able area 2024-04-24 11:00:18 +05:30
Manav Rathi
27185c333c Prune 2024-04-24 10:58:04 +05:30
Neeraj Gupta
1251a014b0 [mob][cast] Show choice to auto and manual pair 2024-04-24 10:57:28 +05:30
vishnukvmd
50b6d95ec2 Fix update checker for iOS 2024-04-24 10:54:37 +05:30
vishnukvmd
88e34683ee Don't check for widgets on iOS 2024-04-24 10:54:21 +05:30
vishnukvmd
21baf023cc Fix typo 2024-04-24 10:39:50 +05:30
Manav Rathi
88c2a52edf Spruce 2024-04-24 10:39:47 +05:30
Manav Rathi
2bee444078 Tinker 2024-04-24 10:33:05 +05:30
Manav Rathi
9103dadc6f Tinker 2024-04-24 10:13:03 +05:30
Manav Rathi
48bace50df Extract 2024-04-24 10:04:29 +05:30
Manav Rathi
56713325ed Spruce 2024-04-24 09:42:18 +05:30
Manav Rathi
0d0397124f Hoist state 2024-04-24 09:22:51 +05:30
Manav Rathi
0da46f3298 Shuffle 2024-04-23 21:07:40 +05:30
Manav Rathi
5befc53d8c Streamline 2024-04-23 20:54:57 +05:30
Manav Rathi
e1a3475faa Shorten chunk 2024-04-23 20:50:15 +05:30
Manav Rathi
86a102c47d Streamlined 2024-04-23 20:39:16 +05:30
Manav Rathi
c401b9a938 Log error 2024-04-23 20:33:06 +05:30
Manav Rathi
3c9ef294b0 Trim 2024-04-23 20:21:04 +05:30
Manav Rathi
2eef50a849 More 2024-04-23 20:20:14 +05:30
Manav Rathi
7940ef53b5 Route 2024-04-23 20:15:35 +05:30
Manav Rathi
c948b29729 Inline 2024-04-23 20:10:19 +05:30
Manav Rathi
6b55f3b2f1 Reduce use of uiservice 2024-04-23 19:50:49 +05:30
Manav Rathi
0ca4b06872 Trim logging 2024-04-23 19:46:21 +05:30
Manav Rathi
e81d3a0c3c Remove tracer 2024-04-23 18:56:15 +05:30
Manav Rathi
f96adddf54 Prune 2024-04-23 18:54:34 +05:30
Manav Rathi
190dc586a9 Prune 2024-04-23 18:47:48 +05:30
Manav Rathi
00c9d78ec9 Inline 2024-04-23 18:37:47 +05:30
Manav Rathi
2e222d9409 Remove derived state 2024-04-23 16:15:57 +05:30
Manav Rathi
c5ab1811fb Inline and skip 2024-04-23 16:08:19 +05:30
Neeraj Gupta
bd225ced04 [mob][cast] Return name and castDevice as record 2024-04-23 16:08:16 +05:30
Manav Rathi
5e5d66c2a2 Inline 2024-04-23 16:04:19 +05:30
Manav Rathi
c7e0986b12 Inline and reorder 2024-04-23 16:01:22 +05:30
Neeraj Gupta
89646ac469 [mob][cast] Refactor + add multiple cast plugin to gracefully handle fdroid 2024-04-23 15:57:17 +05:30
Manav Rathi
14427b6011 Remove unused 2024-04-23 15:57:09 +05:30
Manav Rathi
b80f567e74 Rearrange 2024-04-23 15:52:20 +05:30
Manav Rathi
3a93a7a956 Prune 2024-04-23 15:48:52 +05:30
Manav Rathi
91afe68111 Cluster 2024-04-23 15:43:59 +05:30
Manav Rathi
be2d8c45d0 ReadLivePhoto 2024-04-23 15:26:56 +05:30
Manav Rathi
7f9563ab9a Possible approach 2024-04-23 15:03:29 +05:30
Manav Rathi
308d8179b0 Rework 2024-04-23 14:52:16 +05:30
Neeraj Gupta
8fd330c304 Merge branch 'main' into cast 2024-04-23 14:35:37 +05:30
Manav Rathi
6ff41db939 Try another factoring 2024-04-23 14:16:41 +05:30
Neeraj Gupta
c55272c87e [mobile] Add feature flag plugin & use ente server to fetch flags. (#1524)
## Description

## Tests
2024-04-23 13:57:57 +05:30
Manav Rathi
6ca3eb55af Try another factoring 2024-04-23 13:49:09 +05:30
Neeraj Gupta
73f35c1a0c [mobile] Use passkey flag for showing passkey option 2024-04-23 13:38:55 +05:30
Neeraj Gupta
8937a896d1 [mob][photos] Improve log 2024-04-23 13:37:34 +05:30
Manav Rathi
abbfbf695f Split earlier 2024-04-23 13:13:25 +05:30
Manav Rathi
66c64d0c58 Let the caller decide 2024-04-23 13:07:27 +05:30
Manav Rathi
a286b11adb Checkpoint 2024-04-23 12:55:27 +05:30
Manav Rathi
e6e235490a Content-Length 2024-04-23 12:37:42 +05:30
Manav Rathi
cb0d25030d API 1 2024-04-23 12:10:46 +05:30
Manav Rathi
1d4efd738c Stream reader 2024-04-23 12:04:10 +05:30
Neeraj Gupta
9c87a64f92 [server] Add API to get feature flags + allow admin edit (#1518)
## Description

## Tests
2024-04-23 11:57:21 +05:30
Neeraj Gupta
cc49fdf126 [mobile] Remove old feature flag service 2024-04-23 11:55:16 +05:30
Neeraj Gupta
83075ea367 [mobile] Switch to feature flag plugin 2024-04-23 11:54:24 +05:30
Neeraj Gupta
74cdfdcb9e [mobile] Minor fixes in feature flag plugin 2024-04-23 11:40:51 +05:30
Manav Rathi
76be5e37d5 cp 2024-04-23 11:33:34 +05:30
Manav Rathi
1f5fbcae76 Checkpoint 2024-04-23 11:20:22 +05:30
Manav Rathi
4a12774a3c Impl 1 2024-04-23 11:07:10 +05:30
Manav Rathi
cd22400136 Agenda 2024-04-23 10:42:07 +05:30
Neeraj Gupta
40503d6ef2 [mobile]Whitelist domain ente.io as internal user 2024-04-23 10:32:53 +05:30
Manav Rathi
1f0c80cabc Refactor 1 2024-04-23 10:21:39 +05:30
Neeraj Gupta
41b151ce7b [plugin] Add ente_feature_flag plugin 2024-04-23 10:16:19 +05:30
Manav Rathi
7a0abf2268 Prepare a split 2024-04-23 09:52:13 +05:30
Vishnu Mohandas
16f4f38aa7 [auth] New translations (#1521)
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)
2024-04-23 07:52:47 +05:30
Vishnu Mohandas
7cd1d5a951 [mobile] New translations (#1520)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-04-23 07:52:34 +05:30
Vishnu Mohandas
37a9baa9cf [web] New translations (#1519)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-04-23 07:52:15 +05:30
Crowdin Bot
d9538c1a12 New Crowdin translations by GitHub Action 2024-04-23 02:04:57 +00:00
Crowdin Bot
96e5eae9dd New Crowdin translations by GitHub Action 2024-04-23 01:57:07 +00:00
Crowdin Bot
7e2ba7e5da New Crowdin translations by GitHub Action 2024-04-23 01:38:47 +00:00
Neeraj Gupta
5afc2de7bc [server] Add admin endpoint for updating feature flag 2024-04-22 17:43:14 +05:30
Neeraj Gupta
648806baa7 [server] Add endpoint to get user feature flags 2024-04-22 17:30:54 +05:30
Manav Rathi
3ab14d5949 Remove unnecessary flexibility 2024-04-22 17:20:21 +05:30
Manav Rathi
dfa50e8ed1 thumb 2024-04-22 17:14:21 +05:30
Neeraj Gupta
3fbf6674fe [server] Add API to return feature flags value 2024-04-22 16:57:00 +05:30
Manav Rathi
05cd0bcd2c input filename is not needed
tested with sips
2024-04-22 16:49:06 +05:30
Neeraj Gupta
5b4d66933e [server] Add req validation for remoteStore insertOrUpdate 2024-04-22 16:44:12 +05:30
Manav Rathi
4461775283 Desktop side 2024-04-22 16:32:04 +05:30
Manav Rathi
4750caf156 Blob 2024-04-22 16:12:03 +05:30
Manav Rathi
bb094743f3 Rework 2 2024-04-22 15:44:58 +05:30
Manav Rathi
1c9c6d849a Rework 1 2024-04-22 15:30:48 +05:30
Neeraj Gupta
7e5b63cdc0 [mob] Discard upload to deleted or others collection (#1516)
## Description
On server, certain uploads are getting rejected because the upload is
being made on a collection that's not owned by the user.
Still looking for the root cause where it's happening, this check during
upload ensures that the client is not repeatitively trying to upload the
file.

## Tests
2024-04-22 15:28:35 +05:30
Manav Rathi
9038ea7959 Dead-endish 2024-04-22 14:57:38 +05:30
Manav Rathi
875b92ea91 New interface 2024-04-22 14:39:48 +05:30
Manav Rathi
afca600a69 New abstraction 2024-04-22 14:04:49 +05:30
Manav Rathi
2a647e3ddb Dedup type 2024-04-22 12:00:41 +05:30
Manav Rathi
b1e9f863d7 Same 2024-04-22 11:49:59 +05:30
Manav Rathi
37f1a7b630 Mirror the desktop impl 2024-04-22 11:25:14 +05:30
Neeraj Gupta
206ab1114e [mob]Discard upload to deleted or others collection 2024-04-22 11:23:04 +05:30
Neeraj Gupta
da1d778eeb [mob][photos] Add hook to connect to cast device 2024-04-22 10:47:49 +05:30
Manav Rathi
24d3156a5b [web][desktop] Upload refactoring to get desktop watch to work again - Part 3/x (#1515) 2024-04-22 10:44:42 +05:30
Manav Rathi
ed6a72eb3c Fix npe on main
TypeError: Cannot read properties of undefined (reading 'put')
        at DownloadManagerImpl.downloadFile (webpack-internal:///./src/services/download/index.ts:176:84)
2024-04-22 10:38:06 +05:30
Manav Rathi
d0956642b7 Get it back to a mergable state 2024-04-22 10:28:12 +05:30
Neeraj Gupta
ba2ca95c5b [server] Fix another validation issue (#1514)
## Description

## Tests
Tested file create and file update locally
2024-04-22 10:18:52 +05:30
Neeraj Gupta
59ce8ea9bb [server] Fix another validation issue 2024-04-22 10:18:18 +05:30
Neeraj Gupta
9485d4d2d0 [server] Another fix in file update req validation (#1513)
## Description
Even collectionID is missing.

## Tests
2024-04-22 10:03:46 +05:30
Neeraj Gupta
b43e077a24 [server] Another fix in file update req validation 2024-04-22 09:53:48 +05:30
Neeraj Gupta
8d5a0317ec [server] Fix validation for fileUpdate (#1512)
## Description

## Tests
2024-04-22 09:42:26 +05:30
Neeraj Gupta
74360f3c84 [server] Fix validation for fileUpdate 2024-04-22 09:41:14 +05:30
Prateek Sunal
5769634a50 fix: use header instead of nonce in EncryptionResult 2024-04-21 18:47:51 +05:30
Prateek Sunal
8fe87cc1e0 fix: on every upload also update last attempted at 2024-04-21 18:20:33 +05:30
Prateek Sunal
3ea655f0d0 fix: missing ')' error sqflite 2024-04-21 18:16:30 +05:30
Neeraj Gupta
9cb030124b [web][cast] Minor fixes (#1507)
## Description

## Tests
2024-04-21 18:04:35 +05:30
Neeraj Gupta
8e5d5c4e41 [web][cast] Minor fixes 2024-04-21 17:59:57 +05:30
Neeraj Gupta
fdc7cf6ad8 [web] Fix cast build 2024-04-21 17:56:50 +05:30
Neeraj Gupta
19b71e2f2a [cast] Load debug script (#1505)
## Description

## Tests
2024-04-21 14:40:04 +05:30
Neeraj Gupta
a7a44140e5 [cast] Load debug script 2024-04-21 14:35:56 +05:30
Neeraj Gupta
53b98b09c1 [web] Cast: add additional logs (#1503)
## Description

## Tests
2024-04-21 14:18:57 +05:30
Neeraj Gupta
026647f192 cast: add additional logs 2024-04-21 14:14:36 +05:30
Neeraj Gupta
52a0aab7e9 [cast] Add additional console logs for debuging remote device (#1501)
## Description

## Tests
2024-04-21 12:11:17 +05:30
Neeraj Gupta
3486ef090c [cast] Add additional console logs for debuging remote device 2024-04-21 11:58:57 +05:30
Manav Rathi
31a19cb738 Desktop side 2024-04-21 11:29:58 +05:30
Manav Rathi
cfced851c6 Expectation 2024-04-21 10:26:17 +05:30
Manav Rathi
36ccd3b202 Remove log interceptors 2024-04-21 09:48:34 +05:30
Manav Rathi
e39194d993 How it was 2024-04-21 09:41:22 +05:30
Manav Rathi
1026974e23 Nomenclature 2024-04-21 09:14:47 +05:30
Manav Rathi
381bffabbf Inline 2024-04-21 09:11:39 +05:30
Manav Rathi
7ca6b31a4c Do not synchronously create heic workers on app start 2024-04-21 09:00:26 +05:30
Manav Rathi
0fe6fa72b6 Rename 2024-04-21 08:51:51 +05:30
Manav Rathi
462caec0ca Rename 2024-04-21 08:45:18 +05:30
Manav Rathi
d3390f13af Inline 2024-04-21 08:22:30 +05:30
Manav Rathi
2ebcde1cdf Rename 2024-04-21 08:21:40 +05:30
Manav Rathi
08e71a1718 Import what we need 2024-04-20 21:58:09 +05:30
Manav Rathi
feb8814ac1 Prune 2024-04-20 21:54:43 +05:30
Manav Rathi
30fe91efb9 Inline 2024-04-20 21:49:22 +05:30
Manav Rathi
2b945dc169 Fix typo 2024-04-20 21:25:03 +05:30
Manav Rathi
0dfaa15923 Tinker 2024-04-20 21:09:35 +05:30
Manav Rathi
d62f6077ce Inline 2024-04-20 21:03:05 +05:30
Manav Rathi
71cf2c30d7 Reuse 2024-04-20 20:54:40 +05:30
Manav Rathi
9285954e01 Use same constants 2024-04-20 20:50:44 +05:30
Manav Rathi
09a0872af7 Inline 2024-04-20 20:48:12 +05:30
Manav Rathi
dd2c58d7a2 Unabstract 2024-04-20 20:41:38 +05:30
Manav Rathi
c33b231885 Trace paths 2024-04-20 20:32:53 +05:30
Manav Rathi
8d6787b823 Inline 2024-04-20 20:06:06 +05:30
Manav Rathi
5992efd58a Document 2024-04-20 19:54:26 +05:30
Manav Rathi
9c63bccddb Mirrorize 2024-04-20 19:49:21 +05:30
Manav Rathi
f820be9652 Clean up entry point 2024-04-20 18:11:21 +05:30
Manav Rathi
a9d8b083f6 Shorten 2024-04-20 17:59:55 +05:30
Manav Rathi
c8f04f35ba Reduce concepts 2024-04-20 17:59:07 +05:30
Manav Rathi
19103f4961 To point of use 2024-04-20 17:47:00 +05:30
Manav Rathi
5710846125 Inline 2024-04-20 17:44:58 +05:30
Manav Rathi
e3586811dc Scope 2024-04-20 17:38:15 +05:30
Manav Rathi
e1faa965b8 Remove layer of abstraction 2024-04-20 17:33:54 +05:30
Neeraj Gupta
4a7d859539 [mob][photos] Restrict multipart upload to debug builds (#1500)
## Description

## Tests
2024-04-20 17:32:05 +05:30
Neeraj Gupta
733fe6b3d8 [mob][photos] Restrict multipart upload to debug builds 2024-04-20 17:31:42 +05:30
Manav Rathi
86929c5d2d gen => make 2024-04-20 17:16:55 +05:30
Manav Rathi
f1e530dfa1 Reorder to match 2024-04-20 17:15:41 +05:30
Manav Rathi
eed95811c5 JPEG + temp wip 2024-04-20 17:12:25 +05:30
Neeraj Gupta
92e253ff1b [mob][photos] Increase loading iconSize + reduce padding (#1499)
## Description


https://github.com/ente-io/ente/assets/254676/94f15baf-d350-4738-879e-ad163a1e4b45


## Tests
2024-04-20 17:10:32 +05:30
Neeraj Gupta
1cdca5c9ff [mob][photos] Increase loading iconSize + reduce padding 2024-04-20 17:07:53 +05:30
Manav Rathi
9bddd741a5 Better log 2024-04-20 16:35:52 +05:30
Manav Rathi
30464c87f4 Reuse util 2024-04-20 16:33:37 +05:30
Manav Rathi
4985ba8aac Comment 2024-04-20 16:22:54 +05:30
Neeraj Gupta
6f1714e9a2 [mob][photos] Bump version : 0.8.84+604 (#1498)
## Description

## Tests
2024-04-20 15:47:22 +05:30
Neeraj Gupta
b9c82fb427 [mob][photos] Bump version 0.8.84+604 2024-04-20 15:45:04 +05:30
Neeraj Gupta
04a381fa51 [mob][photos] Use 100 as batchSize for copy 2024-04-20 15:44:43 +05:30
Neeraj Gupta
3e5648dae4 [mob][photos][internal] Enable fav + add to album action for shared files (#1484)
## Description


https://github.com/ente-io/ente/assets/254676/7ec2f82a-d0d1-4dbe-8836-87d1ffd793f6


## Tests

- [x] Hide Shared Item on Home Page If user has copied it.
- [x] Keep the fav state on the UI
- [x] Client side hash based dedupe works for copied items. Items are
linked to existing item instead of uploading duplicate entries
2024-04-20 15:33:54 +05:30
Neeraj Gupta
5e2c6f84f1 [mob][photos] Use internal flag check 2024-04-20 15:28:22 +05:30
Neeraj Gupta
b7d002feef [server] Support for copying files owned by others (#1496)
## Description

## Tests
Tested as part of https://github.com/ente-io/ente/pull/1484
- Verified that the client was able to download and decrypt the metadata
- Verified that storage was going up.
2024-04-20 15:27:11 +05:30
Neeraj Gupta
72ddbbdf79 [mob][photos] Add assert to ensure copy is enabled for internal users 2024-04-20 15:21:26 +05:30
Vishnu Mohandas
076335ce5c [mob][photos] Fix build failing in release workflow (#1497)
## Description

Build was failing with this error
```
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':connectivity_plus:compileReleaseJavaWithJavac'.
> error: invalid source release: 17
```

## Tests

- [x] Ran workflow to verify it's completing.
2024-04-20 15:18:31 +05:30
ashilkn
b10e212e0f [mob] use flutter v3.19.3 2024-04-20 15:11:09 +05:30
ashilkn
ae2e740752 [mob] fix build error in github workflow for photos 2024-04-20 15:01:07 +05:30
Neeraj Gupta
d0621eea3e [server] Limit copying max 100 files in single req 2024-04-20 12:54:27 +05:30
Neeraj Gupta
cbdd116cea [server] Copy thumb and file in parallel 2024-04-20 12:49:28 +05:30
Neeraj Gupta
91620965b0 [server] Minor refactor 2024-04-20 12:37:35 +05:30
Neeraj Gupta
5a5e3d28cb [server] Copy files in parallel 2024-04-20 12:36:18 +05:30
Manav Rathi
52d830cd06 modulestate 2024-04-20 12:30:43 +05:30
Neeraj Gupta
bf738d9585 [server] Lint fix 2024-04-20 12:23:00 +05:30
Neeraj Gupta
ca7b03e945 [server] Fix incorrect pointer assignment in collection file map 2024-04-20 12:21:44 +05:30
Manav Rathi
14e4205feb Restructure 2024-04-20 12:16:58 +05:30
Manav Rathi
6337ffc203 Inline 2024-04-20 11:50:15 +05:30
Vishnu Mohandas
2160b4d7f9 Downgrade to Flutter v3.19.3 (#1495) 2024-04-20 11:33:31 +05:30
Ashil
a6e3d6de97 [mob][photos] Bump up to v0.8.83 (#1494) 2024-04-20 11:32:31 +05:30
Neeraj Gupta
c165b9ee9c [mob][photos] Lint 2024-04-20 11:31:09 +05:30
Neeraj Gupta
e2aae744be [mob][photos] Fix ownerID for copied items 2024-04-20 11:30:40 +05:30
vishnukvmd
f1e723a672 Downgrade to Flutter v3.19.3 2024-04-20 11:30:36 +05:30
Neeraj Gupta
9a34fdce05 [mob][photos] Enable add to option for shared photos for internal users 2024-04-20 11:30:20 +05:30
Vishnu Mohandas
200cab16c3 Setup GH action to auto-deploy Photos to the internal track (#1493) 2024-04-20 11:06:59 +05:30
vishnukvmd
a704251bdd Switch to manual workflow 2024-04-20 11:06:34 +05:30
vishnukvmd
38aca8a947 Setup GH action to auto-deploy Photos to the internal track 2024-04-20 10:59:49 +05:30
Manav Rathi
13542c1511 Document
Cite: https://github.com/electron/electron/issues/25640
2024-04-20 10:39:18 +05:30
Manav Rathi
7c1207fb9a Show dev tools option only in dev builds 2024-04-20 10:37:13 +05:30
Manav Rathi
d0b1ff5520 In band signalling 2024-04-20 10:17:51 +05:30
Manav Rathi
093b3a67cb Enum instead of error 2024-04-20 09:12:48 +05:30
Manav Rathi
926bc33c79 Use 2024-04-20 09:02:36 +05:30
Manav Rathi
46a53d5fdf Possibly 2024-04-20 08:47:02 +05:30
Manav Rathi
a8ae86cb43 genr 2024-04-20 08:11:14 +05:30
Manav Rathi
196090152c Remove an error that is never thrown 2024-04-19 21:39:44 +05:30
Manav Rathi
80a6fe16e7 timeouts 2024-04-19 21:34:35 +05:30
Manav Rathi
9cfdc4cae9 Look for next advancement points 2024-04-19 20:02:25 +05:30
Manav Rathi
766dd2d85d um finished 2024-04-19 19:50:27 +05:30
Manav Rathi
c034c5cc70 flatmap 2024-04-19 19:48:28 +05:30
Manav Rathi
bbe6dde4cb Inline 2024-04-19 19:40:12 +05:30
Manav Rathi
6fe8a72299 Spruce 2024-04-19 19:38:11 +05:30
Manav Rathi
a079035a43 Back in the watcher 2024-04-19 19:32:48 +05:30
Neeraj Gupta
fbf8b61891 [server] Fix query 2024-04-19 19:20:21 +05:30
Manav Rathi
afaf89ad1a Except the size 2024-04-19 19:00:25 +05:30
Ashil
8113b70441 [mob][photos] Remove code related to sqlite3 (#1490) 2024-04-19 18:11:52 +05:30
Ashil
c4c513a1d7 [mob][photos] Use sqlite_async instead of sqlite3 (#1489)
## Description

Using both `sqlite_async` and `sqlite3` for querying at the same time
was throwing this error:
`error: SqliteException(5): while executing, database is locked,
database is locked (code 5)`

So, have used `sqlite_async` everywhere.

## Tests

- [x] Tested all changes
2024-04-19 16:56:40 +05:30
Neeraj Gupta
fc5705dd7b [mob][photos] Add additional check for fileType 2024-04-19 16:46:42 +05:30
Neeraj Gupta
01822b760d [mob][photos] Dedupe using hash before copying 2024-04-19 16:45:29 +05:30
Manav Rathi
42c1bec044 JSON 2 2024-04-19 16:41:54 +05:30
Manav Rathi
505d376dc9 issa supertype 2024-04-19 16:27:46 +05:30
Manav Rathi
5dd21b2b38 Parallel 2024-04-19 16:25:58 +05:30
Manav Rathi
32ac31fd44 Start using it 2024-04-19 16:20:20 +05:30
Manav Rathi
d1069dcfbb Dig a gully on the side 2024-04-19 16:06:33 +05:30
Manav Rathi
bf3d04fc12 Deeper 2024-04-19 16:01:05 +05:30
Neeraj Gupta
02890a100b [mob][photos] Lint fix 2024-04-19 15:56:49 +05:30
Neeraj Gupta
f55fd36579 [mob][photos] Fix: Pass copy of EnteFile to avoid modification in original 2024-04-19 15:54:49 +05:30
Manav Rathi
de783b6158 Seep in paths 2024-04-19 15:54:42 +05:30
Neeraj Gupta
08040d9154 [mob][photos] Use loading indicator instead of blocking progress 2024-04-19 15:52:41 +05:30
Manav Rathi
814803edb4 [desktop] Watch related refactoring - Part 2/x (#1488)
Inline, mostly, in preparation for a subsequent refactoring.
2024-04-19 15:05:01 +05:30
Manav Rathi
41aeb63465 Fix lint issues
unrelated to this PR, come from https://github.com/ente-io/ente/pull/1479
2024-04-19 15:02:09 +05:30
Neeraj Gupta
564ca77a8b Merge remote-tracking branch 'origin/main' into mobile_save_a_copy 2024-04-19 14:57:19 +05:30
Neeraj Gupta
136f53b581 [mob][photos] Fix: Remove fav action on shared photos 2024-04-19 14:53:41 +05:30
Manav Rathi
82c365b2db Inline 2024-04-19 14:49:24 +05:30
Manav Rathi
5f87dce547 Inline 2024-04-19 14:47:44 +05:30
Manav Rathi
643d028ffc Inline 2024-04-19 14:44:29 +05:30
Manav Rathi
7ed6e729f5 Inline 2024-04-19 14:37:35 +05:30
Manav Rathi
2b35d586c1 Inline 2024-04-19 14:33:54 +05:30
Manav Rathi
292084c00d Inline 2024-04-19 14:32:09 +05:30
Ashil
937267ed72 [mob] perf: avoid unnecessary frame builds and computations when toggling full fullscreen when viewing a file (#1487) 2024-04-19 14:17:01 +05:30
Manav Rathi
0509aad4af Remove unused prop 2024-04-19 14:15:53 +05:30
Neeraj Gupta
3788fdda6f [mob][photos]Fix: Show fav icon on shared photos 2024-04-19 14:15:33 +05:30
Manav Rathi
f59ecdb8d8 Reword 2024-04-19 14:14:48 +05:30
Manav Rathi
2c46be6ded async 2024-04-19 13:46:09 +05:30
Neeraj Gupta
710f76ee40 Merge remote-tracking branch 'origin/main' into save_a_copy 2024-04-19 13:36:00 +05:30
Neeraj Gupta
7f879aaf57 [mob][photos] Hide incoming file from home screen is saved 2024-04-19 13:34:44 +05:30
Manav Rathi
967ef2e3ea [desktop] Watch refactoring to get it work with new IPC (#1486) 2024-04-19 13:09:40 +05:30
Manav Rathi
760be52dc5 Fix schema 2024-04-19 12:59:10 +05:30
Manav Rathi
5be1b07c71 Remove noise on logout 2024-04-19 12:50:57 +05:30
Manav Rathi
57d09c08d4 Only load when in electron 2024-04-19 12:47:16 +05:30
Manav Rathi
00173bae1e Fix type 2024-04-19 12:46:10 +05:30
Manav Rathi
1b3c38d91f Lintable 2024-04-19 12:40:19 +05:30
Neeraj Gupta
398e66a0eb [mob][photos] Lint fix 2024-04-19 12:36:28 +05:30
Manav Rathi
f3e1abfaa1 Tie loops 2024-04-19 12:34:09 +05:30
Neeraj Gupta
04df64de05 [server] Improvate req validation on file createOrUpdate (#1485)
## Description
During the testing of copyFile functionality, I ran into issues where
files were created without all attributes (esp File EncryptedKey & Nonce
for thumbnail and file decryption).
This change

## Tests
Tested regular file upload, unable to test update as Photos app on
simulator is not showing save option. I don't expect it to break.
2024-04-19 12:11:57 +05:30
Manav Rathi
9d7f056883 Some shape 2024-04-19 12:03:00 +05:30
Neeraj Gupta
816fa330de [server] Implement support for copying object 2024-04-19 11:26:14 +05:30
Neeraj Gupta
7631eb3b12 [mob][photos] Enable fav incoming files 2024-04-19 11:22:47 +05:30
Manav Rathi
f24fd98bc3 Sculpt 2024-04-19 11:22:02 +05:30
Manav Rathi
722cc74e64 Club 2024-04-19 10:27:18 +05:30
Manav Rathi
0e9703f770 Event listeners 2024-04-19 10:16:46 +05:30
Manav Rathi
500bac0b32 Prune happens on the node side now 2024-04-19 09:26:28 +05:30
Neeraj Gupta
b8ad320931 [mob] Add assertion check 2024-04-19 09:18:55 +05:30
Ashil
dac0ddf41c [mob][photos] Migrate use of WillPopScope to PopScope (#1473)
## Description

[Documentation followed for the
migration](https://docs.flutter.dev/release/breaking-changes/android-predictive-back)

## Tests

- [x] Tested screens in which migration wasn't straight forward
(HomeScreen)
2024-04-19 09:16:42 +05:30
Neeraj Gupta
d430616ccb [mobile] New translations (#1482)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-04-19 09:16:24 +05:30
Manav Rathi
46ac8968e8 Localize global state 2024-04-19 09:12:45 +05:30
Vishnu Mohandas
c7eb9a6084 [mob][photos] Migrate from sqflite (#1483)
## Tests

- [x] Tested all changes
2024-04-19 09:07:24 +05:30
Laurens Priem
7500758857 [desktop] Better blur detection service (#1479)
## Description

Improve blur detection that better handles noise in background of faces

## Tests

Manually verified the blur detection scores are identical to those on
mobile
2024-04-19 09:03:06 +05:30
Crowdin Bot
340f0b75cf New Crowdin translations by GitHub Action 2024-04-19 01:56:15 +00:00
Prateek Sunal
dca63ca487 fix: get collection key correctly 2024-04-18 23:00:08 +05:30
Prateek Sunal
336a6c53fc fix: use existing encryption path on multipart entry found 2024-04-18 22:42:32 +05:30
Prateek Sunal
f65e8359a7 fix: use random path, add date based fields, use collection id to encrypt file key 2024-04-18 22:38:10 +05:30
Neeraj Gupta
420cec01d2 [mob][photos] Rename method 2024-04-18 22:30:02 +05:30
Manav Rathi
b49cb9dec2 Update add/rm 2024-04-18 21:32:15 +05:30
Manav Rathi
a9ccec6398 The remaining 2 2024-04-18 21:26:05 +05:30
Prateek Sunal
901e50b69b chore: move multipart size out of constants 2024-04-18 21:15:21 +05:30
Manav Rathi
76053c4029 impl 2024-04-18 21:07:00 +05:30
laurenspriem
31aa46ead2 [desktop] Better blur detection service 2024-04-18 20:41:28 +05:30
Manav Rathi
ca36b3c750 Migrate 2024-04-18 19:59:06 +05:30
Manav Rathi
14285b66ae Seep deeper 2024-04-18 18:45:02 +05:30
Manav Rathi
4455bb9595 API on electron side 2024-04-18 18:31:38 +05:30
ashilkn
23801f8fa6 Merge branch 'main' into migrate_from_sqflite 2024-04-18 17:15:08 +05:30
ashilkn
b238ba2c62 [mob] Migrate from sqflite (2) 2024-04-18 17:14:22 +05:30
ashilkn
eb68a6c293 [mob] Migrate from sqflite 2024-04-18 16:23:43 +05:30
Manav Rathi
275b763648 Work towards it 2024-04-18 16:18:01 +05:30
Vishnu Mohandas
a49448b9cc [mob][photos] pref: use sqlite_async for getFilesCreatedWithinDurations (#1478) 2024-04-18 16:07:27 +05:30
Manav Rathi
8a728abffe Envision the API 2024-04-18 15:31:22 +05:30
Neeraj Gupta
b18e5cb036 [mob][photos] Minor refactor 2024-04-18 15:11:15 +05:30
Manav Rathi
c90cd258ec Deduce 2024-04-18 15:05:39 +05:30
Manav Rathi
9d4a76a642 Compose 2024-04-18 14:46:13 +05:30
Manav Rathi
9e35469bdc Emulate basename and dirname 2024-04-18 14:42:52 +05:30
Prateek Sunal
46b7dba9e3 fix: don't re-encrypt file, add nonce field, upload parts logic 2024-04-18 14:37:07 +05:30
Manav Rathi
89162bc45f [desktop] Fix the imagemagick path when running in dev build (#1477)
"resources" needs to be "build"
2024-04-18 14:24:02 +05:30
Manav Rathi
6cc705d682 [desktop] Fix the imagemagick path when running in dev build
"resources" needs to be "build"
2024-04-18 14:22:53 +05:30
Manav Rathi
4fd9ecba56 Abstraction 2024-04-18 14:13:55 +05:30
Manav Rathi
e9e17e6ea3 Handle dotfiles 2024-04-18 14:10:43 +05:30
Manav Rathi
ca29c81394 Don't need much 2024-04-18 13:59:00 +05:30
Manav Rathi
9c336a38c0 path mainp 2024-04-18 13:47:46 +05:30
Manav Rathi
518d573add Improve docs 2024-04-18 13:23:20 +05:30
Manav Rathi
230a8a72ab Use correct types
Not sure if this is expected or some misconfiguration in our case, but the types
generated by electron-store do not have the correct TypeScript types.
2024-04-18 13:19:21 +05:30
Manav Rathi
4852a87ae0 Load after attaching listeners 2024-04-18 13:11:45 +05:30
Manav Rathi
f19b90d0ae Imbibe 2024-04-18 13:04:19 +05:30
Manav Rathi
28c1c45325 Tinker 2024-04-18 12:58:11 +05:30
Manav Rathi
eb587a313a Tighten 2024-04-18 12:55:16 +05:30
Manav Rathi
532824b3d5 Spruce types 2024-04-18 12:53:47 +05:30
Manav Rathi
9e093493eb Implement new 2024-04-18 12:44:07 +05:30
Manav Rathi
0668490f8a Desktop side 2024-04-18 12:29:41 +05:30
Manav Rathi
04f32d64f1 Unclass 2024-04-18 12:00:01 +05:30
Manav Rathi
4d80dc3af9 Interface for pending uploads 2024-04-18 11:51:14 +05:30
ashilkn
e87ae499eb [mob] pref: use sqlite_async for getFilesCreatedWithinDurations 2024-04-18 10:59:22 +05:30
Manav Rathi
73cadcd36b Remove layer 2024-04-18 10:57:13 +05:30
Manav Rathi
278df2aae8 Rearrange and simplify
The auto launcher migration already rolled out months ago, except for rare cases
it is safe to remove (impact of non-migration is not critical too).
2024-04-18 10:54:37 +05:30
Manav Rathi
775dbaf10d Remove unused keys store 2024-04-18 10:16:22 +05:30
Manav Rathi
dedc2f8585 wip 2024-04-18 09:23:03 +05:30
Vishnu Mohandas
f1c878f462 Fix typos 2024-04-18 08:34:45 +05:30
Manav Rathi
7bf5c0ad5c Continue refactoring 2024-04-17 21:51:17 +05:30
Manav Rathi
cdc45e9fcc Remove old types 2024-04-17 20:56:58 +05:30
Manav Rathi
acec41f526 More renaming - wip 2024-04-17 20:56:00 +05:30
Manav Rathi
ca5b98b8d2 Enum to type - wip 2024-04-17 20:32:21 +05:30
Manav Rathi
739c541f5d Terminology 2024-04-17 19:44:39 +05:30
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
Neeraj Gupta
c124cde471 [server] Add basic scaffold for copying files 2024-04-17 15:43:48 +05:30
Neeraj Gupta
aabb884828 [server] Add validation logic for file copy 2024-04-17 15:19:20 +05:30
Manav Rathi
2051ccee46 List files alternate 2024-04-17 14:48:03 +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
626321b6d1 [web] Create package for sharing code between photos and cast (#1470) 2024-04-17 12:42:14 +05:30
Manav Rathi
75e07353be Thank you tsc 2024-04-17 12:38:52 +05:30
Manav Rathi
df483b0755 lint 2024-04-17 12:37:18 +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
27a2b087c7 Elaborate 2024-04-17 12:01:54 +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
Neeraj Gupta
e9bc465353 [server] Add request object for copying files 2024-04-17 11:40:37 +05:30
Manav Rathi
3172104578 Start using @/media's version 2024-04-17 10:08:08 +05:30
Manav Rathi
4b9446a9b0 Create a package to share code between photos and cast 2024-04-17 09:47:28 +05:30
Prateek Sunal
4942724423 fix: better classes and enums 2024-04-16 23:55:36 +05:30
Prateek Sunal
9a810e1cd6 fix: old files 2024-04-16 21:58:58 +05:30
Prateek Sunal
c29beab8d6 Merge remote-tracking branch 'origin/main' into mobile-resumable 2024-04-16 21:57:00 +05:30
Prateek Sunal
6efedfdd28 Merge branch 'mobile-resumable' of https://github.com/ente-io/ente into mobile-resumable 2024-04-16 21:44:29 +05:30
Manav Rathi
486044ad51 [cast] Fix live photo handling, precache (#1465)
- Fix live photo cast (previously these were not being rendered because
of an incorrect conditional)
- Precache

There is still an initial delay where the missing thumbnail is shown on
switching to the next image on first load. But anyways, these are
improvements, can tackle that later.
2024-04-16 21:06:30 +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
bb9c384a52 [desktop] Fix watch related IPC - Part 1/x (#1463) 2024-04-16 18:45:38 +05:30
Ashil
45942f7931 [mob][photos] Search field fixes (#1464)
## Description

See commits.
2024-04-16 17:49:28 +05:30
Manav Rathi
f775890af7 Rename on the renderer side 2024-04-16 16:35:30 +05:30
Manav Rathi
1fea509793 Rename the type on the electron side 2024-04-16 16:29:22 +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
Neeraj Gupta
f645fff31c [mob][photos] Add hook to show cast devices 2024-04-16 15:38:41 +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
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
Neeraj Gupta
db95de8829 [mob][photos] Add cast pkg dependency 2024-04-16 09:55:01 +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
Neeraj Gupta
09a9410ba9 [mob][photos] Mark methods private 2024-04-15 14:42:58 +05:30
Neeraj Gupta
5e32752ba4 [mob][photos] Move multlipart uploader in separate service 2024-04-15 14:40:06 +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
Neeraj Gupta
30d562ed1a [mob][photos] Fix upload clearTable 2024-04-15 12:49:58 +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
Neeraj Gupta
8185fca7c6 Merge branch 'main' into mobile-resumable 2024-04-15 12:18:18 +05:30
Manav Rathi
73ef03a5d9 Move read/write whole files into fs 2024-04-15 12:17:33 +05:30
Neeraj Gupta
6cfa176566 Merge branch 'main' into mobile-resumable 2024-04-15 12:12:37 +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
Manav Rathi
cc323905d5 Another 2024-04-14 19:33:49 +05:30
Manav Rathi
fca4b2aca6 Use also for the image 2024-04-14 19:29:22 +05:30
Manav Rathi
c4ac5e39a2 Refactor 2024-04-14 19:25:01 +05:30
Manav Rathi
28574e516d [desktop] Fix export related IPC - Part 3/x (#1439) 2024-04-14 19:04:38 +05:30
Manav Rathi
1232c74b8b [web] Fix CSS alignment issue on gallery page (#1438)
## Description
Ran ente.io locally on PC and found a CSS-alignment issue on the
`http://localhost:3000/gallery` page.
The alignment issue was found when it was locally hosted and found when
'/gallery' was in an empty state.
The line - "Welcome to" followed by the image of 'ente' was not aligned.
It was fixed by adding the following line `vertical-align: middle;` to
the styled component.

> Please find below images showing the off-alignment and the rectified
image.

> Thank you ! to the team for considering

## Tests
### Before
![Screenshot 2024-04-14
115356](https://github.com/ente-io/ente/assets/82031202/d733a8b3-702f-41df-9480-9692db6b8e86)
### After
![Screenshot 2024-04-14
115433](https://github.com/ente-io/ente/assets/82031202/0c5acc8e-0107-4b00-b7e0-d26a4369ed19)
2024-04-14 19:01:44 +05:30
Manav Rathi
22f221d481 Extract 2024-04-14 18:36:36 +05:30
Manav Rathi
f5a4830a5a Remove unnecessary check
e.g. macOS node shell

    > await fs.rename("/tmp/foo/bar/quxx.txt", "/tmp/foo/a.txt")
    [Error: ENOENT: no such file or directory, rename '/tmp/foo/bar/quxx.txt' -> '/tmp/foo/a.txt']
2024-04-14 18:28:10 +05:30
Manav Rathi
eb64a00ed2 Remove unnecessary checks
It is simpler for us to parallel the rm command than our bespoke variant.
2024-04-14 18:22:46 +05:30
Manav Rathi
59b9e3e586 Move into fs 2024-04-14 18:12:19 +05:30
Manav Rathi
0f1c2fa1cd Remove unnecessary check
Mentioned in rmdir docs

Tested on macOS with a node shell

    > await fs.rmdir("/tmp/foo/bar/baz")
    Uncaught [Error: ENOTEMPTY: directory not empty, rmdir '/tmp/foo/bar/baz']
2024-04-14 18:06:49 +05:30
Manav Rathi
fb5ae3a2ac Remove unnecessary check
rmdir docs already mention it'll only work on folders

Also tested on macOS with a node shell

    > await fs.rmdir("/tmp/foo/bar/baz/quxx.txt")
    Uncaught [Error: ENOTDIR: not a directory, rmdir '/tmp/foo/bar/baz/quxx.txt'] {
2024-04-14 17:55:40 +05:30
Prateek Sunal
5da8ee7e27 fix: segregate logic for launch from widget 2024-04-14 14:35:10 +05:30
daviddeepan
2a9060bd39 css-alignment-issue-page-gallery 2024-04-14 13:53:00 +05:30
Vishnu Mohandas
db50d121e6 Update index.md 2024-04-14 11:30:47 +05:30
Manav Rathi
adb37f38e4 Shorten 2024-04-14 10:31:45 +05:30
Manav Rathi
14922b65f8 Inline 2024-04-14 10:28:27 +05:30
Manav Rathi
7438c3301e Move mkdirIfNeeded into fs 2024-04-14 10:25:28 +05:30
Manav Rathi
0e8678715a Remove layer 2024-04-14 10:03:16 +05:30
Manav Rathi
3824ebe91a Remove exportService indirection 2024-04-14 09:57:58 +05:30
Manav Rathi
ea34eebfc9 Remove implicit electron dependency 2024-04-14 09:53:18 +05:30
Manav Rathi
eeb1952585 Use 2024-04-14 09:30:51 +05:30
Manav Rathi
72dd47fa7b Audit rename 2024-04-14 09:27:52 +05:30
Manav Rathi
b977f982dd [desktop] Fix export related IPC - Part 2/x (#1436) 2024-04-13 21:56:46 +05:30
Manav Rathi
38db03c3a0 Start giving it more power 2024-04-13 21:50:56 +05:30
Manav Rathi
e268b9204e Inline 2024-04-13 21:46:34 +05:30
Manav Rathi
acd50bb172 Inline 2024-04-13 21:39:36 +05:30
Manav Rathi
28d559bd84 Hoist 2024-04-13 21:35:58 +05:30
Manav Rathi
e87c7ed108 Inline 2024-04-13 21:34:37 +05:30
Manav Rathi
67a81f8d86 Dedup 2024-04-13 21:31:36 +05:30
Manav Rathi
30f147ec5b Update jsdoc 2024-04-13 21:26:00 +05:30
Manav Rathi
6829d0bf15 Remove unused 2024-04-13 21:24:52 +05:30
Manav Rathi
d03b265eb4 Captialize
We've been capitalizing the name at places where we can. This name is only used
when creating new exports, and shouldn't effect existing export, so it is safe
to change.
2024-04-13 21:21:48 +05:30
Manav Rathi
297ca09535 Refactor and extract 2024-04-13 21:20:20 +05:30
Manav Rathi
82bbb1c6dd Cleanup and document 2024-04-13 21:06:47 +05:30
Prateek Sunal
f04e45a461 fix: logic of await/async 2024-04-13 21:00:21 +05:30
Manav Rathi
4fbfbf0aa0 Cleanup 2024-04-13 20:53:35 +05:30
Manav Rathi
56d04066ea sfn 2024-04-13 20:38:29 +05:30
Manav Rathi
7838f7484d Make explicit 2024-04-13 20:29:17 +05:30
Prateek Sunal
45ab6d92b5 fix: also route to photo on click of widget 2024-04-13 20:22:34 +05:30
ashilkn
c3de396d21 [mob] bump up version to v0.8.80 2024-04-13 20:06:32 +05:30
ashilkn
f2987a82f2 [mob] merge main 2024-04-13 20:05:38 +05:30
ashilkn
81c47bc768 [mob] UI changes to segmented button in stripe and store pages 2024-04-13 20:01:28 +05:30
ashilkn
6c75b35472 [mob] pub upgrade 2024-04-13 19:45:06 +05:30
ashilkn
d35fe3ff00 [mob] Use SegmentedButton instead of broken(UI) toggle in app store subscription page 2024-04-13 19:44:22 +05:30
ashilkn
10cb54ddc1 [mob] Use SegmentedButton instead of broken(UI) toggle in stripe subscription page 2024-04-13 19:43:19 +05:30
ashilkn
0348e43e81 Merge branch 'material_3_ui_issues_fix' into update_deps_and_flutter 2024-04-13 19:08:01 +05:30
Manav Rathi
a6887e3037 [web] Add ESLint to enforce HMR how vite likes it (#1433)
Configuration changes taken from the vite starter (react-ts).

From the [vite
docs](https://github.com/vitejs/vite-plugin-react-swc?tab=readme-ov-file#consistent-components-exports)

> For React refresh to work correctly, your file should only export
React components.
>
> If an incompatible change in exports is found, the module will be
invalidated. To make it easier to export simple constants alongside your
component the module is only invalidated when their value changes.

While we're not currently using vite for our main apps, it would be
worthwhile to write code in a way that a future migration to it is
painless if needed.

About the what and the why, the Gatsby docs are illuminating:

https://www.gatsbyjs.com/docs/reference/local-development/fast-refresh/#how-it-works

Some other refs:
- https://github.com/ArnaudBarre/eslint-plugin-react-refresh
-
https://github.com/vitejs/vite/discussions/4577#discussioncomment-1161007
- https://github.com/vitejs/vite-plugin-react/issues/34
2024-04-13 18:57:24 +05:30
Manav Rathi
c7757cb08e Prune more stale overrides 2024-04-13 18:54:15 +05:30
Manav Rathi
ce642e12c1 Remove stale disables 2024-04-13 18:50:12 +05:30
Manav Rathi
e07559c8da Fix oopsie 2024-04-13 18:41:47 +05:30
Manav Rathi
64231c73f1 [web] Add ESLint to enforce HMR how vite likes it
Configuration changes taken from the vite starter (react-ts).

From the vite docs (https://github.com/vitejs/vite-plugin-react-swc?tab=readme-ov-file#consistent-components-exports)

> For React refresh to work correctly, your file should only export React components.
>
> If an incompatible change in exports is found, the module will be invalidated.
> To make it easier to export simple constants alongside your component the module
> is only invalidated when their value changes.

While we're not currently using vite for our main apps, it would be worthwhile
to write code in a way that a future migration to it is painless if needed.

About the what and the why, the Gatsby docs are illuminating:
https://www.gatsbyjs.com/docs/reference/local-development/fast-refresh/#how-it-works

Some other refs:
- https://github.com/ArnaudBarre/eslint-plugin-react-refresh
- https://github.com/vitejs/vite/discussions/4577#discussioncomment-1161007
- https://github.com/vitejs/vite-plugin-react/issues/34
2024-04-13 18:38:24 +05:30
Manav Rathi
27fb43837b [desktop] Fix export related IPC - Part 1/x (#1432) 2024-04-13 18:31:36 +05:30
Manav Rathi
4f764dc77c Consolidate constants 2024-04-13 18:27:40 +05:30
Manav Rathi
63a2ca7606 Fix lint 2024-04-13 18:24:57 +05:30
Manav Rathi
eb995f4354 Split 2024-04-13 18:20:40 +05:30
Manav Rathi
37cb2aaaf9 Refactor 2024-04-13 18:09:32 +05:30
Neeraj Gupta
4c93033522 [mob] Upgrade sqflite_async 2024-04-13 18:08:57 +05:30
Neeraj Gupta
ab70908980 Merge branch 'update_deps_and_flutter' of https://github.com/ente-io/auth into update_deps_and_flutter 2024-04-13 18:07:44 +05:30
ashilkn
a3f102c183 [mob] Use custom toggle widget to remove UI issues after migrating to material 3 2024-04-13 18:07:01 +05:30
Neeraj Gupta
2feee2cc5e [mob][photos] Bump flutter version in README and github workflow 2024-04-13 17:58:41 +05:30
Neeraj Gupta
c183531e8b Switch to older version of share_plus 2024-04-13 17:53:06 +05:30
Neeraj Gupta
9522854685 Flutter gradle plugin changes 2024-04-13 17:52:49 +05:30
Neeraj Gupta
d864acafa3 [mob] Upgrade to flutter 3.19.5 2024-04-13 17:52:35 +05:30
ashilkn
75dd7c3e48 [mob] make function private 2024-04-13 17:15:13 +05:30
ashilkn
2c0148d661 [mob] fix UI of toggle widget on iOS 2024-04-13 17:11:04 +05:30
Manav Rathi
1ffa905f99 Inline 2 2024-04-13 17:00:50 +05:30
Manav Rathi
07fa5cb83d Inline 2 2024-04-13 16:59:47 +05:30
Manav Rathi
c90ba63aad Inline 1 2024-04-13 16:57:04 +05:30
Manav Rathi
284d7920b3 Inline 2 2024-04-13 16:54:26 +05:30
Manav Rathi
ca114a467d Inline 1 2024-04-13 16:50:23 +05:30
ashilkn
372ced2502 [mob] fix colour of loading dialog 2024-04-13 16:48:36 +05:30
Manav Rathi
f7e961e86b Inline 2024-04-13 16:44:55 +05:30
Vishnu Mohandas
e72003c199 [mob][photos] Prepare for release v0.8.79 (#1430)
![v0 8 79
changelog](https://github.com/ente-io/ente/assets/77285023/f55a544a-9d10-467c-b23f-bd57f9a2efe4)
2024-04-13 15:09:12 +05:30
ashilkn
1a8ec9fb4c [mob] minor change to change log 2024-04-13 15:02:43 +05:30
Prateek Sunal
1ce6edf626 fix: add internal user config 2024-04-13 14:17:54 +05:30
Prateek Sunal
70bf917f32 Merge remote-tracking branch 'origin/multipart' into mobile-resumable 2024-04-13 14:10:00 +05:30
Prateek Sunal
17507cce68 fix: remove unused constants 2024-04-13 14:09:52 +05:30
Prateek Sunal
590fd8441b Merge remote-tracking branch 'origin/multipart' into mobile-resumable 2024-04-13 14:07:56 +05:30
Prateek Sunal
51d02177ad chore: bump dependencies 2024-04-13 14:07:20 +05:30
Prateek Sunal
0a06ee1f55 chore: lint fix 2024-04-13 14:04:06 +05:30
Prateek Sunal
564ca440e7 fix: remove unwanted line 2024-04-13 14:03:54 +05:30
Prateek Sunal
fa68ef5f59 fix: string 2024-04-13 14:02:49 +05:30
Prateek Sunal
3f99bb5511 fix: notification permission error 2024-04-13 14:02:49 +05:30
Prateek Sunal
769d2c9bd7 fix: integration test readd 2024-04-13 14:02:49 +05:30
Prateek Sunal
ea38997ff9 feat: add status, fix xml parsing 2024-04-13 14:02:49 +05:30
Prateek Sunal
7495a0e388 fix: uploader logic 2024-04-13 14:02:49 +05:30
Prateek Sunal
262c68a59d fix: add end to file stream 2024-04-13 14:02:49 +05:30
Prateek Sunal
5fa2b34f35 fix: update database logic 2024-04-13 14:02:49 +05:30
Prateek Sunal
3a8b737968 fix: add file key in table 2024-04-13 14:02:49 +05:30
Prateek Sunal
5e3805b7bb fix: upload status to table 2024-04-13 14:02:49 +05:30
Prateek Sunal
a4f89c0337 fix: add support for inital resumable 2024-04-13 14:02:48 +05:30
Prateek Sunal
de06c8f38b fix: use better way to remove quotes 2024-04-13 14:02:29 +05:30
Prateek Sunal
780ec7f9d6 fix: generalize xml parser logic 2024-04-13 14:02:29 +05:30
Prateek Sunal
2b9db5cbfb fix: only multipart when count is greater than 1 2024-04-13 14:02:29 +05:30
Prateek Sunal
baeac73339 fix: complete url xml 2024-04-13 14:02:29 +05:30
Prateek Sunal
69394fc8a6 fix: separate xml parser util 2024-04-13 14:02:29 +05:30
Prateek Sunal
99d84821c7 feat: add multipart upload support 2024-04-13 14:02:29 +05:30
ashilkn
8fa18e1ffe [mob] update change log 2024-04-13 13:37:03 +05:30
ashilkn
703ba5ad9b [mob] bump up to v0.8.79 2024-04-13 13:22:38 +05:30
Manav Rathi
ba5383789a [desktop] Add an OPFS based cache (#1429)
See the extensive documentation in `blob-cache.ts` for the why and the
how. Done basic sanity testing for normal flows, the beta ML flows still
need to be tested.
2024-04-13 13:19:37 +05:30
Manav Rathi
7deb0dca8e Fix lint 2024-04-13 13:17:42 +05:30
Manav Rathi
f2d3ec74a1 Granular migration 2024-04-13 13:12:16 +05:30
Manav Rathi
0f3b28a425 Revert "Recreate ML db"
This partially reverts commit 95a0e80c5b.
2024-04-13 12:56:21 +05:30
Manav Rathi
95a0e80c5b Recreate ML db 2024-04-13 12:46:48 +05:30
ashilkn
04e45b7908 fix: call updateEmail after initState to avoid runtime exception
updateEmail uses getEnteColorScheme() which adds an inherited widget as dependency to the widget. Adding an inherited widget as dependency before init state is completed throws an exception
2024-04-13 12:42:55 +05:30
Neeraj Gupta
555a960def [auth] Potential fix for keyboard popup not working while focusing on… (#1428)
… search

## Description

## Tests
2024-04-13 12:15:49 +05:30
Neeraj Gupta
949a304078 [auth] Potential fix for keyboard popup not working while focusing on search 2024-04-13 12:03:29 +05:30
Manav Rathi
b50f8a8212 Promise 2024-04-13 10:35:20 +05:30
Manav Rathi
edd9c94d73 URL => id, which is what it is 2024-04-13 10:32:40 +05:30
Manav Rathi
d0dc8b1320 Dedup 2024-04-13 10:22:24 +05:30
Manav Rathi
c0d95edac8 Inline 2 2024-04-13 10:19:16 +05:30
Manav Rathi
f7ba28d1fb Inline 1 2024-04-13 10:17:58 +05:30
Manav Rathi
eef9bf1f26 Inline 2024-04-13 10:16:08 +05:30
Manav Rathi
75e693186a Inline 2024-04-13 10:14:35 +05:30
Manav Rathi
02abe24213 Detect ML search status 2024-04-13 10:00:22 +05:30
Manav Rathi
5082124aa5 Cleanup 2024-04-13 09:44:06 +05:30
Manav Rathi
997c74d064 res2 2024-04-13 09:39:29 +05:30
Manav Rathi
9cf57c847e Rely on global uncaught handler to log 2024-04-13 09:34:49 +05:30
Manav Rathi
9aaf6098b7 Use new APIs for file 2024-04-13 09:08:13 +05:30
Manav Rathi
4055f02a1d Cleaner 2024-04-13 08:52:37 +05:30
Manav Rathi
b32c13fe31 thumb2 2024-04-13 08:48:39 +05:30
Manav Rathi
c52fd4383c Nicer delete 2024-04-13 08:43:01 +05:30
Manav Rathi
a86cdb1f1e Interface 2024-04-13 08:40:08 +05:30
Manav Rathi
999f7e45c9 Remove unused param 2024-04-13 08:34:57 +05:30
Manav Rathi
e8b779745d put2 2024-04-13 08:33:13 +05:30
Manav Rathi
f2aee30f7c get 2024-04-13 08:18:11 +05:30
Manav Rathi
db96a0eb1b get 2024-04-13 08:12:38 +05:30
Manav Rathi
6d1f8b4728 Blobs it is 2024-04-13 08:04:43 +05:30
Manav Rathi
acedbdbe7d Note 2024-04-13 07:42:24 +05:30
Manav Rathi
6a3f4baed3 Enhance 2024-04-13 07:30:32 +05:30
Manav Rathi
6cd795e29c Create alternate code path 2024-04-13 07:19:28 +05:30
Manav Rathi
b5096b02da Remove unused knob
Ref:
- https://www.typescriptlang.org/docs/handbook/2/classes.html#parameter-properties
2024-04-13 06:56:46 +05:30
Manav Rathi
3499e47c88 Tweak 2024-04-13 06:47:43 +05:30
Manav Rathi
5ff01c40d8 poc implementation 2024-04-12 21:29:05 +05:30
Manav Rathi
295c0aa82e Splinter 2024-04-12 21:12:37 +05:30
Manav Rathi
871a0e83cf Fix 2024-04-12 20:59:15 +05:30
Manav Rathi
a56cf55ffa Remove indirection 2024-04-12 20:58:00 +05:30
Manav Rathi
b056cf7f56 Move to newer shared package 2024-04-12 20:55:07 +05:30
Manav Rathi
a2a8be3b19 Scaffold the split 2024-04-12 20:52:33 +05:30
Manav Rathi
41472eb87d Document and structure more 2024-04-12 20:24:48 +05:30
Manav Rathi
c691ad2ac1 Document the plan 2024-04-12 20:11:44 +05:30
Manav Rathi
36f9ca2004 Remove unused param 2024-04-12 19:53:23 +05:30
Manav Rathi
ce869be158 [docs] Add a web-app deployment guide (#1427) 2024-04-12 19:41:12 +05:30
Manav Rathi
29e7653f38 [docs] Add a web-app deployment guide 2024-04-12 19:40:16 +05:30
Manav Rathi
65c7cd2c05 [web] Various changes, moving towards fixing desktop caching (#1424)
The overall aim was to get the caching layer trimmed down to a point
where we can plug in OPFS into it for desktop. This PR doesn't have that
specific change, but it's just me gradually changing things, working
towards that.
2024-04-12 16:28:59 +05:30
Manav Rathi
b061b618e7 Tweaks 2024-04-12 16:16:02 +05:30
Manav Rathi
55632fff64 Use new method 2024-04-12 16:11:34 +05:30
Manav Rathi
401f879424 Consolidate 2024-04-12 16:08:36 +05:30
Manav Rathi
b36175a779 user 2024-04-12 15:40:24 +05:30
Manav Rathi
158186290c Inline 2024-04-12 15:03:53 +05:30
Manav Rathi
15b601b0ff Inline and prune 2024-04-12 14:53:11 +05:30
Manav Rathi
c83dc87d5d Inline the factory 2024-04-12 14:45:03 +05:30
Manav Rathi
495ff99874 Replace enum with TS type 2024-04-12 14:41:33 +05:30
Manav Rathi
cd3ff6f878 Delete is not needed outside 2024-04-12 14:32:50 +05:30
Manav Rathi
b447dedf83 Cache limit is usused 2024-04-12 14:26:41 +05:30
Manav Rathi
bdadc839e0 Remove firefox specific workaround
In a quick (but possibly incomplete) test I wasn't able to reproduce this in an
incognito window. Throwing the error from here has a potential for breaking
things though, I'll try to verify this as I go through the flows individually.
2024-04-12 14:23:56 +05:30
Manav Rathi
02763e3be4 Kill the renderer when we quit the app 2024-04-12 14:05:10 +05:30
Manav Rathi
8045bd1e5a Rename and prune 2024-04-12 14:01:53 +05:30
Manav Rathi
d1d9cd9518 Document 2024-04-12 13:48:16 +05:30
ashilkn
8137825693 fix: explicitly add fill colour for textFields with filled flag set to true for it to remain the same as before using material 3 2024-04-12 13:38:47 +05:30
Manav Rathi
39912d9b35 Remove unused code 2024-04-12 13:25:48 +05:30
Manav Rathi
a80ed32bc3 [web] New translations (#1419)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-04-12 13:20:52 +05:30
Neeraj Gupta
a9072d7dcb [server] Add todo 2024-04-12 13:16:55 +05:30
github-actions[bot]
c50013350b [mobile] New translations (#1420)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-04-12 12:08:27 +05:30
Manav Rathi
b4a896846c [docs] Add a FAQ for album sharing on self hosted instances (#1422) 2024-04-12 11:31:51 +05:30
Manav Rathi
3e9bbacd2f [docs] Add a FAQ for album sharing on self hosted instances 2024-04-12 11:30:35 +05:30
Manav Rathi
cfec6ca52e Enable the Chromium sandbox 2024-04-12 10:39:00 +05:30
Manav Rathi
98c3e43b70 Inline 2024-04-12 10:28:23 +05:30
Manav Rathi
87905a39f8 Dedup 2024-04-12 10:22:04 +05:30
Manav Rathi
a71ca93696 Inline 2024-04-12 10:15:08 +05:30
Manav Rathi
e651e9d9c7 Inline 2024-04-12 10:11:38 +05:30
Manav Rathi
664cf2157b Reword 2024-04-12 10:07:03 +05:30
Manav Rathi
aace18aba0 Inline and rename 2024-04-12 09:51:08 +05:30
Manav Rathi
4d867898f7 Remove the sharedarraybuffer flag
From my understanding, this was needed for the wasm FFMPEG, which we are no
longer using when running as the desktop app.
2024-04-12 09:43:52 +05:30
Manav Rathi
9c786da73b Tweak 2024-04-12 09:38:38 +05:30
Crowdin Bot
ac534cf163 New Crowdin translations by GitHub Action 2024-04-12 01:37:37 +00:00
Manav Rathi
7fa9e924eb Consolidate 2024-04-11 20:57:54 +05:30
Neeraj Gupta
997debf924 [mob] Minor fixes for semantic search (#1412)
## Description
Fixes two issues
- [x] If remote embedding fetch fails, don't queue backfill for files.
- [x] Fix infinite search loader when user quickly typing search term on
the search screen.

## Tests
2024-04-11 18:07:29 +05:30
Manav Rathi
df41133924 [desktop] Enable ONNX Face ML (#1413)
Indexing + PUT embeddings works now, but most other things are still
WIP.
2024-04-11 16:40:36 +05:30
Manav Rathi
61143c9c62 Cleanup 2024-04-11 16:36:56 +05:30
Manav Rathi
33c84f7a08 Prevent undefined errors 2024-04-11 16:27:27 +05:30
Manav Rathi
320db9f8b7 Fix the putEmbeddings API calls for now 2024-04-11 16:22:38 +05:30
Manav Rathi
e58e96091f Ignore (expected) errors when trying to cache face crops 2024-04-11 16:15:08 +05:30
Neeraj Gupta
de96f108c2 [mob] Clean up + rethrow remote fetch error 2024-04-11 15:40:31 +05:30
Manav Rathi
ef4462553c Fix incorrect typecheck that fails on undefined 2024-04-11 15:35:25 +05:30
Neeraj Gupta
ff4e64819b [mob] Clean up code 2024-04-11 15:31:11 +05:30
Neeraj Gupta
1cc188dd9c [mob][clip] Simplify semantic search + fix infinite search loader 2024-04-11 15:27:22 +05:30
Manav Rathi
ff66a2f44c The ML code runs in workers 2024-04-11 15:27:02 +05:30
Manav Rathi
33e3265db6 Migration for existing configs 2024-04-11 15:21:21 +05:30
Manav Rathi
f5bf776848 lint 2024-04-11 15:06:03 +05:30
Manav Rathi
52727f2255 Also move the embedding 2024-04-11 15:04:18 +05:30
Manav Rathi
9ff4989d81 Cleanup 2024-04-11 14:44:00 +05:30
Manav Rathi
a1d6ef43b4 Roundtrip 2024-04-11 14:37:44 +05:30
Manav Rathi
41f7b30ca0 Wire together 2024-04-11 14:22:52 +05:30
Neeraj Gupta
b8417d1fcc [mob] Skip backfill if remote fetch fails 2024-04-11 14:09:31 +05:30
Manav Rathi
a88f551b6a WIP IPC API 2024-04-11 13:58:52 +05:30
Manav Rathi
2bb9e77e34 Remove unused code 2024-04-11 13:46:34 +05:30
Neeraj Gupta
0fa29b3d7c [mob] iOS build changes 2024-04-11 13:46:26 +05:30
Manav Rathi
7bf8912dbc Duplicate for now 2024-04-11 13:45:02 +05:30
Manav Rathi
2b6047a979 Split 2024-04-11 13:40:35 +05:30
Manav Rathi
d3eb85be8d Split 2024-04-11 13:17:56 +05:30
Manav Rathi
bbdbad5891 [web] Remove tensorflow, and then some (#1411)
Remove all ML code that is not in the immediate release path. We will
resurrect if/when we reintroduce object and text detection, for now we
prune in an attempt to get the face detection release out to completion.
2024-04-11 12:48:47 +05:30
Manav Rathi
6d769773cc tsc 2024-04-11 12:42:18 +05:30
Manav Rathi
d0ffb83d90 Restore 2024-04-11 12:40:49 +05:30
Manav Rathi
6091ad9cfd Remove search UI integration 2024-04-11 12:36:37 +05:30
Manav Rathi
4fff855070 lint-fix 2024-04-11 12:31:42 +05:30
Manav Rathi
e52d17dcfc Last tf 2024-04-11 12:30:07 +05:30
Manav Rathi
485a1e0be4 Remove unused code that required tensorflow 2024-04-11 12:29:06 +05:30
Manav Rathi
da5edc610f Remove more tf 2024-04-11 12:24:03 +05:30
Manav Rathi
1f8ebc0bca Inline 2024-04-11 12:22:09 +05:30
Manav Rathi
e57e44c139 Inline 2024-04-11 12:14:59 +05:30
Manav Rathi
6ba5852876 Prune 2024-04-11 12:10:02 +05:30
Manav Rathi
38e9e901f6 Inline 2024-04-11 12:06:50 +05:30
Manav Rathi
79a975a281 Remove various unused util methods 2024-04-11 12:05:09 +05:30
Manav Rathi
ce566f522d Prune 2024-04-11 11:59:36 +05:30
Manav Rathi
d2e7925c63 Prune 2024-04-11 11:47:07 +05:30
Manav Rathi
006ea085fe Prune 2024-04-11 11:43:05 +05:30
Manav Rathi
03df858dcc Remove ssdMobileNetV2 2024-04-11 11:23:23 +05:30
Manav Rathi
da3b58661a Remove blazeface 2024-04-11 11:21:19 +05:30
Manav Rathi
e6905577c6 Remove blazeface-back 2024-04-11 11:17:15 +05:30
Manav Rathi
e7902c5d83 Remove more tf 2024-04-11 11:15:15 +05:30
Manav Rathi
3182d67ca1 Remove tf utils 2024-04-11 11:13:52 +05:30
Manav Rathi
1ad5cb83f9 Remove object detection related code 2024-04-11 11:09:32 +05:30
Neeraj Gupta
830483ca68 [server] Remove existing scheduledDelete entries if account is recovered 2024-04-11 11:03:57 +05:30
Manav Rathi
24a4c73351 [server] Reduce noise from error logs (#1409)
## Description

## Tests
2024-04-11 10:56:00 +05:30
Neeraj Gupta
02e8861e96 [server] Remove entry from data cleanup on account recovery 2024-04-11 10:54:38 +05:30
Neeraj Gupta
339d728774 [server] Handle no user err gracefully 2024-04-11 10:29:39 +05:30
Neeraj Gupta
fa195af971 [server]Change log level to warning 2024-04-11 10:26:19 +05:30
Neeraj Gupta
ed69de9875 [server]Log invalid password at warn level 2024-04-11 10:21:56 +05:30
Manav Rathi
6079ebbc05 [docs] Enteception (#1408)
Add FAQ about storing Ente 2FA in Ente Auth.
2024-04-11 09:28:16 +05:30
Manav Rathi
17f84398b7 Enteception 2024-04-11 09:26:45 +05:30
Manav Rathi
26c528f359 yarn pretty 2024-04-11 09:03:51 +05:30
Manav Rathi
b6e1c4d3da Inline 2024-04-10 21:36:43 +05:30
Manav Rathi
0ee416c91b git rm -r apps/photos/public/js/{tesseract,tfjs,tflite} 2024-04-10 21:32:22 +05:30
Manav Rathi
3e8d88caf2 git rm -r apps/photos/public/models 2024-04-10 21:31:06 +05:30
Manav Rathi
52342a23cb Remove tensorflow packages
yarn workspace photos remove "@tensorflow-models/coco-ssd" "@tensorflow/tfjs-backend-cpu" "@tensorflow/tfjs-backend-webgl" "@tensorflow/tfjs-converter" "@tensorflow/tfjs-core" "@tensorflow/tfjs-tflite"
2024-04-10 21:29:23 +05:30
Manav Rathi
f6c47138e1 Addedfaq-v1 (#1404) 2024-04-10 21:13:51 +05:30
Manav Rathi
549ad77ac6 [desktop] Various improvements (#1407)
- Restore macOS icon
- Remove unnecessary require
- Spruce dependencies docs
- Use standard import for jpeg-js
- Rearrange files
- Import onnxruntime with TypeScript types
2024-04-10 21:13:01 +05:30
Manav Rathi
500022d4b9 Import onnxruntime with TypeScript types
Refs:
- https://github.com/microsoft/onnxruntime/issues/17979
2024-04-10 21:01:30 +05:30
Manav Rathi
2da9565dcb Rearrange files 2024-04-10 20:44:52 +05:30
Manav Rathi
8f8d93d11e Use standard import for jpeg-js 2024-04-10 20:36:46 +05:30
Manav Rathi
008b6d5186 Spruce dependencies docs 2024-04-10 20:36:46 +05:30
Manav Rathi
d913cbeae5 Remove unnecessary require 2024-04-10 20:32:32 +05:30
Manav Rathi
11451efffd Restore macOS icon
git checkout 42679bc9daa4108681683079f4cb1f2832f4578c~ -- build/icon.icns
2024-04-10 20:32:32 +05:30
Manav Rathi
66c06c7601 [desktop] Build ARM64 variant of Windows (#1405)
Fixes https://github.com/ente-io/ente/issues/1374

A customer reported that the app fails to run on Windows ARM. The error
is coming when trying to load ONNX.

ONNX runtime supports Windows ARM, e.g. see
-
https://www.jsdelivr.com/package/npm/onnxruntime-node?tab=files&path=bin%2Fnapi-v3%2Fwin32
- https://github.com/microsoft/onnxruntime/issues/18078

The issue then seems to be that we're not actually building for Windows
ARM. I'm not sure about this (don't have a Windows ARM machine at hand),
but my theory is that since we don't ask Electron Builder to build for
win arm64, it doesn't copy the corresponding ONNX binary into the
generated bundle.

Other refs:
- https://www.electron.build/cli.html
2024-04-10 19:34:35 +05:30
Manav Rathi
ecf40a70cf [desktop] Build ARM64 variant of Windows
Fixes https://github.com/ente-io/ente/issues/1374

A customer reported that the app fails to run on Windows ARM. The error is
coming when trying to load ONNX.

ONNX runtime supports Windows ARM, e.g. see
- https://www.jsdelivr.com/package/npm/onnxruntime-node?tab=files&path=bin%2Fnapi-v3%2Fwin32
- https://github.com/microsoft/onnxruntime/issues/18078

The issue then seems to be that we're not actually building for Windows ARM. I'm
not sure about this (don't have a Windows ARM machine at hand), but my theory is
that since we don't ask Electron Builder to build for win arm64, it doesn't copy
the corresponding ONNX binary into the generated bundle.

Other refs:
- https://www.electron.build/cli.html
2024-04-10 19:33:37 +05:30
ashilkn
6607fce144 fix not building on iOS 2024-04-10 18:13:27 +05:30
ashilkn
a67da8102d fix breaking change 2024-04-10 18:12:42 +05:30
Manav Rathi
4a69e9260c [web] Import the scaffolding to sync face embeddings from web_face_v2 (#1402)
This PR cherry picks Neeraj's ML related changes from the web_face_v2
branch.

Similar to https://github.com/ente-io/ente/pull/1399, this gets us one
step closer to integrating ONNX-YOLO with our desktop app. But it is not
currently in a usable state (The web app's functionality remains
untouched).
2024-04-10 16:53:48 +05:30
ashilkn
0e9db0828f pub upgrade changes 2024-04-10 16:51:28 +05:30
ashilkn
e3bb6a29d0 Resolve merge conflicts and merge main 2024-04-10 16:43:10 +05:30
Manav Rathi
18937581a5 Lint fixes 2024-04-10 16:41:26 +05:30
Neeraj Gupta
eefac7fd01 [web] Import the scaffolding to sync face embeddings from web_face_v2
This PR cherry picks Neeraj's ML related changes from the web_face_v2 branch.

Similar to https://github.com/ente-io/ente/pull/1399, this gets us one step
closer to integrating ONNX-YOLO with our desktop app. But it is not currently in
a usable state (The web app's functionality remains untouched).
2024-04-10 16:38:12 +05:30
Manav Rathi
334fd61ea3 [desktop] Code tweaks (#1401)
- Remove top level wrapper
- Document the tray icon
- Update to the new product name where possible
2024-04-10 16:30:54 +05:30
Ashil
3542c8eeff [Mobile][Photos] Bump up version to 0.8.78 (#1400) 2024-04-10 16:10:54 +05:30
Manav Rathi
c73c674ee4 Update to the new product name where possible
(without breaking auto-updates)
2024-04-10 16:07:25 +05:30
Manav Rathi
e57e6845a5 Product name 2024-04-10 16:06:04 +05:30
Manav Rathi
3123caea92 Document the tray icon 2024-04-10 16:05:52 +05:30
Manav Rathi
4e3cce51de Inline 2024-04-10 15:59:57 +05:30
Manav Rathi
127bb9988f Remove top level wrapper 2024-04-10 15:55:58 +05:30
Manav Rathi
6fc82ff062 [web] Import ONNX-YOLO face changes from the web_face branch (#1399)
Laurens has made the relevant changes to get ONNX-YOLO face detection
working in a manner where the generated embeddings are the same as what
get generated by the corresponding ML stack in the mobile client.

This PR cherry picks his ML related changes from the branch he was
working in, but leaves out the surrounding scaffolding (We cannot merge
that branch directly because it relies on wasm that we don't need and
don't want to commit to main).

At this point this functionality is correct but not usable - the next
step will be to tie this to the ONNX runtime that we already have on the
Node.js layer of our desktop app.

**Tests**

- yarn dev + smoke test
- yarn build + smoke test
- yarn lint
2024-04-10 15:36:03 +05:30
Manav Rathi
45d22d5863 Undo concurrency change 2024-04-10 15:34:21 +05:30
Vishnu Mohandas
b8be65862f Use sqlite async for fetching files for gallery (#1397)
## Description

- Migrated from `sqflite` to `sqlite_async` when fetching files for
gallery (Home gallery, Collections page, Archive page & Add photos sheet
gallery ). This has made gallery load significantly faster and has
gotten rid of logs like `NativeAlloc concurrent copying GC freed
392872(19MB) AllocSpace objects, 139(4024KB) LOS objects, 38% free,
38MB/62MB, paused 2.868ms,93us total 324.898ms`. The initial load(100
files) and final load completes instantaneously even before the user
starts interacting with the app which has gotten rid of the jank which
was present before on the final load.
- In the 'Add Photos sheet', it takes time for the gallery to load when
using `sqflite` and images are rendered after this delay. After
migrating to `sqlite_async`, since the gallery loads instantly and
images are rendered right after, the animation of the bottom sheet
coming up became a bit janky. To make it smooth, have added a delay to
load gallery only after the bottom sheet is up fully.
 

## Tests
- [x] Did basic testing to make sure the migrations are working fine.
2024-04-10 15:34:06 +05:30
ashilkn
5879f5ed06 Merge branch 'main' into use_sqlite_async_for_fetching_files_for_gallery 2024-04-10 15:24:23 +05:30
Manav Rathi
71e839e9c4 Remove unused minFaceSize 2024-04-10 14:52:23 +05:30
laurenspriem
3eb95bd822 Import ONNX-YOLO face changes from the web_face branch
Laurens has made the relevant changes to get ONNX-YOLO face detection working in
a manner where the generated embeddings are the same as what get generated by
the corresponding ML stack in the mobile client.

This commit cherry picks his ML related changes from the branch he was working
in, but leaves out the surrounding scaffolding (We cannot merge that branch
directly because it relies on wasm that we don't need and don't want to commit
to main).

At this point this functionality is correct but not usable - the next step will
be to tie this to the ONNX runtime that we already have on the Node.js layer of
our desktop app.
2024-04-10 14:41:59 +05:30
Manav Rathi
03176911ee [web] [desktop] Refactoring IPC (#1398)
- IPC cleanup and refactoring
- Log on unhandled errors and promise rejections
2024-04-10 14:08:07 +05:30
Manav Rathi
6ec4cc7c89 Log unhandled errors and promise rejections in the desktop app
Test code:

    setTimeout(() => testFunctionSync(), 5000);
    setTimeout(
        () => testFunction().then(() => console.log("done testFunction")),
        10000,
    );

    const testFunctionSync = () => {
        console.log("sleeping not");
        throw new Error("Handle me");
    };

    const testFunction = async () => {
        console.log("sleeping");
        await fs.mkdir("/tmp/foo", { recursive: true });
        console.log("woke up");
        throw new Error("Handle me");
    };
2024-04-10 13:35:04 +05:30
Manav Rathi
5eda8fd464 Log in other apps too 2024-04-10 13:09:14 +05:30
Manav Rathi
e0fe018f34 Log on unhandled errors and promise rejections
Test code:

    useEffect(() => {
        setTimeout(() => testFunctionSync(), 5000);
    }, []);

    useEffect(() => {
        testFunction();
    }, []);

    const testFunctionSync = () => {
        console.log("sleeping not");
        // sleep(2000);
        console.log("woke up not");
        throw new Error("Handle me");
    };

    const testFunction = async () => {
        console.log("sleeping");
        sleep(2000);
        console.log("woke up");
        throw new Error("Handle me");
    };

Refs:
- https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event
- https://github.com/megahertz/electron-log/blob/master/src/renderer/lib/RendererErrorHandler.js
2024-04-10 13:05:00 +05:30
Manav Rathi
af79f4f0c9 Audit app update functions 2024-04-10 12:32:43 +05:30
ashilkn
d07c4f4d1d Remove code used for debugging/testing 2024-04-10 12:29:01 +05:30
ashilkn
7759d6dcc9 Call super.initState() first in override of initState() in Gallery Widget 2024-04-10 11:47:54 +05:30
ashilkn
af7b533016 Add a delay before gallery loads in 'add photos sheet' to make opening of the bottom sheet jank free 2024-04-10 11:38:30 +05:30
Manav Rathi
3c7277a0b1 onMainWindowFocus 2024-04-10 11:16:21 +05:30
ashilkn
b9b623e3f7 fix: query in getAllLocalAndUploadedFiles doesn't work if limit is null 2024-04-10 11:11:39 +05:30
Manav Rathi
170aef9b30 Rename 2024-04-10 11:06:18 +05:30
Manav Rathi
8bcf77b7f7 IPC keys 2024-04-10 11:03:36 +05:30
Manav Rathi
18606b2358 IPC cleanup 2024-04-10 10:18:06 +05:30
Manav Rathi
ea18608727 [web] Fix SSR build (#1396)
Fixes the following error on the nightly build

Error: Attempting to assert globalThis.electron in a non-electron
context
at r
(/home/runner/work/ente/ente/web/apps/photos/.next/server/chunks/676.js:1:25418)
        ...

    > Build error occurred
    Error: Failed to collect page data for /gallery
at
/home/runner/work/ente/ente/web/node_modules/next/dist/build/utils.js:1258:15
{
      type: 'Error'
    }
2024-04-10 09:55:28 +05:30
Manav Rathi
d828bcb071 [web] Fix SSR build
Fixes the following error on the nightly build

    Error: Attempting to assert globalThis.electron in a non-electron context
        at r (/home/runner/work/ente/ente/web/apps/photos/.next/server/chunks/676.js:1:25418)
        ...

    > Build error occurred
    Error: Failed to collect page data for /gallery
        at /home/runner/work/ente/ente/web/node_modules/next/dist/build/utils.js:1258:15 {
      type: 'Error'
    }
2024-04-10 09:53:30 +05:30
Manav Rathi
f893f12f26 [infra] Limit the maximum size of the nginx stdout logs (#1395)
nginx logs to stdout, which is captured by docker and put into a file at
`/var/lib/docker/containers/<nginx-cont-id>/<id>-json.log`

By default, the size of this file is unbounded. Add a maximum limit of 1
GB to this.

References:
- https://docs.docker.com/config/containers/logging/local/
-
https://stackoverflow.com/questions/31829587/docker-container-logs-taking-all-my-disk-space
2024-04-10 09:41:05 +05:30
Manav Rathi
e2c894f87f [infra] Limit the maximum size of the nginx stdout logs
nginx logs to stdout, which is captured by docker and put into a file at
/var/lib/docker/containers/<nginx-cont-id>/<id>-json.log

By default, the size of this file is unbounded. Add a maximum limit of 1 GB to this.

References:
- https://docs.docker.com/config/containers/logging/local/
- https://stackoverflow.com/questions/31829587/docker-container-logs-taking-all-my-disk-space
2024-04-10 09:23:48 +05:30
Vishnu Mohandas
13a78ce84a [mobile] New translations (#1282)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-04-10 08:03:42 +05:30
Manav Rathi
eebb90fb40 [desktop] Remove GGML (#1394) 2024-04-09 21:36:22 +05:30
Manav Rathi
6a7220ca43 Remove support files for (removed) Windows GGML binary
These were added together with the GGML Windows binary in commit
c3887847bc.
2024-04-09 21:32:41 +05:30
Manav Rathi
e8d224c511 Remove stale ggml reference 2024-04-09 21:29:15 +05:30
Manav Rathi
7dccdecff3 Improve log 2024-04-09 21:24:31 +05:30
Manav Rathi
1214b4ddc3 Web enum cleanup 2024-04-09 21:12:00 +05:30
Manav Rathi
a813de5617 Only ONNX, web 2024-04-09 20:53:08 +05:30
Manav Rathi
4327cfdb23 Only ONNX, desktop 2024-04-09 20:46:27 +05:30
Manav Rathi
b76b57d07e Bye GGML web 2024-04-09 20:07:11 +05:30
Manav Rathi
67e39daff5 Cleanup 2024-04-09 19:59:31 +05:30
Manav Rathi
b02600cb42 Rename 2024-04-09 19:26:20 +05:30
Jay
b7544870d9 Addedfaq 2024-04-09 18:47:19 +05:30
ashilkn
83d122341f Migrate getAllLocalAndUploadedFiles from sqflite to sqlite_async 2024-04-09 17:48:53 +05:30
ashilkn
785beeb9b3 Migrate getFilesInCollection from sqflite to sqlite_async 2024-04-09 17:40:22 +05:30
Vishnu Mohandas
4406307044 Update index.md (#1392) 2024-04-09 17:12:17 +05:30
Vishnu Mohandas
c5208d8160 Update index.md 2024-04-09 17:12:06 +05:30
Manav Rathi
af07de58f6 More docs 2024-04-09 16:36:23 +05:30
Prateek Sunal
cdbb9ab3c3 [fix] include libffi too as it's not included by default (#1387)
## Description

## Tests
2024-04-09 16:24:25 +05:30
Prateek Sunal
f3356147f5 chore: bump version 2024-04-09 16:23:26 +05:30
Manav Rathi
b937102cda A more apropos link 2024-04-09 16:22:02 +05:30
ashilkn
1ec941b022 Migrate getAllPendingOrUploadedFiles from sqflite to sqlite_async 2024-04-09 16:12:37 +05:30
Manav Rathi
544e6be3fd Document 2024-04-09 15:38:59 +05:30
Ashil
628d13ea53 [mobile][photos] Use sqlite async for fetching all files for search (#1391)
## Description

Using [sqlite_async](https://pub.dev/packages/sqlite_async) has
increased query speed by about 5x and has removed GC logs like:
`Background concurrent copying GC freed 424845(20MB) AllocSpace objects,
183(4932KB) LOS objects, 37% free, 39MB/63MB, paused 144us,44us total
128.048ms`, which has improved performance of the app.

Tried using [sqlite3](https://pub.dev/packages/sqlite3), which reduced
query speed by 10x and removed the GC log, but introduced some jank
since it blocks the UI.

Converting the fetched rows to `EnteFile` now runs on an isolate to
avoid blocking the UI.

## Tests

Did manual testing to see difference in jank.
2024-04-09 15:17:48 +05:30
Manav Rathi
4f76cfb912 [web] New translations (#1380)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-04-09 13:23:39 +05:30
Manav Rathi
9dc4a17593 [web] The great electron renaming (#1390)
- Expose on the globalThis
- Rename the deprecated loggers too
2024-04-09 13:23:06 +05:30
Manav Rathi
b0fbd68d27 Fix errors 2024-04-09 13:13:37 +05:30
Vishnu Mohandas
4d09412f0a v0.8.77 (#1389)
## Description

## Tests
2024-04-09 13:00:56 +05:30
vishnukvmd
99b248f7fa v0.8.77 2024-04-09 13:00:39 +05:30
Neeraj Gupta
b62fc60eb5 [mob] Fix active plan highlight (#1388)
## Description

## Tests
Verified that free plan is highlighted for new sign ups


![image](https://github.com/ente-io/ente/assets/254676/8cf4a30d-57bc-47cc-ac54-acffbddf180c)
2024-04-09 12:59:25 +05:30
Manav Rathi
9127c48787 Remove duplicate files 2024-04-09 12:45:37 +05:30
Manav Rathi
5edca461f7 Final touches 2024-04-09 12:39:37 +05:30
Manav Rathi
4aa3d68e36 Wrap the assertion 2024-04-09 12:36:25 +05:30
Neeraj Gupta
8cb3bf255c [mob] Fix active plan highlight 2024-04-09 12:31:55 +05:30
Manav Rathi
c729516faf Final stretch 2024-04-09 12:21:32 +05:30
Manav Rathi
56ce5c0b0e More transition 2024-04-09 12:17:33 +05:30
Manav Rathi
d441418b5b Remove deprecated loggers 2024-04-09 12:06:46 +05:30
Manav Rathi
0d0e20f7c4 More manual tweaks 2024-04-09 11:58:44 +05:30
Prateek Sunal
7e5f01da18 fix: include libffi too as it's not included by default 2024-04-09 11:52:02 +05:30
Manav Rathi
1dc8f4617e log.error regex replacement
- logError\(e, (".+")\);
- log.error($1, e);

+ a whole bunch of manual tweakings
2024-04-09 11:32:34 +05:30
Neeraj Gupta
b8968d2904 [Server] Fix unique ott constraint for multiple apps (#1386)
## Description

## Tests
  Wrong attempt tracking is working fine
 Same ott can be issued for different app types
 For same app type, unique ott is issued
2024-04-09 11:25:29 +05:30
Neeraj Gupta
46188313ad Minor refactor 2024-04-09 11:20:45 +05:30
Neeraj Gupta
73eacfb30d [server] Use correct app while updating ott table 2024-04-09 11:14:44 +05:30
Neeraj Gupta
6bf22fa864 [server] Fix unique constraint for ott for multiple apps 2024-04-09 11:07:59 +05:30
Manav Rathi
2b7aa372bd Switch 2024-04-09 10:33:54 +05:30
Manav Rathi
3c9f11ee60 Tweak log format 2024-04-09 10:03:30 +05:30
Manav Rathi
72dea7eca6 Start using it 2024-04-09 09:53:28 +05:30
Neeraj Gupta
7c82b57ca0 [mob] Allow manual upload of videos when global video upload is disabled (#1384)
## Description
See commit message.

PS: Did not write code to clean up the list as I don't expect the list
to grow significantly.

## Tests
* Disabled Global Video Upload

**Before the change**
- Clicking on upload icon on video was not resulting in the upload of
the underlying video.

**After the change**
- Upload upload went through successfully
2024-04-09 09:42:21 +05:30
Vishnu Mohandas
9e36032019 [auth] v2.0.54 (#1385) 2024-04-09 09:41:35 +05:30
vishnukvmd
9555c86b5f [auth] v2.0.54 2024-04-09 09:40:29 +05:30
Manav Rathi
54a973c457 Expose on the globalThis
Note that the filename of the .d.ts has to be different from any existing file!
https://stackoverflow.com/questions/59728371/typescript-d-ts-file-not-recognized
2024-04-09 09:37:43 +05:30
Prateek Sunal
d06fede2b5 [FIX] updatedb command (#1383)
## Description

UpdateDb command has localpaths instead of database-root, this fixes
that.
2024-04-09 09:33:21 +05:30
Neeraj Gupta
7cec46ef3d [mob] Allow manual upload of videos when global video upload is disabled 2024-04-09 09:32:37 +05:30
Prateek Sunal
11c80a6fa9 fix: updatedb command 2024-04-09 09:30:50 +05:30
Neeraj Gupta
c6a0af7cbc [mob]Hide file overflow item if no action is available 2024-04-09 09:16:11 +05:30
Vishnu Mohandas
542cd31655 [auth] v2.0.53 (#1381) 2024-04-09 08:32:36 +05:30
vishnukvmd
cdce7d5922 [auth] v2.0.53 2024-04-09 08:32:12 +05:30
Crowdin Bot
af27149a74 New Crowdin translations by GitHub Action 2024-04-09 01:55:54 +00:00
Crowdin Bot
7dee92f44e New Crowdin translations by GitHub Action 2024-04-09 01:37:23 +00:00
Prateek Sunal
a45bf52a4d [FIX] Appimage build (#1377)
## Description

Fix build and unable to locate libtiff.so.5
2024-04-09 06:30:17 +05:30
Prateek Sunal
cc5558db5e fix: reload database of locate 2024-04-08 23:05:11 +05:30
Prateek Sunal
a2dfffd778 fix: app image build 2024-04-08 23:05:11 +05:30
Manav Rathi
f37c46935c [web] [desktop] Consolidate logging (#1376) 2024-04-08 21:10:48 +05:30
Manav Rathi
59bda25be2 Fix log entry format 2024-04-08 21:00:05 +05:30
Manav Rathi
f92a4c2a6e Fix errors 2024-04-08 20:57:13 +05:30
Manav Rathi
92a3650696 Dedup comlink 2024-04-08 20:53:27 +05:30
Manav Rathi
a1c9ceae6b Add temporary gateways 2024-04-08 20:47:47 +05:30
Manav Rathi
3e3712efb3 Transition 2024-04-08 20:43:42 +05:30
Manav Rathi
5339b1aa89 Merge 2024-04-08 20:39:53 +05:30
Manav Rathi
0be549c91b Transition 2024-04-08 20:21:49 +05:30
Manav Rathi
826cacd6bf Reroute 2024-04-08 20:00:24 +05:30
Manav Rathi
90a770c619 WIP 2024-04-08 18:09:08 +05:30
Manav Rathi
f4f041552f Move electron API types to lower layer 2024-04-08 16:51:48 +05:30
Vishnu Mohandas
730da7648c v0.8.76 (#1373) 2024-04-08 15:53:39 +05:30
vishnukvmd
9cface7902 v0.8.76 2024-04-08 15:53:21 +05:30
Manav Rathi
48f741b792 Tweak docs 2024-04-08 15:02:32 +05:30
Manav Rathi
7be4b47e51 Tighten type checking progressively 2024-04-08 14:57:49 +05:30
Manav Rathi
f65e738507 Move to types 2024-04-08 14:42:44 +05:30
Manav Rathi
c8089fbb60 Inline uncaptured errors 2024-04-08 14:40:44 +05:30
Manav Rathi
15e290a993 api => services 2024-04-08 14:31:19 +05:30
Manav Rathi
12fa3be6c5 Event handler cleanup 2024-04-08 14:24:50 +05:30
Manav Rathi
5ae6d7d47b Don't wait for ready before logging startup banner
> The only hint is to call the code in main.ts without waiting for the ready event.
>
> https://github.com/megahertz/electron-log/issues/408
2024-04-08 14:17:02 +05:30
Manav Rathi
18e47b3d4e Synchronize startup banners 2024-04-08 14:09:59 +05:30
Manav Rathi
35736c447d Cleanup 2024-04-08 13:59:40 +05:30
Manav Rathi
c458b429a0 Let the web side log errors for the bridged methods 2024-04-08 13:58:28 +05:30
Manav Rathi
c5bb479c4f Consolidate logging / desktop 2024-04-08 13:44:39 +05:30
ashilkn
b976d30ab2 fix colours in new material 3 toggle switch 2024-03-28 20:37:27 +05:30
ashilkn
4c73fb7374 Specify color for dividers to keep it same after flutter upgrade
New material theme has a different default colour for dividers
2024-03-28 18:22:38 +05:30
ashilkn
9f22882d8d override ffi dependency version to fix build failing after running flutter pub upgrade command 2024-03-28 18:21:37 +05:30
ashilkn
fa304aa8cc upgrade flutter version 2024-03-28 16:56:54 +05:30
ashilkn
dabda8e744 upgrade photo_manager and flutter 2024-03-28 16:32:59 +05:30
ashilkn
6e4db6c0df add cast to dependencies and update flutter 2024-03-28 14:57:33 +05:30
Prateek Sunal
801b4162f2 fix: file hash should not be unique 2023-11-20 05:32:04 +05:30
Prateek Sunal
1ca2721dae fix: add file key in table 2024-04-10 22:50:02 +05:30
Prateek Sunal
ce3a3bd802 fix: upload status to table 2024-04-10 20:31:04 +05:30
Prateek Sunal
a45092931d fix: add support for inital resumable 2024-04-10 19:36:57 +05:30
Prateek Sunal
7358305d15 fix: generalize xml parser logic 2024-04-07 12:10:20 +05:30
Prateek Sunal
12c1aa4c28 fix: only multipart when count is greater than 1 2024-04-07 12:09:59 +05:30
Prateek Sunal
2a4a551d52 fix: complete url xml 2024-04-06 22:42:57 +05:30
Prateek Sunal
c2bbca3bc7 fix: separate xml parser util 2024-04-06 21:30:44 +05:30
Prateek Sunal
9c9309cc06 feat: add multipart upload support 2024-04-06 21:24:14 +05:30
953 changed files with 29818 additions and 41673 deletions

View File

@@ -30,7 +30,7 @@ jobs:
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: crowdin-translations-auth
localization_branch_name: translations/auth
create_pull_request: true
skip_untranslated_strings: true
pull_request_title: "[auth] New translations"

View File

@@ -3,7 +3,7 @@ name: "Lint (auth)"
on:
# Run on every push to a branch other than main that changes auth/
push:
branches-ignore: [main, "deploy/**"]
branches-ignore: [main]
paths:
- "auth/**"
- ".github/workflows/auth-lint.yml"

View File

@@ -17,8 +17,8 @@ name: "Release (auth)"
# We use a suffix like `-test` to indicate that these are test tags, and that
# they belong to a pre-release.
#
# If you need to do multiple tests, add a +x at the end of the tag. e.g.
# `auth-v1.2.3-test+1`.
# If you need to do multiple tests, add a .x at the end of the tag. e.g.
# `auth-v1.2.3-test.1`.
#
# Once the testing is done, also delete the tag(s) please.
@@ -85,29 +85,21 @@ jobs:
- name: Install dependencies for desktop build
run: |
sudo apt-get update -y
sudo apt-get install -y libsecret-1-dev libsodium-dev libwebkit2gtk-4.0-dev libfuse2 ninja-build libgtk-3-dev dpkg-dev pkg-config rpm libsqlite3-dev locate appindicator3-0.1 libappindicator3-dev libffi-dev libtiff5-dev libjpeg8-dev
- name: Install appimagetool
run: |
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod +x appimagetool
mv appimagetool /usr/local/bin/
sudo apt-get install -y libsecret-1-dev libsodium-dev libwebkit2gtk-4.0-dev libfuse2 ninja-build libgtk-3-dev dpkg-dev pkg-config libsqlite3-dev locate appindicator3-0.1 libappindicator3-dev libffi-dev libtiff5
sudo updatedb --localpaths='/usr/lib/x86_64-linux-gnu'
- name: Build desktop app
run: |
flutter config --enable-linux-desktop
dart pub global activate flutter_distributor
flutter_distributor package --platform=linux --targets=deb --skip-clean
flutter_distributor package --platform=linux --targets=rpm --skip-clean
flutter_distributor package --platform=linux --targets=appimage --skip-clean
mv dist/**/*-*-linux.deb artifacts/ente-${{ github.ref_name }}-x86_64.deb
mv dist/**/*-*-linux.rpm artifacts/ente-${{ github.ref_name }}-x86_64.rpm
mv dist/**/*-*-linux.AppImage artifacts/ente-${{ github.ref_name }}-x86_64.AppImage
env:
LIBSODIUM_USE_PKGCONFIG: 1
- name: Generate checksums
run: sha256sum artifacts/ente-* > artifacts/sha256sum
- name: Generate checksums and push to artifacts
run: |
sha256sum artifacts/ente-* > artifacts/sha256sum-apk-deb
- name: Create a draft GitHub release
uses: ncipollo/release-action@v1
@@ -127,6 +119,61 @@ jobs:
releaseFiles: auth/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab
track: internal
build-fedora-etc:
runs-on: ubuntu-latest
defaults:
run:
working-directory: auth
steps:
- name: Checkout code and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- name: Create artifacts directory
run: mkdir artifacts
- name: Install dependencies for desktop build
run: |
sudo apt-get update -y
sudo apt-get install -y libsecret-1-dev libsodium-dev libwebkit2gtk-4.0-dev libfuse2 ninja-build libgtk-3-dev dpkg-dev pkg-config rpm patchelf libsqlite3-dev locate libayatana-appindicator3-dev libffi-dev libtiff5
sudo updatedb --localpaths='/usr/lib/x86_64-linux-gnu'
- name: Install appimagetool
run: |
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod +x appimagetool
mv appimagetool /usr/local/bin/
- name: Build desktop app
run: |
flutter config --enable-linux-desktop
dart pub global activate flutter_distributor
flutter_distributor package --platform=linux --targets=rpm --skip-clean
flutter_distributor package --platform=linux --targets=appimage --skip-clean
mv dist/**/*-*-linux.rpm artifacts/ente-${{ github.ref_name }}-x86_64.rpm
mv dist/**/*-*-linux.AppImage artifacts/ente-${{ github.ref_name }}-x86_64.AppImage
- name: Generate checksums
run: sha256sum artifacts/ente-* >> artifacts/sha256sum-rpm-appimage
- name: Create a draft GitHub release
uses: ncipollo/release-action@v1
with:
artifacts: "auth/artifacts/*"
draft: true
allowUpdates: true
updateOnlyUnreleased: true
build-windows:
runs-on: windows-latest

30
.github/workflows/desktop-lint.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: "Lint (desktop)"
on:
# Run on every push to a branch other than main that changes desktop/
push:
branches-ignore: [main]
paths:
- "desktop/**"
- ".github/workflows/desktop-lint.yml"
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: desktop
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "desktop/yarn.lock"
- run: yarn install
- run: yarn lint

View File

@@ -37,11 +37,8 @@ jobs:
run: yarn build
- name: Publish
uses: cloudflare/pages-action@1
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: help
directory: docs/docs/.vitepress/dist
wranglerVersion: "3"
command: pages deploy --project-name=ente --commit-dirty=true --branch=help docs/docs/.vitepress/dist

View File

@@ -6,7 +6,7 @@ name: "Verify build (docs)"
on:
# Run on every push to a branch other than main that changes docs/
push:
branches-ignore: [main, "deploy/**"]
branches-ignore: [main]
paths:
- "docs/**"
- ".github/workflows/docs-verify-build.yml"

View File

@@ -30,7 +30,7 @@ jobs:
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: crowdin-translations-mobile
localization_branch_name: translations/mobile
create_pull_request: true
skip_untranslated_strings: true
pull_request_title: "[mobile] New translations"

View File

@@ -0,0 +1,56 @@
name: "Internal release (photos)"
on:
workflow_dispatch: # Allow manually running the action
env:
FLUTTER_VERSION: "3.19.3"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: mobile
steps:
- name: Checkout code and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- name: Setup keys
uses: timheuer/base64-to-file@v1
with:
fileName: "keystore/ente_photos_key.jks"
encodedString: ${{ secrets.SIGNING_KEY_PHOTOS }}
- name: Build PlayStore AAB
run: |
flutter build appbundle --release --flavor playstore
env:
SIGNING_KEY_PATH: "/home/runner/work/_temp/keystore/ente_photos_key.jks"
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS_PHOTOS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD_PHOTOS }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD_PHOTOS }}
- name: Upload AAB to PlayStore
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: io.ente.photos
releaseFiles: mobile/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab
track: internal

View File

@@ -3,13 +3,13 @@ name: "Lint (mobile)"
on:
# Run on every push to a branch other than main that changes mobile/
push:
branches-ignore: [main, f-droid, "deploy/**"]
branches-ignore: [main, f-droid]
paths:
- "mobile/**"
- ".github/workflows/mobile-lint.yml"
env:
FLUTTER_VERSION: "3.13.4"
FLUTTER_VERSION: "3.19.5"
jobs:
lint:

View File

@@ -9,7 +9,7 @@ on:
- "photos-v*"
env:
FLUTTER_VERSION: "3.13.4"
FLUTTER_VERSION: "3.19.3"
jobs:
build:
@@ -25,6 +25,11 @@ jobs:
with:
submodules: recursive
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
uses: subosito/flutter-action@v2
with:

View File

@@ -3,7 +3,7 @@ name: "Lint (server)"
on:
# Run on every push to a branch other than main that changes server/
push:
branches-ignore: [main, "deploy/**"]
branches-ignore: [main]
paths:
- "server/**"
- ".github/workflows/server-lint.yml"

View File

@@ -38,3 +38,8 @@ jobs:
tags: ${{ inputs.commit }}, latest
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag as server/ghcr
run: |
git tag -f server/ghcr
git push -f origin server/ghcr

34
.github/workflows/web-crowdin-push.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: "Push Crowdin translations (web)"
# This is a variant of web-crowdin.yml that uploads the translated strings in
# addition to the source strings.
#
# This allows us to change the strings in our source code for an automated
# refactoring (e.g. renaming a key), and then run this workflow to update the
# data in Crowdin taking our source code as the source of truth.
on:
# Trigger manually, or using
# `gh workflow run web-crowdin-push.yml --ref <my-branch>`
workflow_dispatch:
jobs:
push-to-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Crowdin push
uses: crowdin/github-action@v1
with:
base_path: "web/"
config: "web/crowdin.yml"
upload_sources: true
upload_translations: true
download_translations: false
project_id: 569613
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

View File

@@ -36,7 +36,7 @@ jobs:
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: crowdin-translations-web
localization_branch_name: translations/web
create_pull_request: true
skip_untranslated_strings: true
pull_request_title: "[web] New translations"

View File

@@ -1,43 +0,0 @@
name: "Deploy (accounts)"
on:
push:
# Run workflow on pushes to the deploy/accounts
branches: [deploy/accounts]
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install
- name: Build accounts
run: yarn build:accounts
- name: Publish accounts
uses: cloudflare/pages-action@1
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: deploy/accounts
directory: web/apps/accounts/out
wranglerVersion: "3"

View File

@@ -1,43 +0,0 @@
name: "Deploy (auth)"
on:
push:
# Run workflow on pushes to the deploy/auth
branches: [deploy/auth]
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install
- name: Build auth
run: yarn build:auth
- name: Publish auth
uses: cloudflare/pages-action@1
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: deploy/auth
directory: web/apps/auth/out
wranglerVersion: "3"

View File

@@ -1,43 +0,0 @@
name: "Deploy (cast)"
on:
push:
# Run workflow on pushes to the deploy/cast
branches: [deploy/cast]
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install
- name: Build cast
run: yarn build:cast
- name: Publish cast
uses: cloudflare/pages-action@1
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: deploy/cast
directory: web/apps/cast/out
wranglerVersion: "3"

61
.github/workflows/web-deploy-one.yml vendored Normal file
View File

@@ -0,0 +1,61 @@
name: "Deploy one (web)"
on:
workflow_dispatch:
inputs:
app:
description: "App to build and deploy"
type: choice
required: true
default: "photos"
options:
- "accounts"
- "auth"
- "cast"
- "payments"
- "photos"
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install
- name: Build ${{ inputs.app }}
run: yarn build:${{ inputs.app }}
- name: Publish ${{ inputs.app }} to preview
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# [Note: Wrangler commit-dirty]
#
# Without the --commit-dirty flag, running the wrangler-action
# always prints a warning when used:
#
# Warning: Your working directory is a git repo and has uncommitted changes
# To silence this warning, pass in --commit-dirty=true
#
# There is no clear documentation of if passing this is
# harmless, but all indications and in-practice tests seem to
# indicate so.
command: pages deploy --project-name=ente --commit-dirty=true --branch=deploy/${{ inputs.app }} web/apps/${{ inputs.app }}/out

View File

@@ -1,43 +0,0 @@
name: "Deploy (payments)"
on:
push:
# Run workflow on pushes to the deploy/payments
branches: [deploy/payments]
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install
- name: Build payments
run: yarn build:payments
- name: Publish payments
uses: cloudflare/pages-action@1
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: deploy/payments
directory: web/apps/payments/dist
wranglerVersion: "3"

View File

@@ -1,43 +0,0 @@
name: "Deploy (photos)"
on:
push:
# Run workflow on pushes to the deploy/photos
branches: [deploy/photos]
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install
- name: Build photos
run: yarn build:photos
- name: Publish photos
uses: cloudflare/pages-action@1
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: deploy/photos
directory: web/apps/photos/out
wranglerVersion: "3"

View File

@@ -1,4 +1,4 @@
name: "Preview (web)"
name: "Deploy preview (web)"
on:
workflow_dispatch:
@@ -43,11 +43,8 @@ jobs:
run: yarn build:${{ inputs.app }}
- name: Publish ${{ inputs.app }} to preview
uses: cloudflare/pages-action@1
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: preview
directory: web/apps/${{ inputs.app }}/out
wranglerVersion: "3"
command: pages deploy --project-name=ente --commit-dirty=true --branch=preview web/apps/${{ inputs.app }}/out

View File

@@ -38,11 +38,8 @@ jobs:
run: yarn build:staff
- name: Publish staff
uses: cloudflare/pages-action@1
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: deploy/staff
directory: web/apps/staff/dist
wranglerVersion: "3"
command: pages deploy --project-name=ente --commit-dirty=true --branch=deploy/staff web/apps/staff/dist

View File

@@ -0,0 +1,86 @@
name: "Deploy staging (web)"
on:
schedule:
# Run everyday at ~3:00 PM IST
#
# See: [Note: Run workflow every 24 hours]
- cron: "25 9 * * *"
# Also allow manually running the workflow
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "web/yarn.lock"
- name: Install dependencies
run: yarn install
- name: Build photos
run: yarn build:photos
env:
NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT: https://albums.ente.sh
- name: Publish photos
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy --project-name=ente --commit-dirty=true --branch=n-photos web/apps/photos/out
- name: Build accounts
run: yarn build:accounts
- name: Publish accounts
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy --project-name=ente --commit-dirty=true --branch=n-accounts web/apps/accounts/out
- name: Build auth
run: yarn build:auth
- name: Publish auth
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy --project-name=ente --commit-dirty=true --branch=n-auth web/apps/auth/out
- name: Build cast
run: yarn build:cast
- name: Publish cast
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy --project-name=ente --commit-dirty=true --branch=n-cast web/apps/cast/out
- name: Build payments
run: yarn build:payments
- name: Publish payments
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy --project-name=ente --commit-dirty=true --branch=n-payments web/apps/payments/dist

View File

@@ -1,17 +1,21 @@
name: "Nightly (web)"
name: "Deploy (web)"
on:
schedule:
# [Note: Run workflow every 24 hours]
#
# Run every 24 hours - First field is minute, second is hour of the day
# This runs 23:15 UTC everyday - 1 and 15 are just arbitrary offset to
# avoid scheduling it on the exact hour, as suggested by GitHub.
# Run everyday at ~8:00 AM IST (except Sundays).
#
# First field is minute, second is hour of the day. Last is day of week,
# 0 being Sunday.
#
# Add a few minutes of offset to avoid scheduling on exact hourly
# boundaries (recommended by GitHub to avoid congestion).
#
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
# https://crontab.guru/
#
- cron: "15 23 * * *"
- cron: "25 2 * * 1-6"
# Also allow manually running the workflow
workflow_dispatch:
@@ -39,69 +43,52 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Build photos
run: yarn build:photos
- name: Publish photos
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy --project-name=ente --commit-dirty=true --branch=deploy/photos web/apps/photos/out
- name: Build accounts
run: yarn build:accounts
- name: Publish accounts
uses: cloudflare/pages-action@1
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: n-accounts
directory: web/apps/accounts/out
wranglerVersion: "3"
command: pages deploy --project-name=ente --commit-dirty=true --branch=deploy/accounts web/apps/accounts/out
- name: Build auth
run: yarn build:auth
- name: Publish auth
uses: cloudflare/pages-action@1
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: n-auth
directory: web/apps/auth/out
wranglerVersion: "3"
command: pages deploy --project-name=ente --commit-dirty=true --branch=deploy/auth web/apps/auth/out
- name: Build cast
run: yarn build:cast
- name: Publish cast
uses: cloudflare/pages-action@1
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: n-cast
directory: web/apps/cast/out
wranglerVersion: "3"
command: pages deploy --project-name=ente --commit-dirty=true --branch=deploy/cast web/apps/cast/out
- name: Build payments
run: yarn build:payments
- name: Publish payments
uses: cloudflare/pages-action@1
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: n-payments
directory: web/apps/payments/dist
wranglerVersion: "3"
- name: Build photos
run: yarn build:photos
env:
NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT: https://albums.ente.sh
- name: Publish photos
uses: cloudflare/pages-action@1
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente
branch: n-photos
directory: web/apps/photos/out
wranglerVersion: "3"
command: pages deploy --project-name=ente --commit-dirty=true --branch=deploy/payments web/apps/payments/dist

View File

@@ -3,7 +3,7 @@ name: "Lint (web)"
on:
# Run on every push to a branch other than main that changes web/
push:
branches-ignore: [main, "deploy/**"]
branches-ignore: [main]
paths:
- "web/**"
- ".github/workflows/web-lint.yml"

3
.gitignore vendored
View File

@@ -1,5 +1,6 @@
# Let folks use their custom .vscode settings
# Let folks use their custom editor settings
.vscode
.idea
# macOS
.DS_Store

View File

@@ -1,3 +1,9 @@
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
@@ -21,10 +22,6 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
@@ -32,7 +29,18 @@ if (keystorePropertiesFile.exists()) {
}
android {
compileSdkVersion 34
namespace "io.ente.auth"
compileSdk 34
ndkVersion flutter.ndkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
@@ -46,6 +54,8 @@ android {
defaultConfig {
applicationId "io.ente.auth"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 21
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
@@ -105,13 +115,4 @@ flutter {
source '../..'
}
dependencies {
implementation 'io.sentry:sentry-android:2.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.guava:guava:28.2-android'
implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}
dependencies {}

View File

@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.ente.auth">
<!-- Flutter needs it to communicate with the running application
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>

View File

@@ -1,6 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="io.ente.auth">
xmlns:tools="http://schemas.android.com/tools">
<application android:name="${applicationName}"
android:label="auth"
android:icon="@mipmap/launcher_icon"

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 604 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 69 B

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 887 B

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -4,7 +4,10 @@
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#000000</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
@@ -15,4 +18,4 @@
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
</resources>

View File

@@ -7,6 +7,7 @@
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.

View File

@@ -4,7 +4,10 @@
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#FFFFFF</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your

View File

@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.ente.auth">
<!-- Flutter needs it to communicate with the running application
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>

View File

@@ -1,16 +1,3 @@
buildscript {
ext.kotlin_version = '1.8.22'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
@@ -21,6 +8,8 @@ allprojects {
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

View File

@@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true

View File

@@ -1,6 +1,5 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip

View File

@@ -1,11 +1,26 @@
include ':app'
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}
settings.ext.flutterSdkPath = flutterSdkPath()
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}
include ":app"

Binary file not shown.

After

Width:  |  Height:  |  Size: 805 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 299 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 820 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@@ -0,0 +1,11 @@
<svg width="286" height="44" viewBox="0 0 286 44" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="286" height="44" fill="#531DAB"/>
<rect width="286" height="44" fill="url(#paint0_linear_25656_80129)" style="mix-blend-mode:soft-light"/>
<defs>
<linearGradient id="paint0_linear_25656_80129" x1="286.174" y1="43.5575" x2="272.305" y2="-42.2227" gradientUnits="userSpaceOnUse">
<stop offset="0.00134129" stop-color="#B37FEB"/>
<stop offset="0.15" stop-color="#D2AEF5" stop-opacity="0"/>
<stop offset="0.829143" stop-color="#EFDBFF"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 578 B

View File

@@ -0,0 +1,4 @@
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5.67969 9.13704L7.30255 10.7599L11.3597 14.817L12.1711 14.0056L12.9825 10.7599L14.6054 8.32561L17.0397 7.51418V6.70275L13.794 3.45703L12.1711 5.07989L9.73683 8.32561H7.30255L5.67969 9.13704Z" fill="black"/>
<path d="M13.3183 1.71931L13.269 1.77093L13.2168 1.71985L13.2162 1.72046L13.1634 1.77327L13.1645 1.77432L12.7776 2.17734L12.7776 2.17732L12.7762 2.1788C12.1335 2.88609 11.8262 3.77724 11.7519 4.66728L9.32505 7.09411C7.81108 6.83615 6.18671 7.26627 5.01998 8.433L4.5818 8.87117L4.5289 8.92408L4.58307 8.97568L5.0206 9.39255L7.593 11.965L2.58519 16.9523L2.56369 16.9737V17.004V17.8603V17.9333H2.63672H3.49237H3.5227L3.54411 17.9118L8.53265 12.9046L11.0473 15.4205L11.4655 15.8569L11.5172 15.9108L11.5699 15.8579L12.0068 15.4199C12.0068 15.4198 12.0068 15.4198 12.0069 15.4198C13.2915 14.1363 13.6624 12.3762 13.2912 10.7902L15.4057 8.67503C16.4706 8.79297 17.5592 8.48109 18.3396 7.70071L18.3408 7.69952L18.7595 7.26135L18.8076 7.21094L18.7595 7.16049L18.3414 6.72231L18.3414 6.7223L18.3402 6.72109L13.7759 2.1568L13.7759 2.15679L13.7748 2.15565L13.3183 1.71931ZM14.9413 7.25429L14.9004 7.24301L14.8703 7.27306L14.6232 7.52014L14.6232 7.52015L12.0758 10.0682L12.0756 10.0684L11.8091 10.3361L11.7778 10.3675L11.7912 10.4097L11.9056 10.7706L11.906 10.7716C12.2473 11.7962 12.1016 12.9497 11.4516 13.9063L6.59236 9.04707C7.44951 8.48202 8.46219 8.23203 9.40643 8.47956L9.72799 8.5736L9.76941 8.58571L9.8 8.55527L10.0483 8.30819L10.0484 8.30806L12.8631 5.49281L12.8631 5.49281L13.0335 5.32241L13.0549 5.30102V5.27077V5.02248C13.0549 4.58263 13.2053 4.16125 13.4189 3.75595L16.7417 7.07936C16.2718 7.33067 15.7795 7.47262 15.2832 7.3484L14.9413 7.25429Z" fill="black" stroke="black" stroke-width="0.146057"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,11 @@
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_25342_9412)">
<path d="M3 5.5L4 6.5L6.5 9L7 8.5L7.5 6.5L8.5 5L10 4.5L10 4L8 2L7 3L5.5 5L4 5L3 5.5Z" fill="#9610D6"/>
<path d="M7.67655 0.960601L7.70697 0.928785L7.98822 1.19766L7.98895 1.19836L7.98894 1.19837L10.8014 4.01087L10.8022 4.01161L10.8022 4.01162L11.0598 4.28162L11.0895 4.31271L11.0598 4.34378L10.8018 4.61378L10.8011 4.61451C10.3202 5.09537 9.64942 5.28755 8.9932 5.21488L7.69023 6.51822C7.91896 7.49551 7.69045 8.58009 6.89886 9.37096L7.67655 0.960601ZM7.67655 0.960601L7.64442 0.929125L7.64405 0.9295L7.61152 0.962044L7.61219 0.962686L7.37379 1.21102L7.37377 1.21101L7.37295 1.21192C6.97691 1.64775 6.78753 2.19688 6.74173 2.74532M7.67655 0.960601L6.74173 2.74532M6.74173 2.74532L5.24633 4.24072C4.31342 4.08177 3.31249 4.34681 2.59355 5.06574L2.32356 5.33574L2.29096 5.36834L2.32433 5.40014L2.59394 5.65702L4.17904 7.24212L1.09325 10.3153L1.08 10.3285L1.08 10.3472L1.08 10.8748L1.08 10.9198L1.125 10.9198L1.65225 10.9198L1.67094 10.9198L1.68413 10.9066L4.75805 7.82114L6.30726 9.37107L6.30792 9.37175L6.56526 9.64032L6.59711 9.67356L6.62961 9.64096L6.8988 9.37102L6.74173 2.74532ZM8.70707 4.33943L8.68182 4.33248L8.6633 4.35099L8.51105 4.50324L8.51105 4.50325L6.9413 6.07337L6.94123 6.07344L6.77698 6.23844L6.75773 6.25778L6.76598 6.28379L6.83648 6.50616L6.83647 6.50616L6.83668 6.50679C7.047 7.13811 6.95722 7.84894 6.55667 8.43835L3.56245 5.44413C4.09062 5.09595 4.71463 4.94191 5.29647 5.09443L5.49462 5.15238L5.52014 5.15984L5.53899 5.14109L5.69199 4.98884L5.69207 4.98875L7.42644 3.25401L7.42645 3.254L7.53144 3.14901L7.54462 3.13583L7.54462 3.11719L7.54462 2.96419C7.54462 2.69316 7.63733 2.4335 7.76892 2.18376L9.81644 4.23163C9.52687 4.38649 9.22356 4.47396 8.91769 4.39741L8.70707 4.33943Z" fill="#9610D6" stroke="#9610D6" stroke-width="0.09"/>
</g>
<defs>
<clipPath id="clip0_25342_9412">
<rect width="12" height="12" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,3 @@
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.1853 2.04353L13.136 2.09515L13.0839 2.04407L13.0832 2.04468L13.0304 2.09748L13.0315 2.09854L12.6447 2.50148L12.6447 2.50146L12.6434 2.50294C12.0008 3.21009 11.6935 4.10106 11.6192 4.99092L9.19285 7.41726C7.67919 7.15935 6.05514 7.58939 4.88864 8.75589L4.45056 9.19397L4.39766 9.24686L4.45182 9.29846L4.88926 9.71525L7.46115 12.2871L2.45434 17.2735L2.43285 17.2949V17.3252V18.1813V18.2543H2.50586H3.36134H3.39166L3.41307 18.2328L8.40061 13.2266L10.9148 15.742L11.3329 16.1783L11.3845 16.2322L11.4373 16.1793L11.8741 15.7413C11.8741 15.7413 11.8741 15.7413 11.8741 15.7413C13.1585 14.4581 13.5293 12.6983 13.1582 11.1126L15.2723 8.99787C16.337 9.11579 17.4254 8.80396 18.2056 8.02374L18.2068 8.02256L18.6254 7.58447L18.6735 7.53407L18.6254 7.48363L18.2074 7.04554L18.2074 7.04553L18.2062 7.04432L13.6428 2.48094L13.6429 2.48093L13.6417 2.47979L13.1853 2.04353ZM14.808 7.57742L14.7671 7.56614L14.737 7.59618L14.49 7.84321L14.49 7.84322L11.943 10.3908L11.9429 10.3909L11.6764 10.6586L11.6452 10.69L11.6585 10.7322L11.7729 11.093L11.7729 11.093L11.7733 11.094C12.1145 12.1184 11.9688 13.2717 11.3189 14.2281L6.46071 9.36983C7.31768 8.8049 8.33015 8.55496 9.2742 8.80243L9.59571 8.89646L9.63712 8.90857L9.66771 8.87813L9.91596 8.6311L9.91609 8.63097L12.7302 5.81628L12.9005 5.64592L12.9219 5.62453V5.59429V5.34604C12.9219 4.90629 13.0723 4.48499 13.2858 4.07977L16.608 7.40252C16.1382 7.65378 15.6461 7.7957 15.1498 7.6715L14.808 7.57742Z" fill="black" stroke="black" stroke-width="0.146028"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -6,35 +6,35 @@ PODS:
- ReachabilitySwift
- device_info_plus (0.0.1):
- Flutter
- DKImagePickerController/Core (4.3.4):
- DKImagePickerController/Core (4.3.9):
- DKImagePickerController/ImageDataManager
- DKImagePickerController/Resource
- DKImagePickerController/ImageDataManager (4.3.4)
- DKImagePickerController/PhotoGallery (4.3.4):
- DKImagePickerController/ImageDataManager (4.3.9)
- DKImagePickerController/PhotoGallery (4.3.9):
- DKImagePickerController/Core
- DKPhotoGallery
- DKImagePickerController/Resource (4.3.4)
- DKPhotoGallery (0.0.17):
- DKPhotoGallery/Core (= 0.0.17)
- DKPhotoGallery/Model (= 0.0.17)
- DKPhotoGallery/Preview (= 0.0.17)
- DKPhotoGallery/Resource (= 0.0.17)
- DKImagePickerController/Resource (4.3.9)
- DKPhotoGallery (0.0.19):
- DKPhotoGallery/Core (= 0.0.19)
- DKPhotoGallery/Model (= 0.0.19)
- DKPhotoGallery/Preview (= 0.0.19)
- DKPhotoGallery/Resource (= 0.0.19)
- SDWebImage
- SwiftyGif
- DKPhotoGallery/Core (0.0.17):
- DKPhotoGallery/Core (0.0.19):
- DKPhotoGallery/Model
- DKPhotoGallery/Preview
- SDWebImage
- SwiftyGif
- DKPhotoGallery/Model (0.0.17):
- DKPhotoGallery/Model (0.0.19):
- SDWebImage
- SwiftyGif
- DKPhotoGallery/Preview (0.0.17):
- DKPhotoGallery/Preview (0.0.19):
- DKPhotoGallery/Model
- DKPhotoGallery/Resource
- SDWebImage
- SwiftyGif
- DKPhotoGallery/Resource (0.0.17):
- DKPhotoGallery/Resource (0.0.19):
- SDWebImage
- SwiftyGif
- file_picker (0.0.1):
@@ -81,17 +81,15 @@ PODS:
- qr_code_scanner (0.2.0):
- Flutter
- MTBBarcodeScanner
- ReachabilitySwift (5.2.1)
- SDWebImage (5.19.0):
- SDWebImage/Core (= 5.19.0)
- SDWebImage/Core (5.19.0)
- Sentry/HybridSDK (8.21.0):
- SentryPrivate (= 8.21.0)
- sentry_flutter (0.0.1):
- ReachabilitySwift (5.2.2)
- SDWebImage (5.19.2):
- SDWebImage/Core (= 5.19.2)
- SDWebImage/Core (5.19.2)
- Sentry/HybridSDK (8.25.0)
- sentry_flutter (7.20.1):
- Flutter
- FlutterMacOS
- Sentry/HybridSDK (= 8.21.0)
- SentryPrivate (8.21.0)
- Sentry/HybridSDK (= 8.25.0)
- share_plus (0.0.1):
- Flutter
- shared_preferences_foundation (0.0.1):
@@ -102,23 +100,23 @@ PODS:
- sqflite (0.0.3):
- Flutter
- FlutterMacOS
- sqlite3 (3.45.1):
- sqlite3/common (= 3.45.1)
- sqlite3/common (3.45.1)
- sqlite3/fts5 (3.45.1):
- "sqlite3 (3.45.3+1)":
- "sqlite3/common (= 3.45.3+1)"
- "sqlite3/common (3.45.3+1)"
- "sqlite3/fts5 (3.45.3+1)":
- sqlite3/common
- sqlite3/perf-threadsafe (3.45.1):
- "sqlite3/perf-threadsafe (3.45.3+1)":
- sqlite3/common
- sqlite3/rtree (3.45.1):
- "sqlite3/rtree (3.45.3+1)":
- sqlite3/common
- sqlite3_flutter_libs (0.0.1):
- Flutter
- sqlite3 (~> 3.45.1)
- "sqlite3 (~> 3.45.3+1)"
- sqlite3/fts5
- sqlite3/perf-threadsafe
- sqlite3/rtree
- SwiftyGif (5.4.4)
- Toast (4.1.0)
- SwiftyGif (5.4.5)
- Toast (4.1.1)
- url_launcher_ios (0.0.1):
- Flutter
@@ -160,7 +158,6 @@ SPEC REPOS:
- ReachabilitySwift
- SDWebImage
- Sentry
- SentryPrivate
- sqlite3
- SwiftyGif
- Toast
@@ -225,19 +222,19 @@ SPEC CHECKSUMS:
app_links: e70ca16b4b0f88253b3b3660200d4a10b4ea9795
connectivity_plus: bf0076dd84a130856aa636df1c71ccaff908fa1d
device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
DKImagePickerController: 946cec48c7873164274ecc4624d19e3da4c1ef3c
DKPhotoGallery: b3834fecb755ee09a593d7c9e389d8b5d6deed60
file_picker: 15fd9539e4eb735dc54bae8c0534a7a9511a03de
file_saver: 503e386464dbe118f630e17b4c2e1190fa0cf808
fk_user_agent: 1f47ec39291e8372b1d692b50084b0d54103c545
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_email_sender: 02d7443217d8c41483223627972bfdc09f74276b
flutter_email_sender: 10a22605f92809a11ef52b2f412db806c6082d40
flutter_inappwebview_ios: 97215cf7d4677db55df76782dbd2930c5e1c1ea0
flutter_local_authentication: 1172a4dd88f6306dadce067454e2c4caf07977bb
flutter_local_notifications: 4cde75091f6327eb8517fa068a0a5950212d2086
flutter_native_splash: edf599c81f74d093a4daf8e17bd7a018854bc778
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
fluttertoast: 31b00dabfa7fb7bacd9e7dbee580d7a2ff4bf265
fluttertoast: 9f2f8e81bb5ce18facb9748d7855bf5a756fe3db
local_auth_darwin: c7e464000a6a89e952235699e32b329457608d98
move_to_background: 39a5b79b26d577b0372cbe8a8c55e7aa9fcd3a2d
MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb
@@ -246,21 +243,20 @@ SPEC CHECKSUMS:
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
privacy_screen: 1a131c052ceb3c3659934b003b0d397c2381a24e
qr_code_scanner: bb67d64904c3b9658ada8c402e8b4d406d5d796e
ReachabilitySwift: 5ae15e16814b5f9ef568963fb2c87aeb49158c66
SDWebImage: 981fd7e860af070920f249fd092420006014c3eb
Sentry: ebc12276bd17613a114ab359074096b6b3725203
sentry_flutter: dff1df05dc39c83d04f9330b36360fc374574c5e
SentryPrivate: d651efb234cf385ec9a1cdd3eff94b5e78a0e0fe
ReachabilitySwift: 2128f3a8c9107e1ad33574c6e58e8285d460b149
SDWebImage: dfe95b2466a9823cf9f0c6d01217c06550d7b29a
Sentry: cd86fc55628f5b7c572cabe66cc8f95a9d2f165a
sentry_flutter: 4cb24c1055c556d7b27262ab2e179d1e5a0b9b0c
share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
sodium_libs: 1faae17af662384acbd13e41867a0008cd2e2318
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
sqlite3: 73b7fc691fdc43277614250e04d183740cb15078
sqlite3_flutter_libs: af0e8fe9bce48abddd1ffdbbf839db0302d72d80
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
Toast: ec33c32b8688982cecc6348adeae667c1b9938da
sqlite3: 02d1f07eaaa01f80a1c16b4b31dfcbb3345ee01a
sqlite3_flutter_libs: 9bfe005308998aeca155330bbc2ea6dddf834a3b
SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4
Toast: 1f5ea13423a1e6674c4abdac5be53587ae481c4e
url_launcher_ios: 6116280ddcfe98ab8820085d8d76ae7449447586
PODFILE CHECKSUM: b4e3a7eabb03395b66e81fc061789f61526ee6bb
COCOAPODS: 1.14.3
COCOAPODS: 1.15.2

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 705 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 773 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 708 B

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 519 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Some files were not shown because too many files have changed in this diff Show More