Skip to content

Move user secrets descriptions to checkbox inputs#16293

Merged
JamesNK merged 5 commits intomainfrom
fix/user-secrets-checkbox-description
Apr 18, 2026
Merged

Move user secrets descriptions to checkbox inputs#16293
JamesNK merged 5 commits intomainfrom
fix/user-secrets-checkbox-description

Conversation

@JamesNK
Copy link
Copy Markdown
Member

@JamesNK JamesNK commented Apr 18, 2026

Description

Move user secrets descriptions from dialog-level messages to the checkbox input descriptions, and skip rendering the redundant FluentInputLabel for boolean (checkbox) inputs since checkboxes already render their own label.

Previously, the "Save to user secrets" and "Delete from user secrets" checkboxes displayed the same text as both the section title label above the checkbox and the checkbox's own label, which looked redundant. This change:

  • Skips rendering FluentInputLabel for InputType.Boolean inputs in InteractionInputField (the checkbox already has its own label)
  • Moves the user secrets link from SetParameterMessage to a new ParametersInputsRememberDescriptionConfigured description on the "Save to user secrets" checkbox
  • Moves the user secrets info from DeleteParameterMessageWithUserSecrets to a new ParametersInputsDeleteDescription description on the "Delete from user secrets" checkbox

After:
image

image

Fixes #16272

@maddymontaquila

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

- Skip rendering FluentInputLabel for boolean inputs in InteractionInputField
  since checkboxes already render their own label
- Move user secrets link from SetParameterMessage to the 'Save to user secrets'
  checkbox description
- Move user secrets info from DeleteParameterMessageWithUserSecrets to the
  'Delete from user secrets' checkbox description
- Add ParametersInputsRememberDescriptionConfigured and
  ParametersInputsDeleteDescription resource strings

Fixes #16272
Copilot AI review requested due to automatic review settings April 18, 2026 03:42
@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 -- 16293

Or

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

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

Adjusts the “Set Parameters”/delete parameter interaction strings and checkbox rendering so user-secrets help text lives with the checkbox (instead of duplicating dialog-level copy), and avoids rendering a redundant label above boolean (checkbox) inputs.

Changes:

  • Skip rendering FluentInputLabel for InputType.Boolean in InteractionInputField to remove duplicated checkbox labeling.
  • Add new localized resources for user-secrets checkbox descriptions and wire them into ParameterProcessor (save/delete flows).
  • Update existing interaction messages to remove user-secrets copy from dialog-level text (and introduce new trans-units in localized XLFs).

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 15 comments.

Show a summary per file
File Description
src/Aspire.Hosting/Resources/xlf/InteractionStrings.zh-Hant.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Traditional Chinese).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.zh-Hans.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Simplified Chinese).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.tr.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Turkish).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.ru.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Russian).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.pt-BR.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Portuguese - Brazil).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.pl.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Polish).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.ko.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Korean).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.ja.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Japanese).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.it.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Italian).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.fr.xlf Moves/remodels user-secrets copy into new checkbox-description strings (French).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.es.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Spanish).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.de.xlf Moves/remodels user-secrets copy into new checkbox-description strings (German).
src/Aspire.Hosting/Resources/xlf/InteractionStrings.cs.xlf Moves/remodels user-secrets copy into new checkbox-description strings (Czech).
src/Aspire.Hosting/Resources/InteractionStrings.resx Adds new resource entries for configured save/delete descriptions; trims dialog-level messages.
src/Aspire.Hosting/Resources/InteractionStrings.Designer.cs Regenerates strongly-typed resource accessors for new strings.
src/Aspire.Hosting/Orchestrator/ParameterProcessor.cs Uses the new checkbox description strings and markdown for save/delete user-secrets checkboxes.
src/Aspire.Dashboard/Components/Controls/InteractionInputField.razor Skips FluentInputLabel for boolean inputs to avoid duplicated checkbox labeling.
Files not reviewed (1)
  • src/Aspire.Hosting/Resources/InteractionStrings.Designer.cs: Language not supported

Comment thread src/Aspire.Hosting/Orchestrator/ParameterProcessor.cs
Comment thread src/Aspire.Hosting/Resources/xlf/InteractionStrings.zh-Hans.xlf Outdated
Comment thread src/Aspire.Hosting/Resources/xlf/InteractionStrings.fr.xlf Outdated
Comment thread src/Aspire.Hosting/Resources/xlf/InteractionStrings.de.xlf Outdated
Comment thread src/Aspire.Dashboard/Components/Controls/InteractionInputField.razor Outdated
Comment thread src/Aspire.Hosting/Resources/xlf/InteractionStrings.ru.xlf Outdated
Comment thread src/Aspire.Hosting/Resources/xlf/InteractionStrings.pt-BR.xlf Outdated
Comment thread src/Aspire.Hosting/Resources/xlf/InteractionStrings.ko.xlf Outdated
Comment thread src/Aspire.Hosting/Resources/xlf/InteractionStrings.ja.xlf Outdated
Comment thread src/Aspire.Hosting/Resources/xlf/InteractionStrings.cs.xlf Outdated
Copy link
Copy Markdown
Contributor

@davidfowl davidfowl left a comment

Choose a reason for hiding this comment

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

The description needs 3px padding or margin

@JamesNK
Copy link
Copy Markdown
Member Author

JamesNK commented Apr 18, 2026

@davidfowl I added a small space:

image

@JamesNK JamesNK enabled auto-merge (squash) April 18, 2026 05:40
@JamesNK JamesNK merged commit 0f3ad34 into main Apr 18, 2026
284 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 52d33a8)

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 #24598018667

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.

Dashboard: "Save to user secrets" label is duplicated in Set Parameters dialog

3 participants