fix(webui): shorten route descriptions, setup steps, alerts and panel errors
This commit is contained in:
1 parent
8a1e07f93e
commit
cd983c7877
19 files changed
+78
-79
No files matched your search
@@ -133,7 +133,7 @@ func providerAlerts(providers map[string]config.Provider) []alert.Input {
|
||||
Org: org.DefaultOrgID, Kind: alert.KindProviderNoKey, Subject: "provider:" + name,
|
||||
Severity: alert.SeverityAction, Condition: true,
|
||||
Title: fmt.Sprintf("Provider %q has no usable credential", name),
|
||||
Body: "Its API key could not be resolved, so models on this provider cannot run. Check its credential in credential bindings.",
|
||||
Body: "Key unresolved; its models cannot run. Check the binding.",
|
||||
Link: "/settings/credential-bindings",
|
||||
})
|
||||
}
|
||||
@@ -187,7 +187,7 @@ func unboundAlerts(cfg config.Config) map[org.OrgID][]alert.Input {
|
||||
out[orgID] = append(out[orgID], alert.Input{
|
||||
Key: key, Severity: alert.SeverityAction, Condition: true,
|
||||
Title: fmt.Sprintf("%q is granted but has no credential binding", service),
|
||||
Body: "Runs that use this service cannot authenticate. Bind a credential to it.",
|
||||
Body: "Runs cannot authenticate. Bind a credential.",
|
||||
Link: "/settings/credential-bindings",
|
||||
})
|
||||
}
|
||||
@@ -212,7 +212,7 @@ func (c alertChecks) checkRelease(ctx context.Context) {
|
||||
active = append(active, alert.Input{
|
||||
Org: org.DefaultOrgID, Kind: alert.KindReleaseAvailable, Subject: "release",
|
||||
Severity: alert.SeverityInfo, Condition: true,
|
||||
Title: "A newer release is available", Body: "Available: " + strings.Join(parts, ", ") + ".",
|
||||
Title: "Newer release available", Body: "Available: " + strings.Join(parts, ", ") + ".",
|
||||
Link: "/settings/status",
|
||||
})
|
||||
}
|
||||
@@ -342,7 +342,7 @@ func (w *credentialWatch) observe(ctx context.Context, orgName, service string,
|
||||
w.reporter.Sync(ctx, rejected, alert.Input{
|
||||
Key: key, Severity: alert.SeverityAction, Condition: true,
|
||||
Title: fmt.Sprintf("The credential bound to %q is not working", service),
|
||||
Body: "Its secret could not be resolved, so runs that use this service cannot authenticate. Check the binding.",
|
||||
Body: "Secret unresolved; runs cannot authenticate. Check the binding.",
|
||||
Link: "/settings/credential-bindings",
|
||||
})
|
||||
}()
|
||||
|
||||
@@ -98,5 +98,5 @@ type unscopedBroker struct{}
|
||||
func (unscopedBroker) Name() string { return "nats_credential_scope" }
|
||||
|
||||
func (unscopedBroker) Check(context.Context) health.Result {
|
||||
return health.Result{Status: health.StatusDegraded, Detail: "external NATS: agent containers receive the broker token, which reaches every subject; use the embedded broker to scope them to their task"}
|
||||
return health.Result{Status: health.StatusDegraded, Detail: "external NATS: containers get a broker token that reaches every subject; use the embedded broker"}
|
||||
}
|
||||
@@ -68,7 +68,7 @@ func serviceAlert(name string) alert.Input {
|
||||
Org: org.DefaultOrgID, Kind: alert.KindServiceUnhealthy, Subject: "service:" + name,
|
||||
Severity: alert.SeverityWarning, Condition: true,
|
||||
Title: name + " is unhealthy",
|
||||
Body: fmt.Sprintf("%s has not been healthy for over %d minutes.", name, int(serviceGrace.Minutes())),
|
||||
Body: fmt.Sprintf("Down for over %d minutes.", int(serviceGrace.Minutes())),
|
||||
Link: "/settings/status",
|
||||
}
|
||||
}
|
||||
@@ -189,7 +189,7 @@ func policyAlert(p access.Policy) alert.Input {
|
||||
Org: orgID, Kind: alert.KindPolicyInvalid, Subject: "policy:" + p.ID,
|
||||
Severity: severity, Condition: true,
|
||||
Title: fmt.Sprintf("Access policy %s is invalid", p.ID),
|
||||
Body: fmt.Sprintf("The %s-level policy %s does not compile, so it denies everything at its level until it is fixed.", p.Level, p.ID),
|
||||
Body: fmt.Sprintf("The %s-level policy %s does not compile and denies everything at that level.", p.Level, p.ID),
|
||||
Link: "/org/access",
|
||||
}
|
||||
}
|
||||
@@ -25,29 +25,29 @@ type DashboardPage struct {
|
||||
// dashboard_navigate tool can name.
|
||||
var dashboardPages = []DashboardPage{
|
||||
{Path: "/", Label: "Dashboard", Description: "Running work, work needing attention, token spend."},
|
||||
{Path: "/tasks", Label: "Tasks", Description: "Issues Archie has picked up, and where each one stands."},
|
||||
{Path: "/workflows", Label: "Workflows", Description: "The routed workflows and their run history."},
|
||||
{Path: "/settings/skills", Label: "Skills", Description: "The SKILL.md capabilities Archie can activate."},
|
||||
{Path: "/settings/curators", Label: "Curators", Description: "Scheduled passes that curate Archie's memory and captures."},
|
||||
{Path: "/events", Label: "Events", Description: "Captured inbound events, how their fields map, and which workflow they start."},
|
||||
{Path: "/logs", Label: "Logs", Description: "The daemon log stream, filterable by level and component."},
|
||||
{Path: "/settings/channels", Label: "Channels", Description: "Inbound chat and notification channels, and their state."},
|
||||
{Path: "/settings/status", Label: "Status", Description: "Update state, configuration sources, and the listen address."},
|
||||
{Path: "/settings/appearance", Label: "Appearance", Description: "Theme and display preferences."},
|
||||
{Path: "/settings/task-execution", Label: "Task execution", Description: "Work lifecycle: statuses, operator actions, and budgets."},
|
||||
{Path: "/settings/models", Label: "Models", Description: "Model roles and the providers backing them."},
|
||||
{Path: "/settings/repositories", Label: "Repositories", Description: "Repositories Archie watches, and their per-repo gate overrides."},
|
||||
{Path: "/settings/identities", Label: "Identities", Description: "Persistent actors and lifecycle."},
|
||||
{Path: "/settings/personas", Label: "Personas", Description: "The system prompts chat runs under, and the default."},
|
||||
{Path: "/settings/schedules", Label: "Schedules", Description: "Work Archie starts on its own, on a timetable."},
|
||||
{Path: "/settings/scheduling-policy", Label: "Scheduling policy", Description: "How Archie finds work and labels its state on the forge."},
|
||||
{Path: "/settings/review", Label: "Review", Description: "How Archie reviews pull requests: precision filtering and operator approval before posting."},
|
||||
{Path: "/settings/tools", Label: "Tools & MCP", Description: "The tools agents can call, and the MCP servers that add more."},
|
||||
{Path: "/settings/history", Label: "History", Description: "Every settings change: who made it, when, and what it was before."},
|
||||
{Path: "/settings/plugins", Label: "Plugins", Description: "Directories Archie loads extensions from at startup."},
|
||||
{Path: "/settings/secret-engines", Label: "Secret engines", Description: "Available secret engines."},
|
||||
{Path: "/settings/container-runtime", Label: "Container runtime", Description: "The containers agents run in."},
|
||||
{Path: "/settings/harness", Label: "Harness", Description: "OAuth credential bindings and the Kit setup terminal."},
|
||||
{Path: "/tasks", Label: "Tasks", Description: "Picked-up issues and their status."},
|
||||
{Path: "/workflows", Label: "Workflows", Description: "Workflows and run history."},
|
||||
{Path: "/settings/skills", Label: "Skills", Description: "Skills Archie can activate."},
|
||||
{Path: "/settings/curators", Label: "Curators", Description: "Scheduled memory and capture curation."},
|
||||
{Path: "/events", Label: "Events", Description: "Captured events, field mappings, workflow bindings."},
|
||||
{Path: "/logs", Label: "Logs", Description: "Daemon log by level and component."},
|
||||
{Path: "/settings/channels", Label: "Channels", Description: "Chat and notification channels."},
|
||||
{Path: "/settings/status", Label: "Status", Description: "Update state, config sources, listen address."},
|
||||
{Path: "/settings/appearance", Label: "Appearance", Description: "Theme, density, motion."},
|
||||
{Path: "/settings/task-execution", Label: "Task execution", Description: "Statuses, operator actions, budgets."},
|
||||
{Path: "/settings/models", Label: "Models", Description: "Model aliases and providers."},
|
||||
{Path: "/settings/repositories", Label: "Repositories", Description: "Watched repositories and gate overrides."},
|
||||
{Path: "/settings/identities", Label: "Identities", Description: "Actors and their lifecycle."},
|
||||
{Path: "/settings/personas", Label: "Personas", Description: "Chat system prompts and the default."},
|
||||
{Path: "/settings/schedules", Label: "Schedules", Description: "Timetabled work."},
|
||||
{Path: "/settings/scheduling-policy", Label: "Scheduling policy", Description: "Work discovery and forge labels."},
|
||||
{Path: "/settings/review", Label: "Review", Description: "Pull request review: precision filter and approval."},
|
||||
{Path: "/settings/tools", Label: "Tools & MCP", Description: "Agent tools and MCP servers."},
|
||||
{Path: "/settings/history", Label: "History", Description: "Settings changes: who, when, previous value."},
|
||||
{Path: "/settings/plugins", Label: "Plugins", Description: "Extension directories loaded at startup."},
|
||||
{Path: "/settings/secret-engines", Label: "Secret engines"},
|
||||
{Path: "/settings/container-runtime", Label: "Container runtime"},
|
||||
{Path: "/settings/harness", Label: "Harness", Description: "OAuth credential bindings and setup terminal."},
|
||||
}
|
||||
|
||||
// DashboardPages returns a copy of the dashboard page registry.
|
||||
|
||||
@@ -33,19 +33,19 @@ func (s *Server) handleSetup(w http.ResponseWriter, r *http.Request) {
|
||||
operator := view.Chat.Operator
|
||||
|
||||
steps = append(steps, SetupStep{
|
||||
Title: "Give Archie an identity",
|
||||
Detail: "The account it commits and comments as.",
|
||||
Title: "Identity",
|
||||
Detail: "Account Archie commits as.",
|
||||
Done: strings.TrimSpace(view.Identity.BotUser) != "",
|
||||
})
|
||||
|
||||
steps = append(steps, SetupStep{
|
||||
Title: "Connect a repository",
|
||||
Detail: "Archie polls these for issues assigned to it.",
|
||||
Title: "Repository",
|
||||
Detail: "Polled for assigned issues.",
|
||||
Done: len(view.Repositories) > 0,
|
||||
})
|
||||
|
||||
steps = append(steps, SetupStep{
|
||||
Title: "Connect a chat channel",
|
||||
Title: "Chat channel",
|
||||
Detail: "Chat and approvals.",
|
||||
Done: view.Chat.ChannelConfigured,
|
||||
})
|
||||
@@ -57,8 +57,8 @@ func (s *Server) handleSetup(w http.ResponseWriter, r *http.Request) {
|
||||
total += n
|
||||
}
|
||||
steps = append(steps, SetupStep{
|
||||
Title: "Run your first task",
|
||||
Detail: "Assign Archie an issue, or ask it for something in chat.",
|
||||
Title: "First task",
|
||||
Detail: "Assign an issue or ask in chat.",
|
||||
Done: total > 0,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ func (s *Server) refuseUngated(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(http.StatusServiceUnavailable)
|
||||
_ = json.NewEncoder(w).Encode(health.Report{Status: health.StatusDegraded, Components: []health.Component{{
|
||||
Name: "access_policies", Status: health.StatusDegraded, Detail: "access policies have not loaded; requests are refused",
|
||||
Name: "access_policies", Status: health.StatusDegraded, Detail: "policies not loaded; requests refused",
|
||||
}}})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user