Repository navigation
Phase 33 slice D: the inspector and comments, rebuilt and live - #267
Merged
Merged
Conversation
Phase 33 slice D. The Quality tab leads with the score against the bar and a reason line, then the categories lowest first and the issues grouped as canvas_evaluate groups them for agents, each with a "Show n nodes" link. Design system and Feedback are restyled, and the Import placeholder is gone. Comment opens a popover under the button, and a click in the preview pins the note. The panels, comments and counts refresh while the page is open.
Retry a failed panel or comment fetch on the next poll instead of dropping it, let the newest response win, flag comments whose node an edit removed, keep a Show n nodes button in step with its outline, return focus after Cancel, Save and Delete, tell a scoring failure from an empty canvas, and describe the new inspector and comment flow in the README.
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.
Fourth slice of Phase 33. It rebuilds the detail page's inspector and the comment flow to design screens 2 and 4. It also makes the inspector, the comments and their counts update while the page is open.
What changed
canvas_evaluategroups them for agents ("28 findings in 9 groups"), errors first. Each row is "Category · kind" (the cliché tell, auto-fixable, or the severity), then the message, then a Show n nodes link that outlines those nodes in the preview./api/canvas/:id/metagains afeedbackKey, and a new route,GET /canvas/:id/inspector, returns the panels and the node index.resolve_feedback, the comment moves to Resolved and the counts drop. Neither needs a reload.Two deliberate narrowings
canvas_evaluate. A keyboard or touch user can no longer read it in the viewer.Tests
test/unit/test-viewer-quality.ts(16 checks): the chip, the reason line, the category order, the folded counts, the order and kind of each row, and the critique row.test/browser/test-viewer-inspector.ts(29 checks): the tabs and keyboard; Show n nodes; the popover for page-level and pinned comments, Escape, and deleting through the dialog; and the live panels, including a failed fetch being retried and a comment flagged "node gone" after an edit removes its node.test/e2e/test-viewer-live-mcp.ts: drives the real MCP server. A comment resolved withresolve_feedbackand an edit made withbatch_designboth show on an open page without a reload. The test pins the embedded viewer's port, so it never touches a viewer you have running.test-viewer-panels.ts(inspector markup),test-eval-cache-key.ts(it reads "Built from" instead of the toolbar chip), and the delete-dialog selectors intest-viewer-detail.ts, now that the page has two dialogs.Verification
An independent verifier found no major issues. It checked:
Its minor findings are fixed in the second commit:
The docs audit's README corrections are in the same commit.