Skip to content

Staff Name Language setting is saved to AniList but never read #130

Closed

Description

@zhollis21

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.
  • full is not a stable western-order field — AniList resolves it against the viewer setting too.
    Measured on staff id 113181: unauthenticated full is "Taiki Kawakami", but on an account set to
    ROMAJI the same query returns "Kawakami Taiki". Composing Romaji Western from full therefore
    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

Activity

  1. added
    bug
    on Aug 24, 2026
  2. zhollis21 commented on Aug 25, 2026

    @zhollis21
    OwnerAuthor

    Verified against fe4dbad. Updated after implementing and verifying against a real signed-in account.

    Confirmed as filed. Staff.cs:34 and Character.cs:25 were both
    Name?.Full ?? Name?.UserPreferred ?? Name?.Native ?? "Unknown", so Full always won and the setting
    reached nothing.

    The body says "the two name selections". There are eleven. Only the two hero selections
    (StaffQuery, CharacterQuery) requested userPreferred; the other nine requested full native
    only, 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 full is a stable western-order field. It is not — full is resolved server-side against
    the viewer setting, exactly like userPreferred
    . Same staff member (id 113181), same query:

    Session full userPreferred
    Unauthenticated (default ROMAJI_WESTERN) Taiki Kawakami Taiki Kawakami
    Account set to ROMAJI Kawakami Taiki Kawakami Taiki

    That breaks local composition in a way that only shows up signed in: Romaji Western composed from
    Full would render family-first for any user whose AniList setting is ROMAJI, so the app could not
    display western order at all.

    And AniList is not internally consistent — which decided the design. Under ROMAJI, for a
    Latin-script name:

    Caitlyn Bairstow  first=Caitlyn last=Bairstow native=null
                      full="Bairstow Caitlyn"      userPreferred="Caitlyn Bairstow"
    

    full flips it; userPreferred does not. userPreferred is script-aware, full is not. A local
    last first rule therefore diverges from anilist.co for every western voice actor — and there are a
    lot 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. StaffNameFormat prefers
    userPreferred, falling back to full then native. The bodys objection to Option 1 — that it
    needs a refetch — is real and accepted: a staff-name-language change now calls
    IAniListClient.InvalidateEntityCache(), dropping the session cache so pages refetch lazily as the
    user 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:

    Voice actor Local-flip build Shipped (userPreferred)
    Hoshiki Seena (Japanese) Hoshiki Seena Hoshiki Seena — still flipped
    Caitlyn Bairstow (English) Bairstow Caitlyn Caitlyn Bairstow
    Karina Fonseca (Portuguese) Fonseca Karina Karina Fonseca

    Blocker found and fixed along the way. CIAniListClient.UpdateUserAsync returned the untouched
    static 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 the
    app.

  3. zhollis21 commented on Aug 26, 2026

    @zhollis21
    OwnerAuthor

    Updated the Options section during implementation: Reorder to UserPreferred first 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 full is resolved server-side against the viewer setting just like userPreferred, so composing Romaji Western from it renders family-first for anyone whose AniList setting is ROMAJI. Full measurements in the findings comment above.

  4. added
    p3-medium
    on Aug 26, 2026
  5. zhollis21 commented on Aug 27, 2026

    @zhollis21
    OwnerAuthor

    Shipped in #135 (925d79f). Verified on main: StaffNameFormat.Display now reads userPreferred first, falling back to full then native (src/AniSprinkles.Core/Utilities/StaffNameFormat.cs:42-45), so the Staff Name Language setting saved to AniList is actually reflected in rendered names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugp3-medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions