Skip to content

Disable browser autocomplete on dashboard search and input fields#16297

Merged
JamesNK merged 3 commits intomainfrom
fix/dashboard-autocomplete-off
Apr 18, 2026
Merged

Disable browser autocomplete on dashboard search and input fields#16297
JamesNK merged 3 commits intomainfrom
fix/dashboard-autocomplete-off

Conversation

@JamesNK
Copy link
Copy Markdown
Member

@JamesNK JamesNK commented Apr 18, 2026

Description

Don't combine autocomplete with autofocus.

Changes:

  • Add AutoComplete="off" to FluentSearch components in ResourceDetails, SpanDetails, StructuredLogDetails, Traces, and InteractionsInputDialog
  • Add Name attributes to FluentSearch components in Resources, StructuredLogs, and TraceDetail pages to give them unique identities and further discourage autocomplete

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
    • No
  • Does the change require an update in our Aspire docs?
    • Yes
    • No

@JamesNK JamesNK requested a review from adamint as a code owner April 18, 2026 05:29
Copilot AI review requested due to automatic review settings April 18, 2026 05:29
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 18, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16297

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16297"

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Aspire Dashboard’s search and input fields to reduce/avoid browser-provided autocomplete suggestions that can visually overlap the UI.

Changes:

  • Adds AutoComplete="off" to several FluentSearch and FluentTextField inputs (e.g., traces, details panes, interactions dialog).
  • Adds Name="..." to some FluentSearch components to help browsers treat them as distinct fields.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Aspire.Dashboard/Components/Pages/Traces.razor Disables autocomplete on the traces page filter search.
src/Aspire.Dashboard/Components/Pages/TraceDetail.razor Adds a Name to the spans filter search (desktop + mobile).
src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor Adds a Name to the structured logs filter search.
src/Aspire.Dashboard/Components/Pages/Resources.razor Adds a Name to the resources filter search.
src/Aspire.Dashboard/Components/Dialogs/InteractionsInputDialog.razor Disables autocomplete on text inputs in the interactions dialog.
src/Aspire.Dashboard/Components/Controls/StructuredLogDetails.razor Disables autocomplete on the details-pane filter search.
src/Aspire.Dashboard/Components/Controls/SpanDetails.razor Disables autocomplete on the span details filter search.
src/Aspire.Dashboard/Components/Controls/ResourceDetails.razor Disables autocomplete on the resource details filter search.
Comments suppressed due to low confidence (2)

src/Aspire.Dashboard/Components/Pages/TraceDetail.razor:53

  • PR title/description says browser autocomplete is being disabled on dashboard search fields, but this FluentSearch sets a Name without setting AutoComplete="off". If the goal is to prevent browser-suggested entries from overlapping the UI, consider adding AutoComplete="off" here as well (or update the PR description/title to match the intended behavior).
                            <FluentSearch @bind-Value="_filter"
                                          @bind-Value:after="HandleAfterFilterBindAsync"
                                          Name="spans-search"
                                          Immediate="true"
                                          ImmediateDelay="@FluentUIExtensions.InputDelay"
                                          Placeholder="@ControlStringsLoc[nameof(ControlsStrings.FilterPlaceholder)]"
                                          title="@Loc[nameof(Dashboard.Resources.Traces.TracesNameFilter)]" />

src/Aspire.Dashboard/Components/Pages/TraceDetail.razor:79

  • Same as above for the non-desktop toolbar: Name is set but AutoComplete="off" is not. If autocomplete is meant to be disabled to avoid UI overlap, add AutoComplete="off" here too (or update PR description/title accordingly).
                    <FluentSearch @bind-Value="_filter"
                                  @bind-Value:after="HandleAfterFilterBindAsync"
                                  Name="spans-search"
                                  Immediate="true"
                                  ImmediateDelay="@FluentUIExtensions.InputDelay"
                                  Placeholder="@ControlStringsLoc[nameof(ControlsStrings.FilterPlaceholder)]"
                                  title="@Loc[nameof(Dashboard.Resources.Traces.TracesNameFilter)]"/>

Comment thread src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor
Comment thread src/Aspire.Dashboard/Components/Pages/Resources.razor
Comment thread src/Aspire.Dashboard/Components/Pages/Traces.razor Outdated
@JamesNK JamesNK enabled auto-merge (squash) April 18, 2026 06:23
@JamesNK JamesNK merged commit 80eca9e into main Apr 18, 2026
562 of 565 checks passed
@github-actions github-actions Bot added this to the 13.3 milestone Apr 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🎬 CLI E2E Test Recordings — 72 recordings uploaded (commit a6b635d)

View recordings
Test Recording
AddPackageInteractiveWhileAppHostRunningDetached ▶️ View Recording
AddPackageWhileAppHostRunningDetached ▶️ View Recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ View Recording
AgentInitCommand_DefaultSelection_InstallsSkillOnly ▶️ View Recording
AgentInitCommand_MigratesDeprecatedConfig ▶️ View Recording
AspireAddPackageVersionToDirectoryPackagesProps ▶️ View Recording
AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps ▶️ View Recording
Banner_DisplayedOnFirstRun ▶️ View Recording
Banner_DisplayedWithExplicitFlag ▶️ View Recording
Banner_NotDisplayedWithNoLogoFlag ▶️ View Recording
CertificatesClean_RemovesCertificates ▶️ View Recording
CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate ▶️ View Recording
CertificatesTrust_WithUntrustedCert_TrustsCertificate ▶️ View Recording
ConfigSetGet_CreatesNestedJsonFormat ▶️ View Recording
CreateAndRunAspireStarterProject ▶️ View Recording
CreateAndRunAspireStarterProjectWithBundle ▶️ View Recording
CreateAndRunEmptyAppHostProject ▶️ View Recording
CreateAndRunJavaEmptyAppHostProject ▶️ View Recording
CreateAndRunJsReactProject ▶️ View Recording
CreateAndRunPythonReactProject ▶️ View Recording
CreateAndRunTypeScriptEmptyAppHostProject ▶️ View Recording
CreateAndRunTypeScriptStarterProject ▶️ View Recording
CreateJavaAppHostWithViteApp ▶️ View Recording
CreateTypeScriptAppHostWithViteApp ▶️ View Recording
DashboardRunWithOtelTracesReturnsNoTraces ▶️ View Recording
DeployK8sBasicApiService ▶️ View Recording
DeployK8sWithGarnet ▶️ View Recording
DeployK8sWithMongoDB ▶️ View Recording
DeployK8sWithMySql ▶️ View Recording
DeployK8sWithPostgres ▶️ View Recording
DeployK8sWithRabbitMQ ▶️ View Recording
DeployK8sWithRedis ▶️ View Recording
DeployK8sWithSqlServer ▶️ View Recording
DeployK8sWithValkey ▶️ View Recording
DeployTypeScriptAppToKubernetes ▶️ View Recording
DescribeCommandResolvesReplicaNames ▶️ View Recording
DescribeCommandShowsRunningResources ▶️ View Recording
DetachFormatJsonProducesValidJson ▶️ View Recording
DetachFormatJsonProducesValidJsonWhenRestartingExistingInstance ▶️ View Recording
DoListStepsShowsPipelineSteps ▶️ View Recording
DoctorCommand_DetectsDeprecatedAgentConfig ▶️ View Recording
DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View Recording
DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View Recording
GlobalMigration_HandlesCommentsAndTrailingCommas ▶️ View Recording
GlobalMigration_HandlesMalformedLegacyJson ▶️ View Recording
GlobalMigration_PreservesAllValueTypes ▶️ View Recording
GlobalMigration_SkipsWhenNewConfigExists ▶️ View Recording
GlobalSettings_MigratedFromLegacyFormat ▶️ View Recording
InitTypeScriptAppHost_AugmentsExistingViteRepoAtRoot ▶️ View Recording
InvalidAppHostPathWithComments_IsHealedOnRun ▶️ View Recording
LegacySettingsMigration_AdjustsRelativeAppHostPath ▶️ View Recording
LogsCommandShowsResourceLogs ▶️ View Recording
OtelLogsReturnsStructuredLogsFromStarterApp ▶️ View Recording
PsCommandListsRunningAppHost ▶️ View Recording
PsFormatJsonOutputsOnlyJsonToStdout ▶️ View Recording
PublishWithConfigureEnvFileUpdatesEnvOutput ▶️ View Recording
PublishWithDockerComposeServiceCallbackSucceeds ▶️ View Recording
PublishWithoutOutputPathUsesAppHostDirectoryDefault ▶️ View Recording
RestoreGeneratesSdkFiles ▶️ View Recording
RestoreRefreshesGeneratedSdkAfterAddingIntegration ▶️ View Recording
RestoreSupportsConfigOnlyHelperPackageAndCrossPackageTypes ▶️ View Recording
RunFromParentDirectory_UsesExistingConfigNearAppHost ▶️ View Recording
SecretCrudOnDotNetAppHost ▶️ View Recording
SecretCrudOnTypeScriptAppHost ▶️ View Recording
StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ▶️ View Recording
StartAndWaitForTypeScriptSqlServerAppHostWithNativeAssets ▶️ View Recording
StopAllAppHostsFromAppHostDirectory ▶️ View Recording
StopAllAppHostsFromUnrelatedDirectory ▶️ View Recording
StopNonInteractiveMultipleAppHostsShowsError ▶️ View Recording
StopNonInteractiveSingleAppHost ▶️ View Recording
StopWithNoRunningAppHostExitsSuccessfully ▶️ View Recording
UnAwaitedChainsCompileWithAutoResolvePromises ▶️ View Recording

📹 Recordings uploaded automatically from CI run #24598705522

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants