Skip to content

Integrate graph view into operations#152

Merged
bobvh merged 4 commits intomainfrom
graph-widget-operations
Feb 21, 2025
Merged

Integrate graph view into operations#152
bobvh merged 4 commits intomainfrom
graph-widget-operations

Conversation

@Chris7
Copy link
Contributor

@Chris7 Chris7 commented Feb 21, 2025

No description provided.

@@ -1,9 +1,13 @@
use crate::graph::{GraphEdge, GraphNode};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this file was changed to let the block graph generated be called externally

@Chris7 Chris7 requested a review from bobvh February 21, 2025 17:17
}

pub fn view_operations(conn: &Connection, operations: &[Operation]) -> Result<(), io::Error> {
fn restore_terminal() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you confirmed that this actually does something if you use the Ratatui init?

Copy link
Contributor

Choose a reason for hiding this comment

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

Stack trace saving would have to be a separate hook, so I don't know if there's any benefit from combining approaches.

@bobvh
Copy link
Contributor

bobvh commented Feb 21, 2025

Looks good and still works on my end. Cool that you moved the keyboard handling and status bar over to the widget.

@@ -68,7 +89,18 @@ pub fn view_operations(conn: &Connection, operations: &[Operation]) -> Result<()
let mut terminal = Terminal::new(backend)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Here's where let mut terminal = ratatui::init(); could come in.

@bobvh bobvh merged commit d119220 into main Feb 21, 2025
1 check passed
@bobvh bobvh deleted the graph-widget-operations branch February 21, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants