From eecc0ed388145d0ce1ad6f8fc8ca3b941a97cc1b Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Sat, 16 Aug 2025 14:06:44 +1000 Subject: [PATCH] Create problems panel --- src/SharpIDE.Photino/Components/ProblemsPanel.razor | 9 +++++++++ src/SharpIDE.Photino/Layout/MainLayout.razor | 5 +++++ src/SharpIDE.Photino/Models/BottomPanelType.cs | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/SharpIDE.Photino/Components/ProblemsPanel.razor diff --git a/src/SharpIDE.Photino/Components/ProblemsPanel.razor b/src/SharpIDE.Photino/Components/ProblemsPanel.razor new file mode 100644 index 0000000..043a379 --- /dev/null +++ b/src/SharpIDE.Photino/Components/ProblemsPanel.razor @@ -0,0 +1,9 @@ +@using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence + + + + +@code { + [Parameter, EditorRequired] + public SharpIdeSolutionModel SolutionModel { get; set; } = null!; +} diff --git a/src/SharpIDE.Photino/Layout/MainLayout.razor b/src/SharpIDE.Photino/Layout/MainLayout.razor index 5babd1a..67703f9 100644 --- a/src/SharpIDE.Photino/Layout/MainLayout.razor +++ b/src/SharpIDE.Photino/Layout/MainLayout.razor @@ -54,6 +54,7 @@ + @@ -80,6 +81,9 @@
@if (_solutionFilePath is not null) { + + + @@ -107,6 +111,7 @@ private string MainContentHeight => _bottomDrawerOpen ? "70%" : "100%"; + private void ClickProblemsPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Problems); private void ClickRunPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Run); private void ClickBuildPanel() => SwitchOrToggleBottomPanel(BottomPanelType.Build); private void SwitchOrToggleBottomPanel(BottomPanelType bottomPanelType) diff --git a/src/SharpIDE.Photino/Models/BottomPanelType.cs b/src/SharpIDE.Photino/Models/BottomPanelType.cs index 036dad6..aba6cbe 100644 --- a/src/SharpIDE.Photino/Models/BottomPanelType.cs +++ b/src/SharpIDE.Photino/Models/BottomPanelType.cs @@ -3,5 +3,6 @@ public enum BottomPanelType { Run, - Build + Build, + Problems }