Skip to content

feat(backlog ui): surface resolution info on done items (M1 of #31)#5

Merged
akenel merged 1 commit into
mainfrom
feat/bl-resolution-ui-m1
May 23, 2026
Merged

feat(backlog ui): surface resolution info on done items (M1 of #31)#5
akenel merged 1 commit into
mainfrom
feat/bl-resolution-ui-m1

Conversation

@akenel

@akenel akenel commented May 23, 2026

Copy link
Copy Markdown
Owner

What

M1 milestone of the BL community-engagement design (#31).

Adds a "How it was fixed" panel to the BL detail view that shows up on done items with resolution_sha or resolution_note set.

Why

Closes the user loop: people who file BL items can now SEE the commit + note that fixed their issue. Until now, even after #30 wired the API, there was no surface for this info — it was buried in the activity log as a COMMENT entry.

Per the design doc (PR #4): M1 is the smallest, highest visual impact milestone. Ship-before-locking-rest per the LP CLI lesson.

Visual

┌─ How it was fixed (emerald checkmark icon) ─┐
│ Commit: b50d48c                              │  ← hyperlinked to github
│ Shipped 2026-05-23 via PR #1 (akenel/...)   │
│ One-line filter swap in src/routers/raf...  │
└──────────────────────────────────────────────┘
  • Hidden entirely when both fields are empty (no noise on in-progress items)
  • Inserted between Attachments and Activity Trail so it's prominent on done items but flows naturally

Changes

  • src/templates/pages/backlog.html — 25 lines: one new <div x-show="..."> block with the panel.

NO backend change. NO JS change. Pure template addition because:

Test

Visual verification on staging. Natural test cases:

  • BL-192 (prod has resolution_sha=b50d48c)
  • BL-2 (staging has resolution_sha=70f166f)

Both should show the new panel on their detail view.

Risk

  • Template-only change, no migrations, no logic.
  • Worst case: the panel renders weirdly on some screen size — fixable with one CSS tweak.
  • Items without resolution info: panel doesn't render at all (x-show false).

Generated with Claude Code (Opus 4.7).

First milestone of the BL community-engagement design (#31).

Adds a "How it was fixed" panel to the BL detail view that shows
up whenever selectedItem has a resolution_sha and/or resolution_note
(populated via the API surface shipped in #30, commit 6d764b6).

Visual:
- Emerald-tinted box (matches the "done" status pill color family)
- Checkmark icon
- "Commit: <sha>" with the SHA hyperlinked to the GitHub commit URL
  (github.com/akenel/borrowhood/commit/<sha>)
- The resolution note rendered below in plain text (whitespace-pre-wrap
  so multi-line notes display correctly)
- Hidden entirely when both fields are empty (no visual noise on
  in-progress items)

No backend change. No JS change. Pure template addition because:
- selectedItem already gets the full API response (backlog.js:80)
- resolution_sha + resolution_note are now in BacklogItemRead (PR #3)

Inserted between the Attachments block and the Activity Trail so
it shows up prominently on done items but doesn't interrupt the
flow for active ones.

Validation: visual only -- will eyeball on staging after deploy.
BL-192 and BL-2 have resolution_sha set already (via direct DB
UPDATE this morning + via API later) so they'll be the natural
test cases when staging shows the new panel.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@akenel akenel merged commit a9a7e4f into main May 23, 2026
1 of 2 checks passed
@akenel akenel deleted the feat/bl-resolution-ui-m1 branch May 23, 2026 11:09
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.

1 participant