Skip to content

app: Remove the harness step's Current setting line - #1879

Merged
nortonandreev merged 1 commit into
mainfrom
norton/ai-4266-harness-current-setting
Oct 23, 2026
Merged

nortonandreev merged 1 commit into
mainfrom
norton/ai-4266-harness-current-setting

Conversation

@nortonandreev

Copy link
Copy Markdown
Contributor

Closes #1856 — AI-4266

What & why

The harness step showed "Current setting: …" while no radio option was selected. The radio group is the control, so it is now the only place the choice is shown, including before one is picked. The view-model state that only fed the line is removed; the step still reads the saved profile on entry for the provider-key answer.

Verification

dotnet run --project test/Capacitor.App.Tests.Unit: 4,240 passed, 10 skipped, 0 failed. Headless renders with the app's styles:

Before After
Nothing selected
Selected

The radio group is the only place the privacy choice is shown, including before one is picked.
@linear-code

linear-code Bot commented Oct 23, 2026

Copy link
Copy Markdown

AI-4266

@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: e17cf68c-3788-4829-8d24-75a96e588ae8
📥 Commits

Reviewing files that changed from the base of the PR and between d1f1dc3 and 8834b9b.

📒 Files selected for processing: 3
  • src/Capacitor.App/ViewModels/Onboarding/HarnessesStepViewModel.cs
  • src/Capacitor.App/Views/Onboarding/HarnessesPaneView.axaml
  • test/Capacitor.App.Tests.Unit/HarnessesStepViewModelTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Remove the redundant current-setting line from harness onboarding

🐞 Bug fix 🕐 10-20 Minutes

Grey Divider

AI Description

• Remove the current-setting line so the privacy radio group is the only place the choice appears.
• Keep privacy unselected on entry while still loading the saved provider-key answer.
• Adjust the profile-saving test to stop asserting the removed note.
Diagram

graph TD
    U["User"] --> R["Privacy radio group"] --> V["Harness step model"] --> P["Active profile"]
    P -->|"provider key answer"| V
Loading
High-Level Assessment

Removing the redundant line and its view-model state is the simplest approach. Keeping a separate readout would preserve the mismatch between displayed settings and the unselected radio group.

Files changed (3) +3 / -18

Bug fix (2) +1 / -14
HarnessesStepViewModel.csRemove derived current-visibility note +1/-12

Remove derived current-visibility note

• Removes the note property and its updates when loading or saving a profile. Profile loading still restores the provider-key answer without preselecting visibility.

src/Capacitor.App/ViewModels/Onboarding/HarnessesStepViewModel.cs

HarnessesPaneView.axamlRemove the current-setting text from the privacy card +0/-2

Remove the current-setting text from the privacy card

• Removes the text block bound to the current-visibility note, leaving the radio group as the sole display of the privacy choice.

src/Capacitor.App/Views/Onboarding/HarnessesPaneView.axaml

Tests (1) +2 / -4
HarnessesStepViewModelTests.csDrop assertions for the removed visibility note +2/-4

Drop assertions for the removed visibility note

• Keeps the test's checks for an initially unselected privacy choice, the loaded provider-key answer, and both values saved to the profile.

test/Capacitor.App.Tests.Unit/HarnessesStepViewModelTests.cs

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can reply 'qodo' on any finding to push back, ask questions, or dig deeper

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@nortonandreev nortonandreev self-assigned this Oct 23, 2026
@nortonandreev

Copy link
Copy Markdown
Contributor Author

@CodeRabbit approve

@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown
✅ Action performed

Comments resolved and changes approved.

@nortonandreev
nortonandreev merged commit 503241d into main Oct 23, 2026
12 checks passed
@nortonandreev
nortonandreev deleted the norton/ai-4266-harness-current-setting branch October 23, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

app: Remove the harness step's Current setting line

1 participant