Skip to content

refactor(web): name the changelog regex groups and explain the OG suppression - #187

Merged
PunGrumpy merged 2 commits into
mainfrom
refactor/web-workarounds
Oct 23, 2026
Merged

PunGrumpy merged 2 commits into
mainfrom
refactor/web-workarounds

Conversation

@PunGrumpy

Copy link
Copy Markdown
Owner

Description

Two lint suppressions in the website did not follow the repository's rule (fix the code, and when a suppression is right, say why inline).

  • parseChangelog uses named capture groups. It read shaMatch[1] and shaMatch[2] under oxlint-disable prefer-named-capture-group. CHANGE_LINE_RE names the sha and title groups and moves out of the loop. Parsing packages/docker-doctor/CHANGELOG.md with the old and the new parser gives identical JSON (21 versions).
  • The OG image suppression gives its reason. next/no-img-element is wrong in app/og/docs/[...slug]/route.tsx: ImageResponse renders through Satori, which cannot load next/image. The directive now says so.

Related Issues

N/A. Found by a comment audit of the repository.

Checklist

  • I've reviewed my code
  • I've written tests
  • I've generated a changeset file, if this changes a published package
  • I've updated the docs, if necessary

Screenshots (if applicable)

N/A. /changelog renders the same entries.

Additional Notes

  • The web app has no unit tests. The parser change was checked by comparing both parsers' output on the real changelog, and the website builds.
  • ultracite check and typecheck are clean. No changeset: nothing here ships in @docker-doctor/cli.

@PunGrumpy PunGrumpy added the pkg: web Web application in apps/web label Oct 23, 2026
@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docker-doctor Ready Ready Preview Oct 23, 2026 2:37am UTC

@changeset-bot

changeset-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: dde16fe

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b66fe00e-5c5f-430d-b491-19eb42cdba68
📥 Commits

Reviewing files that changed from the base of the PR and between 2ca1312 and dde16fe.

📒 Files selected for processing: 2
  • apps/web/app/og/docs/[...slug]/route.tsx
  • apps/web/lib/changelog.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

The latest Docker Doctor scan for this pull request. Learn more about Docker Doctor.

File Status Issues Updated
Dockerfile Error 1 error, 2 info Oct 23, 2026 2:36am UTC

Score: 84 / 100 · Good

3 issues

Dockerfile

  • error Dockerfile:2 Potential secret found in ENV: 'DB_PASSWORD'. no-secrets-in-env
  • info Dockerfile:1 No HEALTHCHECK instruction found. require-healthcheck
  • info Dockerfile:1 No LABEL metadata was found in this Dockerfile. require-labels

Scanned by Docker Doctor for commit dde16fe.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit dde16fe.

@pkg-pr-new

pkg-pr-new Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@docker-doctor/cli@187

commit: dde16fe

parseChangelog matched each change line with unnamed groups under an
`oxlint-disable prefer-named-capture-group`. CHANGE_LINE_RE names the
`sha` and `title` groups and moves out of the loop. Parsing
packages/docker-doctor/CHANGELOG.md gives the same 21 versions as
before.
The docs OG route turns off next/no-img-element for its background image
without saying why. ImageResponse renders through Satori, which cannot
load next/image, so the reason is now written inline.
@PunGrumpy
PunGrumpy force-pushed the refactor/web-workarounds branch from 06dbd09 to dde16fe Compare October 23, 2026 02:35
@PunGrumpy
PunGrumpy merged commit d6acee8 into main Oct 23, 2026
20 of 21 checks passed
@PunGrumpy
PunGrumpy deleted the refactor/web-workarounds branch October 23, 2026 02:38

This branch was successfully deployed

1 active deployment
Preview — dde16fe1 Deployed Oct 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: web Web application in apps/web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant