vp migrate beta test#16
Conversation
There was a problem hiding this comment.
Code Review
This pull request transitions the project to the Vite+ unified toolchain, updating dependencies, workspace catalogs, and formatting configurations across various documentation, JSON, and style files. Key feedback highlights that the catalog: protocol is unsupported within the overrides block of pnpm-workspace.yaml and will break dependency resolution. Additionally, formatting should not be applied directly to the compiled service worker (public/sw.js), and escaping underscores inside <code-snippet> tags in several markdown files results in literally rendered backslashes and invalid PHP syntax.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| vite: 'catalog:' | ||
| vitest: 'catalog:' |
There was a problem hiding this comment.
In pnpm, the catalog: protocol is only supported within dependency fields in package.json (such as dependencies, devDependencies, and peerDependencies). It is not supported inside the overrides configuration of pnpm-workspace.yaml.
Using catalog: here will cause pnpm to treat it as a literal version string 'catalog:' or fail to resolve the packages, which breaks the intended dependency overrides for vite and vitest. You should specify the actual version or URL directly in the overrides.
vite: https://pkg.pr.new/voidzero-dev/vite-plus/@voidzero-dev/vite-plus-core@dca39038de6ca46e523bf64dc09bf100b636eea9
vitest: 4.1.9| //#region resources/assets/js/service-worker.ts | ||
| var AUDIO_CACHE_NAME = "koel-audio-v1"; | ||
| var STATIC_CACHE_NAME = "koel-static-v1"; | ||
| var AUDIO_CACHE_NAME = 'koel-audio-v1' | ||
| var STATIC_CACHE_NAME = 'koel-static-v1' |
There was a problem hiding this comment.
The file public/sw.js is a compiled/built asset generated from resources/assets/js/service-worker.ts (as indicated by the //#region header and the build:sw script in package.json).
Manually formatting or editing this file directly in git is discouraged because any subsequent build (e.g., running pnpm build or pnpm build:sw) will completely overwrite these changes. Instead, any formatting or code modifications should be applied directly to the source file resources/assets/js/service-worker.ts.
|
|
||
| - Use PHP 8 constructor property promotion in `__construct()`. | ||
| - <code-snippet>public function __construct(public GitHub $github) { }</code-snippet> | ||
| - <code-snippet>public function \_\_construct(public GitHub $github) { }</code-snippet> |
There was a problem hiding this comment.
Escaping the underscores as \\_\\_construct inside the <code-snippet> HTML-style tag is incorrect.
Since backslashes are not escape characters in HTML, standard markdown and HTML renderers will display the backslashes literally as \\_\\_construct to the user or AI agent. This results in syntactically invalid PHP code examples.
Standard markdown parsers do not parse markdown formatting (like _ for italics) inside raw HTML blocks/tags anyway, so the underscores do not need to be escaped.
| - <code-snippet>public function \_\_construct(public GitHub $github) { }</code-snippet> | |
| - <code-snippet>public function __construct(public GitHub $github) { }</code-snippet> |
|
|
||
| - Use PHP 8 constructor property promotion in `__construct()`. | ||
| - <code-snippet>public function __construct(public GitHub $github) { }</code-snippet> | ||
| - <code-snippet>public function \_\_construct(public GitHub $github) { }</code-snippet> |
There was a problem hiding this comment.
Escaping the underscores as \\_\\_construct inside the <code-snippet> HTML-style tag is incorrect.
Since backslashes are not escape characters in HTML, standard markdown and HTML renderers will display the backslashes literally as \\_\\_construct to the user or AI agent. This results in syntactically invalid PHP code examples.
Standard markdown parsers do not parse markdown formatting (like _ for italics) inside raw HTML blocks/tags anyway, so the underscores do not need to be escaped.
| - <code-snippet>public function \_\_construct(public GitHub $github) { }</code-snippet> | |
| - <code-snippet>public function __construct(public GitHub $github) { }</code-snippet> |
|
|
||
| - Use PHP 8 constructor property promotion in `__construct()`. | ||
| - <code-snippet>public function __construct(public GitHub $github) { }</code-snippet> | ||
| - <code-snippet>public function \_\_construct(public GitHub $github) { }</code-snippet> |
There was a problem hiding this comment.
Escaping the underscores as \\_\\_construct inside the <code-snippet> HTML-style tag is incorrect.
Since backslashes are not escape characters in HTML, standard markdown and HTML renderers will display the backslashes literally as \\_\\_construct to the user or AI agent. This results in syntactically invalid PHP code examples.
Standard markdown parsers do not parse markdown formatting (like _ for italics) inside raw HTML blocks/tags anyway, so the underscores do not need to be escaped.
| - <code-snippet>public function \_\_construct(public GitHub $github) { }</code-snippet> | |
| - <code-snippet>public function __construct(public GitHub $github) { }</code-snippet> |
Description
Motivation
Screenshots (if applicable)
Checklist