8000 Show additional repositories, reviews and findings in workspace views by redoh · Pull Request #21 · inkspect-code-review/inkspect-ui · GitHub
[go: up one dir, main page]

Skip to content

Show additional repositories, reviews and findings in workspace views - #21

Merged
redoh merged 2 commits into
mainfrom
feat/workspace-review-catalog
Nov 28, 2026
Merged

redoh merged 2 commits into
mainfrom
feat/workspace-review-catalog

Conversation

@redoh
@redoh redoh commented Nov 27, 2026 •
Copy link
Copy Markdown
Contributor

Include additional authorized repositories in the Ask AI picker. Display saved review runs in chronological history and render their findings, diagrams and SARIF exports with the standard report components. Reports with missing historical metadata remain readable.

Verification

Package audit, unit and rendering tests, and Next.js production build passed.


Note

Medium Risk
Touches findings resolution, merged review history, and client-side Mermaid rendering; incorrect host hooks could show wrong repos or stale history, but core auth paths appear unchanged.

Overview
This PR extends workspace views so hosts can surface extra authorized repositories and saved review runs alongside the native GitHub-connected flow, without duplicating report UI.

The reviews sidebar accepts an optional additionalHistory hook: extra repos appear in the picker, paginated external history merges with live jobs (newest-first, deduped by id), polls on a 30s cadence via readHistoryPages, and deep links keep repository + job selection when the linked id is external. Detail panes render through the same ReviewReportView path for completed saved reports.

Findings gain an optional findingsEndpoint and repository list from the caller; resolution controls are read-only when finding.readOnly is set. Ask AI merges additionalChatRepositories with connected repos in WorkspaceLayout.

Saved / legacy reports use a relaxed SavedReport shape (nullable decision, coverage, finding locations, verification blocking). SARIF export and report tabs tolerate missing metadata. The behavior map adds Mermaid (mermaid dependency): PublishedReviewDiagram renders diagrams from published markdown (with SVG fallback), including published flowchart extraction in tests.

Changelog and tests cover diagram parsing, saved-report rendering, and pagination refresh behavior.

Reviewed by Cursor Bugbot for commit ef94f8d. Bugbot is set up for automated code reviews on this repo. Configure here.

@inkspectsi
inkspectsi Bot commented Nov 27, 2026 •
Copy link
Copy Markdown

No blocking issues found

Commit: ef94f8d

The change adds supplemental repositories, saved review history and findings, Mermaid diagrams, and exports that tolerate missing historical metadata. No blocking issue was found in the supplied source. The prior history-polling issue is repaired. No embedded secrets were identified in the visible changes. The changed vendored archive was not available for source inspection.

Change vs. PR intent: Aligned. The changed components merge supplemental repositories and reviews, render saved reports, and handle nullable historical metadata.

Scores

Area Score Rationale
Code quality █████ 5/5 The change separates history normalization and pagination from rendering, with focused tests for pagination and missing report metadata.
Security █████ 5/5 The visible changes contain no concrete secret exposure and render Mermaid output with strict security settings in an isolated image.

Supplemental workspace reviews and report rendering

flowchart TD
    n0["Load native review history"]
    n1["Load and poll supplemental history pages"]
    n2["Deduplicate and sort history"]
    n3["Select a review"]
    n4{"Supplemental review?"}:::decision
    n5["Open supplied detail view"]
    n6["Load native report"]
    n7["Render standard report tabs and SARIF export"]
    n0 -->|"Native entries"| n2
    n1 -->|"Supplemental entries"| n2
    n2 -->|"Chronological history"| n3
    n3 -->|"Selected entry"| n4
    n4 -->|"Yes"| n5
    n4 -->|"No"| n6
    n6 -->|"Completed report"| n7
    classDef decision fill:#fff1c2,stroke:#956300,color:#382600
Loading

No findings on the changed lines.

Binary content has no text diff to review: vendor/inkspect-core-0.1.0.tgz

Code-focused review. 1 documentation or validation file(s) were searched for supporting excerpts.

View the full report in Inkspect


Reviewed by Inkspect · engine v0.0.71

@cursor cursor Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 811616a. Configure here.

Comment thread src/components/review-workspace.tsx Resolved
Comment thread src/components/review-workspace.tsx Resolved
Comment thread src/components/review-workspace.tsx Resolved
Comment thread src/components/review-workspace.tsx Outdated
Comment on lines +190 to +191
} finally {
if (!controller.signal.aborted && extraPage === 1) timer = setTimeout(load, 30_000);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 · Keep polling recent reviews after loading older pages

The polling timer is scheduled only when extraPage is 1. Clicking Load more reviews increments extraPage and cleans up the existing first-page timer. The next page is fetched once, but no further polling occurs. New supplemental reviews and updates to existing entries therefore stop appearing until a manual refresh or repository change.

Suggested fix
Keep a separate first-page polling effect active while loading older pages on demand. Merge refreshed first-page entries with the loaded history without discarding older entries.

Verification
Render a supplemental feed with multiple pages, load page two, then update the feed's first-page response. Advance the polling interval and confirm that the first page is requested again and the updated entries appear while older entries remain available.

New pushes trigger an automatic review when enabled. To request another pass on the same commit, comment @inkspectsi review again.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified in ef94f8dac219. The supplemental-history loader now schedules polling at every pagination depth and refreshes the loaded window from page one, so loading older pages no longer stops updates.

View the reviewed change

@redoh
redoh merged commit b21958d into main Nov 28, 2026
4 of 8 checks passed
8D3A
@redoh
redoh deleted the feat/workspace-review-catalog branch November 28, 2026 00:04
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

0