Repository navigation
Description
Problem
Settings has a Staff Name Language control with three options — Romaji Western, Romaji, Native
(SettingsLoadedContentView.xaml:209-228) — and the choice is saved to AniList
(SettingsPageModel.cs:326, sent at :544). Locally it does nothing. Every staff and character name
in the app renders identically whatever you pick.
Found while scoping #127, whose table listed this as "read by details page models". It is read by
nothing.
Why
Both name accessors prefer Full and never consult a setting:
// Staff.cs:34 and Character.cs:25 are identical
public string DisplayName => Name?.Full ?? Name?.UserPreferred ?? Name?.Native ?? "Unknown";There is no AppSettings entry for staff name language either, so even the fallback chain has
nothing to switch on.
userPreferred in that chain is the field AniList resolves server-side from the viewer's setting, so
it would honour the choice — but it sits behind Full, which is always populated, so it is never
reached.
Options
Reorder to UserPreferred first. This is what shipped. AniList resolves userPreferred
server-side against the setting, so it does the work and the app can never disagree with the website.
The objection below — that it needs a refetch — is real and accepted: a change now calls
IAniListClient.InvalidateEntityCache(), dropping the session cache so pages refetch lazily as the
user navigates back to them. A rarely-changed setting is worth that.
Compute locally. Tried, then abandoned on evidence. Two corrections to what this option
assumed:
- It is eleven name selections, not two. The other nine are every staff/character name that
appears in a list rather than as a page hero. fullis not a stable western-order field — AniList resolves it against the viewer setting too.
Measured on staff id 113181: unauthenticatedfullis "Taiki Kawakami", but on an account set to
ROMAJIthe same query returns "Kawakami Taiki". Composing Romaji Western fromfulltherefore
renders family-first for those users, so the app could not display western order at all.
And AniList is not internally consistent: under ROMAJI, a Latin-script name comes back as
full="Bairstow Caitlyn" but userPreferred="Caitlyn Bairstow". userPreferred is script-aware and
full is not, so any local last first rule diverges from anilist.co for every western voice actor.
Acceptance
- Changing Staff Name Language changes how staff and character names render.
- No additional AniList requests.
Related
- Display setting changes don't re-render pages the user navigates back to #127 — display settings not re-rendering; this was carved out of it as a feature rather than a
re-render bug.
Activity
Token load races, display-setting re-rendering, and settings-save dur…
zhollis21 commentedon Aug 25, 2026
Verified against
fe4dbad. Updated after implementing and verifying against a real signed-in account.Confirmed as filed.
Staff.cs:34andCharacter.cs:25were bothName?.Full ?? Name?.UserPreferred ?? Name?.Native ?? "Unknown", soFullalways won and the settingreached nothing.
The body says "the two name selections". There are eleven. Only the two hero selections
(
StaffQuery,CharacterQuery) requesteduserPreferred; the other nine requestedfull nativeonly, and they are every staff/character name that appears in a list rather than as a page hero.
All eleven now request
userPreferred.Option 2 (compute locally) was implemented, then abandoned on evidence. Both options in the body
assume
fullis a stable western-order field. It is not —fullis resolved server-side againstthe viewer setting, exactly like
userPreferred. Same staff member (id 113181), same query:fulluserPreferredROMAJI_WESTERN)ROMAJIThat breaks local composition in a way that only shows up signed in:
Romaji Westerncomposed fromFullwould render family-first for any user whose AniList setting isROMAJI, so the app could notdisplay western order at all.
And AniList is not internally consistent — which decided the design. Under
ROMAJI, for aLatin-script name:
fullflips it;userPreferreddoes not.userPreferredis script-aware,fullis not. A locallast firstrule therefore diverges from anilist.co for every western voice actor — and there are alot of those on any dubbed title. Matching it locally would mean inventing a CJK heuristic and hoping
it tracks theirs (note Hans Zimmer has a Latin native, "Hans Florian Zimmer", so a null-check is
not enough).
Shipped: defer to
userPreferred, i.e. the bodys Option 1.StaffNameFormatprefersuserPreferred, falling back tofullthennative. The bodys objection to Option 1 — that itneeds a refetch — is real and accepted: a staff-name-language change now calls
IAniListClient.InvalidateEntityCache(), dropping the session cache so pages refetch lazily as theuser navigates back to them. That is a deliberate trade for a setting changed rarely, if ever, and it
means the app and the website can never disagree about the same person.
Verified on device, real account, setting =
ROMAJI:userPreferred)Blocker found and fixed along the way.
CIAniListClient.UpdateUserAsyncreturned the untouchedstatic viewer instead of echoing the request, so every Display Preferences change reverted on the next
Settings load, making that whole section unverifiable in a CI build. It now echoes — except
DisplayAdultContent, which stays fixed so the adult-content canary cannot be flipped from inside theapp.
zhollis21 commentedon Aug 26, 2026
Updated the Options section during implementation: Reorder to
UserPreferredfirst is what shipped, and Compute locally is marked as tried-then-abandoned.Two things the original options assumed turned out not to hold — it is eleven name selections rather than two, and
fullis resolved server-side against the viewer setting just likeuserPreferred, so composing Romaji Western from it renders family-first for anyone whose AniList setting isROMAJI. Full measurements in the findings comment above.Runtime fault injection, pushed-page lifecycle, and staff name langua…
zhollis21 commentedon Aug 27, 2026
Shipped in #135 (925d79f). Verified on main:
StaffNameFormat.Displaynow readsuserPreferredfirst, falling back tofullthennative(src/AniSprinkles.Core/Utilities/StaffNameFormat.cs:42-45), so the Staff Name Language setting saved to AniList is actually reflected in rendered names.Stop the screenshot job publishing the wrong page under the right label
Stop AniList 403ing us into a false outage, and replay real recorded …
Token load races, display-setting re-rendering, and settings-save dur…
Runtime fault injection, pushed-page lifecycle, and staff name langua…
Stop AniList 403ing us into a false outage, and replay real recorded …