[GH-ISSUE #678] [Bug]: Noodle Load more buttons show raw {{visible}}/{{total}} placeholders #350

Closed
opened 2026-10-20 17:26:45 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Gunterlie on GitHub (Sep 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/678

Summary

Noodle's "Load more" buttons print the raw placeholders Load more ({{visible}} of {{total}}) instead of counts. Slurp shows the counts correctly. Two call sites, both in NoodleHome.tsx.

Sites

1. Main feed button — NoodleHome.tsx:5245

localizeUi("ui.noodle.noodlehome.loadMore")

No interpolation values passed, so the key's placeholders render literally. This is the one in the user screenshot.

2. Invite character list — NoodleHome.tsx:3430-3431

{localizeUi("ui.noodle.noodlehome.loadMore")}
{visibleInviteCharacters.length} {localizeUi("ui.noodle.noodlehome.of")} {filteredCharacters.length})

Worse: raw placeholders and a leftover manual concatenation from before the string was moved into the catalog. Renders as Load more ({{visible}} of {{total}})12 of 40) — note the unmatched trailing paren.

Correct reference implementation

Slurp does it right, SlurpHome.tsx:4284:

localizeUi("ui.noodle.noodlehome.loadMore", { visible, total })

Fix

Site 2 has both counts to hand — pass them and delete the trailing concatenation line, including the stray ).

Site 1 is a cursor-paged infinite query (useNoodleFeed) with no total available, so it cannot fill {{total}}. It needs a separate count-free key, e.g. ui.noodle.noodlehome.loadMorePlain = "Load more". Do not reuse ui.noodle.stageprofilesourcepicker.loadMoreCharacters — that reads "Load more characters".

Scope check

I scanned every localizeUi call in both packages against catalog values containing {{. These two are the only call sites in either package that pass no interpolation values to a placeholder key. Slurp is clean.

A lint rule enforcing that a key whose value contains {{ must be called with a second argument would prevent the class outright.

Originally created by @Gunterlie on GitHub (Sep 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/678 ## Summary Noodle's "Load more" buttons print the raw placeholders `Load more ({{visible}} of {{total}})` instead of counts. Slurp shows the counts correctly. Two call sites, both in `NoodleHome.tsx`. ## Sites **1. Main feed button — `NoodleHome.tsx:5245`** ```tsx localizeUi("ui.noodle.noodlehome.loadMore") ``` No interpolation values passed, so the key's placeholders render literally. This is the one in the user screenshot. **2. Invite character list — `NoodleHome.tsx:3430-3431`** ```tsx {localizeUi("ui.noodle.noodlehome.loadMore")} {visibleInviteCharacters.length} {localizeUi("ui.noodle.noodlehome.of")} {filteredCharacters.length}) ``` Worse: raw placeholders *and* a leftover manual concatenation from before the string was moved into the catalog. Renders as `Load more ({{visible}} of {{total}})12 of 40)` — note the unmatched trailing paren. ## Correct reference implementation Slurp does it right, `SlurpHome.tsx:4284`: ```tsx localizeUi("ui.noodle.noodlehome.loadMore", { visible, total }) ``` ## Fix Site 2 has both counts to hand — pass them and delete the trailing concatenation line, including the stray `)`. Site 1 is a cursor-paged infinite query (`useNoodleFeed`) with no total available, so it cannot fill `{{total}}`. It needs a separate count-free key, e.g. `ui.noodle.noodlehome.loadMorePlain` = `"Load more"`. Do not reuse `ui.noodle.stageprofilesourcepicker.loadMoreCharacters` — that reads "Load more characters". ## Scope check I scanned every `localizeUi` call in both packages against catalog values containing `{{`. These two are the only call sites in either package that pass no interpolation values to a placeholder key. Slurp is clean. A lint rule enforcing that a key whose value contains `{{` must be called with a second argument would prevent the class outright.
bsakaguchi 2026-10-20 17:26:45 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Gunterlie commented on GitHub (Sep 1, 2026):

Fix opened as draft #682.

<!-- gh-comment-id:5492761609 --> @Gunterlie commented on GitHub (Sep 1, 2026): Fix opened as draft #682.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#350
No description provided.