1jehuang / 1jehuang/jcode

Floating diagram mode: implement variable-width reflow and scroll-safe rendering

Open
#34 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement priority: low triage: needs-decision
Dominant language
Rust
Stars
19.9k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
30

Description

Split from #3.\n\nImplement the rendering behavior for floating diagrams where chat text reflows around a right-anchored diagram.\n\n## Scope\n- support per-line wrap widths for rows overlapping the floating diagram\n- render text above/below at full width\n- keep left-side-only reflow beside the diagram\n- make scroll/caching logic stable and test-covered\n\n## Success criteria\n- diagram floats on the right and remains vertically centered in viewport\n- rows overlapping the diagram use narrower wrap width on the left side only\n- rows outside overlap use full width\n- scrolling does not produce unstable line counts or visual glitches\n- cache invalidation includes scroll/diagram-relative state where needed\n- visual or automated tests cover representative overlap/scroll cases\n\nBlocked by: #33\nParent: #3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points; first review the rendering, scrolling, and caching paths after resolving the dependency on #33. Done means representative overlap and scroll cases are covered, with right-anchored vertical centering, left-only narrowed wrapping during overlap, full-width text elsewhere, and stable scrolling without visual glitches.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.