Commit Graph

26288 Commits

Author SHA1 Message Date
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
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