Skip to content

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

Draft
Caleb-T-Owens wants to merge 1 commit into
masterfrom
line-drawing-experiment
Draft

EXPERIMENT: Start of super experimental graph views of the workspace#13894
Caleb-T-Owens wants to merge 1 commit 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 2 times, most recently from ef4abb4 to 07d38fa Compare May 20, 2026 11:55
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
@Caleb-T-Owens Caleb-T-Owens force-pushed the line-drawing-experiment branch from 07d38fa to 85d4a0f Compare May 20, 2026 12:04
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