Skip to content

EXPERIMENT: Start of super experimental graph views of the workspace#13894

Draft
Caleb-T-Owens wants to merge 3 commits into
masterfrom
line-drawing-experiment
Draft

EXPERIMENT: Start of super experimental graph views of the workspace#13894
Caleb-T-Owens wants to merge 3 commits into
masterfrom
line-drawing-experiment

Conversation

@Caleb-T-Owens
Copy link
Copy Markdown
Contributor

This was some stuff I bashed together as an experiment. It shouldn’t be seen as some decision having been made.

I want to play with renderdag, the library that JJ and sapling use to render their graphs. It might be a good starting point for producing a list of rows that could be consumed by both the CLI and the web frontend

@github-actions github-actions Bot added the rust Pull requests that update Rust code label May 19, 2026
@Caleb-T-Owens Caleb-T-Owens changed the title Start of super experimental graph views of the workspace EXPERIMENT: Start of super experimental graph views of the workspace May 19, 2026
Comment on lines +52 to +76
let stacks = render_stacks(&repo, &graph.into_workspace()?)?;

insta::assert_snapshot!(stacks[0], @"
◎ refs/heads/E
● E
◎ refs/heads/C
● C
├─╮
◎ │ refs/heads/B
│ │
● │ B
│ │
│ ◎ refs/heads/D
│ │
│ ● D
├─╯
◎ refs/heads/A
● A
~
");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩🩷👍

The only reason I wouldn't instantly want to use it in all places for debug rendering (with more info in it, of course) is that I'd love to condense it vertically by cutting out empty segments like Git.

In any case, having more ways to visualize graphs is definitely good to have.

@Caleb-T-Owens Caleb-T-Owens force-pushed the line-drawing-experiment branch 4 times, most recently from 85d4a0f to e0e175c Compare May 26, 2026 15:30
@Caleb-T-Owens Caleb-T-Owens force-pushed the line-drawing-experiment branch from e0e175c to 6546391 Compare May 27, 2026 10:19
@samhh samhh force-pushed the line-drawing-experiment branch from 6546391 to 291fb99 Compare May 27, 2026 11:34
@Caleb-T-Owens Caleb-T-Owens force-pushed the line-drawing-experiment branch from 291fb99 to 54ec119 Compare May 27, 2026 15:37
@samhh samhh force-pushed the line-drawing-experiment branch from 54ec119 to e3e6a91 Compare May 28, 2026 08:59
@OliverJAsh OliverJAsh mentioned this pull request May 28, 2026
This was some stuff I bashed together as an experiment. It shouldn’t be seen as some decision having been made.

I want to play with renderdag, the library that JJ and sapling use to render their graphs. It might be a good starting point for producing a list of rows that could be consumed by both the CLI and the web frontend
@samhh samhh force-pushed the line-drawing-experiment branch from e3e6a91 to 9bd8255 Compare May 29, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants