8000 GitHub - inkspect-code-review/inkspect-ui: Shared Inkspect dashboard and self-hosted UI. · GitHub
[go: up one dir, main page]

Skip to content

About

Shared Inkspect dashboard and self-hosted UI.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

31 Commits

Folders and files

Repository files navigation

Inkspect UI

@inkspect/ui contains the self-hosted Next.js dashboard and its shared React components. The dashboard runs alongside the Inkspect API. To install both services and the review workers together, use the Docker Compose guide.

How a review reaches the screen

Follow a request to /dashboard?view=reviews through three parts of the application.

Layer Responsibility
Workspace pages On the server, validate the session, resolve the active workspace from the user’s memberships and select the requested dashboard section.
Self-hosted dashboard Supply the edition’s navigation and panels to the shared dashboard shell. The shell renders ReviewWorkspace for the Reviews section.
Review workspace Load reviews from /api/reviews and track the selected run. When its report is ready, pass it to ReviewReportView to render findings, scores and evidence.

Next.js handles sign-in in this app. Review requests go through a same-origin rewrite to the API. If you change where those requests go, edit next.config.ts. If you change how a finding looks, start in ReviewReportView and run its rendering test:

node --import tsx --test tests/app/review-report.test.ts

Run locally

Use Node.js 22.13 or newer and a running Inkspect API with its PostgreSQL migrations applied. From this checkout:

npm ci
cp .env.example .env.local

In .env.local, use the API’s DATABASE_URL and BETTER_AUTH_SECRET. Set the same BETTER_AUTH_URL in both services and configure GitHub OAuth or SMTP for sign-in. For the default local ports, use:

BETTER_AUTH_URL=http://127.0.0.1:3002
INKSPECT_API_ORIGIN=http://127.0.0.1:3003

Run npm run dev and open http://127.0.0.1:3002.

Contributing and checks · MIT license

About

Shared Inkspect dashboard and self-hosted UI.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0