You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4d70f4c
Browse filesBrowse the repository at this point in the historyBrowse files
1. Install Go 1.26.8 or later [through download](https://go.dev/doc/install) | [through Homebrew](https://formulae.brew.sh/formula/go)
30
+
2.[Install golangci-lint v2.14.0](https://golangci-lint.run/welcome/install/#local-installation), or let `script/lint` install the repository-pinned version. The pinned version supports both Go 1.26 and Go 1.27.
31
+
32
+
### UI development
33
+
34
+
Use Node.js 26.x for the UI in `ui/`. This matches the Docker UI build stage
35
+
and `@types/node`; GitHub Actions reads the Node version from `ui/package.json`.
36
+
Node 26 is a supported Current release, with LTS scheduled for October 2026.
37
+
38
+
From `ui/`, run `npm ci`, `npm run typecheck`, and `npm run build`.
39
+
Type checking uses the native TypeScript 7 compiler through `tsc`; Vite handles
40
+
transpilation and bundling separately. No TypeScript compiler API integration,
41
+
typescript-eslint, or ts-node is required.
42
+
43
+
### MCP Apps UI
44
+
45
+
The `ui/` views use React 19 and Primer React 38. With Node.js 20.19+ or 22.12+, run `cd ui && npm ci && npm run typecheck && npm run build && npm audit` before `script/test`. The build writes self-contained HTML to `pkg/github/ui_dist/`, which the Go server embeds; these generated files are not committed.
46
+
47
+
Primer 38 no longer exports `Box` or accepts `sx`/styled-system props. Use semantic HTML, native `style` props for dynamic/layout styles, and CSS Modules for nested selectors. `AppProvider` loads Primer's primitive tokens and light/dark themes, so use CSS variables rather than JavaScript theme values. Custom element typings must augment `react/jsx-runtime` rather than the global `JSX` namespace.
48
+
49
+
For UI dependency upgrades, compare all four views (`get-me`, `issue-write`, `pr-write`, and `pr-edit`) in light/dark themes and at narrow widths in an MCP Apps host, including menus, Markdown editing/preview, and completed-result views. Include before/after screenshots in the pull request.
0 commit comments