Working notes: SERVER_ENGLISH strings, the activity events route, model pictures
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed
+12
+12
@@ -46,6 +46,10 @@ translation falls back to English. Add a string by adding it to `strings.py`, tr
|
||||
`strings_own.json`, and running the script; `--check` (CI) fails on a key the code uses that has
|
||||
no English, and on English nobody uses.
|
||||
|
||||
A server sentence with placeholders is written `%(n)s` there and `%1$s` here, so it does not match
|
||||
by its English. Name the server's own English in `strings.py`'s `SERVER_ENGLISH` and the script
|
||||
takes its translation, numbering the named placeholders in the order the English names them.
|
||||
|
||||
## Interfaces line up by construction
|
||||
|
||||
The tree's rule holds in Compose as in CSS: a row whose parts have unknown sizes gets a shared
|
||||
@@ -77,6 +81,14 @@ layout on a real phone at its narrowest; the emulator's default is not a phone.
|
||||
- **GitHub release assets can answer 504 for minutes at a time.** CI takes ktlint from Maven
|
||||
Central (`ktlint-cli-<v>-all.jar`), hash-pinned: it is the same jar the signed GitHub binary
|
||||
wraps after a shell header. A ktlint update checks that again before moving the hash.
|
||||
- **The activity panel follows `/activity/events`**, which closes itself every ten minutes:
|
||||
`StreamClient.watch` opens it again at once, and only while the chat is on screen
|
||||
(`repeatOnLifecycle`). A frame carries the strip's counts and a `version`; the panel reads
|
||||
`GET /activity` again only when the version moved. Elapsed time is counted on the phone from
|
||||
the read, because `version` leaves the seconds out on purpose.
|
||||
- **A model's picture is fetched only from the instance's own `/api/v2/models/images/`**
|
||||
(`ApiClient.modelImageUrl`), with the token, at most 2 MB, decoded small. Anything else in the
|
||||
list's `image` is ignored and the initial is drawn.
|
||||
- **A failure is shown through `ui/Errors.kt`'s `explain()`**: the server's sentence for a
|
||||
refusal, one "cannot be reached" sentence for a network that is not there. Never `e.message`
|
||||
straight to the screen.
|
||||
Reference in new issue
Block a user