Fix Razor build errors and address PR review comments#510
Conversation
Co-authored-by: aurelianware <194855645+aurelianware@users.noreply.github.com>
|
@copilot Error: buildx failed with: ERROR: failed to build: failed to solve: process "/bin/sh -c dotnet build -c Release -o /app/build" did not complete successfully: exit code: 1 |
…x invalid icon Co-authored-by: aurelianware <194855645+aurelianware@users.noreply.github.com>
Fixed in commit
Both |
There was a problem hiding this comment.
Pull request overview
This PR fixes Razor build breaks in the Portal UI and applies a few small content/UI updates that address prior review feedback (notably around demo deep-links and static site copy).
Changes:
- Added a shared Razor import for
Microsoft.AspNetCore.Authorizationto resolve missing[Authorize]/[AllowAnonymous]compile errors across pages. - Fixed Razor compiler issues in MudBlazor templates/attributes (nested
contextshadowing; mixed markup/C# inStyleattributes). - Applied small UI/content fixes: corrected HTML escaping, removed duplicate bullets, and deep-linked the Patient Access API “Try in Demo” button to
/demo/members.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/site/solutions-payers.html | Escapes <1 to <1 so the text renders correctly in HTML. |
| src/site/assets/cho-assessment.md | Removes a duplicated bullet in the “Traditional Vendors” list. |
| src/site/assessment.html | Removes the same duplicated bullet in the rendered HTML version. |
| src/portal/CloudHealthOffice.Portal/_Imports.razor | Adds Microsoft.AspNetCore.Authorization to resolve Razor attribute namespace errors globally. |
| src/portal/CloudHealthOffice.Portal/Pages/EdiOperations.razor | Renames the inner MudTable row context to avoid context shadowing (RZ9999). |
| src/portal/CloudHealthOffice.Portal/Pages/ClaimDetailsNew.razor | Fixes Style attribute Razor parsing (RZ9986) and updates the tab icon constant. |
| src/portal/CloudHealthOffice.Portal/Pages/AppError.razor | Adds an anonymous-accessible /error page for account-load failure messaging. |
| src/portal/CloudHealthOffice.Portal/Pages/Apis.razor | Updates the Patient Access API demo button to deep-link to /demo/members. |
| src/portal/CloudHealthOffice.Portal/Dialogs/AssignPcpDialog.razor | Converts mixed text/expression Style attribute to a single expression (RZ9986). |
Fixes 13 Razor compiler errors introduced in the portal UI build (
b8bb463) and addresses five review comments from PR #507.Build fixes
CS0246 — missing
[Authorize]namespace (Reports,PaymentRuns,Workflows,PremiumBilling)Added
@using Microsoft.AspNetCore.Authorizationto_Imports.razorrather than repeating it per-file.RZ9986 — mixed C# and markup in
Styleattributes (AssignPcpDialog,ClaimDetailsNew)Razor disallows interleaving literal text with
@(...)in attribute values. Converted to single expressions:RZ9999 — shadowed
contextin nestedRowTemplate(EdiOperations)Inner
MudTableRowTemplateinsideChildRowContentconflicted with the outercontext. Fixed with an explicitContext="record"rename.Review comment fixes
solutions-payers.html— escaped<1→<1so<1 hour deploymentrenders rather than being treated as a tagcho-assessment.md+assessment.html— removed duplicate "Lengthy implementation timelines" bullet from the Traditional Vendors list (copy/paste leftover)Apis.razor— Patient Access API "Try in Demo" now deep-links to/demo/membersinstead of the generic/demolanding, consistent with all other API cards📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.