Skip to content

Code Quality: WCT Settings Control #13045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

0x5bfa
Copy link
Member

@0x5bfa 0x5bfa commented Jul 23, 2023

Feature: Settings Controls UI Refresh

Motivation & Context

  • Improved performance
  • Improved maintainability
  • Improved UI (UI tweaks)

PR Checklist

  • Were these changes approved in an issue or discussion with the project maintainers? In order to prevent extra work, feature requests and changes to the codebase must be approved before the pull request will be reviewed. This prevents extra work for the contributors and maintainers.
    Related Code Quality: Refactored the settings controls #12261
  • Did you build the app and test your changes?
  • Did you check for accessibility? You can use Accessibility Insights for this.
  • Did you remove any strings from the en-us resource file?
    • Did you search the solution to see if the string is still being used?
  • Did you implement any design changes to an existing feature?
    • Was this change approved?
  • Are there any other steps that were used to validate these changes?

Screenshots

None

@yaira2
Copy link
Member

yaira2 commented Jul 23, 2023

Improved performance

Can you share some numbers 👀

@d2dyno1
Copy link
Member

d2dyno1 commented Jul 23, 2023

I know that CommunityToolkit Labs already has a control ready for that matter here

@0x5bfa
Copy link
Member Author

0x5bfa commented Jul 23, 2023

This is experimental control and so I adopted. we can replace once that control become stable.

@yaira2
Copy link
Member

yaira2 commented Jul 24, 2023

Improved UI (UI tweaks)

Wasn't this supposed to be a code quality change? What types of UI changes are being introduced?

@0x5bfa
Copy link
Member Author

0x5bfa commented Jul 24, 2023

Wasn't this supposed to be a code quality change? What types of UI changes are being introduced?

Like Windows 11 Settings controlls. full emphasizing the card's border on hovering.

@yaira2
Copy link
Member

yaira2 commented Jul 24, 2023

That's great, looking forward to reviewing this!

Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

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

Looking good, @0x5bfa can you remove the old control in this PR so that we don't have unnecessary duplication?

@yaira2 yaira2 added changes requested Changes are needed for this pull request and removed needs - code review labels Jul 25, 2023
@Jay-o-Way
Copy link
Contributor

Jay-o-Way commented Jul 27, 2023

@0x5bfa check the latest comment from Niels about the "experimental" status, or CommunityToolkit/Windows#116
(e.g. PowerToys has been using it for quite a while now)

@0x5bfa
Copy link
Member Author

0x5bfa commented Jul 27, 2023

@yaira2 Ready for review

@0x5bfa
Copy link
Member Author

0x5bfa commented Jul 27, 2023

@0x5bfa check the latest comment from Niels about the "experimental" status. (e.g. PowerToys has been using it for quite a while now)

PowerToys uses them because very he introduced them. besides, we dont wanna add extra packages and its still experimental, but once wct published 8.0 we can switch out and remove our own. the main point is not to add extra packages. not that we would not use beta or in dev controls (because i copied them😶).

Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

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

The specs for this change is to swap out the out control for the new one. I'm seeing a lot of unrelated changes here that are out of scope.

@0x5bfa
Copy link
Member Author

0x5bfa commented Jul 27, 2023

Just converted those ViewModels into IoC. those few lines are unrelated? i will revert again then

@yaira2
Copy link
Member

yaira2 commented Jul 27, 2023

I'll have to take a closer look

@yaira2 yaira2 added needs - code review and removed changes requested Changes are needed for this pull request labels Jul 28, 2023
@0x5bfa
Copy link
Member Author

0x5bfa commented Jul 31, 2023

Ready for merging.

@0x5bfa 0x5bfa requested a review from yaira2 August 1, 2023 00:22
@yaira2 yaira2 requested a review from d2dyno1 August 3, 2023 15:04
Copy link
Member

@yaira2 yaira2 Aug 3, 2023

Choose a reason for hiding this comment

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

image
It looks like the card heights in the properties window are different than what we have in main. I'll need some time to consider this change before deciding how to proceed.

Copy link
Member Author

Choose a reason for hiding this comment

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

They should have consistency with other settings controls. But I can apply different design template.

Copy link
Member

Choose a reason for hiding this comment

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

image

Copy link
Member

@yaira2 yaira2 Aug 3, 2023

Choose a reason for hiding this comment

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

image
It looks like toggle switches are wrapping onto the next line when they don't need to. Can you update the template to fix this issue?

Copy link
Member Author

@0x5bfa 0x5bfa Aug 3, 2023

Choose a reason for hiding this comment

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

There's threshold to wrap action controls when window is small. Don't we need this?

image

Copy link
Member Author

Choose a reason for hiding this comment

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

If you dont need this threshold I can set it 0.

Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason to keep the threshold?

Copy link
Member

@yaira2 yaira2 Aug 3, 2023

Choose a reason for hiding this comment

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

image
We can do the same for the "New tag" button.

@yaira2
Copy link
Member

yaira2 commented Aug 3, 2023

image
It appears that at a certain width, the text moves up a couple of pixels.

@yaira2 yaira2 added changes requested Changes are needed for this pull request and removed needs - code review labels Aug 3, 2023
@0x5bfa
Copy link
Member Author

0x5bfa commented Aug 18, 2023

It appears that at a certain width, the text moves up a couple of pixels.

Fixed.

@0x5bfa
Copy link
Member Author

0x5bfa commented Sep 13, 2023

We dont need to add our own code because WCT just released 8.0 few days ago.
Once some UI bugs fixed, I will going to open PR to update to use those controls.

@0x5bfa 0x5bfa closed this Sep 13, 2023
@0x5bfa 0x5bfa deleted the 5bfa/Introduce-NewSettingsControls branch September 16, 2023 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Changes are needed for this pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants