Code Monkey home page Code Monkey logo

gmucf-utilities's Issues

Update email "PREVIEW" nomenclature in plugin

Description

Change wording of email "PREVIEWs" in the plugin to "TEST".

function send_instant_preview( $args ) {
$args = shortcode_atts(
array(
'to' => array( '[email protected]' ),
'subject' => '**PREVIEW** Test Email **PREVIEW**',

$args['subject'] = "*** PREVIEW *** $subject *** PREVIEW ***";

<a style="margin-bottom: 12px;" class="preview button" href="#send-preview" id="instant-send">Send Preview</a>

'<p>Preview of email sent.</p>' +
'</div>'
);
} else {
var $markup = jQuery(
'<div class="notice notice-error is-dismissible">' +
'<p>There was a problem sending the preview.</p>' +

Why it's Important

To better clarify the difference between a work-in-progress test vs a final preview before a live email is sent.

Alternatives

Possible Implementation

Additional context

Send Preview Button on non Email post types

Describe the bug
The Send Preview button is showing up in post types other than ucf-email. This is not intended behavior.

Steps to Reproduce

  1. Open a page.
  2. See the button.
  3. Realize the button shouldn't be there.
  4. Fix it.

Expected Behavior
The opposite of what's happening now.

Possible Fix
We need to make sure this line works as expected. Something in the logic is causing it not to return out of the function.

Instant sends don't include the original email requester

Describe the bug

The instant_send() function only sends to addresses set in the Preview Recipients field; the original requester of the email does not receive previews unless they are explicitly added to the Preview Recipients field.

Steps to Reproduce

n/a; just look here:
https://github.com/UCF/GMUCF-Utilities/blob/master/includes/email-send-functions.php#L114-L120

Expected Behavior

The original requester should receive previews as well as the recipients in the preview recipients list.

Possible Fix

We should add the original requester to the list of preview recipients before sending previews.

Your environment:

n/a

Additional context

Instant send - Send Preview sends an email successfully with a 200 OK response, but displays an error message

Describe the bug

See title. Issue ported over from email editor plugin.

Steps to Reproduce

  1. Set up a new email post in QA and assign at least one preview recipient
  2. Click "Send Preview"
  3. Instead of a success banner, a warning banner with "There was a problem sending the preview." appears
  4. However, when inspecting the outbound request in the console, a 200 OK response is returned

Expected Behavior

When the preview sends as expected, a success message should appear.

Possible Fix

n/a

Your environment:

n/a

Additional context

n/a

Port over non-display-logic from GMUCF theme

Description

Move site functionality/logic that should ideally not belong in a theme into this plugin.

Why it's Important

For separation of presentation and functionality.

Alternatives

Possible Implementation

Additional context

Add option for always sending email previews to one or more custom email addresses

Description

It'd be nice if we had a site option or something that allowed us to add the webcom email (or maybe any of our personal addresses) to send email previews to, in addition to an email's designated preview recipients and requester.

Why it's Important

See above/so we can review and ensure previews get sent out as expected.

Alternatives

n/a

Possible Implementation

Site option?

Additional context

n/a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.