Conversation
The dashboard had two "View Hosts" CTAs (stats card and quick-action button) linking to /host, which 404s. The host-list page lives at /environment; /host is reserved for the dynamic /host/[ip] detail route and has no index page. - src/pages/dashboard.tsx:181 stats-card CTA - src/pages/dashboard.tsx:324 ActionButton onClick
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The dashboard had two "View Hosts" CTAs linking to
/host, which 404s. The host-list page lives at/environment— the/host/route is only defined aspages/host/[ip].tsx(the dynamic detail page), with no index.Fixes the CTAs in two places:
src/pages/dashboard.tsx:181— stats-card CTA hrefsrc/pages/dashboard.tsx:324— ActionButtonrouter.pushBoth now route to
/environment.Test plan
/environment, no 404/environment, no 404/environmentstill renders the host table normally🤖 Generated with Claude Code