Skip to content

Commit

Permalink
Improved UI layout and text
Browse files Browse the repository at this point in the history
  • Loading branch information
redJ4y committed Feb 2, 2023
1 parent 2126c63 commit 46087e2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
12 changes: 6 additions & 6 deletions about.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
<h2 class="rg4wp-title">Get Started Today</h2>

<ol>
<li><a href="https://app.raygun.com/signup?utm_source=link&amp;utm_medium=text&amp;utm_campaign=wp-plugin-setup" target="_blank">Create a Raygun account</a></li>
<li>Go to the <a href="https://app.raygun.com" target="_blank">Raygun dashboard</a> and create a new application. <span class="rg4wp-helptip">This represents your website</span></li>
<li>Go to the <a href="<?php menu_page_url('rg4wp-settings', true); ?>">Raygun4WP settings page</a></li>
<li>Paste your API key into the API key field</li>
<li>Enable Crash Reporting and Real User Monitoring</li>
<li>Click Save Changes</li>
<li><a href="https://app.raygun.com/signup?utm_source=link&amp;utm_medium=text&amp;utm_campaign=wp-plugin-setup" target="_blank">Create a Raygun account</a>.</li>
<li>Go to the <a href="https://app.raygun.com" target="_blank">Raygun dashboard</a> and create a new application. <span class="rg4wp-helptip">This represents your website.</span></li>
<li>Go to the <a href="<?php menu_page_url('rg4wp-settings', true); ?>">Raygun4WP settings page.</a></li>
<li>Paste your API key into the API key field.</li>
<li>Enable Crash Reporting and Real User Monitoring.</li>
<li>Click Save Changes.</li>
<li>Done!</li>
</ol>

Expand Down
2 changes: 1 addition & 1 deletion dash.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a href="https://raygun.com" class="rg4wp-logo">Raygun.com</a>
<div style="text-align: center;">
<p class="rg4wp-text">Go to your Raygun dashboard</p>
<p class="rg4wp-text">Go to your Raygun dashboard:</p>
<a class="rg4wp-button" href="https://app.raygun.com/signin" target="_blank">Open dashboard</a>
</div>
Expand Down
34 changes: 18 additions & 16 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
value="1"/>
<?php _e("Send 404 errors"); ?>
</label>
<p class="description"><?php _e("Requires server-side error tracking"); ?></p>
<p class="description"><?php _e("Requires server-side error tracking."); ?></p>
</fieldset>
</td>
</tr>
Expand All @@ -122,22 +122,32 @@
value="1"/>
<?php _e("Send errors asynchronously"); ?>
</label>
<p class="description"><?php _e("Use asynchronous when sending server-side errors."); ?><em>(Only
available on *Unix operating systems)</em></p>
<p class="description"><?php _e("Use asynchronous when sending server-side errors."); ?></p>
</fieldset>
</td>
</tr>

</table>

<h3 class="title">Crash Reporting - Tags</h3>
<p><?php _e("Tags are custom text that you can send with each error, for identification, testing and more. Separate with commas e.g 'tag1, tag2'"); ?></p>
<p class="submit" style="padding-bottom: 0">
<?php
$current_user = wp_get_current_user();
$testErrorUrl = plugins_url('sendtesterror.php?rg4wp_status=' . get_option('rg4wp_status') . '&rg4wp_apikey=' . urlencode(get_option('rg4wp_apikey')), __FILE__) . '&rg4wp_usertracking=' . urlencode(get_option('rg4wp_usertracking')) . '&user=' . urlencode($current_user->user_email);
?>
<a id="js-send-test-error-link" class="button-secondary button-large" target="_blank"
href="<?php echo $testErrorUrl; ?>">Send Test Error</a>
</p>
<p class="description"><?php _e("Confirm that Raygun is working on your server."); ?></p>

<br/>
<h3 class="title">Crash Reporting Tags</h3>
<p><?php _e("Tags are custom text that you can send with each error for identification, testing, and more. Separate with commas."); ?></p>

<table class="form-table">

<tr>
<th scope="row">
<label for="rg4wp_tags">PHP</label>
<label for="rg4wp_tags">Server-side (PHP) tags</label>
</th>
<td>
<input type="text" class="regular-text ltr" id="rg4wp_tags" name="rg4wp_tags"
Expand All @@ -147,7 +157,7 @@

<tr>
<th scope="row">
<label for="rg4wp_js_tags">JavaScript</label>
<label for="rg4wp_js_tags">Client-side (JavaScript) tags</label>
</th>
<td>
<input type="text" class="regular-text ltr" id="rg4wp_js_tags" name="rg4wp_js_tags"
Expand All @@ -157,15 +167,7 @@

</table>

<p class="submit">
<?php
$current_user = wp_get_current_user();
$testErrorUrl = plugins_url('sendtesterror.php?rg4wp_status=' . get_option('rg4wp_status') . '&rg4wp_apikey=' . urlencode(get_option('rg4wp_apikey')), __FILE__) . '&rg4wp_usertracking=' . urlencode(get_option('rg4wp_usertracking')) . '&user=' . urlencode($current_user->user_email);
?>
<a id="js-send-test-error-link" class="button-secondary button-large" target="_blank"
href="<?php echo $testErrorUrl; ?>">Send Test Error</a>
</p>

<br/>
<h2 class="title">Real User Monitoring</h2>

<table class="form-table">
Expand Down

0 comments on commit 46087e2

Please sign in to comment.