Skip to content

Commit 587ff78

Browse files
authored
Merge pull request #316 from neuroglia-io/fix-expandable-data-row-caret
Added caret to expandable row in the UI
2 parents 51de02a + 767e6d9 commit 587ff78

21 files changed

+41
-49
lines changed

src/dashboard/Synapse.Dashboard/Features/Shared/Accordion/ExpandableDataRow.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
<tr class="cursor-pointer" @onclick="Toggle">
2323
@Header
24+
<td class="text-end"><span class="ml-2 text-secondary bi @(IsExpanded ? "bi-caret-up" : "bi-caret-down")"></span></td>
2425
</tr>
2526
@if (IsExpanded) {
2627
<tr>

src/dashboard/Synapse.Dashboard/Features/Shared/Accordion/Expander.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919

2020
<div class="@Class">
2121
<Dynamic Tag="@HeaderContainerTagName" Class="expander" OnClick="ToggleExpandAsync">
22-
@HeaderTemplate(this)
23-
</Dynamic>
24-
<Dynamic Tag="@BodyContainerTagName" Class="@GetBodyCssClass()">
25-
@Body
26-
</Dynamic>
22+
@HeaderTemplate(this)
23+
</Dynamic>
24+
<Dynamic Tag="@BodyContainerTagName" Class="@GetBodyCssClass()">
25+
@Body
26+
</Dynamic>
2727
</div>
2828

2929
@code

src/dashboard/Synapse.Dashboard/Features/WorkflowInstances/WorkflowInstanceActivitiesList/WorkflowInstanceActivitiesList.razor

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,20 @@
2121
<table class="table">
2222
<thead>
2323
<tr>
24-
<th scope="col"></th>
2524
<th scope="col">Type</th>
2625
<th scope="col">Name</th>
2726
<th scope="col">Status</th>
2827
<th scope="col">Started At</th>
2928
<th scope="col">Executed At</th>
3029
<th scope="col">Duration</th>
30+
<th scope="col"></th>
3131
</tr>
3232
</thead>
3333
<tbody>
3434
@foreach(var activity in Activities)
3535
{
3636
<ExpandableDataRow @ref="rows[Activities.IndexOf(activity)]">
3737
<Header>
38-
<td>
39-
@if (rows[Activities.IndexOf(activity)].IsExpanded)
40-
{
41-
<small class="bi bi-caret-up"></small>
42-
} else
43-
{
44-
<small class="bi bi-caret-down"></small>
45-
}
46-
</td>
4738
<td>@activity.Type</td>
4839
<td>
4940
@switch(activity.Type)

src/dashboard/Synapse.Dashboard/Features/WorkflowInstances/WorkflowInstanceActivitiesList/WorkflowInstanceActivitiesRow.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@inject IMonacoEditorHelper MonacoEditorHelper
2121
@inject IYamlConverter YamlConverter
2222

23-
<td colspan="7">
23+
<td colspan="100">
2424
@if(Activity != null)
2525
{
2626
<div class="row">

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/ActionCollectionEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<td><button @onclick="async () => await OnDeleteActionAsync(action)" @onclick:stopPropagation="true" class="btn btn-outline-dark"><small class="bi bi-trash"></small></button></td>
3737
</Header>
3838
<Body>
39-
<td colspan="3">
39+
<td colspan="4">
4040
<ActionEditor Action="action" OnChange="OnChange" />
4141
</td>
4242
</Body>

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/ActionEditor.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<td colspan="2"><h6>General</h6></td>
2828
</Header>
2929
<Body>
30-
<td colspan="2">
30+
<td colspan="3">
3131
<table class="table table-striped">
3232
<tbody>
3333
<tr>
@@ -82,7 +82,7 @@
8282
<td colspan="2"><h6>Data filter</h6></td>
8383
</Header>
8484
<Body>
85-
<td colspan="2">
85+
<td colspan="3">
8686
<ActionDataFilterEditor
8787
DataFilter="action.ActionDataFilter"
8888
OnChange="async e => await OnPropertyChangedAsync(nameof(action.ActionDataFilter), a => a.ActionDataFilter = e)"/>
@@ -99,7 +99,7 @@
9999
<td colspan="2"><h6>Function</h6></td>
100100
</Header>
101101
<Body>
102-
<td colspan="2">
102+
<td colspan="3">
103103
<table class="table table-striped">
104104
<tbody>
105105
<tr>
@@ -131,7 +131,7 @@
131131
<td colspan="2"><h6>Subflow</h6></td>
132132
</Header>
133133
<Body>
134-
<td colspan="2">
134+
<td colspan="3">
135135
<table class="table table-striped">
136136
<tbody>
137137
<tr>
@@ -175,7 +175,7 @@
175175
<td colspan="2"><h6>Trigger</h6></td>
176176
</Header>
177177
<Body>
178-
<td colspan="2">
178+
<td colspan="3">
179179
<table class="table table-striped">
180180
<tbody>
181181
<tr>

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/AuthenticationEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<Body>
6262
@if(!useSecretBasedProperties)
6363
{
64-
<td colspan="2">
64+
<td colspan="3">
6565
@switch (authentication.Scheme)
6666
{
6767
case AuthenticationScheme.Basic:

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/BranchEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<td colspan="2"><h6>Actions</h6></td>
3333
</Header>
3434
<Body>
35-
<td colspan="2">
35+
<td colspan="3">
3636
<ActionCollectionEditor
3737
Actions="branch.Actions"
3838
OnChange="async _ => await OnChangeAsync(_ => {})" />

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/EventEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<td>@correl.ContextAttributeValue</td>
7272
</Header>
7373
<Body>
74-
<td colspan="2">
74+
<td colspan="3">
7575
<table class="table table-striped">
7676
<tbody>
7777
<tr>

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/EventStateTriggerEditor.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<td colspan="2"><h6>Data filter</h6></td>
4848
</Header>
4949
<Body>
50-
<td colspan="2">
50+
<td colspan="3">
5151
<EventDataFilterEditor
5252
DataFilter="trigger.DataFilter"
5353
OnChange="async df => await OnChangeAsync(t => t.DataFilter = df)"/>
@@ -59,7 +59,7 @@
5959
<td colspan="2"><h6>Actions</h6></td>
6060
</Header>
6161
<Body>
62-
<td colspan="2">
62+
<td colspan="3">
6363
<ActionCollectionEditor
6464
Actions="trigger.Actions"
6565
OnChange="async _ => await OnChangeAsync(_ => {})" />

0 commit comments

Comments
 (0)