Commit graph

26321 commits

Author SHA1 Message Date
Neeraj Gupta cff695dd02 [mob] Fix title for month grouping 2024-05-04 12:35:33 +05:30
Neeraj Gupta 5f9b0d11f2 [mob] Gallery: Support grouping by day/week/month/year 2024-05-04 12:31:08 +05:30
Neeraj Gupta e75be714d9 [mob] Refactor groupHeader to use groupType 2024-05-04 12:07:58 +05:30
Neeraj Gupta da329c498c [mob] Add groupType in Gallery context state 2024-05-04 12:00:16 +05:30
Neeraj Gupta cc74e08155 [mob] Add groupType with common extn methods 2024-05-04 11:56:29 +05:30
Neeraj Gupta 26e17d8464
[server][cast] Generate alphaNumberic codes for cast (#1595)
## Description

## Tests
2024-05-03 13:51:27 +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 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
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
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
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