feat(ui): auto-show deterministic impact on drift, LLM narration on demand - #40
Merged
Conversation
…emand Opening a drift record now auto-renders the System impact panel (risk, changed paths, affected records) computed locally — no LLM call. Narration is opt-in via a 'Narrate with LLM' button that sends this record's diff to the configured provider; the copy says so plainly instead of the misleading 'no data left your machine'. Both the top Analyze-impact button and the in-panel Narrate button now show a spinner + disabled state during the (multi-second) call so they don't look frozen. Version-to-version impact stays click-to-run. Verified in-browser: panel auto-shows with use_llm:false (no provider call), narrate fires the LLM call and renders, and the buttons spin. JS syntax-checked with node --check (caught a duplicate-const regression the Python-side checks can't see).
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.
Opening a drift record now auto-renders the System impact panel (risk, changed paths, affected records) computed locally — no LLM call. Narration is opt-in.
What changed
Verification (e2e, in-browser)
use_llm:false(no provider call).node --check(this caught a duplicate-constregression that Python-side ast/ruff can't see).Answers the two asks: keep Analyze impact open by default (deterministic, no per-open cost) + fix the frozen/misleading narrate button.