Show Risk and Effort in TUI metadata pane and CLI output with placeholder when empty#932
Merged
SorraTheOrc merged 2 commits intomainfrom Mar 13, 2026
Merged
Conversation
- Add Risk and Effort rows to MetadataPaneComponent (with '—' placeholder when empty) - Always show Risk/Effort in CLI concise/normal/full/tree formats (with '—' placeholder) - Update tests: row count 9→11, add risk/effort rendering assertions - Add new tests for placeholder and value rendering in TUI and CLI helpers - Update CLI.md and TUI.md docs to mention Risk/Effort always visible Co-authored-by: SorraTheOrc <250240+SorraTheOrc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add visible Risk and Effort fields in metadata
Show Risk and Effort in TUI metadata pane and CLI output with placeholder when empty
Mar 13, 2026
SorraTheOrc
approved these changes
Mar 13, 2026
Member
SorraTheOrc
left a comment
There was a problem hiding this comment.
Tests passed locally. Small UI/CLI updates as described look correct. Approving and will merge if mergeable.
Closed
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.
Risk and Effort fields existed in the data model but were invisible in the TUI metadata pane and conditionally omitted from CLI output when empty — making triage and prioritization decisions harder.
Changes
TUI metadata pane (
src/tui/components/metadata-pane.ts)riskandefforttoupdateFromItemsignatureRiskandEffortrows; shows—placeholder when emptyCLI output (
src/commands/helpers.ts)Risk: <value>andEffort: <value>, using—instead of omitting the lineTests
tui-github-metadata.test.tsandtui-50-50-layout.test.tsDocs
CLI.md:showcommand notes Risk/Effort always appear with placeholderTUI.md: Overview updated to list the full metadata pane row setWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh gh issue create --repo owner/name --title Alpha item --body-file -(http block)/usr/bin/gh gh issue create --repo owner/name --title Alpha item --body-file - --global ode-gyp-bin/bashgit rev-parse --show-toplevel bash i/mo�� rev-parse --show-toplevel(http block)/usr/bin/gh gh issue create --repo owner/name --title Alpha item --body-file - copilot/add-risk-c dist/loader.mjs bash i/mo�� rev-parse x5DI9/wt e_modules/.bin/bash tree-rendering.tnode --local de/node/bin/bash/home/REDACTED/work/ContextHub/ContextHub/src/cli.ts bash(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This section details on the original issue you should resolve
<issue_title>Show risk and effort scores int he meta-data</issue_title>
<issue_description>
Headline summary
Add visible Risk and Effort fields to item metadata in TUI and CLI; show placeholders when empty.
Problem statement
The metadata UI and CLI outputs currently omit visible Risk and Effort entries. Developers and triage users need these fields surfaced in the metadata pane and
wl showoutput (showing a placeholder when empty) so intake triage and prioritization decisions can be made quickly.Users
wl showfor summaries in workflows (example user story: "As a developer, I wantwl show <id>to include risk/effort so I can decide assignment and estimate work").Success criteria
RiskandEffortrows; when a field is empty the UI shows a placeholder like "—".wl show <id>and summary output includeRisk: <value>andEffort: <value>(or placeholder when empty) in the CLI output and inwl show -c(compact) where applicable.wl showoutput, and sync label->field mapping.Constraints
riskandeffortfields as the display source-of-truth (do not change the existing label priority without explicit approval).src/github.tsandsrc/github-sync.tsand must remain compatible with existing labels.MetadataPaneComponentandwl showformatting code; keep behavior consistent across TUI and CLI.risk/effortbehaviour may need small updates to expect the placeholder instead of an empty string.Existing state
riskandefforton work items (fields exist in tests and types).src/tui/components/metadata-pane.tsandsrc/tui/controller.tshandle the metadata pane (tests reference empty risk/effort intests/tui/*).src/github.tsandsrc/github-sync.tsalready read/writeriskandeffortfrom labels; some code paths currently use labelFields when present.riskandeffortdefaulting to empty strings; some tests expect empty values.Desired change
MetadataPaneComponent.updateFromItemto renderRiskandEffortrows, showing the work item'sriskandeffortvalues or a placeholder when empty.wl showCLI output (and compact summary output) to includeRiskandEffortlines consistently.risk:andeffort:labels into local fields during sync, but keep local fields as the displayed values (no new mixed-display behavior).CLI.mdand any metadata-pane documentation to mention the visible fields and placeholder behavior.Related work
risk:andeffort:.--riskand--effortflags and example usage; update required.riskandeffortfields and should be extended to cover the rendering and CLI output.Notes / open questions
Please review this draft and either approve or provide concise edits (list edits or paste corrected sentences). Once you approve I'll run the five brief reviews and then update the Worklog item description.
Risks
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.