maui icon indicating copy to clipboard operation
maui copied to clipboard

[Windows] Respect `ClearButtonVisibility = ClearButtonVisibility.Never` for `<Entry>`s

Open MartyIX opened this issue 1 year ago • 6 comments

Description of Change

The style interception code works sometimes but not always.

Relevant XAML template in WinUI 3 is here.

Issues Fixed

Fixes #23112 Related to #13714

PR that introduced the modified code: #3444

MartyIX avatar Jun 20 '24 11:06 MartyIX

Could anyone run tests for this PR just to know if they pass or not?

MartyIX avatar Jun 20 '24 11:06 MartyIX

@mattleibow What do you think please?

MartyIX avatar Jun 27 '24 20:06 MartyIX

/rebase

mattleibow avatar Jun 28 '24 06:06 mattleibow

/azp run

mattleibow avatar Jun 28 '24 06:06 mattleibow

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Jun 28 '24 06:06 azure-pipelines[bot]

@mattleibow Does it look better to you now?

MartyIX avatar Jul 02 '24 07:07 MartyIX

/azp run

mattleibow avatar Jul 02 '24 10:07 mattleibow

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Jul 02 '24 10:07 azure-pipelines[bot]

Are you able to add a UI test? I have a feeling this one is going to break randomly when we update wasdk.

mattleibow avatar Jul 02 '24 10:07 mattleibow

Are you able to add a UI test?

I added 280f81c0dba7abd03b5c33cfade29ca051eb3ff3 as the first commit so that one can easily check that the test fails without the new "workaround".

The test is partially done according to #23112 and its Steps to Reproduce.

I have a feeling this one is going to break randomly when we update wasdk.

Yes, I can imagine that.

MartyIX avatar Jul 02 '24 12:07 MartyIX

/azp run

mattleibow avatar Jul 02 '24 13:07 mattleibow

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Jul 02 '24 13:07 azure-pipelines[bot]

Thanks for the test, now to bend CI to our will and ask it to do the basic job of running the tests properly.

mattleibow avatar Jul 02 '24 13:07 mattleibow

So I can see that a screenshot must be added. Not sure if some other test genuinely failed.

MartyIX avatar Jul 03 '24 09:07 MartyIX

You can download the screenshots from the devops test attachments. Just go to the failed test and the attachments tab. Should be there. It is the one without the nav bars and status bars.

mattleibow avatar Jul 03 '24 19:07 mattleibow

I think the layout will not really work on mobile:

Android iOS
image image

https://dev.azure.com/xamarin/public/_build/results?buildId=118577&view=ms.vss-test-web.build-test-results-tab&runId=2906687&resultId=100119&paneView=attachments

But it seems to be right for Windows:

image

I wonder if it will work if you have jus a flay vertical stack layout?

mattleibow avatar Jul 03 '24 19:07 mattleibow

/azp run

mattleibow avatar Jul 03 '24 19:07 mattleibow

Yes, I have realized that the layout is wrong once I saw the snapshots.

This is the current screenshot for Windows:

image

MartyIX avatar Jul 03 '24 19:07 MartyIX

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Jul 03 '24 19:07 azure-pipelines[bot]

/azp run

PureWeen avatar Jul 03 '24 21:07 PureWeen

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Jul 03 '24 21:07 azure-pipelines[bot]

Ok, my bad, I added a Windows snapshot but that had different dimensions (presumably because my display has different settings than the "CI one").

I added snapshots for Android & iOS. MacCatalyst build failed so hopefully next time.

MartyIX avatar Jul 04 '24 08:07 MartyIX

/azp run

mattleibow avatar Jul 04 '24 11:07 mattleibow

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Jul 04 '24 11:07 azure-pipelines[bot]

Added a Windows snapshot. No snapshot for macOS so far.

MartyIX avatar Jul 04 '24 13:07 MartyIX

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Jul 06 '24 09:07 azure-pipelines[bot]

Trying the tests on Windows Core unpackaged again... Probably not related since the packaged version ran. But just to be safe. Might just merge if it fails again and see if main fixes it.

mattleibow avatar Jul 10 '24 04:07 mattleibow

Well, now it is green so whatever CI.

mattleibow avatar Jul 10 '24 05:07 mattleibow