enso-org / enso

Hybrid visual and textual functional programming.
https://enso.org
Apache License 2.0
7.34k stars 323 forks source link

Fix autoscoped constructor dynamic widget config #10297

Closed farmaazon closed 3 months ago

farmaazon commented 3 months ago

Pull Request Description

Fixes #10238

Updated the way we construct get_widget_json visualization configuration to take into account cases when there is no known self argument.

As this is a bit of logic, I moved parts of WidgetFunction to a separate composable for easier testing. Most if it was just moved: meaningful changes were only in selfArgumentExternalId and visualizationConfig.

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR: