diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml
index 97e9c693..bc8cf9ea 100644
--- a/.github/workflows/pullrequest.yml
+++ b/.github/workflows/pullrequest.yml
@@ -1,192 +1,192 @@
-name: Build and Test Pull Requests
+#name: Build and Test Pull Requests
-on:
- pull_request:
- branches:
- - main
+# on:
+# pull_request:
+# branches:
+# - main
-jobs:
- unittests:
- name: "Build and Unit Test"
+# jobs:
+# unittests:
+# name: "Build and Unit Test"
- env:
- ASPNETCORE_ENVIRONMENT: "Production"
+# env:
+# ASPNETCORE_ENVIRONMENT: "Production"
- runs-on: ubuntu-latest
+# runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2.3.4
+# steps:
+# - uses: actions/checkout@v2.3.4
- - name: Restore Nuget Packages
- run: dotnet restore EstateManagementUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
+# - name: Restore Nuget Packages
+# run: dotnet restore EstateManagementUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
- - name: Build Code
- run: |
- dotnet build EstateManagementUI.sln --configuration Release
+# - name: Build Code
+# run: |
+# dotnet build EstateManagementUI.sln --configuration Release
- - name: Run Unit Tests
- run: |
- dotnet test "EstateManagementUI.BusinessLogic.Tests\EstateManagementUI.BusinessLogic.Tests.csproj"
- dotnet test "EstateManagementUI.UITests\EstateManagementUI.UITests.csproj"
+# - name: Run Unit Tests
+# run: |
+# dotnet test "EstateManagementUI.BusinessLogic.Tests\EstateManagementUI.BusinessLogic.Tests.csproj"
+# dotnet test "EstateManagementUI.UITests\EstateManagementUI.UITests.csproj"
- chrometests:
- name: "Build and Test UI - Chrome"
- env:
- ASPNETCORE_ENVIRONMENT: "Production"
- NODE_VERSION: '14.x' # set this to the node version to use
+# chrometests:
+# name: "Build and Test UI - Chrome"
+# env:
+# ASPNETCORE_ENVIRONMENT: "Production"
+# NODE_VERSION: '14.x' # set this to the node version to use
- runs-on: ubuntu-latest
+# runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2.3.4
+# steps:
+# - uses: actions/checkout@v2.3.4
- - name: Trust Certificate
- run: |
- sudo apt-get install expect
- certPath="$GITHUB_WORKSPACE/Certificates/aspnetapp-root-cert.pfx"
- password="password"
+# - name: Trust Certificate
+# run: |
+# sudo apt-get install expect
+# certPath="$GITHUB_WORKSPACE/Certificates/aspnetapp-root-cert.pfx"
+# password="password"
- # Use expect to automate the passphrase input
- expect -c "
- spawn openssl pkcs12 -in \"$certPath\" -clcerts -nokeys -out certificate.crt -password pass:\"$password\"
- expect \"Enter Import Password:\" { send \"$password\n\" }
- expect eof
- "
+# # Use expect to automate the passphrase input
+# expect -c "
+# spawn openssl pkcs12 -in \"$certPath\" -clcerts -nokeys -out certificate.crt -password pass:\"$password\"
+# expect \"Enter Import Password:\" { send \"$password\n\" }
+# expect eof
+# "
- expect -c "
- spawn openssl pkcs12 -in \"$certPath\" -nocerts -out private.key -password pass:\"$password\"
- expect \"Enter Import Password:\" { send \"$password\n\" }
- expect eof
- "
+# expect -c "
+# spawn openssl pkcs12 -in \"$certPath\" -nocerts -out private.key -password pass:\"$password\"
+# expect \"Enter Import Password:\" { send \"$password\n\" }
+# expect eof
+# "
- sudo cp certificate.crt /usr/local/share/ca-certificates/aspnetapp-root-cert.crt
- sudo update-ca-certificates
+# sudo cp certificate.crt /usr/local/share/ca-certificates/aspnetapp-root-cert.crt
+# sudo update-ca-certificates
- sudo cp private.key /etc/ssl/private/aspnetapp-root-cert.key
- sudo chmod 400 /etc/ssl/private/aspnetapp-root-cert.key
+# sudo cp private.key /etc/ssl/private/aspnetapp-root-cert.key
+# sudo chmod 400 /etc/ssl/private/aspnetapp-root-cert.key
- - name: Build Docker Image
- run: docker build . --file EstateManagementUI/Dockerfile --tag estatemanagementui:latest
+# - name: Build Docker Image
+# run: docker build . --file EstateManagementUI/Dockerfile --tag estatemanagementui:latest
- - name: Restore Nuget Packages
- run: dotnet restore EstateManagementUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
+# - name: Restore Nuget Packages
+# run: dotnet restore EstateManagementUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
- - name: Run Integration Tests (Chrome)
- env:
- Browser: Chrome
- IsCI: true
- run: dotnet test "EstateManagementUI.IntegrationTests\EstateManagementUI.IntegrationTests.csproj" --filter Category=PRTest
+# - name: Run Integration Tests (Chrome)
+# env:
+# Browser: Chrome
+# IsCI: true
+# run: dotnet test "EstateManagementUI.IntegrationTests\EstateManagementUI.IntegrationTests.csproj" --filter Category=PRTest
- - uses: actions/upload-artifact@v4.4.0
- if: ${{ failure() }}
- with:
- name: chrometracelogs
- path: /home/txnproc/trace/
-
- edgetests:
- name: "Build and Test UI - Edge"
- env:
- ASPNETCORE_ENVIRONMENT: "Production"
- NODE_VERSION: '14.x' # set this to the node version to use
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v2.3.4
-
- - name: Trust Certificate
- run: |
- sudo apt-get install expect
- certPath="$GITHUB_WORKSPACE/Certificates/aspnetapp-root-cert.pfx"
- password="password"
-
- # Use expect to automate the passphrase input
- expect -c "
- spawn openssl pkcs12 -in \"$certPath\" -clcerts -nokeys -out certificate.crt -password pass:\"$password\"
- expect \"Enter Import Password:\" { send \"$password\n\" }
- expect eof
- "
-
- expect -c "
- spawn openssl pkcs12 -in \"$certPath\" -nocerts -out private.key -password pass:\"$password\"
- expect \"Enter Import Password:\" { send \"$password\n\" }
- expect eof
- "
-
- sudo cp certificate.crt /usr/local/share/ca-certificates/aspnetapp-root-cert.crt
- sudo update-ca-certificates
-
- sudo cp private.key /etc/ssl/private/aspnetapp-root-cert.key
- sudo chmod 400 /etc/ssl/private/aspnetapp-root-cert.key
+# - uses: actions/upload-artifact@v4.4.0
+# if: ${{ failure() }}
+# with:
+# name: chrometracelogs
+# path: /home/txnproc/trace/
+
+# edgetests:
+# name: "Build and Test UI - Edge"
+# env:
+# ASPNETCORE_ENVIRONMENT: "Production"
+# NODE_VERSION: '14.x' # set this to the node version to use
+
+# runs-on: ubuntu-latest
+
+# steps:
+# - uses: actions/checkout@v2.3.4
+
+# - name: Trust Certificate
+# run: |
+# sudo apt-get install expect
+# certPath="$GITHUB_WORKSPACE/Certificates/aspnetapp-root-cert.pfx"
+# password="password"
+
+# # Use expect to automate the passphrase input
+# expect -c "
+# spawn openssl pkcs12 -in \"$certPath\" -clcerts -nokeys -out certificate.crt -password pass:\"$password\"
+# expect \"Enter Import Password:\" { send \"$password\n\" }
+# expect eof
+# "
+
+# expect -c "
+# spawn openssl pkcs12 -in \"$certPath\" -nocerts -out private.key -password pass:\"$password\"
+# expect \"Enter Import Password:\" { send \"$password\n\" }
+# expect eof
+# "
+
+# sudo cp certificate.crt /usr/local/share/ca-certificates/aspnetapp-root-cert.crt
+# sudo update-ca-certificates
+
+# sudo cp private.key /etc/ssl/private/aspnetapp-root-cert.key
+# sudo chmod 400 /etc/ssl/private/aspnetapp-root-cert.key
- - name: Build Docker Image
- run: docker build . --file EstateManagementUI/Dockerfile --tag estatemanagementui:latest
+# - name: Build Docker Image
+# run: docker build . --file EstateManagementUI/Dockerfile --tag estatemanagementui:latest
- - name: Restore Nuget Packages
- run: dotnet restore EstateManagementUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
+# - name: Restore Nuget Packages
+# run: dotnet restore EstateManagementUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
- - name: Run Integration Tests (Edge)
- env:
- Browser: Edge
- IsCI: true
- run: dotnet test "EstateManagementUI.IntegrationTests\EstateManagementUI.IntegrationTests.csproj" --filter Category=PRTest
+# - name: Run Integration Tests (Edge)
+# env:
+# Browser: Edge
+# IsCI: true
+# run: dotnet test "EstateManagementUI.IntegrationTests\EstateManagementUI.IntegrationTests.csproj" --filter Category=PRTest
- - uses: actions/upload-artifact@v4.4.0
- if: ${{ failure() }}
- with:
- name: edgetracelogs
- path: /home/txnproc/trace/
-
- fireefoxtests:
- name: "Build and Test UI - Firefox"
- env:
- ASPNETCORE_ENVIRONMENT: "Production"
- NODE_VERSION: '14.x' # set this to the node version to use
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v2.3.4
-
- - name: Trust Certificate
- run: |
- sudo apt-get install expect
- certPath="$GITHUB_WORKSPACE/Certificates/aspnetapp-root-cert.pfx"
- password="password"
-
- # Use expect to automate the passphrase input
- expect -c "
- spawn openssl pkcs12 -in \"$certPath\" -clcerts -nokeys -out certificate.crt -password pass:\"$password\"
- expect \"Enter Import Password:\" { send \"$password\n\" }
- expect eof
- "
-
- expect -c "
- spawn openssl pkcs12 -in \"$certPath\" -nocerts -out private.key -password pass:\"$password\"
- expect \"Enter Import Password:\" { send \"$password\n\" }
- expect eof
- "
-
- sudo cp certificate.crt /usr/local/share/ca-certificates/aspnetapp-root-cert.crt
- sudo update-ca-certificates
-
- sudo cp private.key /etc/ssl/private/aspnetapp-root-cert.key
- sudo chmod 400 /etc/ssl/private/aspnetapp-root-cert.key
+# - uses: actions/upload-artifact@v4.4.0
+# if: ${{ failure() }}
+# with:
+# name: edgetracelogs
+# path: /home/txnproc/trace/
+
+# fireefoxtests:
+# name: "Build and Test UI - Firefox"
+# env:
+# ASPNETCORE_ENVIRONMENT: "Production"
+# NODE_VERSION: '14.x' # set this to the node version to use
+
+# runs-on: ubuntu-latest
+
+# steps:
+# - uses: actions/checkout@v2.3.4
+
+# - name: Trust Certificate
+# run: |
+# sudo apt-get install expect
+# certPath="$GITHUB_WORKSPACE/Certificates/aspnetapp-root-cert.pfx"
+# password="password"
+
+# # Use expect to automate the passphrase input
+# expect -c "
+# spawn openssl pkcs12 -in \"$certPath\" -clcerts -nokeys -out certificate.crt -password pass:\"$password\"
+# expect \"Enter Import Password:\" { send \"$password\n\" }
+# expect eof
+# "
+
+# expect -c "
+# spawn openssl pkcs12 -in \"$certPath\" -nocerts -out private.key -password pass:\"$password\"
+# expect \"Enter Import Password:\" { send \"$password\n\" }
+# expect eof
+# "
+
+# sudo cp certificate.crt /usr/local/share/ca-certificates/aspnetapp-root-cert.crt
+# sudo update-ca-certificates
+
+# sudo cp private.key /etc/ssl/private/aspnetapp-root-cert.key
+# sudo chmod 400 /etc/ssl/private/aspnetapp-root-cert.key
- - name: Build Docker Image
- run: docker build . --file EstateManagementUI/Dockerfile --tag estatemanagementui:latest
+# - name: Build Docker Image
+# run: docker build . --file EstateManagementUI/Dockerfile --tag estatemanagementui:latest
- - name: Restore Nuget Packages
- run: dotnet restore EstateManagementUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
+# - name: Restore Nuget Packages
+# run: dotnet restore EstateManagementUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
- - name: Run Integration Tests (Firefox)
- env:
- Browser: Firefox
- IsCI: true
- run: dotnet test "EstateManagementUI.IntegrationTests\EstateManagementUI.IntegrationTests.csproj" --filter Category=PRTest
+# - name: Run Integration Tests (Firefox)
+# env:
+# Browser: Firefox
+# IsCI: true
+# run: dotnet test "EstateManagementUI.IntegrationTests\EstateManagementUI.IntegrationTests.csproj" --filter Category=PRTest
- - uses: actions/upload-artifact@v4.4.0
- if: ${{ failure() }}
- with:
- name: firefoxtracelogs
- path: /home/txnproc/trace/
\ No newline at end of file
+# - uses: actions/upload-artifact@v4.4.0
+# if: ${{ failure() }}
+# with:
+# name: firefoxtracelogs
+# path: /home/txnproc/trace/
\ No newline at end of file
diff --git a/EstateManagementUI.BlazorServer/Components/Pages/Home.razor b/EstateManagementUI.BlazorServer/Components/Pages/Home.razor
index 49c10a8c..cf82eb75 100644
--- a/EstateManagementUI.BlazorServer/Components/Pages/Home.razor
+++ b/EstateManagementUI.BlazorServer/Components/Pages/Home.razor
@@ -1,8 +1,17 @@
@page "/"
+@rendermode InteractiveServer
+@using MediatR
@using Microsoft.AspNetCore.Components.Authorization
+@using Microsoft.AspNetCore.Components.Forms
+@using EstateManagementUI.BlazorServer.Permissions
+@using EstateManagementUI.BlazorServer.Requests
+@using EstateManagementUI.BlazorServer.Models
+@using static EstateManagementUI.BlazorServer.Requests.Queries
@inject IMediator Mediator
@inject AuthenticationStateProvider AuthenticationStateProvider
@inject NavigationManager NavigationManager
+@inject IJSRuntime JSRuntime
+@inject IPermissionService PermissionService