Add Markdown preview and long-text expand option - #7
Merged
Merged
Conversation
- ValuePopup: render long strings as Markdown by default, with a toggle to fall back to the plain <pre> view - Add a dependency-free, sanitized Markdown renderer (markdown.tsx) - JsonTree: add a toolbar toggle to show long strings in full instead of truncating them to a single ellipsized line - Bump to v0.5.0 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
corepack now resolves pnpm 10, which blocks dependency build scripts by default and exits non-zero on ERR_PNPM_IGNORED_BUILDS, breaking the Docker image build. Whitelist esbuild via pnpm.onlyBuiltDependencies. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Newer pnpm no longer reads the "pnpm" field in package.json, so the previous fix was ignored and the Docker build still failed on ERR_PNPM_IGNORED_BUILDS. Move the esbuild allowlist to its new home, pnpm-workspace.yaml. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The image build copied only package.json and the lockfile before running pnpm install, so pnpm-workspace.yaml (which carries onlyBuiltDependencies) was missing and esbuild builds stayed ignored. Copy it alongside the manifest. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The Docker build ran corepack without a pinned pnpm version, so it floated to whatever pnpm corepack resolved by default — a build whose handling of onlyBuiltDependencies differed and kept failing on ERR_PNPM_IGNORED_BUILDS. Pin pnpm@10.28.0, which is verified to honour the esbuild allowlist on a clean store. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
详情弹窗与右侧树视图的长文本展示增强。
变更
Markdown选项,默认开启,按 Markdown 渲染(标题、加粗/斜体、行内 code、围栏代码块、列表、引用、hr、链接)。关闭后回退到原<pre>纯文本视图。src/utils/markdown.tsx):直接产出 React 节点,不使用dangerouslySetInnerHTML;链接 URL 走白名单(http(s)/mailto/ 相对路径),其余降级为纯文本。v0.5.0。验证
pnpm build通过,pnpm test12/12 通过。🤖 Generated with Claude Code