Skip to content

feat(manga): add Related button with AniList/MAL relations & recommendations - #1122

Open
VictorVow wants to merge 2 commits into
Suwayomi:masterfrom
VictorVow:feat/related
Open

feat(manga): add Related button with AniList/MAL relations & recommendations#1122
VictorVow wants to merge 2 commits into
Suwayomi:masterfrom
VictorVow:feat/related

Conversation

@VictorVow

@VictorVow VictorVow commented Jun 22, 2026

Copy link
Copy Markdown

What this does

Adds a "Related" button next to the "Tracking" button on the manga details page. It opens a modal with four rows of cover cards:

  • AniList – Relations
  • AniList – Recommendations
  • MyAnimeList – Related Entries
  • MyAnimeList – Recommendations

Each row is headed by the tracker's logo and shows a horizontally scrolling list of cover cards (relations also show the relation type, e.g. "Prequel"). Clicking a card opens that entry on the tracker's site in a new tab.

A new Settings → Browse → "Show related for each manga" toggle (default on, described as "Currently supported for: AniList, MyAnimeList") controls the button's visibility.

Rationale

Gives a quick way to discover related works and recommendations for a manga, sourced from the trackers the user already uses, without leaving the app.

Behaviour notes

  • The related data is resolved per tracker from the manga's existing tracker binding, or a confident title-search fallback (handled server-side).
  • The mangaRelated result is evicted from the Apollo cache on tracker bind/unbind, so it refreshes when the binding (and therefore the resolved entry) changes.

Depends on

Testing

  • tsc clean, oxlint/oxfmt clean, i18n strings extracted.
  • Verified end-to-end against a local server built from the companion PR (settings toggle, button visibility, the four populated rows, and outbound card links).

Visual changes

Adds the "Related" button to the details action row and a new modal; adds one toggle row under Settings → Browse.

image image

…dations

Add a "Related" button next to Tracking on the manga details page that
opens a modal with four rows: AniList relations & recommendations and
MyAnimeList related entries & recommendations. Each row shows the
tracker logo and a horizontally scrolling list of cover cards that link
to the entry on the tracker site.

Add a "Show related for each manga" toggle (default on) to
Settings > Browse to control the button's visibility.
The mangaRelated query result is keyed only by mangaId, but the related
data depends on which tracker binding (remote id) the manga resolves to.
Binding or unbinding a tracker did not invalidate it, so reopening the
Related modal showed stale results.

Evict the cached mangaRelated field on tracker bind/unbind so it is
refetched the next time the Related modal opens.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant