Repository navigation
Add native Markdown and HTML content rendering - #42
CodeZhangBorui wants to merge 22 commits into
Conversation
Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Expose bounded in-memory CDN image transfers through the desktop service and apply the same origin policy to redirects. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Add the native Markdown plugin with standalone image sizing, on-demand image loading, HTML extensions, and a Debug page editor and preview. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Use a shared height for the editor and preview with pointer and keyboard resizing in both layouts. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Reuse decoded images in a viewport-constrained GPUI dialog. Preserve external navigation for linked images and keep loading placeholders static. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Show the image directly over the backdrop with a close control, an optional caption, and viewport-aware sizing. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Fit images to the available window area and let users zoom around the pointer and pan to the edges. Provide toolbar controls for zoom and fit. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Open at the intrinsic size within the original viewer margins. Start gesture zoom at the displayed size and keep fit-to-window available on demand. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Rename the Markdown plugin and expose a shared renderer for Markdown and HTML in Debug. Reuse the zoomable image preview and show animated image loading placeholders. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Use a common HTTP and HTTPS image transport for project descriptions. Return a timeout promptly when the system resolver is still blocked so the preview can leave its loading state. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Resolve external image hosts through the system resolver so preview requests follow the configured network route. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Preserve download and decode errors for debug logs. Show an embedded failure icon and clear failed cache entries when rendering a new document snapshot. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Keep the rendering crate under the UI layer and move its mirrored tests alongside it. Preserve the existing dependency boundary and caller API. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Draw a compact unavailable-image glyph in the muted theme color. Rasterize the same SVG inside a transparent slot for TextView inline images. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Keep the project image service alongside the desktop services introduced by the on-demand workers. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Keep the embedded SVG in the source fileset used to build the launcher. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Store the standalone editor beside the frontend feature modules and let the panel mount it in the Debug page. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
|
Sorry @CodeZhangBorui, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 1 day and 9 hours by commenting |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Impact analysisNote Advisory only: the affected test list is broad by design and does not gate this pull request. A missing index fails the job instead of posting an empty result. 39 changed files · 19 source · 11 test · 9 other · 120 affected test files
Changed files
Affected testsCodeGraph followed imports 5 steps deep from the changed sources with Mirrors (
|
PR Summary by QodoAdd native Markdown and HTML previews to Debug
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 294868d35f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Size standalone images through one frame across loading, ready, and unavailable states. Omit the picture, including its link target, when either declared dimension is zero. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Own image assets per document, expose retry for failed images, and resolve relative addresses using a caller-provided base. Reuse the desktop image transport and test image loading and activation through the rendered document. Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 33328b6b17
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: CodeZhangBorui <zhangborui.2008@foxmail.com> Assisted-by: Codex
Summary
Add a resizable content preview to the Debug page. The same UI library renders Markdown and HTML project descriptions, loads their images, and opens standalone images in a zoomable preview.
Motivation
Project descriptions can contain rich Markdown or HTML. The launcher needs a shared native renderer that can display both formats and diagnose image failures while testing provider content.
Changes
axlauncher_content_renderintoapps/ui/content-renderas an independent UI library with an injected image transport.Testing
cargo fmt --all --checknode scripts/desktop.ts exec cargo clippy --workspace --all-targets --all-features --locked -- -D warningsnode scripts/desktop.ts exec cargo nextest run --workspace --lockedpassed 604 tests with 15 skippedpnpm architecture,cargo deny check,typos,tombi format --check,tombi lint, andreuse lintpassedcargo shearreported 10 unused dependency findings involvingtempfile,axlauncher_download_engine, andaxlauncher_frontend.Breaking Changes
None for launcher users. The renderer is a new workspace-internal library.