feat(photos): embed galleries and speed up zoom

Keep album browsing and private galleries inside Photos. Build GTK
tiles near the viewport and anchor relayouts on the visible photo.

Migrate the Photos cache to persist pending event work with its cursor.
Pin the published Gallery engine for scoped private album reads.
This commit is contained in:
nvrl committed 2026-11-19 17:56:32 +01:00
1 parent cb5ff8b8da
commit 1c2a66169f
23 files changed
+2504 -1061

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ scratch (user data in `staging/` and `recovery/` is never touched by this).
### Added
- Open **Drive Galleries** from Photos to browse saved My files folders and their
- Open **Drive galleries** in Photos → Albums to browse saved My files folders and their
subfolders, choose album covers, and manage public links. Saved galleries and
covers sync with Proton Gallery on desktop and Android.
+25
View File
@@ -1,5 +1,30 @@
# Photos
## How Photos is organized
Timeline, Albums, and Places share the same Photos workspace. The Timeline opens
with the media type, Filters, and, where available, **On this day**. Albums
contains the two collections **Proton albums** and **Drive galleries**. Add a
gallery by choosing a folder from **My files**. Opening it or any subfolder
keeps you in Photos. Back or Escape returns to the parent and its scroll
position.
**Hidden albums** opens with the Gallery passphrase stored for this account in
your Linux keyring. It includes hidden Proton albums and hidden Drive gallery
folders, including folders inside public galleries. Leaving Hidden albums or
switching away from the window locks it and closes its previews.
GTK pages Timeline, Proton albums, and Places through the Drive daemon's Photos
control requests backed by its SQLite database. Saved Drive galleries come from
the shared Proton Gallery catalog, which the daemon hosts for the signed-in
account. Photos applies that catalog's visibility rules to public queries.
Hidden albums use separate, unlock-gated requests. Thumbnails in the hidden
view are kept in memory and cleared on lock.
Ctrl+mousewheel changes timeline tile size. GTK updates only the changed row
range and keeps the visible photo in place. As you scroll, each new page
updates the last affected section and adds new sections below it.
The **Photos** page of the app shows your Proton Photos library. Photos are stored apart from
My files, so they do not appear in `~/ProtonDrive`.