Skip to content

feat: implement Phases 3-6 — HTTP API, dashboard, CLI, and packaging#3

Merged
reckziegelwilliam merged 4 commits intomainfrom
phase-3-6-api-dashboard-cli-packaging
Apr 1, 2026
Merged

feat: implement Phases 3-6 — HTTP API, dashboard, CLI, and packaging#3
reckziegelwilliam merged 4 commits intomainfrom
phase-3-6-api-dashboard-cli-packaging

Conversation

@reckziegelwilliam
Copy link
Copy Markdown
Owner

Phase 3 — HTTP API:

  • chi router with Bearer token auth middleware
  • REST endpoints: enqueue, get/list/delete jobs, list queues, retry, cancel
  • Config package for env-var based server configuration
  • Wired cmd/queuekitd with graceful shutdown and backend selection
  • 19 integration tests with mock backend (all passing)

Phase 4 — Dashboard:

  • Server-rendered html/template views with embedded CSS
  • Queues overview with health scores
  • Queue detail with status filter tabs and pagination
  • Job detail with payload display and retry button

Phase 5 — CLI:

  • Cobra-based CLI with viper YAML config support
  • Commands: enqueue, inspect queues/jobs, retry, cancel
  • HTTP client wrapper with auth and error handling

Phase 6 — Packaging & Examples:

  • Multi-stage Dockerfile with distroless final image
  • docker-compose.yml with Postgres, Redis, and queuekitd
  • Simple worker example and cron-style recurring job example
  • Complete README rewrite with API reference and usage docs

Made-with: Cursor

Phase 3 — HTTP API:
- chi router with Bearer token auth middleware
- REST endpoints: enqueue, get/list/delete jobs, list queues, retry, cancel
- Config package for env-var based server configuration
- Wired cmd/queuekitd with graceful shutdown and backend selection
- 19 integration tests with mock backend (all passing)

Phase 4 — Dashboard:
- Server-rendered html/template views with embedded CSS
- Queues overview with health scores
- Queue detail with status filter tabs and pagination
- Job detail with payload display and retry button

Phase 5 — CLI:
- Cobra-based CLI with viper YAML config support
- Commands: enqueue, inspect queues/jobs, retry, cancel
- HTTP client wrapper with auth and error handling

Phase 6 — Packaging & Examples:
- Multi-stage Dockerfile with distroless final image
- docker-compose.yml with Postgres, Redis, and queuekitd
- Simple worker example and cron-style recurring job example
- Complete README rewrite with API reference and usage docs

Made-with: Cursor
- Update go-version from 1.23 to 1.24 in ci.yml and .golangci.yml
  to match go.mod requirement
- Fix postgres_test.go: use retrying.ID instead of undefined failed.ID
  in TestPostgresBackend_Nack

Made-with: Cursor
@codecov-commenter
Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

- Disable fieldalignment govet analyzer (micro-optimization that hurts readability)
- Fix deprecated gomnd → mnd, check-shadowing → shadow in .golangci.yml
- Add package doc comments to all packages (ST1000/stylecheck)
- Fix unchecked error returns: be.Close, tx.Rollback, m.Close, strconv.Atoi,
  json.Encode, viper.BindPFlag, viper.ReadInConfig, resp.Body.Close,
  cmd.Flags.Get*, fmt.Fprint*, w.Flush, MarkFlagRequired
- Fix misspell: "cancelled" → "canceled" (US English) across all files
- Fix gocritic exitAfterDefer: explicit cleanup before os.Exit in queuekitd
- Fix gocritic ifElseChain: rewrite to switch in redis ListJobs
- Fix prealloc: pre-allocate jobIDs slice in redis ListJobs
- Fix unparam: remove always-constant queueName param from newTestJob
- Remove unused scanJob function from postgres backend

Made-with: Cursor
- Set errcheck check-blank to false (allows _ = convention for
  intentionally discarded errors)
- Fix gofmt alignment issue in cmd/queuekitd/main.go
- Fix package doc comments: remove blank lines between comment and
  package directive in config, httpapi, dashboard
- Add package doc comments to all package main files
  (cmd/queuekitd, cmd/queuekit, examples/simple, examples/cron)
- Add package doc comment to httpapi_test package
- Fix unchecked be.Close() in example files
- Pre-allocate result slice in httpapi_test mock ListJobs

Made-with: Cursor
@reckziegelwilliam reckziegelwilliam merged commit e464dd8 into main Apr 1, 2026
5 checks passed
@reckziegelwilliam reckziegelwilliam deleted the phase-3-6-api-dashboard-cli-packaging branch April 1, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants