Skip to content

Commit 36eca03

Browse files
ldangeloclaude
andcommitted
fix(blazor): resolve illegal boolean attribute warnings across components
- Fixed 50+ illegal boolean attribute instances in 16 Razor components - Changed string boolean attributes (="true"/="false") to proper Blazor syntax - Affected components: MudBlazor FullWidth, Indeterminate, Dense, etc. - Verified clean build with 0 warnings and functional application 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8640977 commit 36eca03

16 files changed

+55
-80
lines changed

src/FxExpert.Blazor/FxExpert.Blazor.Client/Components/AdvancedPartnerFilterComponent.razor

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@
227227
<MudAutocomplete T="string"
228228
Label="Required Skills"
229229
SearchFunc="SearchSkills"
230-
MultiSelection="true"
231-
SelectedValues="_selectedSkills"
230+
MultiSelection SelectedValues="_selectedSkills"
232231
SelectedValuesChanged="OnSkillsChanged"
233232
Variant="Variant.Outlined"
234233
Clearable="true" />
@@ -262,26 +261,23 @@
262261
<MudAutocomplete T="string"
263262
Label="Industries"
264263
SearchFunc="SearchIndustries"
265-
MultiSelection="true"
266-
SelectedValues="_selectedIndustries"
264+
MultiSelection SelectedValues="_selectedIndustries"
267265
SelectedValuesChanged="OnIndustriesChanged"
268266
Variant="Variant.Outlined"
269267
Clearable="true" />
270268

271269
<MudAutocomplete T="string"
272270
Label="Technologies"
273271
SearchFunc="SearchTechnologies"
274-
MultiSelection="true"
275-
SelectedValues="_selectedTechnologies"
272+
MultiSelection SelectedValues="_selectedTechnologies"
276273
SelectedValuesChanged="OnTechnologiesChanged"
277274
Variant="Variant.Outlined"
278275
Clearable="true" />
279276

280277
<MudAutocomplete T="string"
281278
Label="Certifications"
282279
SearchFunc="SearchCertifications"
283-
MultiSelection="true"
284-
SelectedValues="_selectedCertifications"
280+
MultiSelection SelectedValues="_selectedCertifications"
285281
SelectedValuesChanged="OnCertificationsChanged"
286282
Variant="Variant.Outlined"
287283
Clearable="true" />
@@ -314,29 +310,25 @@
314310
<MudGrid>
315311
<MudItem xs="12" md="4">
316312
<MudCheckBox @bind-Value="_remoteWork"
317-
TriState="true"
318-
Label="Remote Work"
313+
TriState Label="Remote Work"
319314
Color="Color.Primary" />
320315
</MudItem>
321316
<MudItem xs="12" md="4">
322317
<MudCheckBox @bind-Value="_onSiteWork"
323-
TriState="true"
324-
Label="On-Site Work"
318+
TriState Label="On-Site Work"
325319
Color="Color.Primary" />
326320
</MudItem>
327321
<MudItem xs="12" md="4">
328322
<MudCheckBox @bind-Value="_travelWillingness"
329-
TriState="true"
330-
Label="Travel Willingness"
323+
TriState Label="Travel Willingness"
331324
Color="Color.Primary" />
332325
</MudItem>
333326
</MudGrid>
334327

335328
<MudAutocomplete T="string"
336329
Label="Languages"
337330
SearchFunc="SearchLanguages"
338-
MultiSelection="true"
339-
SelectedValues="_selectedLanguages"
331+
MultiSelection SelectedValues="_selectedLanguages"
340332
SelectedValuesChanged="OnLanguagesChanged"
341333
Variant="Variant.Outlined"
342334
Clearable="true" />
@@ -367,8 +359,7 @@
367359
<!-- Specializations -->
368360
<MudExpansionPanel Text="🔧 Specializations">
369361
<MudSelect T="PartnerSpecialization"
370-
MultiSelection="true"
371-
SelectedValues="_selectedSpecializations"
362+
MultiSelection SelectedValues="_selectedSpecializations"
372363
SelectedValuesChanged="OnSpecializationsChanged"
373364
Label="Partner Specializations"
374365
Variant="Variant.Outlined">

src/FxExpert.Blazor/FxExpert.Blazor.Client/Components/EnhancedPartnerMatchCard.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
@if (!string.IsNullOrEmpty(Match.PotentialConcerns))
6767
{
68-
<MudAlert Severity="Severity.Info" Dense="true" NoIcon="true" Class="pa-2">
68+
<MudAlert Severity="Severity.Info" Dense NoIcon Class="pa-2">
6969
<MudText Typo="Typo.caption">⚠️ @Match.PotentialConcerns</MudText>
7070
</MudAlert>
7171
}
@@ -115,7 +115,7 @@
115115
Color="Color.Primary"
116116
Size="Size.Medium"
117117
Class="mb-2"
118-
FullWidth="true"
118+
FullWidth
119119
OnClick="@(() => OnViewPartner.InvokeAsync((Match.PartnerId, ProblemDescription, Industry, Priority)))">
120120
<MudIcon Icon="@Icons.Material.Filled.Visibility" Size="Size.Small" Class="mr-1" />
121121
View Profile
@@ -126,7 +126,7 @@
126126
<MudButton Variant="Variant.Outlined"
127127
Color="Color.Secondary"
128128
Size="Size.Small"
129-
FullWidth="true"
129+
FullWidth
130130
OnClick="@(() => OnViewPartner.InvokeAsync((Match.PartnerId, ProblemDescription, Industry, Priority)))">
131131
<MudIcon Icon="@Icons.Material.Filled.Schedule" Size="Size.Small" Class="mr-1" />
132132
@Match.Partner.AvailabilityNext30Days days available
@@ -144,7 +144,7 @@
144144
@if (Match.Partner != null && (Match.Partner.WorkHistories?.Any() == true || !string.IsNullOrEmpty(Match.Partner.Bio)))
145145
{
146146
<MudDivider Class="my-3" />
147-
<MudExpansionPanels DisableBorders="true" Elevation="0">
147+
<MudExpansionPanels DisableBorders Elevation="0">
148148
<MudExpansionPanel Icon="@Icons.Material.Filled.ExpandMore" Text="View Detailed Background">
149149
<div class="detailed-background pa-3">
150150
@if (!string.IsNullOrEmpty(Match.Partner.Bio))

src/FxExpert.Blazor/FxExpert.Blazor.Client/Components/EnhancedPartnerMatchingComponent.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@if (_isProcessing)
88
{
99
<MudPaper Class="pa-6 text-center" Elevation="2">
10-
<MudProgressCircular Color="Color.Primary" Size="Size.Medium" Indeterminate="true" />
10+
<MudProgressCircular Color="Color.Primary" Size="Size.Medium" Indeterminate />
1111
<MudText Typo="Typo.h6" Class="mt-3">Analyzing Your Challenge...</MudText>
1212
<MudText Typo="Typo.body2" Class="text-muted">
1313
Our AI is matching you with the best partners based on their expertise and track record

src/FxExpert.Blazor/FxExpert.Blazor.Client/Components/PartnerFilterComponent.razor

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -294,17 +294,15 @@
294294
Value="_selectedCity"
295295
ValueChanged="OnCityChanged"
296296
Variant="Variant.Outlined"
297-
Clearable="true"
298-
aria-label="Filter by city"
297+
Clearable aria-label="Filter by city"
299298
HelperText="Type to search cities" />
300299
</MudItem>
301300
<MudItem xs="12" md="6">
302301
<MudSelect T="string"
303302
Label="State"
304303
@bind-Value="_selectedState"
305304
Variant="Variant.Outlined"
306-
Clearable="true"
307-
aria-label="Filter by state">
305+
Clearable aria-label="Filter by state">
308306
@foreach (var state in _availableStates)
309307
{
310308
<MudSelectItem Value="@state.Code">@state.Name (@state.Code)</MudSelectItem>
@@ -320,11 +318,9 @@
320318
<MudAutocomplete T="string"
321319
Label="Search Skills"
322320
SearchFunc="SearchSkills"
323-
MultiSelection="true"
324-
@bind-SelectedValues="_selectedSkills"
321+
MultiSelection @bind-SelectedValues="_selectedSkills"
325322
Variant="Variant.Outlined"
326-
Clearable="true"
327-
aria-label="Search and select required skills"
323+
Clearable aria-label="Search and select required skills"
328324
HelperText="Partners must have ALL selected skills" />
329325
</MudStack>
330326
</MudExpansionPanel>

src/FxExpert.Blazor/FxExpert.Blazor.Client/Components/PaymentForm.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
@if (IsLoading)
4242
{
43-
<MudProgressLinear Color="Color.Primary" Indeterminate="true" />
43+
<MudProgressLinear Color="Color.Primary" Indeterminate />
4444
<MudText Typo="Typo.body2" Align="Align.Center" Class="my-4">Setting up secure payment...</MudText>
4545
}
4646
else if (!string.IsNullOrEmpty(ClientSecret))
@@ -66,7 +66,7 @@
6666
Class="mt-4 payment-button-mobile">
6767
@if (IsProcessing)
6868
{
69-
<MudProgressCircular Class="mr-2" Size="Size.Small" Indeterminate="true"/>
69+
<MudProgressCircular Class="mr-2" Size="Size.Small" Indeterminate/>
7070
<span>Processing Payment...</span>
7171
}
7272
else

src/FxExpert.Blazor/FxExpert.Blazor.Client/Components/SessionHistoryComponent.razor

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@
246246
<MudPagination Count="_sessionResult.TotalPages"
247247
Selected="_currentPage"
248248
SelectedChanged="OnPageChanged"
249-
ShowFirstLast="true"
250-
ShowPrevNext="true" />
249+
ShowFirstLast ShowPrevNext="true" />
251250
</div>
252251
}
253252
}

src/FxExpert.Blazor/FxExpert.Blazor.Client/Components/UpcomingSessionsComponent.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
@if (_isLoading)
2323
{
2424
<div class="d-flex justify-center pa-4">
25-
<MudProgressCircular Color="Color.Primary" Size="Size.Small" Indeterminate="true" />
25+
<MudProgressCircular Color="Color.Primary" Size="Size.Small" Indeterminate />
2626
<MudText Typo="Typo.body2" Class="ml-2">Loading sessions...</MudText>
2727
</div>
2828
}
2929
else if (_upcomingSessions?.Any() == true)
3030
{
3131
<!-- Sessions List -->
32-
<MudList T="SessionHistory" Clickable="false">
32+
<MudList T="SessionHistory" Clickable="@false">
3333
@foreach (var session in _upcomingSessions.Take(MaxSessions))
3434
{
3535
<MudListItem>

src/FxExpert.Blazor/FxExpert.Blazor.Client/Layout/MainLayout.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<MudSnackbarProvider/>
4646

4747
<MudLayout>
48-
<MudAppBar Elevation="3" Color="Color.Primary" Fixed="true">
48+
<MudAppBar Elevation="3" Color="Color.Primary" Fixed>
4949
<MudHidden Breakpoint="Breakpoint.SmAndDown">
5050
<MudImage Src="images/fortium-logo.png" Alt="Fortium Logo" Height="40" Class="mr-3"/>
5151
</MudHidden>
@@ -59,7 +59,7 @@
5959
<MudSpacer/>
6060

6161
<MudHidden Breakpoint="Breakpoint.SmAndDown">
62-
<MudStack Row="true">
62+
<MudStack Row>
6363
<MudButton Href="/" Color="Color.Inherit" Class="ml-2">Home</MudButton>
6464
<MudButton Href="/about" Color="Color.Inherit" Class="ml-2">About</MudButton>
6565
<MudButton Href="/experts" Color="Color.Inherit" Class="ml-2">Our Experts</MudButton>
@@ -71,7 +71,7 @@
7171

7272
<AuthorizeView>
7373
<Authorized>
74-
<MudMenu Icon="@Icons.Material.Filled.Person" Color="Color.Inherit" Dense="true">
74+
<MudMenu Icon="@Icons.Material.Filled.Person" Color="Color.Inherit" Dense>
7575
<MudText Typo="Typo.body2" Class="px-4 py-2">@context.User.Identity?.Name</MudText>
7676
<MudDivider/>
7777
@if (context.User.IsInRole("Partner"))

src/FxExpert.Blazor/FxExpert.Blazor.Client/Pages/ClientSessionsPage.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@
6868
</MudGrid>
6969

7070
<!-- Main Content Tabs -->
71-
<MudTabs Elevation="2" Rounded="true" ApplyEffectsToContainer="true" PanelClass="pa-0">
71+
<MudTabs Elevation="2" Rounded ApplyEffectsToContainer PanelClass="pa-0">
7272
<MudTabPanel Text="Upcoming Sessions" Icon="@Icons.Material.Filled.Schedule">
7373
<MudPaper Class="pa-4">
7474
<UpcomingSessionsComponent UserEmail="@_userEmail"
75-
IsPartnerView="false"
75+
IsPartnerView="@false"
7676
MaxSessions="20"
7777
OnViewAllRequested="@(() => _selectedTab = 1)"
7878
OnBookNewRequested="BookNewConsultation" />
7979
</MudPaper>
8080
</MudTabPanel>
8181

8282
<MudTabPanel Text="All Sessions" Icon="@Icons.Material.Filled.History">
83-
<SessionHistoryComponent UserEmail="@_userEmail" IsPartnerView="false" />
83+
<SessionHistoryComponent UserEmail="@_userEmail" IsPartnerView="@false" />
8484
</MudTabPanel>
8585

8686
<MudTabPanel Text="Session Insights" Icon="@Icons.Material.Filled.Analytics">
@@ -159,7 +159,7 @@
159159
<div>
160160
<MudText Typo="Typo.subtitle2">Average Rating</MudText>
161161
<MudStack Direction="Direction.Row" AlignItems="AlignItems.Center" Spacing="2">
162-
<MudRating ReadOnly="true" SelectedValue="(int)Math.Round(_statistics.AverageRating)" MaxValue="5" />
162+
<MudRating ReadOnly SelectedValue="(int)Math.Round(_statistics.AverageRating)" MaxValue="5" />
163163
<MudText Typo="Typo.body2">@_statistics.AverageRating.ToString("F1") / 5.0</MudText>
164164
</MudStack>
165165
</div>
@@ -175,7 +175,7 @@
175175
else
176176
{
177177
<div class="d-flex justify-center pa-8">
178-
<MudProgressCircular Color="Color.Primary" Indeterminate="true" />
178+
<MudProgressCircular Color="Color.Primary" Indeterminate />
179179
</div>
180180
}
181181
</MudPaper>

src/FxExpert.Blazor/FxExpert.Blazor.Client/Pages/ConfirmationPage.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
<MudText Typo="Typo.h5" Class="mb-4">Meeting Details</MudText>
7777

78-
<MudList T="string" Dense="false" Class="confirmation-list">
78+
<MudList T="string" Dense="@false" Class="confirmation-list">
7979
<MudListItem Icon="@Icons.Material.Filled.Person">
8080
<MudText Typo="Typo.body1"><b>Expert:</b> @(_partner?.GetFullName() ?? "Your selected expert")
8181
</MudText>
@@ -149,7 +149,7 @@
149149
Size="Size.Large"
150150
OnClick="@(() => NavigationManager.NavigateTo("/"))"
151151
Class="mt-4 confirmation-button"
152-
FullWidth="true">
152+
FullWidth>
153153
Return to Home
154154
</MudButton>
155155
</MudPaper>

0 commit comments

Comments
 (0)