Repository navigation
docs(web): add UI ADRs and dependency upgrade runbook - #187
oly-agents[bot] wants to merge 3 commits into
Conversation
Add web/docs/adr/ with an index (Nygard format, how to add an ADR) and three ADRs written from the code and git history: - 0001 react-ui to pattern-ui migration - 0002 URL filter state with nuqs - 0003 pagination and auto-refresh on the list pages Add web/docs/runbooks/dependency-upgrade.md for Next.js, React, pattern-ui and CVE-driven upgrades, with the repo's pnpm commands, the release age gate, the frozen lockfile, CI checks and rollback. Link the docs from web/README.md, web/AGENTS.md and AGENTS.md, and mark the react-ui names in .agents/skills/heimdall-ui.md as out of date. ClickUp: https://app.clickup.com/t/1dfq9k64t04 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Gaurav Warale <gaurav.warale@pattern.com>
|
👀 Reviewing |
There was a problem hiding this comment.
Argus review of fc8c850, docs only. I posted 3 inline findings: 1 Medium, 2 Low.
What I checked:
- ADRs 0001–0003 against the code and history. I compared them with
package.json,pnpm-workspace.yaml, the lockfile,AppRoot.tsx,vitest.config.mts, theuseQueryStatekeys and encodings in Jobs, Commands and Clusters,parseTags/serializeTags,useClientPagination,AutoRefreshProvider/AutoRefreshSelect,fetchJobs,job_dal.go(defaultPageSize = 101,resolveSortColumns) and thelimit 101SQL. I also checked the cited commits and PRs (#1, #8, #27, #56, #109, #149, #159). Apart from the persona reference flagged inline, they are accurate. Where no reason was recorded, the ADRs say so. - Runbook commands against pnpm 12.15.0.
pnpm audit --fix override|updateandpnpm peers checkexist. I also checkedbuild.sh, the CI workflow, the Dockerfile (fullweb/withnode_modulesin the runtime image),entrypoint.sh,dev-stack.sh --build,src/proxy.ts, and thenextjs-agent-rulesblock. In the Next 16.4.3 tarball I checkedexperimental.agentUpgrade: 'security'anddist/docs. - Requirements against the ClickUp scope. The ADR index with format and template, the three ADRs, the runbook covering Next, React, pattern-ui and CVE bumps, and the links from
web/README.md,web/AGENTS.mdand the rootAGENTS.mdare all present. There are no application code changes.
The main gap: the React section says the package.json React runs in the client. In fact the App Router bundles its own React, which changes how a React CVE has to be fixed.
|
Escalating 1 section that I cannot resolve: the failed
|
- Runbook: the App Router runs the React that Next.js bundles, in the browser too, so a React CVE is fixed by a Next.js upgrade. - Runbook: give the in-range React update command first, and --latest only for a new major version. - ADR 0001: name the correct react-ui references in the agent docs. - Frontend reviewer persona: add an out-of-date note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Gaurav Warale <gaurav.warale@pattern.com>
There was a problem hiding this comment.
Argus follow-up review of 0e4eba2. I reviewed only the new commit since fc8c850, which is "docs(web): correct React bundling and react-ui references". It changes 3 files and is docs only.
Earlier comments
- ✅ addressed: Runbook misstates which React the App Router runs (Medium). The "Upgrade React" › Next.js bullet now says that the App Router runs the React that Next.js bundles, in the browser too. The CVE step 2 sends React CVEs to a Next.js upgrade.
- ✅ addressed: ADR names the wrong react-ui references in the agent docs (Low). The ADR 0001 bullet now names the correct references in each file, and
frontend-reviewer.mdhas the same "Out of date" note asheimdall-ui.md. - ✅ addressed: Routine React upgrade command can jump a major version (Low). Minor and patch upgrades now use
pnpm updatewithout--latest.--latestis only for a major version, after the peer check.
New in this commit
I posted 1 inline finding (Low) on the new CVE step 2 sentence. The bundled React in Next.js has no package version, so pnpm audit and Wiz cannot see it. If you upgrade only Next.js, the lockfile react still triggers the advisory, and the step 5 audit check fails. The fix is to also upgrade react/react-dom in package.json and to add a command that reads the bundled version. I checked this against the next@16.4.3 tarball: dist/compiled/react/package.json is react-builtin with no version, and cjs/react.production.js has 19.3.0-canary-278794d7-20261002.
The rest of the commit is accurate. Both persona and skill files still name @patterninc/react-ui where their notes say they do. The anchors #upgrade-react and #upgrade-nextjs resolve. No application code changed.
The React that Next.js bundles has no package version, so pnpm audit and Wiz report only react/react-dom from the lockfile. For a React CVE, upgrade Next.js and also react/react-dom, and check the bundled version with grep. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Gaurav Warale <gaurav.warale@pattern.com>
There was a problem hiding this comment.
Argus follow-up review of 9ac7cac. I reviewed only the new commit since 0e4eba2, which is "docs(web): close React CVE scanner findings in the runbook". It changes 1 file (web/docs/runbooks/dependency-upgrade.md, +2/−2) and is docs only.
Earlier comments
- ✅ addressed: React CVE step leaves the scanner finding open and cannot be checked (Low). "Urgent CVE fix" › "2. Fix a direct dependency" now says to do two things for a React CVE. First, upgrade Next.js and check the bundled version with the
grepcommand. Second, upgradereact/react-dominpackage.jsonso thatpnpm auditand Wiz clear. This matches the step 5 audit check. I resolved the thread. - The three findings from the first review (
fc8c850) were already ✅ addressed in0e4eba2. Nothing in this commit reverts them.
New in this commit
No new findings. Here is what I checked:
- The
grepcommand. I ran it against thenext@16.4.3tarball.grep -o 'version = "[^"]*"' …/compiled/react/cjs/react.production.jsprintsversion = "19.3.0-canary-278794d7-20261002". - The "Upgrade React" › Next.js bullet. The new sentences about
react-builtinand closing the scanner finding are accurate and consistent with step 2. The new#urgent-cve-fixanchor resolves to## Urgent CVE fix. - Scope. No application code changed.
No description provided.