-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
dev/mail#83 - Import current revision of "Message Admin" #21590
Conversation
Relatedly, when the user-returns, cleanup the resulting URL.
Before: If you have a translation, then it would obscure the existence of the standard/baseline template. After: The records for the standard/baseline templates and translations are separate.
It's a little confusing that .html uses `$ctrl` while JS uses `ctrl`. Just use `$ctrl` for both.
It's a little confusing that .html uses `$ctrl` while JS uses `ctrl`. Just use `$ctrl` for both.# On branch master
…ive and/or txDraft records.
Before: Flipped back/forth between 1-line INPUT and Monaco. The transitions were awkward. After: Just use Monaco, but tighten the size a bit
@totten - I think the issue is more the fact it is abreviated - 'messagetemplateeditor' is pronouncable - 'msgtpl' isn't I think we'll be struggling to say & explain 'msgtpl' for years to come - but re-naming is a PITA |
@totten This looks really nice :-) Is there a reason to import it into core at this point though? I know things like searchkit became very dependent on core and it made no sense to keep them separate but I'm not sure that applies here. And if it's going to remain hidden it seems even less worthwhile importing to core at this point. Wouldn't it be better as a "standard" extension repo at https://lab.civicrm.org/extensions ? |
@mattwire the goal is that it will in time replace the existing form in core (and remove a support burden) - our experience of bringing things into core when they start off outside core is that it causes a lot more work, takes a lot longer & causes more breakage when we do so. (how many years for flexmailer? ) The line is really whether it is intended to be part of the core UI in future |
Note that to enable
Enabled currently at http://core-21590-8zz9r.test-3.civicrm.org:8001/civicrm/admin/messageTemplates?reset=1#/edit?id=15 Something wrong at the moment - but I think it might be temporary - this is the template set up for preview so far http://core-21590-8zz9r.test-3.civicrm.org:8001/civicrm/admin/messageTemplates?reset=1#/edit?id=17 |
@eileenmcnaughton That's an odd error. I've been trying to reproduce it a couple ways:
One theory that could produce that symptom on a temporary basis - if the test job was still wrapping up when you tried out the webpage, there may have been flushes or resets going on concurrently? (IIRC, I had pushed up a few times close to each other there - so it may've taken a spell longer than usual to run.) It's also possible that I just haven't figured the right mix of clear/reset steps to reproduce. Let's ask Jenkins to build again and let it have one more go. |
jenkins, test this please |
@totten yeah it is odd - it might be temporary - I'm just testing against our wmf code as we speak - first observation is the theming on shoreditch @colemanw made a css change to search kit to better accomodate those buttons which might be worth doing (I don't think it's blocking - since the hidden stage is the opportunity for things like that to bubble up before we unhide) |
Another minor usablity thing - navigating back to the list is tricky - @colemanw has been using the breadcrumbs for that in search kit - although I think it was recently suggested that is not great for Wordpress users? |
@totten I've hit something a bit more blocking - we have an additional workflow template in our UPDATE - I 'stole' the workflow_id of another template & it still doesn't show up - however I can plug in |
On the theming one other thing I note is the save buttons doesn't indicate that it has been clicked so I keep clicking it |
Another thing - definitely non-blocking - the filtered would be better with the new features @colemanw implemented for search kit displays recently - I think that would be a bigger lift though |
Ok another thing - I can't figure out how to save a draft - maybe it's a UI feature that is hiding or shoreditch? Or I could be a bit blind... |
@totten I'm generally having some issues with the sample data for my custom workflow -but to be honest I think working through this - #21611 will solve most of my questions - since I think te 'just re-use recurring edit' with a smidgeon less logic is common to both (ie the sample data doesn't need to change because none of the templates in question expose any fields differ by recurring contribution status) |
I've gotten through some of my issues locally with an update to civicrm_message_template.is_reserved to get rid of NULL values - just working through the last bits but I'm close to being ready to merge this on the understanding that
|
Merging per https://chat.civicrm.org/civicrm/pl/78ne6ukiatnsxr5a4sumg43dhy There are definitely issues still to work through here but I believe it's easier to track them if we merge this (we can log issues in gitlab against merged PRs - it's kinda odd when they aren't). Note that I covered the fact this is new core extension which will in time replace existing screens in the dev digest |
#21712 addressed the style issues |
Overview
Imports the current revision of
msgtplui
message_admin
, an extension that replaces the screen "Administer => Communications => Message Templates". Most notably, this includes support for:Translating system workflow templates
Drafting system workflow templates (editing new content without publishing)
Generating previews of system workflow templates
See: https://lab.civicrm.org/dev/mail/-/issues/83
Comments
Git import via script: https://gist.github.com/totten/5572cd70cd4455709cf60d9ef02cce09
I'm submitting based on @eileenmcnaughton's request so that there is a clear/singular place for it to live. However, it likely needs further work - hence
<tag>mgmt:hidden</tag>
.