Modern page extensions
It would be great to add commands to the command set of a modern page, with similar events to list view extensions e.g. onListViewUpdated > onPageUpdated, and onExecute.
The API should enable easy and reliable access to important page information like field data, published state, whether it is promoted as news, etc.
Here is an example of a scenario I'd like to implement: When a user edits a page, I want the extension to verify the page before they save it.
This could be used for custom spell checkers, verifying content against DLP policies, or testing for accessibility issues BEFORE user saves the page.
Ashish Shukla commented
This is definitely a requirement for most of the users. It would be good to have command set extension on Site Pages bar. It helps to add controls useful for end users (with read only permissions).
Mark Powney commented
It would also make sense to include in the API state information, for example if the page is in edit mode.