Skip to content

fix: preserve nested repo paths in embeds#263

Open
mariusvniekerk wants to merge 1 commit intofix-kata-52-explicit-embed-providerfrom
fix-kata-54-nested-embed-repo-path
Open

fix: preserve nested repo paths in embeds#263
mariusvniekerk wants to merge 1 commit intofix-kata-52-explicit-embed-providerfrom
fix-kata-54-nested-embed-repo-path

Conversation

@mariusvniekerk
Copy link
Copy Markdown
Collaborator

Embed detail routes now carry repo_path as an encoded query value and derive display owner/name from it. The sidebar receives the exact repoPath so GitLab group/subgroup repositories are no longer flattened.

@mariusvniekerk
Copy link
Copy Markdown
Collaborator Author

mariusvniekerk commented May 7, 2026

@roborev-ci
Copy link
Copy Markdown

roborev-ci Bot commented May 7, 2026

roborev: Combined Review (fd72bea)

Medium concerns remain around embed detail routing compatibility and coverage.

Medium

  • frontend/src/lib/stores/router.svelte.ts:226
    The embed detail parser now only accepts the new ...?repo_path= shape, so existing simple-repo embed URLs like /workspaces/embed/detail/github/pr/github.com/acme/widgets/42 no longer resolve to the detail pane and instead fall back to the workspaces page. Keep a legacy matcher for the old path form and derive repoPath as ${owner}/${name}.

  • frontend/src/lib/stores/router.test.ts:212
    The routing fix only adds router unit coverage. Add an e2e test that opens an embed detail route with a nested repo_path and verifies the real app surface loads the correct repository/detail content.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

@mariusvniekerk mariusvniekerk force-pushed the fix-kata-54-nested-embed-repo-path branch from fd72bea to 974f6f5 Compare May 7, 2026 13:09
@roborev-ci
Copy link
Copy Markdown

roborev-ci Bot commented May 7, 2026

roborev: Combined Review (974f6f5)

Summary verdict: One medium test coverage gap remains; no high or critical findings were reported.

Medium

  • frontend/tests/e2e/workspaces.spec.ts:168
    The nested repo_path case is only covered with a mocked page.route response, so it does not exercise the real HTTP API and SQLite lookup for the encoded nested owner path. A server routing, decoding, or DB lookup regression could still ship.
    Fix: Add a full-stack e2e/API test that seeds SQLite with a nested repo path, loads the embed detail route against the real server, and asserts the returned detail content.

Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

@mariusvniekerk mariusvniekerk force-pushed the fix-kata-52-explicit-embed-provider branch from dfb5e5f to 291bdf5 Compare May 7, 2026 13:16
@mariusvniekerk mariusvniekerk force-pushed the fix-kata-54-nested-embed-repo-path branch from 974f6f5 to 8e6fd1e Compare May 7, 2026 13:16
@roborev-ci
Copy link
Copy Markdown

roborev-ci Bot commented May 7, 2026

roborev: Combined Review (8e6fd1e)

Summary: One medium-risk test coverage gap remains; no security issues were found.

Medium

  • frontend/tests/e2e/workspaces.spec.ts:169
    The nested repo_path regression is covered only through a mocked Playwright API response, so it does not exercise the real HTTP API and SQLite data path needed for the user-visible fix.

    Suggested fix: Add a full-stack e2e/API test that seeds a nested repo path in SQLite, hits the real server via navigation or API, and verifies the nested issue/PR detail loads correctly.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

@roborev-ci
Copy link
Copy Markdown

roborev-ci Bot commented May 8, 2026

roborev: Combined Review (5b2103a)

No Medium, High, or Critical issues found.

All reviewers agreed the change is clean.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

@mariusvniekerk mariusvniekerk force-pushed the fix-kata-52-explicit-embed-provider branch from 291bdf5 to c5120e9 Compare May 8, 2026 21:05
@mariusvniekerk mariusvniekerk force-pushed the fix-kata-54-nested-embed-repo-path branch from 5b2103a to fe18f36 Compare May 8, 2026 21:05
@roborev-ci
Copy link
Copy Markdown

roborev-ci Bot commented May 8, 2026

roborev: Combined Review (fe18f36)

No Medium, High, or Critical issues found.

All available review outputs are clean; no actionable findings to report.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

@mariusvniekerk mariusvniekerk force-pushed the fix-kata-52-explicit-embed-provider branch from c5120e9 to 8be5f22 Compare May 10, 2026 14:20
@mariusvniekerk mariusvniekerk force-pushed the fix-kata-54-nested-embed-repo-path branch from fe18f36 to fbcf17c Compare May 10, 2026 14:21
@roborev-ci
Copy link
Copy Markdown

roborev-ci Bot commented May 10, 2026

roborev: Combined Review (fbcf17c)

No Medium, High, or Critical issues were reported.

All review agents that provided findings found the code clean.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

@mariusvniekerk mariusvniekerk force-pushed the fix-kata-52-explicit-embed-provider branch from 8be5f22 to 8c5f63c Compare May 10, 2026 15:15
@mariusvniekerk mariusvniekerk force-pushed the fix-kata-54-nested-embed-repo-path branch from fbcf17c to 6fe535f Compare May 10, 2026 15:16
@roborev-ci
Copy link
Copy Markdown

roborev-ci Bot commented May 10, 2026

roborev: Combined Review (6fe535f)

No Medium, High, or Critical findings were reported; the reviewed changes look clean.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

Embed detail routes now carry repo_path as an encoded query value and derive display owner/name from it. The sidebar receives the exact repoPath so GitLab group/subgroup repositories are no longer flattened.

test: cover nested GitLab embed detail API path

The nested repo_path embed route depends on the real HTTP route preserving an encoded owner path through SQLite lookup, so cover that path outside mocked Playwright responses.
@mariusvniekerk mariusvniekerk force-pushed the fix-kata-52-explicit-embed-provider branch from 8c5f63c to c5367e0 Compare May 10, 2026 16:27
@mariusvniekerk mariusvniekerk force-pushed the fix-kata-54-nested-embed-repo-path branch from 6fe535f to 6fd2fe9 Compare May 10, 2026 16:27
@roborev-ci
Copy link
Copy Markdown

roborev-ci Bot commented May 10, 2026

roborev: Combined Review (6fd2fe9)

No Medium, High, or Critical issues found.

All reviewers agreed the change is clean.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

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