workflow: Add button to open the step view (#16387)

This PR adds an icon button that appears as you hover over the step header, which allows users to visit the step view.

---

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2024-08-17 13:06:34 -03:00 committed by GitHub
parent 07d5e22cbe
commit e4a591dcbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 38 additions and 19 deletions

View file

@ -273,7 +273,7 @@ impl Item for WorkflowStepView {
}
fn tab_icon(&self, _cx: &WindowContext) -> Option<ui::Icon> {
Some(Icon::new(IconName::Pencil))
Some(Icon::new(IconName::SearchCode))
}
fn to_item_events(event: &Self::Event, mut f: impl FnMut(item::ItemEvent)) {