Skip to content

feat(webapp): support directory path#359

Merged
henryiii merged 3 commits into
mainfrom
henryiii/feat/webapppath
Apr 5, 2026
Merged

feat(webapp): support directory path#359
henryiii merged 3 commits into
mainfrom
henryiii/feat/webapppath

Conversation

@henryiii

@henryiii henryiii commented Apr 5, 2026

Copy link
Copy Markdown
Collaborator

This is supported by the CLI, but not the webapp.

Also touched up local serving a little, bun run serve started. I think I can serve this from bun directly in the future.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds webapp parity with the CLI’s “package directory” support by letting users target a subdirectory within a GitHub repo for analysis, and updates local serving/docs accordingly.

Changes:

  • Thread a new subdir/packageDir parameter through the Pyodide execution path (prefetch → collect → process).
  • Add packageDir to webapp state, URL query persistence, and the UI form.
  • Add a bun run serve helper and update docs/example URLs.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/repo-review-app/utils/pyodide.ts Passes subdir into Python process_prefetch_files, collect_all, and process.
src/repo-review-app/repo-review-app.tsx Introduces packageDir state/UI and forwards it into the Pyodide pipeline; persists it in the URL.
package.json Adds a serve script for local build + static hosting.
docs/webapp.md Documents the new packageDir URL parameter with an example link.
docs/_static/scripts/index.html Adds an explicit <!doctype html> declaration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/repo-review-app/repo-review-app.tsx Outdated
Comment thread src/repo-review-app/repo-review-app.tsx Outdated
@henryiii henryiii force-pushed the henryiii/feat/webapppath branch from 7a3164f to c486dba Compare April 5, 2026 04:45
henryiii and others added 3 commits April 4, 2026 23:57
Strip leading slashes and reject any segment that is ".." before
setting the query param or passing the value into Pyodide.

Co-authored-by: Copilot <[email protected]>
@henryiii henryiii force-pushed the henryiii/feat/webapppath branch from 8f4bc94 to 1f1d966 Compare April 5, 2026 04:58
@henryiii henryiii merged commit 727636c into main Apr 5, 2026
13 checks passed
@henryiii henryiii deleted the henryiii/feat/webapppath branch April 5, 2026 05:10
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.

2 participants