feat(keys): Back returns focus to the item a view was opened from; "Feed" everywhere; every backend id named
Owner answers to the E11 S5 raises (2026-09-13): 1 → A, 2 → "Feed" in every language, 3 → translate the
proxy label and fix every config key missing in BOTH languages ("maintenance", "tmdb" — old bugs).
Focus across a view change (1-A). Opening a Plex title from Home's rail, a channel from the Channels
table or a title from a Plex grid switches the page or the sub-view, which unmounts the list; Back used
to hand focus to <body>, so the next `j` started over at the top. The YouTube player (an overlay)
already restored onto the card.
- `lib/listNav`: `navPosition()` (list's place in reading order, the page's list count, item index)
and `restoreNavPosition()`: focuses the item once the page has as many lists on screen as when it was
left, polls on a timer (a hidden tab runs no animation frames), gives up after 2 s or at once when
something already holds focus, focuses without scrolling (the scroll restore owns the position).
- `lib/history`: `rememberNavPosition()` stamps `sfNav` onto the entry being left and returns the state
without it (a new entry must not inherit it); one popstate listener restores and spends the stamp,
so a later landing on the same entry (an overlay closing over it) cannot pull focus to an old item.
- Called before every view push: `setPage`, `openChannel`, `enterYtSearch`, `useHistorySubview.open`,
the Channels tab push. `navPosition.wiring.contract.test` fails on any `history.pushState(` without
it (the overlay stack's own push is the one exemption).
"Feed" (2). The module is "Feed" in both languages: every "hírfolyam" in the Hungarian UI (≈45 strings,
suffixed: Feedből, Feeded, Feedben…) and the prose "feed" in English that means the module ("your
Feed", "Hide from Feed"); "RSS feed" keeps its meaning. The welcome email says it too.
Backend ids without a name (3). The Configuration page showed `maintenance`, `tmdb`,
`maintenance_revalidate_batch`, `download_upload_max_bytes`, `audit_retention_days`, `plex_overlay_map`,
`tmdb_api_key` and `tmdb_language` as raw identifiers — the lookup falls back to the id, and the i18n
parity test stayed green because both languages missed the same keys. Added labels + hints (EN/HU),
the two groups (and their tab order), the missing `scheduler.jobDesc.demo_reset`, removed the stale
`plex_sync_interval_min` field, and "YouTube API kimenő proxy". `i18n/backendIds.contract.test` reads
`sysconfig.SPECS`, `scheduler.JOB_INTERVALS` and the audit/quota action enums from the backend sources
and fails on an id without its name in either language, or a name left for an id the backend dropped.
This commit is contained in:
@@ -10,9 +10,11 @@
|
||||
"backfill": "Backfill",
|
||||
"shorts": "Shorts probe",
|
||||
"batch": "Batch sizes",
|
||||
"maintenance": "Maintenance",
|
||||
"explore": "Channel explore",
|
||||
"downloads": "Downloads",
|
||||
"plex": "Plex",
|
||||
"tmdb": "TMDB",
|
||||
"audit": "Audit log"
|
||||
},
|
||||
"fields": {
|
||||
@@ -76,6 +78,10 @@
|
||||
"label": "Auto-tag title sample",
|
||||
"hint": "Recent video titles sampled per channel for language detection."
|
||||
},
|
||||
"maintenance_revalidate_batch": {
|
||||
"label": "Videos re-checked per run",
|
||||
"hint": "How many least-recently-checked videos the maintenance job re-validates each run (1 API unit per 50 videos). Higher = a faster full cycle but more quota. Also adjustable on the Scheduler page."
|
||||
},
|
||||
"youtube_api_key": {
|
||||
"label": "YouTube API key",
|
||||
"hint": "Optional. Used for public reads (channels/videos) so shared backfill doesn't depend on a user's OAuth. Stored encrypted; write-only."
|
||||
@@ -120,6 +126,10 @@
|
||||
"label": "Default job limit / user",
|
||||
"hint": "Max number of downloads a user may keep in their library."
|
||||
},
|
||||
"download_upload_max_bytes": {
|
||||
"label": "Upload size cap per file (bytes)",
|
||||
"hint": "Largest single file a user may upload to the download center. At least 1, so the cap is always on; the user's total storage is still bounded by their quota. Default 500 MiB."
|
||||
},
|
||||
"download_retention_days": {
|
||||
"label": "Retention (days)",
|
||||
"hint": "A download expires this many days after its last access; the cleanup job then removes it (once nothing references it) after the grace window."
|
||||
@@ -140,9 +150,13 @@
|
||||
"label": "SponsorBlock by default",
|
||||
"hint": "Enable SponsorBlock (skip sponsor segments) for newly created custom download profiles."
|
||||
},
|
||||
"audit_retention_days": {
|
||||
"label": "Retention (days)",
|
||||
"hint": "How long admin audit-log entries are kept before the audit-log cleanup job prunes them. 0 = keep forever. Default 180."
|
||||
},
|
||||
"plex_enabled": {
|
||||
"label": "Enable Plex",
|
||||
"hint": "Expose the Plex library as a feed source with a rich player. Requires the Plex server to be reachable from this host and its media on a local mount (see the path map)."
|
||||
"hint": "Expose the Plex library as a Feed source with a rich player. Requires the Plex server to be reachable from this host and its media on a local mount (see the path map)."
|
||||
},
|
||||
"plex_server_url": {
|
||||
"label": "Plex server URL",
|
||||
@@ -160,9 +174,9 @@
|
||||
"label": "Exposed libraries",
|
||||
"hint": "Comma-separated Plex section keys to expose. Empty = all sections. Use the library picker below after testing the connection."
|
||||
},
|
||||
"plex_sync_interval_min": {
|
||||
"label": "Sync interval (minutes)",
|
||||
"hint": "How often the catalog sync job mirrors Plex metadata."
|
||||
"plex_overlay_map": {
|
||||
"label": "Hungarian overlay map",
|
||||
"hint": "Pairs a Hungarian Plex library with its English twin so titles show Hungarian metadata: comma-separated huSectionKey:enSectionKey pairs, e.g. 3:4,5:1. The Hungarian library isn't browsable on its own; its titles are matched to the English ones by id. Empty = no overlay."
|
||||
},
|
||||
"plex_max_transcodes": {
|
||||
"label": "Max concurrent transcodes",
|
||||
@@ -187,6 +201,14 @@
|
||||
"plex_audio_loudnorm": {
|
||||
"label": "Normalize audio loudness",
|
||||
"hint": "EBU R128 loudness normalization of the stereo downmix, for films whose dialogue is a whisper and whose action is deafening. Applies to remux/transcode playback only (a direct-played file is served untouched). Measured on a 5.1 film: −27.6 → −16.6 LUFS with the loud/quiet range narrowed — everything gets about 11 dB louder, so turn your volume down after switching it on. Takes effect on the next playback."
|
||||
},
|
||||
"tmdb_api_key": {
|
||||
"label": "TMDB API key",
|
||||
"hint": "Optional. A TMDB v3 API key for enriching Plex titles (keywords, crew, budget, TMDb score, recommendations, artwork). Used server-side only; the data is served from the app's own database. Empty = the enrichment job does nothing. Stored encrypted; write-only."
|
||||
},
|
||||
"tmdb_language": {
|
||||
"label": "TMDB metadata language",
|
||||
"hint": "Language of the data fetched from TMDB (keywords, overviews), as a TMDB locale code such as en-US or hu-HU. Default en-US."
|
||||
}
|
||||
},
|
||||
"save": "Save",
|
||||
|
||||
Reference in New Issue
Block a user