microsoft / powercat-creator-kit

This toolkit helps create well-designed Power App experiences on the web & mobile. It contains a component library; PCF controls and other utilities that increase developer productivity.
MIT License
309 stars 51 forks source link

[BUG]: Details List ignores sort order of data in items #483

Closed jh-sigmadx closed 2 weeks ago

jh-sigmadx commented 1 month ago

Describe the bug The Details List no longer shows the data as it is sorted in the "items" collection and will only list the data in the "default" sort order. The Formula in the PowerApps Studio shows the list items in the correct sort order, but the Details List only shows the default Sort Order.

The issue only occurs in Studio Authoring version v3.24073 and above. reverting to Studio Authoring version v3.24072 solves the issue, and the Details List shows the correct sorting again.

AB#3883

datalink0 commented 1 month ago

Also experiencing this issue. Updated to the latest CreatorKit solution, but problem still persists. Temporary fix seems to be reverting to an earlier Studio Authoring version.

Dohsan commented 1 month ago

We are also experiencing this and several other issues on the fluentdetailslist

We are using external paging and sorting on the details list using a gallery as the source. The gallery is sorted correctly as is the items property of the fluentdetails; however, the data being rendered is different and not in the correct sorting order. The data is changing when toggling the sort, just not sense of an actual order to it.

rarattay commented 1 month ago

Hi, We are aware of this issue impacting the sorting order of datasets in controls such as the Details List and are working to deploy a fix soon. In the meantime, please revert back to Canvas studio version v3.24072 or older to fix this issue.

jh-sigmadx commented 1 month ago

Thanks rarattay, I can only imagine what it's like to build PCF style components, when the PowerApps Team keep changing the PCF protocols! (Reading around, the same update broke many custom controls people were working on...)

For other devs finding their way here - I've found that "&studio-version=v3.24072.6.302069373" (appended to the studio URL) is the latest build that still works with the Details List at the moment. J.

OliverDumrique commented 1 month ago

Hi, we've listed this known issue that will update once the fix deploys: https://admin.powerplatform.microsoft.com/knownissues/4238060

OliverDumrique commented 1 month ago

The fix has been deployed, please verify and close the bug when you can.

tmorg555 commented 3 weeks ago

I'm still getting no sorting behavior on the Details List component. I updated to the latest release of Creator Kit.

I was only able to regain the correct sorting by using the "&studio-version=v3.24072.6.302069373" URL append.

jh-sigmadx commented 3 weeks ago

@tmorg555 FYI - I have found that the latest PowerApps Studio build that still works with the PCF Components is: v3.24074.18.305760871 - 14th August 2024

Reinhard-S commented 3 weeks ago

Hi @rarattay,

Could you please help us clarifying if there was a recent update which potentially could have fixed the sorting issue? I did some error analysis for one of our customers yesterday and noticed that the issue seems to be resolved today.

Additionally, today a new warning message pops up in Power Apps Studio, see below:

image

Investigating further, we found that Power Apps Studio creates new fields within the Fluent Details List exactly with the type mentioned in the screenshot, whereas previously, all existing columns have been created as "Control: PcfDataField" inside the component's YAML.

Due to the message displayed at startup I assume that the wrong definition is generated by Power Apps Studio, could you please provide insights on this? For the time being, I advised my client to copy the code of the existing component into notepad, replace the definition string "cat_PowerCAT.FluentDetailsListTemplate_dataField" by "PcfDataField", and paste the altered definition of the control back into the canvas app, replacing the original control.

Please advise if that approach is fine, and please also let us know if here's anything else we can do to avoid such problems in future.

Thank you, Best Regards, Reinhard

rarattay commented 3 weeks ago

@Reinhard-S Yes, as @OliverDumrique mentioned above this sorting issue has been fixed and is no longer present in latest versions of Power Apps studio.

I have not seen the issue in the screenshot before and we will need to investigate further.

jh-sigmadx commented 3 weeks ago

@rarattay

I think you're a little out of date - this was correct 2 weeks ago. Unfortunately, The sorting issue is BACK in PowerApps Studio version 3.24081. Typical Power Platform regression errors - seems to happen EVERY TIME they fix a bug - it's never rolled into the development of the following version...

J.

Reinhard-S commented 2 weeks ago

Hi, are there any news regarding this topic?

@rarattay, we would like to get some insights how and when your upgrades on the components are deployed as it's not related to the deployment cycle of the creator kit solutions. I assume that the bugfix was conducted directly within the react web components provided through a CDN (fluentui-react.js)?

Thank you, Reinhard

denise-msft commented 2 weeks ago

This issue should be resolved in the latest Power Apps studio version. Please see the mitigation suggested in this thread for troubleshooting if you're still experiencing this issue in the latest version: https://github.com/microsoft/powercat-creator-kit/issues/486#issuecomment-2314874661