Skip to content

frontend: fix shadow links page crash when feature is disabled#2225

Merged
c-julin merged 4 commits intomasterfrom
jc/fix-shadowlink-tab
Feb 17, 2026
Merged

frontend: fix shadow links page crash when feature is disabled#2225
c-julin merged 4 commits intomasterfrom
jc/fix-shadowlink-tab

Conversation

@c-julin
Copy link
Contributor

@c-julin c-julin commented Feb 16, 2026

Summary

  • The shadow links route loader throws FailedPrecondition when cluster linking is disabled, causing TanStack Router to show a generic error page
  • The ShadowLinkListPage component already handles this error gracefully (shows "enable shadowing" card), but never renders because the loader throws first
  • Wraps the loader's ensureQueryData in a try/catch that swallows FailedPrecondition, letting the component handle it
  • Handle Shadowlinks tab on non-redpanda cluster

@c-julin c-julin requested review from jvorcak and weeco February 16, 2026 12:49
@weeco
Copy link
Contributor

weeco commented Feb 16, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

weeco and others added 3 commits February 16, 2026 14:25
Shadow Links should remain visible in the sidebar even when the feature
is disabled so users can see instructions on how to enable it. The
loader try-catch handles FailedPrecondition gracefully for disabled
clusters.
… clusters

Non-Redpanda clusters (e.g. Apache Kafka) return Code.Unavailable because
the Redpanda Admin API doesn't exist. Previously this showed the same
FeatureDisabled card with an `rpk` command, which is incorrect for these
clusters. Add a separate ShadowLinkUnavailableState with an info alert
explaining that shadowing requires a Redpanda cluster with the Admin API.
@c-julin c-julin force-pushed the jc/fix-shadowlink-tab branch from 3df3a58 to e187687 Compare February 16, 2026 17:51
@c-julin c-julin merged commit 0d7d6e6 into master Feb 17, 2026
23 of 24 checks passed
@c-julin c-julin deleted the jc/fix-shadowlink-tab branch February 17, 2026 09:58
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.

2 participants