Redirect to software inventory on 404 when switching fleets on title (#48389)

This commit is contained in:
Rahul Raghunathan
2026-07-28 13:58:55 -07:00
committed by GitHub
parent 5bdbcc8495
commit 8f7a4ba2a0
2 changed files with 10 additions and 2 deletions
@@ -0,0 +1 @@
* Improved empty state copy on software title detail page when the software is not found in the selected fleet.
@@ -23,7 +23,10 @@ import {
MAX_PACKAGES_PER_TITLE,
NO_VERSION_OR_HOST_DATA_SOURCES,
} from "interfaces/software";
import { APP_CONTEXT_NO_TEAM_ID } from "interfaces/team";
import {
APP_CONTEXT_NO_TEAM_ID,
APP_CONTEXT_ALL_TEAMS_ID,
} from "interfaces/team";
import {
canDownloadSoftwareInstaller,
canWriteSoftware,
@@ -665,7 +668,11 @@ const SoftwareTitleDetailsPage = ({
if (isSoftwareTitleError) {
return (
<DetailsNoHosts
header="Software not detected"
header={
currentTeamId === APP_CONTEXT_ALL_TEAMS_ID
? "Software not found"
: "Software not found in this fleet"
}
details="Expecting to see software? Check back later."
/>
);