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

Table settings updates #15527

Merged
merged 7 commits into from
Feb 17, 2025
Merged

Table settings updates #15527

merged 7 commits into from
Feb 17, 2025

Conversation

aptkingston
Copy link
Member

Description

This PR restores the table "Format" setting, which had been reverted due to it breaking the existing table "Conditions" setting. This PR allows both conditions and formatting to work as intended.

There is an intended difference to the context (bindings) available to each setting.

  • Conditions can access all normal bindings, but cannot reference values in the row itself
  • Formatting cannot access normal bindings, and can only reference values in the row itself

This difference is intended and is mainly due to performance constraints.

This fix was not possible without adding (another) new concept to the manifest - contextAccess, which acts as an escape hatch for this and any future binding problems caused by how we render certain settings using a pseudo component definition. This has been added to the appropriate type, and should not normally ever need used.

Other stuff

Fixed some inconsistencies between which bindings are available in real settings versus the same setting when configuring conditional UI.

Copy link

qa-wolf bot commented Feb 11, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@aptkingston aptkingston marked this pull request as ready for review February 11, 2025 16:44
Copy link
Contributor

@deanhannigan deanhannigan left a comment

Choose a reason for hiding this comment

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

LGTM! Ran into one small issue when running through the condition behaviour. Other than that, the binding restrictions are in place and the features are working great 🚀

BUG - Preview will crash if a newly added condition is saved on a GridBlock without setting an initial value.

@aptkingston aptkingston merged commit 9f03dad into master Feb 17, 2025
20 checks passed
@aptkingston aptkingston deleted the table-settings-updates branch February 17, 2025 12:57
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants