Skip to content

Conversation

marcelwgn
Copy link
Collaborator

@marcelwgn marcelwgn commented Dec 25, 2019

Description

This PR aims to improve the visuals and code of the MUXControlsTestApp

Motivation and Context

Even though designed for tests, having devs use the MUXControlsTestApp should not be impossible or unpleasant due to unreadable text and other UI (and code) that is not optimal to use.

How Has This Been Tested?

Started app. Tests should not be affected by this.

Screenshots (if appropriate):

Additional comments:

  • NavigationView: "BlankPage" is unused. Should we remove it?
  • ButtonInteractionPage and SliderInteractionPage are (at least for me) not visible in the MUXControlsTestApp. Are they expected to not be viewable?
  • Pivot: The CommandBar on the test page does nothing, can it be removed?
  • ScrollBar: The test page seems to have nothing rendered visible.
  • ProgressBar: Since we now have the NumberBox, should we switch away from the "Set ... Value" buttons and instead use bindings? Interactiontests did not work, thus lets leave it the way it currently is
  • Happy new year! 🎉

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Dec 25, 2019
@mdtauk
Copy link
Contributor

mdtauk commented Dec 26, 2019

  • Increase and Improve Spacing between control property controls;

  • Increase Margins on pages and container regions;

  • Proper separation between example controls and the property forms;

  • Consistent layout for all test pages (perhaps include template XAML for developers and testers;

@marcelwgn
Copy link
Collaborator Author

  • Increase and Improve Spacing between control property controls;
  • Increase Margins on pages and container regions;

This is something I already did on some pages,but not on all. If you find any pages that need improvement, feel free to tell me, and I will take a look 😊

  • Proper separation between example controls and the property forms;

I agree, however I don't know how you would do that without having pages contain weird layouts e.g. the NavigationView pages, where we use the NavigationView as root of the page. Do you have any ideas for this?

  • Consistent layout for all test pages (perhaps include template XAML for developers and testers;

Unfortunately, there are rarely any layouts/patterns that are used more than once or twice. This is due the fact that different controls have different ways to test them. So having a consistent layout among all pages might be quite difficult. But if you have an idea feel free to comment them :)

@mdtauk
Copy link
Contributor

mdtauk commented Dec 26, 2019

  • Increase and Improve Spacing between control property controls;
  • Increase Margins on pages and container regions;

This is something I already did on some pages,but not on all. If you find any pages that need improvement, feel free to tell me, and I will take a look 😊

  • Proper separation between example controls and the property forms;

I agree, however I don't know how you would do that without having pages contain weird layouts e.g. the NavigationView pages, where we use the NavigationView as root of the page. Do you have any ideas for this?

  • Consistent layout for all test pages (perhaps include template XAML for developers and testers;

Unfortunately, there are rarely any layouts/patterns that are used more than once or twice. This is due the fact that different controls have different ways to test them. So having a consistent layout among all pages might be quite difficult. But if you have an idea feel free to comment them :)

Its not about making each page the same layout, but the same separation between tests, properties, and the control example itself standing out from each other.

image

So it becomes obvious what the example is that you should be looking at.

What properties you can adjust.

What actions/tests you can perform

@kaiguo
Copy link
Contributor

kaiguo commented Dec 26, 2019

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kaiguo
Copy link
Contributor

kaiguo commented Dec 26, 2019

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@marcelwgn
Copy link
Collaborator Author

Its not about making each page the same layout, but the same separation between tests, properties, and the control example itself standing out from each other.

Thats a good point. I will see if what pages that need improvements in that area.

@kaiguo Thanks for starting azure!

@kaiguo
Copy link
Contributor

kaiguo commented Dec 27, 2019

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kaiguo
Copy link
Contributor

kaiguo commented Dec 27, 2019

@chingucoding, there's one more AnimatedVisualPlayerTests.AccessibilityTest failing, could you take a look 😊?

@marcelwgn
Copy link
Collaborator Author

@chingucoding, there's one more AnimatedVisualPlayerTests.AccessibilityTest failing, could you take a look 😊?

Sure :)

@marcelwgn
Copy link
Collaborator Author

@kaiguo , I have reverted my changes for the AnimatedVIsualPlayer. Visual Studio did not want to run the test for the AnimatedVisualPlayer page, so I couldn't investigate the test failing.

@kaiguo
Copy link
Contributor

kaiguo commented Dec 28, 2019

@kaiguo Kai Guo FTE , I have reverted my changes for the AnimatedVIsualPlayer. Visual Studio did not want to run the test for the AnimatedVisualPlayer page, so I couldn't investigate the test failing.

I looked at the log, seems like some PropertyChangedEventWaiter timed out, I'm not sure why adding a column would make it time out. Reverting sounds fine to me, I'll re-run the tests.

@kaiguo
Copy link
Contributor

kaiguo commented Dec 28, 2019

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@marcelwgn
Copy link
Collaborator Author

It seemed like that the test that was fixed with #1797 was failing, so I rebased this branch onto master. Hopefully that helps.

@StephenLPeters
Copy link
Contributor

  • Increase and Improve Spacing between control property controls;
  • Increase Margins on pages and container regions;

This is something I already did on some pages,but not on all. If you find any pages that need improvement, feel free to tell me, and I will take a look 😊

  • Proper separation between example controls and the property forms;

I agree, however I don't know how you would do that without having pages contain weird layouts e.g. the NavigationView pages, where we use the NavigationView as root of the page. Do you have any ideas for this?

  • Consistent layout for all test pages (perhaps include template XAML for developers and testers;

Unfortunately, there are rarely any layouts/patterns that are used more than once or twice. This is due the fact that different controls have different ways to test them. So having a consistent layout among all pages might be quite difficult. But if you have an idea feel free to comment them :)

Its not about making each page the same layout, but the same separation between tests, properties, and the control example itself standing out from each other.

image

So it becomes obvious what the example is that you should be looking at.

What properties you can adjust.

What actions/tests you can perform

I've actually been wishing/hoping for this for a long time. I think the best example of a good test page whose layout could be the base line is the Scroller's Exercise Scroller API page which @RBrid wrote. The teaching tip, exercise swipe control api's, and RadioButtons test pages were built with this in mind. Personally I would love if all the pages got updated to look like this.

@StephenLPeters
Copy link
Contributor

Looks like ProgressBar and TextCommandBarFlyoutTests are/were being reported as failing. Was this related to the AutoSuggestBoxTest?

What is the "Work Item" indicated in the log?

Link to Pipeline build:
https://dev.azure.com/ms/microsoft-ui-xaml/_build/results?buildId=56834&view=results

I think the work item here refers to the helix batch of work that the failing test was a part of. @kmahone is that right?

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

@chingucoding These test failures look like real issue to me, will you be able to take a look?

@marcelwgn
Copy link
Collaborator Author

@chingucoding These test failures look like real issue to me, will you be able to take a look?

Since the tests are not failing on my machine for some reason, I mostly reverted the pages in question as they are usable and having the tests be reliable is most important.

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@marcelwgn marcelwgn changed the title WIP: Improve UI of MUXControlsTestApp Improve UI of MUXControlsTestApp Jan 14, 2020
@ranjeshj
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@marcelwgn
Copy link
Collaborator Author

Since the last CI run was successful, I think it is the best to merge this PR now, as a lot of pages have been improved. I have merged the latest commits from master in this branch to resolve potential merge problems.

If the CI build started by @ranjeshj finishes and is successful, I think it is best to merge this PR and make a separate PR for additional improvements.

Regarding latter, should I create an issue for this to collect items not covered by this PR?

@ranjeshj
Copy link
Contributor

ranjeshj commented Jan 14, 2020

Since the last CI run was successful, I think it is the best to merge this PR now, as a lot of pages have been improved. I have merged the latest commits from master in this branch to resolve potential merge problems.

If the CI build started by @ranjeshj finishes and is successful, I think it is best to merge this PR and make a separate PR for additional improvements.

Regarding latter, should I create an issue for this to collect items not covered by this PR?

Sure. Please do a follow up PR if it is getting too painful to merge.

@marcelwgn
Copy link
Collaborator Author

Sure. Please do a follow up PR if it is getting too painful to merge.

If this is something, the WinUI team think is worth investing more time, sure.

Currently I do not have too much time to work further on this, so instead of having to continuously merge master into this PR, it is easier to merge this.

@ranjeshj
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@StephenLPeters StephenLPeters left a comment

Choose a reason for hiding this comment

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

:shipit:

@StephenLPeters
Copy link
Contributor

I would say merge it in, even if you don't plan on doing other test page updates these are still valuable. We will probably not get to this in the foreseeable future. I'll let @ranjeshj make the call though.

@ranjeshj
Copy link
Contributor

I would say merge it in, even if you don't plan on doing other test page updates these are still valuable. We will probably not get to this in the foreseeable future. I'll let @ranjeshj make the call though.

I agree. This already cleans up a bunch and we can incrementally improve this. Thanks @chingucoding for making these updates.

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

Labels

area-DevInternal Internal build infrastructure, code cleanup, engineering efficiency team-Controls Issue for the Controls team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants