Skip to content

Conversation

@yaira2
Copy link
Member

@yaira2 yaira2 commented Mar 26, 2025

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Reviewed and checked the spacing for each setting card
  2. Reviewed all the modified toggle switches

@yaira2 yaira2 marked this pull request as draft March 26, 2025 14:45
@yaira2 yaira2 force-pushed the ya/SettingsControl branch from f24133e to bf38b4b Compare March 26, 2025 15:43
@Lamparter
Copy link
Contributor

Lamparter commented Mar 26, 2025

Does this fix #16348?

@yaira2 yaira2 force-pushed the ya/SettingsControl branch from a8a7158 to adec2b1 Compare March 26, 2025 20:01
@yaira2
Copy link
Member Author

yaira2 commented Mar 26, 2025

Does this fix #16348?

If it doesn't, we can open an issue on the Toolkit repo.

@yaira2 yaira2 marked this pull request as ready for review March 26, 2025 20:29
@yaira2 yaira2 added the ready to merge Pull requests that are approved and ready to merge label Mar 26, 2025
@yaira2 yaira2 requested a review from Copilot March 26, 2025 20:31
Copy link
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

This PR replaces custom settings controls with their Community Toolkit counterparts to improve code quality and reduce maintenance overhead.

  • Removed custom control: SettingsBlockControl
  • Removed custom control: SettingsDisplayControl

Reviewed Changes

Copilot reviewed 3 out of 18 changed files in this pull request and generated no comments.

File Description
src/Files.App/UserControls/Settings/SettingsBlockControl.xaml.cs Entire file removed; ensure new toolkit control provides equivalent behavior
src/Files.App/UserControls/Settings/SettingsDisplayControl.xaml.cs Entire file removed; confirm replacement covers all intended functionalities
Files not reviewed (15)
  • src/Files.App/UserControls/Settings/SettingsBlockControl.xaml: Language not supported
  • src/Files.App/UserControls/Settings/SettingsDisplayControl.xaml: Language not supported
  • src/Files.App/UserControls/Toolbar.xaml: Language not supported
  • src/Files.App/Views/Properties/CompatibilityPage.xaml: Language not supported
  • src/Files.App/Views/Properties/GeneralPage.xaml: Language not supported
  • src/Files.App/Views/Properties/ShortcutPage.xaml: Language not supported
  • src/Files.App/Views/Settings/AboutPage.xaml: Language not supported
  • src/Files.App/Views/Settings/ActionsPage.xaml: Language not supported
  • src/Files.App/Views/Settings/AdvancedPage.xaml: Language not supported
  • src/Files.App/Views/Settings/AppearancePage.xaml: Language not supported
  • src/Files.App/Views/Settings/DevToolsPage.xaml: Language not supported
  • src/Files.App/Views/Settings/FoldersPage.xaml: Language not supported
  • src/Files.App/Views/Settings/GeneralPage.xaml: Language not supported
  • src/Files.App/Views/Settings/LayoutPage.xaml: Language not supported
  • src/Files.App/Views/Settings/TagsPage.xaml: Language not supported
Comments suppressed due to low confidence (2)

src/Files.App/UserControls/Settings/SettingsBlockControl.xaml.cs:1

  • [nitpick] Ensure that all functionalities provided by the removed SettingsBlockControl are fully tested with the Community Toolkit replacement. Double-check integration tests to verify that the new control meets the expected behavior.
// Copyright (c) Files Community

src/Files.App/UserControls/Settings/SettingsDisplayControl.xaml.cs:1

  • [nitpick] Verify that the full functionality of the removed SettingsDisplayControl is covered by tests in the new Community Toolkit approach. Confirm that the replacement accurately handles all use cases previously managed by this control.
// Copyright (c) Files Community

@yaira2 yaira2 force-pushed the ya/SettingsControl branch 2 times, most recently from d80f04c to 42ff867 Compare March 26, 2025 22:59
@yaira2 yaira2 force-pushed the ya/SettingsControl branch 10 times, most recently from 6f81dbe to 8e88baa Compare March 28, 2025 03:09
@yaira2 yaira2 force-pushed the ya/SettingsControl branch from 35b062b to 526d565 Compare March 28, 2025 03:09
@yaira2 yaira2 force-pushed the ya/SettingsControl branch from f031451 to 7ad70bd Compare March 30, 2025 14:57
@yaira2 yaira2 merged commit 09a3a43 into main Mar 30, 2025
8 checks passed
@yaira2 yaira2 deleted the ya/SettingsControl branch March 30, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Bad spacing in Layout Type setting

3 participants