Back to Gastown

Gas Town Control Center

internal/web/templates/convoy.html

1.0.16.8 KB
Original Source

🎩The Mayor {{if .Mayor}} {{if .Mayor.IsAttached}} Attached {{else}} Detached {{end}} {{else}} Unknown {{end}} {{if .Mayor}}{{if .Mayor.IsAttached}}

Activity {{.Mayor.LastActivity}}

Runtime{{.Mayor.Runtime}}

{{end}}{{end}} {{if .Summary}}

{{if .Health}} {{if .Health.HeartbeatFresh}}✓{{else}}⚠{{end}}💓 {{.Health.DeaconHeartbeat}} {{end}} {{.Summary.PolecatCount}}🦨 Polecats

{{.Summary.HookCount}}🪝 Hooks

{{.Summary.IssueCount}}📋 Work

{{.Summary.ConvoyCount}}🚚 Convoys

{{.Summary.EscalationCount}}⚠️ Escalations

{{if .Summary.HasAlerts}} {{if .Summary.StuckPolecats}} 💀 {{.Summary.StuckPolecats}} stuck {{end}} {{if .Summary.StaleHooks}} ⏰ {{.Summary.StaleHooks}} stale hooks {{end}} {{if .Summary.UnackedEscalations}} 🔔 {{.Summary.UnackedEscalations}} unacked {{end}} {{if .Summary.HighPriorityIssues}} 🔥 {{.Summary.HighPriorityIssues}} P1/P2 {{end}} {{if .Summary.DeadSessions}} ☠️ {{.Summary.DeadSessions}} dead {{end}} {{else}} ✓ All clear {{end}} {{end}}

🚚 Convoys

{{len .Convoys}}+ New Convoy▼Expand

{{if .Convoys}}

StatusConvoyProgressWorkActivity
{{range .Convoys}}▶ {{if eq .WorkStatus "complete"}} ✓ Done {{else if eq .WorkStatus "active"}} Active {{else if eq .WorkStatus "stale"}} Stale {{else if eq .WorkStatus "stuck"}} Stuck {{else}} Waiting {{end}}{{.ID}} {{if .Title}}
{{.Title}}
{{end}} {{if .Assignees}}
{{range .Assignees}}{{.}}{{end}}
{{end}}
{{.Progress}} {{if .Total}}{{.ProgressPct}}%{{end}}
{{if .Total}}

{{end}} | {{if .Total}} {{if .ReadyBeads}}{{.ReadyBeads}} ready{{end}} {{if .InProgress}}{{.InProgress}} active{{end}} {{if eq .WorkStatus "complete"}}all done{{end}} {{end}} | {{.LastActivity.FormattedAge}} | {{end}} {{else}}

No active convoys

{{end}}

← Back

Tracked Issues

  • Add Issue

AddCancel

Loading issues...

StatusIDTitleAssigneeProgress

No issues in this convoy

← BackNew Convoy

Name

Issue IDs (space-separated)

CancelCreate Convoy

👨‍💼 Crew

0▼Expand

Loading crew...

NameRigStateHookActivitySessionActions

No crew configured

🦨 Polecats

{{len .Workers}}▼Expand

{{if .Workers}}

WorkerTypeRigWorking OnStatusActivity
{{range .Workers}}{{.Name}}{{if eq .AgentType "refinery"}}refinery{{else}}polecat{{end}}{{.Rig}}{{if .IssueID}} {{.IssueID}}{{.IssueTitle}} {{else}} — {{end}}{{if eq .WorkStatus "working"}} Working {{else if eq .WorkStatus "stale"}} Stale {{else if eq .WorkStatus "stuck"}} Stuck {{else}} Idle {{end}}
{{end}}
{{else}}

No polecats

{{end}}

📟 Sessions

{{len .Sessions}}▼Expand

{{if .Sessions}}

RoleRigWorkerActivity
{{range .Sessions}}{{.Role}}{{.Rig}}{{.Worker}}
{{end}}
{{else}}

No active sessions

{{end}}

← Back

Loading...

📜 Activity

{{len .Activity}}▼Expand {{if .Activity}}

Category:AllAgentWorkCommsSystem

Rig:All rigs

Agent:All agents

{{end}} {{if .Activity}} {{range .Activity}}

{{.Time}}

{{.Icon}}{{.Summary}}

{{if .Actor}}{{.Actor}}{{end}} {{if .Rig}}{{.Rig}}{{end}} {{.Type}}

{{end}}

No events match current filters

{{else}}

No recent activity

{{end}}

✉️ Mail

{{len .Mail}} InboxAll Traffic ✎▼Expand

Loading inbox...

No mail in inbox

{{if .Mail}}

FromToSubjectTime
{{range .Mail}}{{.From}}{{.To}}{{if eq .Priority "urgent"}}⚡{{end}} {{if eq .Priority "high"}}!{{end}} {{.Subject}}
{{end}}
{{else}}

No mail traffic

{{end}}

← Back

From:

↩ Reply

← BackNew Message

To:

Subject:

Message:

SendCancel

🔀 Merge Queue

{{len .MergeQueue}}▼Expand

{{if .MergeQueue}}

PRRepoTitleCIMerge
{{range .MergeQueue}}#{{.Number}}{{.Repo}}{{.Title}}{{if eq .CIStatus "pass"}}CI Pass {{else if eq .CIStatus "fail"}}CI Fail {{else}}CI Running{{end}}
{{end}}
{{else}}

No PRs in queue

{{end}}

← BackOpen in GitHub ↗

Description

Labels

Checks

🚨 Escalations

{{len .Escalations}}▼Expand

{{if .Escalations}}

SeverityIssueFromAgeActions
{{range .Escalations}}{{if eq .Severity "critical"}}CRIT {{else if eq .Severity "high"}}HIGH {{else if eq .Severity "medium"}}MED {{else}}LOW{{end}}{{.Title}} {{if .Acked}}ACK{{end}}{{.EscalatedBy}}{{.Age}}
{{end}}
{{else}}

No escalations

{{end}}

🏗️ Rigs

{{len .Rigs}}▼Expand

{{if .Rigs}}

NamePolecatsCrewAgents
{{range .Rigs}}{{.Name}}{{.PolecatCount}}{{.CrewCount}}
{{end}}
{{else}}

No rigs configured

{{end}}

🐕 Dogs

{{len .Dogs}}▼Expand

{{if .Dogs}}

NameStateWorkActivity
{{range .Dogs}}{{.Name}}{{if eq .State "idle"}}Idle {{else}}Working{{end}}{{.Work}}
{{end}}
{{else}}

No dogs in kennel

{{end}}

{{if .Queues}}

📋 Queues

{{len .Queues}}▼Expand

QueueStatusAvailProcDoneFail
{{range .Queues}}{{.Name}}{{if eq .Status "active"}}Active {{else if eq .Status "paused"}}Paused {{else}}Closed{{end}}{{.Available}}{{.Processing}}{{.Completed}}
{{end}}

{{end}}

📋 Work

{{len .Issues}}+ New▼Expand

ReadyIn ProgressAll

{{if .Issues}}

PriIDTitleStatusAgeActions
{{range .Issues}}{{if eq .Priority 1}}P1 {{else if eq .Priority 2}}P2 {{else if eq .Priority 3}}P3 {{else}}P4{{end}}{{.ID}}{{.Title}}{{if .Assignee}}{{.Assignee}}{{else}}Ready{{end}}{{.Age}}
{{end}}
{{else}}

No work items

{{end}}

← Back

Description

Dependencies

Blocks

🪝 Hooks

{{len .Hooks}}+ Attach {{if .Hooks}}Clear All{{end}} ▼Expand

AttachCancel

{{if .Hooks}}

BeadTitleAgentHooked
{{range .Hooks}}{{.ID}}{{.Title}}{{.Agent}}{{if .IsStale}} {{.Age}} {{else}} {{.Age}} {{end}}
{{end}}
{{else}}

No hooked work

{{end}}

↑↓ navigate↵ executeesc close

📿 Create New Issue

Title *

Priority🔴 P1 - Critical🟠 P2 - High (default)🟡 P3 - Medium⚪ P4 - Low

Description (optional)

CancelCreate Issue

📋 Command Output CopyClose