Priority
(Medium) I'm annoyed but I'll live
Description
In reality, the issue is connected with the Page.ts file. When we add a new text web part to a section, some elements of the page are removed.
- Empty sections added via the UI are removed (this doesn't happen when using
spo page section add). These sections get controlType: 3 (in our spo page section add command controlType is empty)), which is not handled in the conversion function.
- When a section uses one of the standard zone emphases (None, Neutral, Soft, Strong background), it is changed to None after saving.
- Vertical sections are not recognized, after saving, this type of section disappears.
Steps to reproduce
To reproduce the issues, simply follow the steps below:
- Create an empty section using the UI, then use the
spo page text add command.
- Create a section with a standard zone emphasis (e.g. None, Soft, or Strong), then use the
spo page text add command.
- Create a page with a vertical section, then use the
spo page text add command.
Expected results
All elements should stay after using spo page text add
Actual results
As described in the description.
Diagnostics
No response
CLI for Microsoft 365 version
v10.6.0
nodejs version
v22.14.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response
Priority
(Medium) I'm annoyed but I'll live
Description
In reality, the issue is connected with the
Page.tsfile. When we add a new text web part to a section, some elements of the page are removed.spo page section add). These sections get controlType: 3 (in ourspo page section addcommand controlType is empty)), which is not handled in the conversion function.Steps to reproduce
To reproduce the issues, simply follow the steps below:
spo page text addcommand.spo page text addcommand.spo page text addcommand.Expected results
All elements should stay after using
spo page text addActual results
As described in the description.
Diagnostics
No response
CLI for Microsoft 365 version
v10.6.0
nodejs version
v22.14.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response