Home: update setup guide link/title to Getting Started Guide (#105692)

* Home: update setup guide link/title to Getting Started Guide

* Home: check plugin presence to show getting started guide

* Home: remove now unused homeSetupGuide feature toggle

* Home: use sentence case for Getting started guide item
This commit is contained in:
Matt Cowley
2025-05-22 14:06:50 +03:00
committed by GitHub
parent 9729c4cf60
commit 2ce1c67d92
8 changed files with 7 additions and 22 deletions
+3 -3
View File
@@ -225,13 +225,13 @@ func (s *ServiceImpl) getHomeNode(c *contextmodel.ReqContext, prefs *pref.Prefer
SortWeight: navtree.WeightHome,
}
ctx := c.Req.Context()
if s.features.IsEnabled(ctx, featuremgmt.FlagHomeSetupGuide) {
if _, exists := s.pluginStore.Plugin(ctx, "grafana-setupguide-app"); exists {
var children []*navtree.NavLink
// setup guide (a submenu item under Home)
children = append(children, &navtree.NavLink{
Id: "home-setup-guide",
Text: "Setup guide",
Url: homeUrl + "/setup-guide",
Text: "Getting started guide",
Url: "/a/grafana-setupguide-app/getting-started",
SortWeight: navtree.WeightHome,
})
homeNode.Children = children