import React, { useContext } from "react"; import { EuiPageTemplate, EuiText, EuiFlexGroup, EuiFlexItem, EuiTitle, EuiSpacer, EuiSkeletonText, EuiEmptyPrompt, } from "@elastic/eui"; import { useDocumentTitle } from "../hooks/useDocumentTitle"; import ObjectsCountStats from "../components/ObjectsCountStats"; import ExplorePanel from "../components/ExplorePanel"; import useLoadRegistry from "../queries/useLoadRegistry"; import RegistryPathContext from "../contexts/RegistryPathContext"; const ProjectOverviewPage = () => { useDocumentTitle("Feast Home"); const registryUrl = useContext(RegistryPathContext); const { isLoading, isSuccess, isError, data } = useLoadRegistry(registryUrl); return (

{isLoading && } {isSuccess && data?.project && `Project: ${data.project}`}

{isLoading && } {isError && ( Error Loading Project Configs} body={

There was an error loading the Project Configurations. Please check that feature_store.yaml file is available and well-formed.

} /> )} {isSuccess && (data?.description ? (
{data.description}
) : (

Welcome to your new Feast project. In this UI, you can see Data Sources, Entities, Feature Views and Feature Services registered in Feast.

It looks like this project already has some objects registered. If you are new to this project, we suggest starting by exploring the Feature Services, as they represent the collection of Feature Views serving a particular model.

Note: We encourage you to replace this welcome message with more suitable content for your team. You can do so by specifying a{" "} project_description in your{" "} feature_store.yaml file.

))}
); }; export default ProjectOverviewPage;