-
Notifications
You must be signed in to change notification settings - Fork 330
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
Fixes: Allow saving SP page with an existing collapsible section. Closes #6462 #6540
base: main
Are you sure you want to change the base?
Fixes: Allow saving SP page with an existing collapsible section. Closes #6462 #6540
Conversation
Thanks @mkm17! We'll try to review it ASAP.
Could you clarify this a bit more, please? |
hi @milanholemans, I noticed that on a page, there is an additional element with controlType: 0 and some page settings. In the To be honest, I am not sure what we can do with it. I noticed that the |
To be honest, I have no idea why we have |
no idea and I totally don't remember this part 😅. |
@mkm17 I was testing those changes on my tenant for the last couple of days and I noticed some behaviors that seem awkward to me and I think it would be good if we could clarify that before we proceed. spoclientsidewebpart.mp4As for the spopagetext.mp4Please let me know what you think. 🙏 |
Hi @Adam-it, I have reproduced the first issue, so I will change it and add a test to the test file. Regarding the
As I do not want to make big changes in this fix, maybe for now I can grab the code from After that, we will have a situation where all get commands will use Page.ts and all update ones will use custom code. So the next steps to consider would be:
And totally out of scope, should page updates be handled differently (to make all changes in page content locally and save the page with one request)? I am adding @milanholemans because I saw his changes in |
Ok, please skip my last comment for a moment. I started checking the Page.ts and ClientSidePage.ts approach because the changes to include more information would also be needed in other commands that use these files. |
9744391
to
eac65a3
Compare
eac65a3
to
0c5087d
Compare
Closes #6462
Changes in
page clientsidewebpart add
andpage text add
commands to handle existing collapsible sections when saving an SP page.In this PR, I have also updated the
page text add
test file to align with the latest recommendations.Just one comment, I believe we also need to add some handlers for the controlType":0,"pageSettingsSlice... element, which is also visible in the page context.