Merge pending Breeze work: Photos as its own app, Opus voice packs, 2.1.63 notes
Photos downloads from Apps instead of shipping in Breeze, practice and guide voice clips move to Ogg Opus, dependencies update (Ziran, Kryon, Apps, Arcade, practices), and the 2.1.63 version and store notes are prepared. The Practice tab note is translated in every locale.
This commit is contained in:
1 parent
7790878186
commit
dc1d003cd8
197 files changed
+27843
-26670
No files matched your search
+22
-37
@@ -5,9 +5,10 @@ practice content. Each row has its own icon, earning condition, progress and
|
||||
permanent earned date. Uninstalled apps do not contribute visible rows or totals;
|
||||
reinstalling an app restores its saved awards without replaying alerts.
|
||||
|
||||
The built-in catalogs contain 160 entries. Their machine-readable definitions
|
||||
The built-in catalogs contain 150 entries. Their machine-readable definitions
|
||||
live in `apps/*/achievements.json`, with translations in each app's
|
||||
`achievement-locales/`. Stable IDs, including the historical `self.*` IDs, are
|
||||
`achievement-locales/`. Apps built elsewhere, such as Photos, carry their own
|
||||
catalog in their package. Stable IDs, including the historical `self.*` IDs, are
|
||||
persisted data and must not be renamed when changing a display name.
|
||||
|
||||
## Ownership and storage
|
||||
@@ -72,10 +73,10 @@ These rules make each requirement below implementable and consistent:
|
||||
A practice-start action counts only when its correlated session qualifies.
|
||||
The first-offline-action award requires the action's recorded mode to be
|
||||
offline; all other Lumi awards work with either connection mode.
|
||||
- **Photo:** a successfully imported, nontrashed original with a unique hash.
|
||||
A photo-open fact requires deliberately opening a successfully decoded
|
||||
photo, not merely scrolling past a thumbnail. Days-of-photos thresholds
|
||||
use valid capture dates, not guessed dates for files with no date metadata.
|
||||
- **Photo:** older versions recorded facts for Photos' catalog: a
|
||||
successfully imported, nontrashed original with a unique hash, and a
|
||||
deliberate open of a successfully decoded photo. Those facts keep counting
|
||||
for its awards and active days; this version records no new ones.
|
||||
- **Radio day:** at least 60 nonoverlapping seconds of active audible playback
|
||||
on a date. Minute totals are cumulative across listening sessions. The
|
||||
two-station award requires 60 active seconds for each of two distinct stable
|
||||
@@ -299,48 +300,32 @@ achievement requires online AI, message volume or a paid provider.
|
||||
134. **A practice with Lumi** — `lumi.practice.1`: finish 1 qualifying practice started through Lumi; requires Practices and at least 1 installed practice pack.
|
||||
135. **A page with Lumi** — `lumi.diary.1`: successfully save 1 nonempty diary addition through Lumi; requires Diary.
|
||||
|
||||
### Photos — 10 achievements
|
||||
|
||||
Owned by `inbe.photos`; visible only while Photos is installed. No cloud
|
||||
upload, public sharing, album feature or new editing tool is required.
|
||||
|
||||
136. **First memory kept** — `photos.originals.1`: import 1 distinct original photo.
|
||||
137. **Ten memories kept** — `photos.originals.10`: import 10 distinct original photos.
|
||||
138. **Fifty memories kept** — `photos.originals.50`: import 50 distinct original photos.
|
||||
139. **One hundred memories kept** — `photos.originals.100`: import 100 distinct original photos.
|
||||
140. **Three days remembered** — `photos.capture_days.3`: keep photos from 3 distinct valid capture dates.
|
||||
141. **Seven days remembered** — `photos.capture_days.7`: keep photos from 7 distinct valid capture dates.
|
||||
142. **Thirty days remembered** — `photos.capture_days.30`: keep photos from 30 distinct valid capture dates.
|
||||
143. **A closer look** — `photos.opened.1`: deliberately open 1 successfully decoded photo.
|
||||
144. **Ten closer looks** — `photos.opened.10`: deliberately open 10 distinct successfully decoded photos.
|
||||
145. **Returning to your memories** — `photos.view_days.7`: deliberately open photos on 7 distinct days.
|
||||
|
||||
### Radio — 10 achievements
|
||||
|
||||
Owned by `inbe.radio`; visible only while Radio is installed. Listening time
|
||||
is cumulative, audible playback time, not continuous-session length.
|
||||
|
||||
146. **A minute of atmosphere** — `radio.minutes.1`: listen for 1 active minute in total.
|
||||
147. **Ten minutes of atmosphere** — `radio.minutes.10`: listen for 10 active minutes in total.
|
||||
148. **Half an hour of atmosphere** — `radio.minutes.30`: listen for 30 active minutes in total.
|
||||
149. **An hour of atmosphere** — `radio.minutes.60`: listen for 60 active minutes in total.
|
||||
150. **Two hours of atmosphere** — `radio.minutes.120`: listen for 120 active minutes in total.
|
||||
151. **Five hours of atmosphere** — `radio.minutes.300`: listen for 300 active minutes in total.
|
||||
152. **Three listening days** — `radio.days.3`: listen on 3 qualifying Radio days.
|
||||
153. **Seven listening days** — `radio.days.7`: listen on 7 qualifying Radio days.
|
||||
154. **Thirty listening days** — `radio.days.30`: listen on 30 qualifying Radio days.
|
||||
155. **Two atmospheres** — `radio.stations.2`: listen for at least 1 active minute to each of 2 distinct stations.
|
||||
136. **A minute of atmosphere** — `radio.minutes.1`: listen for 1 active minute in total.
|
||||
137. **Ten minutes of atmosphere** — `radio.minutes.10`: listen for 10 active minutes in total.
|
||||
138. **Half an hour of atmosphere** — `radio.minutes.30`: listen for 30 active minutes in total.
|
||||
139. **An hour of atmosphere** — `radio.minutes.60`: listen for 60 active minutes in total.
|
||||
140. **Two hours of atmosphere** — `radio.minutes.120`: listen for 120 active minutes in total.
|
||||
141. **Five hours of atmosphere** — `radio.minutes.300`: listen for 300 active minutes in total.
|
||||
142. **Three listening days** — `radio.days.3`: listen on 3 qualifying Radio days.
|
||||
143. **Seven listening days** — `radio.days.7`: listen on 7 qualifying Radio days.
|
||||
144. **Thirty listening days** — `radio.days.30`: listen on 30 qualifying Radio days.
|
||||
145. **Two atmospheres** — `radio.stations.2`: listen for at least 1 active minute to each of 2 distinct stations.
|
||||
|
||||
### Leaderboard — 5 achievements
|
||||
|
||||
Owned by `inbe.leaderboard`. These recognize checking personal progress,
|
||||
without creating a competition to increase retention or beat another person.
|
||||
|
||||
156. **A look at your progress** — `leaderboard.check_days.1`: complete 1 own-row check-in.
|
||||
157. **Three progress check-ins** — `leaderboard.check_days.3`: check your own row on 3 distinct days.
|
||||
158. **Seven progress check-ins** — `leaderboard.check_days.7`: check your own row on 7 distinct days.
|
||||
159. **Thirty progress check-ins** — `leaderboard.check_days.30`: check your own row on 30 distinct days.
|
||||
160. **Two perspectives** — `leaderboard.practices.2`: check your own row for 2 distinct installed practices; requires at least 2 installed practice packs.
|
||||
146. **A look at your progress** — `leaderboard.check_days.1`: complete 1 own-row check-in.
|
||||
147. **Three progress check-ins** — `leaderboard.check_days.3`: check your own row on 3 distinct days.
|
||||
148. **Seven progress check-ins** — `leaderboard.check_days.7`: check your own row on 7 distinct days.
|
||||
149. **Thirty progress check-ins** — `leaderboard.check_days.30`: check your own row on 30 distinct days.
|
||||
150. **Two perspectives** — `leaderboard.practices.2`: check your own row for 2 distinct installed practices; requires at least 2 installed practice packs.
|
||||
|
||||
## Verification
|
||||
|
||||
|
||||
+22
-15
@@ -675,17 +675,24 @@ Ordinary launches ignore these files and keep using signed node packages.
|
||||
|
||||
## Photos and the account's media library
|
||||
|
||||
Photos (`apps/photos/`, `inbe.photos`, host interface 13) is the second app
|
||||
the node offers: a newest-first grid of the library's photos under the day
|
||||
each was taken, a viewer with previous, next and Move to Trash, and Trash,
|
||||
where a photo can be restored. Install it from the normal app catalog.
|
||||
Photos (`inbe.photos`, host interface 13) is built, tested and released in
|
||||
its own repository, waozixyz/photos, like Chess in Arcade. Inbe neither
|
||||
builds, bundles nor versions it: the normal app catalog offers the node's
|
||||
signed package, whose icon comes from that release, and installing it
|
||||
downloads it. Existing installations and their records stay. Released
|
||||
packages still read their text from Inbe's `app_name_photos`, `photos_*`
|
||||
and `achievement_group_photos` translations, kept for them in
|
||||
`tests/locale_unused_keys.txt`. A Photos release reaches the node through
|
||||
the Node app release workflow, which signs the checked bundle attached to a
|
||||
GitHub release there.
|
||||
|
||||
Diary and Photos use the same host import and account storage, even when
|
||||
Photos is not installed. New opaque still images larger than 256 KiB are
|
||||
stored as upright JPEG copies at quality 88 and at most 2048 pixels on the
|
||||
longest edge, only when this saves more than 10%. Source files stay untouched;
|
||||
capture dates remain in the shared record. Small, transparent and animated
|
||||
images retain their bytes, as do photos already in the library.
|
||||
Photos is not installed; Diary needs nothing from Photos. New opaque still
|
||||
images larger than 256 KiB are stored as upright JPEG copies at quality 88
|
||||
and at most 2048 pixels on the longest edge, only when this saves more than
|
||||
10%. Source files stay untouched; capture dates remain in the shared record.
|
||||
Small, transparent and animated images retain their bytes, as do photos
|
||||
already in the library.
|
||||
|
||||
The library belongs to the account, not to Photos, so its photos stay when
|
||||
Photos is removed. Each photo is a record of the account's entity data
|
||||
@@ -796,23 +803,23 @@ sync:
|
||||
Removing a node forgets its session and its `diary_blobs` rows. Delegate
|
||||
(Telegram) accounts never move copies.
|
||||
|
||||
Photos is available in the normal app catalog.
|
||||
The App packages workflow builds every app the node offers and
|
||||
The App packages workflow builds every app the node offers that Inbe owns and
|
||||
publishes each one whose ledger names a newer release than the node serves
|
||||
(`package-release.py --node-apps`). An app the node does not list yet is
|
||||
reported and skipped: registering it takes the node operator's key. With each
|
||||
publication the node's importer writes `history-v2.json`, the app's newest
|
||||
three releases, which the node offers for going back to an earlier version;
|
||||
`--write-history` rewrites every app's history. `make
|
||||
media-store-test media-metadata-test photos-app-test` check the library, the
|
||||
Exif reader and the app through the real host; `make entity-photos-test`
|
||||
media-store-test media-metadata-test` check the library and the Exif reader
|
||||
through the real host; `make entity-photos-test`
|
||||
upgrades a 2.1.43 profile (`tests/fixtures/photos-2.1.43.sql`) against nodes
|
||||
answered from memory, with interrupted passes, a full node, an unreachable
|
||||
node, a node that cannot delete and a damaged chunk; `make sync-server-test`
|
||||
(`DAOCHI_BIN=...`, Daochi 17bfd12 or later) adds a photo on one device and
|
||||
opens it on another through two real Daochi nodes and moves an old copy
|
||||
there; and `make photos-ui-test` adds a camera photo through the desktop
|
||||
picker on a private Xvfb display.
|
||||
there. The achievement check still loads the catalog the node's Photos
|
||||
carries (`tests/fixtures/photos-achievements.json`); this host records no
|
||||
new Photos facts and keeps the ones older versions recorded.
|
||||
|
||||
## Account app choices
|
||||
|
||||
|
||||
@@ -304,8 +304,8 @@ The hosted asset policy allows `media/<sha256>.<fmt>` and
|
||||
|
||||
### The Photos app package
|
||||
|
||||
`inbe.photos` (`apps/photos/`) is not part of the APK's bundled cells. It is
|
||||
listed under More apps and installed from the node's signed package store,
|
||||
`inbe.photos`, now built and released in `waozixyz/photos`, is not part of
|
||||
the APK's bundled cells. It is listed under More apps and installed from the node's signed package store,
|
||||
through the node-app mechanism the Chess app introduces (a registry entry,
|
||||
`app_used_photos` in `private.inbe.v1.app-installs`, a device-local node-app
|
||||
slot). Its first version:
|
||||
@@ -359,7 +359,8 @@ New: `apps/diary/diary_markdown.zi` (embed grammar, Markdown preview
|
||||
ranges, migration, mirror, insertion; no host access),
|
||||
`src/cells/media_store.zi` and `src/cells/media_types.zi` (the host media
|
||||
library and its calls), `src/storage/media_node_session.zi` (a media
|
||||
session per node), `apps/photos/{photos.zi,photos_view.zi,CHANGELOG.md}`,
|
||||
session per node), `apps/photos/{photos.zi,photos_view.zi,CHANGELOG.md}`
|
||||
(since moved to `waozixyz/photos`),
|
||||
`tests/diary_markdown_behavior.zi` and its runner, and Kryon
|
||||
`tests/ziran_text_area_blocks_test.{zi,sh}`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user