diff --git a/README.md b/README.md index 4de1b08..6cc5938 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,10 @@ team—based on the DORA.dev capabilities. * 🧰 Easy to self-host via Docker * 🖥️ Built with .NET + Razor -### Facilitator Views +### Facilitator Views -The facilitator can see al available questions, select them, control the flow of the session, reveal answers, and export results. +The facilitator can see al available questions, select them, control the flow of the session, reveal answers, and export +results. @@ -68,11 +69,11 @@ Prerequisites docker run -p 8080:8080 jacobduijzer/devops-quickscan:latest ``` -| Role | Url | Description | -|-------------|-----------------------------------|----------------------------------------------------------------------------------------------| -| Facilitator | http://localhost:8080/facilitator | Select questions, control the flow, reveal answers, and export results. | -| Dashboard | http://localhost:8080/dashboard | A display for large screens, showing the current question or results with a QR code to join. | -| Participant | http://localhost:8080/ | Where team members answer the questions and see live results. | +| Role | Url | Description | +|-------------|--------------------------------------|----------------------------------------------------------------------------------------------| +| Facilitator | http://localhost:8080/FacilitatorHub | Select questions, control the flow, reveal answers, and export results. | +| Dashboard | http://localhost:8080/Dashboard | A display for large screens, showing the current question or results with a QR code to join. | +| Participant | http://localhost:8080/ | Where team members answer the questions and see live results. | ### Local run @@ -83,11 +84,11 @@ Prerequisites Then open the appropriate URL based on your role: -| Role | Url | Description | -|-------------|-----------------------------------|----------------------------------------------------------------------------------------------| -| Facilitator | http://localhost:5119/facilitator | Select questions, control the flow, reveal answers, and export results. | -| Dashboard | http://localhost:5119/dashboard | A display for large screens, showing the current question or results with a QR code to join. | -| Participant | http://localhost:5119/ | Where team members answer the questions and see live results. | +| Role | Url | Description | +|-------------|--------------------------------------|----------------------------------------------------------------------------------------------| +| Facilitator | http://localhost:5119/FacilitatorHub | Select questions, control the flow, reveal answers, and export results. | +| Dashboard | http://localhost:5119/Dashboard | A display for large screens, showing the current question or results with a QR code to join. | +| Participant | http://localhost:5119/ | Where team members answer the questions and see live results. | ### Local Docker @@ -96,11 +97,11 @@ Then open the appropriate URL based on your role: docker run -p 8080:8080 devops-quickscan ``` -| Role | Url | Description | -|-------------|-----------------------------------|----------------------------------------------------------------------------------------------| -| Facilitator | http://localhost:8080/facilitator | Select questions, control the flow, reveal answers, and export results. | -| Dashboard | http://localhost:8080/dashboard | A display for large screens, showing the current question or results with a QR code to join. | -| Participant | http://localhost:8080/ | Where team members answer the questions and see live results. | +| Role | Url | Description | +|-------------|--------------------------------------|----------------------------------------------------------------------------------------------| +| Facilitator | http://localhost:8080/FacilitatorHub | Select questions, control the flow, reveal answers, and export results. | +| Dashboard | http://localhost:8080/Dashboard | A display for large screens, showing the current question or results with a QR code to join. | +| Participant | http://localhost:8080/ | Where team members answer the questions and see live results. | ## Todo / Wishlist diff --git a/src/DevOpsQuickScan.BlazorApp/Components/Pages/Facilitator/Home.razor b/src/DevOpsQuickScan.BlazorApp/Components/FacilitatorHub/Home.razor similarity index 96% rename from src/DevOpsQuickScan.BlazorApp/Components/Pages/Facilitator/Home.razor rename to src/DevOpsQuickScan.BlazorApp/Components/FacilitatorHub/Home.razor index 24d152e..5d2096d 100644 --- a/src/DevOpsQuickScan.BlazorApp/Components/Pages/Facilitator/Home.razor +++ b/src/DevOpsQuickScan.BlazorApp/Components/FacilitatorHub/Home.razor @@ -1,4 +1,4 @@ -@page "/facilitator" +@page "/FacilitatorHub" @using System.Text @using DevOpsQuickScan.Core @using DevOpsQuickScan.BlazorApp.Components.Partials @@ -30,7 +30,6 @@
- Dashboard
@@ -92,13 +91,9 @@ return fileStream; } - private async Task ResetSession() { Session.Reset(); await InvokeAsync(StateHasChanged); } - - - } \ No newline at end of file diff --git a/src/DevOpsQuickScan.BlazorApp/Components/Layout/MainLayout.razor b/src/DevOpsQuickScan.BlazorApp/Components/Layout/MainLayout.razor index db471bf..ee78166 100644 --- a/src/DevOpsQuickScan.BlazorApp/Components/Layout/MainLayout.razor +++ b/src/DevOpsQuickScan.BlazorApp/Components/Layout/MainLayout.razor @@ -1,14 +1,34 @@ @inherits LayoutComponentBase +@inject NavigationManager NavManager
-
- - - - -
+ +
@Body @@ -20,4 +40,11 @@ An unhandled error has occurred. Reload 🗙 -
\ No newline at end of file +
+ +@code { + + private bool IsOnFacilitatorHub => + NavManager.Uri.Contains("/FacilitatorHub", StringComparison.InvariantCultureIgnoreCase); + +} \ No newline at end of file diff --git a/src/DevOpsQuickScan.BlazorApp/Components/Pages/Facilitator/Dashboard.razor b/src/DevOpsQuickScan.BlazorApp/Components/Pages/Dashboard.razor similarity index 98% rename from src/DevOpsQuickScan.BlazorApp/Components/Pages/Facilitator/Dashboard.razor rename to src/DevOpsQuickScan.BlazorApp/Components/Pages/Dashboard.razor index 05dd6b3..f249375 100644 --- a/src/DevOpsQuickScan.BlazorApp/Components/Pages/Facilitator/Dashboard.razor +++ b/src/DevOpsQuickScan.BlazorApp/Components/Pages/Dashboard.razor @@ -1,4 +1,4 @@ -@page "/dashboard" +@page "/Dashboard" @using DevOpsQuickScan.Core @using DevOpsQuickScan.BlazorApp.Components.Partials @inject NavigationManager Navigation diff --git a/src/DevOpsQuickScan.BlazorApp/Properties/launchSettings.json b/src/DevOpsQuickScan.BlazorApp/Properties/launchSettings.json index a08d16c..4b09998 100644 --- a/src/DevOpsQuickScan.BlazorApp/Properties/launchSettings.json +++ b/src/DevOpsQuickScan.BlazorApp/Properties/launchSettings.json @@ -5,7 +5,7 @@ "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": false, - "launchUrl": "facilitator", + "launchUrl": "FacilitatorHub", "applicationUrl": "http://localhost:5119", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" @@ -15,7 +15,7 @@ "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": false, - "launchUrl": "facilitator", + "launchUrl": "FacilitatorHub", "applicationUrl": "https://localhost:7176", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" diff --git a/src/DevOpsQuickScan.BlazorApp/wwwroot/app.css b/src/DevOpsQuickScan.BlazorApp/wwwroot/app.css index b489f5f..3055415 100644 --- a/src/DevOpsQuickScan.BlazorApp/wwwroot/app.css +++ b/src/DevOpsQuickScan.BlazorApp/wwwroot/app.css @@ -106,4 +106,15 @@ h1:focus { border-left: 4px solid #0d6efd; /* Bootstrap primary color */ font-weight: 500; cursor: pointer; +} + +.nav-separator::after { + content: "|"; + margin-left: 0.5rem; /* space after the item */ + margin-right: 0.5rem; /* space after the item */ + color: #6c757d; /* optional: muted color */ +} + +.nav-separator:last-child::after { + content: ""; /* remove pipe for last item */ } \ No newline at end of file diff --git a/src/DevOpsQuickScan.BlazorApp/wwwroot/content/sessions/3f1d61b0-48c5-426c-ad12-cbc2ecf2386d.json b/src/DevOpsQuickScan.BlazorApp/wwwroot/content/sessions/3f1d61b0-48c5-426c-ad12-cbc2ecf2386d.json new file mode 100644 index 0000000..47ec318 --- /dev/null +++ b/src/DevOpsQuickScan.BlazorApp/wwwroot/content/sessions/3f1d61b0-48c5-426c-ad12-cbc2ecf2386d.json @@ -0,0 +1,7 @@ +{ + "Id": "3f1d61b0-48c5-426c-ad12-cbc2ecf2386d", + "Name": "Team X", + "Created": "2025-09-18T16:47:29.182928+02:00", + "Updated": "2025-09-18T16:47:29.182935+02:00", + "Submissions": [] +} \ No newline at end of file diff --git a/src/DevOpsQuickScan.Infrastructure/DevOpsQuickScan.Infrastructure.csproj b/src/DevOpsQuickScan.Infrastructure/DevOpsQuickScan.Infrastructure.csproj new file mode 100644 index 0000000..57fe94d --- /dev/null +++ b/src/DevOpsQuickScan.Infrastructure/DevOpsQuickScan.Infrastructure.csproj @@ -0,0 +1,14 @@ + + + + net9.0 + enable + enable + + + + + + + +