Add Mailing view and preview paths to schema #26342
Merged
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.
Overview
Would be nice to have more than just the Edit option in SearchKit.
Before
After
Adds View for the Mailing Report and Preview for the mailing content.
Technical Details
Of course, these links will or won't work depending on the state of the mailing (draft versus scheduled), but better to have them than to not. I don't think there's a way to show or not show them depending on the particular mailing (@colemanw please correct me if I'm wrong).
I tried to add Delete as well, but it turns out that Mailing Delete uses civicrm/mailing/browse which uses an onclick confirmation for deletion, which I don't think we can use with just a path, so that would require some additional work and I'll leave that for another day.