feat(webui): /work board + detail templates (#1594)#1597
Merged
Conversation
Add unified /work board listing all worksource bindings + a
/work/{forge}/{owner}/{repo}/{number} detail view backed by the
worksource.Service from #1591. Two self-contained Tailwind CDN
templates render board + detail without extending layout.html so
utility classes don't collide with the project stylesheet.
- internal/webui/handlers_work.go: handleWorkBoard +
handleWorkItemDetail; flat WorkBindingRow / WorkItemDetailData
view-models; best-effort forge fetch with 3s timeout; recent-run
history filtered by matched-pipeline name (placeholder until
work_item_ref linkage in #2.4)
- internal/webui/templates/work/{board,detail}.html: Tailwind CDN
pages with SVG icons, no emojis; empty/no-match states; disabled
"Run on this issue" button pointing at #2.4
- internal/webui/embed.go: standalonePageTemplates slice parsed
without layout cloning
- internal/webui/server.go: worksource.Service wired into
serverRuntime via worksource.NewService(rwStore)
- internal/webui/routes.go: register both GET /work routes
- internal/webui/handlers_{test,work_test}.go: extend testTemplates
with inline standalone stubs; round-trip tests for both handlers
(Empty / WithBindings / NoMatch / OneMatch / BadNumber)
- specs/1594-work-board/: spec + plan + tasks
Refs #1594, depends on #1591 (MERGED) and #1590 (MERGED).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /workboard listing bindings with status + recent matchesGET /work/{forge}/{owner}/{repo}/{number}detail view showing matched bindings + run historyworksource.Service.ListBindings+MatchBindingsinto webuiRelated to #1594
Changes
internal/webui/handlers_work.go— board + detail handlersinternal/webui/handlers_work_test.go— round-trip tests for both routesinternal/webui/templates/work/{board,detail}.html— Tailwind templatesinternal/webui/routes.go,server.go,embed.go— wire routes + embed templatesspecs/1594-work-board/{spec,plan,tasks}.md— planning artifactsTest Plan
go test ./internal/webui/...— handler round-trip tests pass/workand/work/<forge>/<owner>/<repo>/<n>in dev server