Commit Graph

13 Commits

Author SHA1 Message Date
Henrik Jess Nielsen
5195d32568 fix: use versioned image tag via var.image_tag, align Traefik tags with DevOpsMCP pattern
All checks were successful
Build and Deploy DevOpsDash / build-image (push) Successful in 30s
- Add service_name and image_tag variables to nomad job
- Use ${var.image_tag} in image ref instead of hardcoded 'latest'
- CI now passes git SHA as -var='image_tag=<sha>' to nomad job run
- Align Traefik tags with DevOpsMCP pattern (service_name var, rate limiting)
- Add canary update strategy and reschedule block
- Move service block to group level (nomad best practice)
2026-05-09 18:06:18 +02:00
Henrik Jess Nielsen
00b7b760e4 fix: add tls.certresolver=letsencrypt to Traefik tags
All checks were successful
Build and Deploy DevOpsDash / build-image (push) Successful in 17s
Matches pattern used by mimir.i80.dk and other i80 services.
Without certresolver Traefik has no cert for dash.i80.dk.
2026-05-09 17:53:05 +02:00
Henrik Jess Nielsen
d4cb06479c fix: load board detail with tasks on select, fix progress % calculation
All checks were successful
Build and Deploy DevOpsDash / build-image (push) Successful in 7s
- select() now fetches /api/v1/boards/{id} to get tasks array (lazy, once)
- updateTaskStatus() merges response correctly (spread instead of replacing)
- Progress % in sidebar uses done_count/task_count from list summary,
  or computed from tasks array when board detail is loaded
2026-05-09 17:30:49 +02:00
Henrik Jess Nielsen
26e4bba041 fix: add x-data to body so Alpine removes x-cloak, add Makefile for local dev
All checks were successful
Build and Deploy DevOpsDash / build-image (push) Successful in 6s
- body had x-cloak but no x-data, so Alpine never initialized it and page stayed display:none
- added x-data to <body> tag — Alpine now processes the element and removes x-cloak
- added Makefile: make dev (hot-reload), make install, make open, make lint/fmt
2026-05-09 17:21:07 +02:00
Henrik Jess Nielsen
8905dd2040 fix(ui): handle available_agents/available_skills response keys and nested agent/skill content
All checks were successful
Build and Deploy DevOpsDash / build-image (push) Successful in 8s
- Use r.available_agents and r.available_skills field names from MCP proxy
- Fix extractContent to unwrap agents[0].content / skills[0].content
- Fix Alpine x-for key to include item.name for agents/skills
- Fix selected state comparison to handle name-keyed items
2026-05-09 17:13:10 +02:00
Henrik Jess Nielsen
685e4271c1 fix(mcp): add MCP session initialize handshake before tool calls
All checks were successful
Build and Deploy DevOpsDash / build-image (push) Successful in 7s
FastMCP 2.0 requires:
1. POST initialize → get mcp-session-id header
2. POST notifications/initialized with session ID
3. POST tools/call with session ID

Also prefer structuredContent over text/content in result extraction.
2026-05-09 17:08:36 +02:00
Henrik Jess Nielsen
86c44799a6 fix: MCP client SSE transport — add correct Accept headers and SSE response parsing
All checks were successful
Build and Deploy DevOpsDash / build-image (push) Successful in 6s
FastMCP 2.0 streamable HTTP requires Accept: application/json, text/event-stream
and can return text/event-stream responses with data: {...} SSE lines.
2026-05-09 17:00:52 +02:00
Henrik Jess Nielsen
fa4534bfb2 feat: Projects tab, 4-tab dashboard, full knowledge browser
All checks were successful
Build and Deploy DevOpsDash / build-image (push) Successful in 8s
- Add projects router (Redis projects + workcontexts merged)
- Register projects router in main.py
- Extend knowledge router: howtos, agents, skills via MCP proxy
- Extend mcp_client: list/get howtos, agents, skills
- Rewrite dashboard.html: 4 tabs (Taskz/Worklog/Projects/Knowledge)
  - Taskz: sidebar board list + Kanban columns with task modal
  - Worklog: context/days picker + standup button
  - Projects: context filter sidebar + work context display
  - Knowledge: 6 sub-tabs (docs/howtos/agents/skills/adrs/memories)
    with markdown rendering via marked.js
2026-05-09 16:54:30 +02:00
Henrik Jess Nielsen
70418bc45b Remove host volume from Nomad job — unblocks placement on autobox
All checks were successful
Build and Deploy DevOpsDash / build-image (push) Successful in 31s
The devops-mcp-data host volume is not yet configured on autobox.i80.dk,
causing 'missing compatible host volumes' placement failure.

Comment out the volume + volume_mount blocks so the job can schedule
immediately. Knowledge catalog files are accessed via MCP proxy for now.

Instructions to re-enable (when ready):
  Add to /etc/nomad.d/client.hcl on autobox:
    host_volume "devops-mcp-data" {
      path      = "/opt/devops-mcp/data"
      read_only = false
    }
  Then: mkdir -p /opt/devops-mcp/data && systemctl restart nomad

Also: switch auth to HARBOR_ROBOT_TOKEN pattern (matches devops-mcp.nomad),
add force_pull=true, set provider=consul.
2026-05-09 16:48:06 +02:00
Henrik Jess Nielsen
13cc4bf2e5 Fix Dockerfile: create /data as root before switching to appuser
Some checks failed
Build and Deploy DevOpsDash / build-image (push) Has been cancelled
mkdir /data was running after USER appuser — no permission to write to /.
Move mkdir + chown into the same RUN layer before USER switch.
2026-05-09 16:40:36 +02:00
Henrik Jess Nielsen
ab26eb1a91 Fix CI workflow: match DevOpsMCP runner pattern
Some checks failed
Build and Deploy DevOpsDash / build-image (push) Failing after 34s
- Use 'debian-host' runner (not ubuntu-latest)
- Use docker login with robot$gitserver + HARBOR_ROBOT_TOKEN secret
- Plain docker build/push (no docker/build-push-action)
- Add Nomad deploy step (nomad job run devops-dash.nomad)
- Add deployment status check + logs
2026-05-09 16:38:43 +02:00
Henrik Jess Nielsen
6ee58d1e57 Add routers package __init__.py
Some checks failed
Build and push DevOpsDash / build (push) Has been cancelled
2026-05-09 16:36:47 +02:00
Henrik Jess Nielsen
ac85040e4d Initial DevOpsDash — FastAPI + Alpine.js dashboard for DevOpsMCP
Some checks failed
Build and push DevOpsDash / build (push) Has been cancelled
- Taskz kanban board (create/edit tasks, findings, status/priority)
- Worklog timeline + standup summary (proxied from DevOpsMCP MCP API)
- Knowledge browser (ADRs, memories, knowledge catalog files)
- FastAPI backend reading same Redis as DevOpsMCP
- Read-only bind-mount for DevOpsMCP data directory (/data)
- Nomad job spec (dash.i80.dk, Traefik TLS, host volume read-only)
- Gitea Actions CI → registry.i80.dk/gitea/devops-dash:latest
2026-05-09 16:36:18 +02:00