Skip to content
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

Merge Dev/split controls Refactoring to Main #3752

Merged
merged 105 commits into from
Feb 12, 2021
Merged

Conversation

michael-hawker
Copy link
Member

Fixes #3594, #3145, #3606

Reverse of #3751. Since everything's pretty much ready to go with dev/split-controls let's just try and merge it into main directly.

This dev branch has been for our refactoring of controls into individual packages of more similarly grouped controls.

We now have an uber Controls package which contains everything, which will smooth the upgrade process, but also individual packages:

Microsoft.Toolkit.Uwp.UI.Controls

  • .Core (Any misc controls not in other categories)
  • .Input
  • .Layout (this has changed from just being WinUI ItemsRepeater Layouts to now being all Layout controls, ItemsRepeater layouts have moved to Primitives)
  • .Markdown (just the MarkdownTextBlock which has a lot of misc dependencies)
  • .Media (Controls which rely on Win2D)
  • .Primitives (any controls which don't rely on XAML styles)

We've also removed Animations references from the Controls.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • Sample in sample app has been added / updated (for bug fixes / features)
  • New major technical changes in the toolkit have or will be added to the Wiki e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

Other information

Rosuavio and others added 30 commits January 8, 2021 11:38
….Uwp.UI.Controls.Primitives.csproj

Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]>
Remove NeutralResourcesLanguage on attribute on assembly, no resources or language specific code.
to Microsoft.Toolkit.Uwp.UI.Controls.Media
Issue: coped ControlHelpers.XamlHost.cs Controls -> Controls.Media
Split out Controls.Primitives package.
Rosuavio and others added 13 commits February 8, 2021 12:34
Should run more like the for loop version.
Loads types from one assembly at a time.
#3740)

<!-- 🚨 Please Do Not skip any instructions and information mentioned below as they are all required and essential to evaluate and test the PR. By fulfilling all the required information you will be able to reduce the volume of questions and most likely help merge the PR faster 🚨 -->

<!-- 📝 It is preferred if you keep the "☑️ Allow edits by maintainers" checked in the Pull Request Template as it increases collaboration with the Toolkit maintainers by permitting commits to your PR branch (only) created from your fork.  This can let us quickly make fixes for minor typos or forgotten StyleCop issues during review without needing to wait on you doing extra work. Let us help you help us! 🎉 -->


## Fixes #3739 #3735 
<!-- Add the relevant issue number after the "#" mentioned above (for ex: Fixes #1234) which will automatically close the issue once the PR is merged. -->

<!-- Add a brief overview here of the feature/bug & fix. -->
 Smaple.cs LookForTypeByName(string) add assmbiles to search in

- Microsoft.Toolkit.Uwp.UI.Controls -> Microsoft.Toolkit.Uwp.UI.Controls.Core
- Microsoft.Toolkit.Uwp.UI.Controls.Layout
- Microsoft.Toolkit.Uwp.UI.Controls.Media
- Microsoft.Toolkit.Uwp.UI.Controls.Media

## PR Type
What kind of change does this PR introduce?
<!-- Please uncomment one or more that apply to this PR. -->

- Bugfix
<!-- - Feature -->
<!-- - Code style update (formatting) -->
<!-- - Refactoring (no functional changes, no api changes) -->
<!-- - Build or CI related changes -->
<!-- - Documentation content changes -->
<!-- - Sample app changes -->
<!-- - Other... Please describe: -->


## What is the current behavior?
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->


## What is the new behavior?
<!-- Describe how was this issue resolved or changed? -->


## PR Checklist

Please check if your PR fulfills the following requirements:

- [ ] Tested code with current [supported SDKs](../readme.md#supported)
- [ ] Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: <!-- docs PR link -->
- [ ] Sample in sample app has been added / updated (for bug fixes / features)
    - [ ] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets)
- [ ] New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/windows-toolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
- [ ] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [ ] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
- [ ] Contains **NO** breaking changes

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. 
     Please note that breaking changes are likely to be rejected within minor release cycles or held until major versions. -->


## Other information
Only include depedencies in package.
@ghost
Copy link

ghost commented Feb 11, 2021

Thanks michael-hawker for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

@ghost ghost requested review from azchohfi, Kyaa-dost and Rosuavio February 11, 2021 23:34
# Conflicts:
#	Microsoft.Toolkit.Uwp.UI.Controls.Core.Design/Controls/TabbedCommandBar.Metadata.cs
#	Microsoft.Toolkit.Uwp.UI.Controls.Core.Design/Controls/TabbedCommandBar.Typedata.cs
#	Microsoft.Toolkit.Uwp.UI.Controls.Core.Design/Controls/TabbedCommandBarItem.Metadata.cs
#	Microsoft.Toolkit.Uwp.UI.Controls.Core.Design/Controls/TabbedCommandBarItem.Typedata.cs
#	Microsoft.Toolkit.Uwp.UI.Controls/Microsoft.Toolkit.Uwp.UI.Controls.csproj
#	Microsoft.Toolkit.Uwp.UI.Controls/Themes/Generic.xaml
#	Microsoft.Toolkit.Uwp.UI.Controls/VisualStudioToolsManifest.xml
#	UnitTests/UnitTests.UWP/UnitTests.UWP.csproj
#	Windows Community Toolkit.sln

Tested Sample App
@michael-hawker michael-hawker added the next preview ✈️ Label for marking what we want to include in the next preview release for developers to try. label Feb 12, 2021
@michael-hawker michael-hawker marked this pull request as ready for review February 12, 2021 07:03
Copy link
Contributor

@Rosuavio Rosuavio left a comment

Choose a reason for hiding this comment

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

Looks good.
It should be fine in a fallow up pr but, some of the CodeUrl links need to be updated in sample.json

@@ -2,23 +2,40 @@

<PropertyGroup>
<TargetFrameworks>uap10.0.17763</TargetFrameworks>
<TargetPlatformVersion Condition="'$(TargetPlatformVersion)' == '' ">10.0.19041.0</TargetPlatformVersion>
Copy link
Contributor

Choose a reason for hiding this comment

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

Not completely sure what this line was for. As we moved all the original code in here (The layouts) to .Primitives do we want this in the .Primitives csproj?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm pretty sure this comes from the root target/props files now.

@michael-hawker michael-hawker merged commit 99f4581 into master Feb 12, 2021
@michael-hawker michael-hawker deleted the dev/split-controls branch February 12, 2021 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls 🎛️ introduce breaking changes 💥 next preview ✈️ Label for marking what we want to include in the next preview release for developers to try.
Projects
None yet
2 participants