From 6fb9077970e57f8dc0d10c113ae7deb32bb61e2e Mon Sep 17 00:00:00 2001 From: Alexandros Nikolopoulos Date: Sun, 8 Mar 2026 11:13:55 +0200 Subject: [PATCH 1/5] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 57199bd..96cc4dc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Tilework +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=tileworkdev_tilework&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=tileworkdev_tilework) ## About From 700d90f17916bcf77ca7305e08b999ac44090c60 Mon Sep 17 00:00:00 2001 From: Alexandros Nikolopoulos Date: Sun, 8 Mar 2026 11:54:54 +0000 Subject: [PATCH 2/5] Cleaning up rule dialog --- .../Components/Dialogs/RuleDialog.razor | 141 +++++++++++------- 1 file changed, 89 insertions(+), 52 deletions(-) diff --git a/tilework.ui/Components/Dialogs/RuleDialog.razor b/tilework.ui/Components/Dialogs/RuleDialog.razor index a324eed..e2e624b 100644 --- a/tilework.ui/Components/Dialogs/RuleDialog.razor +++ b/tilework.ui/Components/Dialogs/RuleDialog.razor @@ -15,58 +15,95 @@ - @foreach (var condition in Rule.Conditions) - { - - } - - - - - - - Add condition - - - - - @foreach (var type in AvailableConditionTypes) - { - @type.GetDescription() - } - - - - - - - @foreach (var type in AllowedActionTypes) - { - @type.GetDescription() - } - - - @if (Rule.Action?.Type == RuleActionType.Forward) - { - - @foreach (var group in TargetGroups) - { - @group.Name - } - - } - else if (Rule.Action?.Type == RuleActionType.Redirect) - { - - - } - else if (Rule.Action?.Type == RuleActionType.FixedResponse) - { - - - - } + + + + + + Details + + + + + + + + + + + + + Conditions + + + + @foreach (var condition in Rule.Conditions) + { + + } + + + + + + + Add condition + + + + + @foreach (var type in AvailableConditionTypes) + { + @type.GetDescription() + } + + + + + + + + + + + + Action + + + + + @foreach (var type in AllowedActionTypes) + { + @type.GetDescription() + } + + + @if (Rule.Action?.Type == RuleActionType.Forward) + { + + @foreach (var group in TargetGroups) + { + @group.Name + } + + } + else if (Rule.Action?.Type == RuleActionType.Redirect) + { + + + } + else if (Rule.Action?.Type == RuleActionType.FixedResponse) + { + + + + } + + + + From 6045f91bbe5aa2d5ecfb8e354ac7e4f97b8f623b Mon Sep 17 00:00:00 2001 From: Alexandros Nikolopoulos Date: Sun, 8 Mar 2026 12:20:10 +0000 Subject: [PATCH 3/5] Further cleanup of rule conditions --- .../Components/Dialogs/RuleDialog.razor | 3 +- .../Components/Forms/ConditionForm.razor | 40 +++++++++---------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/tilework.ui/Components/Dialogs/RuleDialog.razor b/tilework.ui/Components/Dialogs/RuleDialog.razor index e2e624b..f3b6480 100644 --- a/tilework.ui/Components/Dialogs/RuleDialog.razor +++ b/tilework.ui/Components/Dialogs/RuleDialog.razor @@ -42,10 +42,11 @@ { + } - + diff --git a/tilework.ui/Components/Forms/ConditionForm.razor b/tilework.ui/Components/Forms/ConditionForm.razor index 1258dcd..466425d 100644 --- a/tilework.ui/Components/Forms/ConditionForm.razor +++ b/tilework.ui/Components/Forms/ConditionForm.razor @@ -5,28 +5,28 @@ @namespace Tilework.Ui.Components.Forms - - - @Condition.Type.GetDescription() - - - - - @for (var i = 0; i < Condition.Values.Count; i++) - { - var index = i; - - - - - } - - - Add OR condition value - + + + @Condition.Type.GetDescription() + + + + + @for (var i = 0; i < Condition.Values.Count; i++) + { + var index = i; + + @(index == 0 ? "=" : "or") + + + } + + + Add OR condition value + - + @code { [Parameter] public Condition Condition { get; set; } From 0c2136299528c74f9d30e2d8b79dcea65ef3c054 Mon Sep 17 00:00:00 2001 From: Alexandros Nikolopoulos Date: Sun, 8 Mar 2026 12:24:14 +0000 Subject: [PATCH 4/5] Alignment of buttons --- tilework.ui/Components/Forms/ConditionForm.razor | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tilework.ui/Components/Forms/ConditionForm.razor b/tilework.ui/Components/Forms/ConditionForm.razor index 466425d..6b1386d 100644 --- a/tilework.ui/Components/Forms/ConditionForm.razor +++ b/tilework.ui/Components/Forms/ConditionForm.razor @@ -5,6 +5,13 @@ @namespace Tilework.Ui.Components.Forms + @Condition.Type.GetDescription() @@ -16,14 +23,15 @@ { var index = i; - @(index == 0 ? "=" : "or") + @(index == 0 ? "=" : "or") } + - Add OR condition value + Add From 4664c07115578a8ca82f3b3126464d602e33bfb8 Mon Sep 17 00:00:00 2001 From: Alexandros Nikolopoulos Date: Sun, 8 Mar 2026 12:30:47 +0000 Subject: [PATCH 5/5] More UI cleanup --- tilework.ui/Components/Forms/ConditionForm.razor | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tilework.ui/Components/Forms/ConditionForm.razor b/tilework.ui/Components/Forms/ConditionForm.razor index 6b1386d..1d010be 100644 --- a/tilework.ui/Components/Forms/ConditionForm.razor +++ b/tilework.ui/Components/Forms/ConditionForm.razor @@ -13,9 +13,9 @@ } - - @Condition.Type.GetDescription() - + + @Condition.Type.GetDescription() + @@ -25,7 +25,7 @@ @(index == 0 ? "=" : "or") - + }