-
Notifications
You must be signed in to change notification settings - Fork 428
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
fix(sanity): open correct groups and fieldsets on setOpenPath
#7154
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
No changes to documentation |
Component Testing Report Updated Jul 15, 2024 7:17 PM (UTC)
|
rdunk
force-pushed
the
fix/form-expand-operations
branch
from
July 15, 2024 10:23
e53ddfa
to
f966d62
Compare
rdunk
force-pushed
the
fix/form-expand-operations
branch
from
July 15, 2024 13:19
f966d62
to
22e058f
Compare
rdunk
force-pushed
the
fix/form-expand-operations
branch
2 times, most recently
from
July 15, 2024 16:43
a7ccfe6
to
7db67ad
Compare
rdunk
force-pushed
the
fix/form-expand-operations
branch
from
July 15, 2024 16:58
7db67ad
to
7c325af
Compare
rdunk
force-pushed
the
fix/form-expand-operations
branch
from
July 15, 2024 17:20
7c325af
to
378be0c
Compare
rdunk
force-pushed
the
fix/form-expand-operations
branch
from
July 15, 2024 18:58
378be0c
to
b19b14d
Compare
rdunk
changed the title
fix(sanity): get correct expand operations from path
fix(sanity): open correct groups and fieldsets on Jul 15, 2024
setOpenPath
bjoerge
approved these changes
Jul 16, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thank you so much for this @rdunk, appreciate the added test as well <3
This was referenced Aug 7, 2024
cngonzalez
pushed a commit
that referenced
this pull request
Aug 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
For context, this PR is to resolve issues largely reported by Presentation users. I believe the same issue affects the Structure tool, but is far less visible as this is a less common scenario and largely non-critical in that context.
In summary:
setOpenPath
in theDocumentPaneProvider
fails to focus the specified field if it exists in non-default groups or collapsed fieldsets.This is because
getExpandOperations
is not returning the expected operations, which in turn seems to be becauseimmutableReconcile
drops the_allMembers
property of the form state as it currently only handles enumerable properties (and_allMembers
is explicitly set to non-enumerable).There is also a small change to
getExpandOperations
as I believe thesetSelectedGroup
operation was returning the wrong group name.What to review
The simplest way to reproduce the issue in Structure is by clicking on the global presence avatar of a user who is currently focused on a field in a non-default group or collapsed fieldset.
This PR also adds a new schema type and an update to the Presentation test studio preview (under the
FieldGroups
tab) useful for checking the focus behaviour of non-default groups and collapsed fieldsets.Testing
One test added to check that
immutableReconcile
always returns the latest value of non-enumerable properties.Notes for release