Skip to content
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

Update WP Plugin for Polls #138

Merged
merged 11 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified assets/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions disqus/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12, iamfrancisyo, brevityness, tterb, chrisjtang
Tags: disqus, comments, engagement, threaded, email, notification, spam, avatars, community, profile, widget
Requires at least: 4.4
Tested up to: 6.5
Stable tag: 3.1.1
Tested up to: 6.6.3
Stable tag: 3.1.2
Requires PHP: 5.6

Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience. **NEW: Disqus Polls – Engage your audiences with interactive polls, and seamlessly install them on your site.**

== Description ==

Expand All @@ -16,6 +16,8 @@ The Disqus for WordPress plugin lets site owners and developers easily add Disqu

In addition to our free-to-use, ad-supported Basic plan, we also offer ad-optional subscription plans that come with more advanced features and access to priority support. Please see our [pricing page](https://disqus.com/pricing/) for more details.

**NEW: [Disqus Polls](https://disqus.com/polls)** – Engage your audiences with interactive polls, and seamlessly install them on your site.

= Why Disqus? =

* Simple one-click installation that seamlessly integrates with WordPress without ever needing to edit a single line of code or losing any of your existing comments
Expand All @@ -34,6 +36,7 @@ In addition to our free-to-use, ad-supported Basic plan, we also offer ad-option
* Export comments to WordPress-compatible XML to backup or migrate to another system
* Analytics dashboard for measuring overall engagement on your site
* Mobile responsive design
* **NEW: Disqus Polls** – Create and embed interactive polls directly on your site to boost engagement and gather insights from your audience.

= Engagement Features =

Expand Down Expand Up @@ -113,8 +116,8 @@ Go to [https://disqus.com/help/wordpress](https://disqus.com/help/wordpress)
== Screenshots ==

1. Disqus Comments
2. Disqus Audience Platform
3. Comment Reply
2. Disqus Polls
3. Disqus Audience Platform
4. Featured Comment
5. Recommendations (part of Disqus Comments)
6. Mentions
Expand All @@ -125,6 +128,9 @@ Go to [https://disqus.com/help/wordpress](https://disqus.com/help/wordpress)
11. Moderate by Email Notifications

== Changelog ==
= 3.1.2 =
* Add Disqus Polls Information

= 3.1.1 =
* Add WP 6.5 to Github Actions CI

Expand Down
1 change: 0 additions & 1 deletion disqus/admin/css/disqus-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
.welcome-panel .welcome-panel-content .welcome-panel-column-container {
display: flex;
justify-content: center;
gap: 10vw;
padding: 12px;
@media screen and (max-width: 768px) {
flex-direction: column;
Expand Down
4 changes: 2 additions & 2 deletions disqus/disqus.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: Disqus for WordPress
* Plugin URI: https://disqus.com/
* Description: Disqus helps publishers increase engagement and build loyal audiences. Supports syncing comments to your database for easy backup.
* Version: 3.1.1
* Version: 3.1.2
* Author: Disqus
* Author URI: https://disqus.com/
* License: GPL-2.0+
Expand All @@ -24,7 +24,7 @@
* Domain Path: /languages
*/

$DISQUSVERSION = '3.1.1';
$DISQUSVERSION = '3.1.2';

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
Expand Down
3 changes: 3 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### 3.1.2
* Add Disqus Polls Information

### 3.1.1
* Add WP 6.5 to Github Actions CI

Expand Down
26 changes: 26 additions & 0 deletions frontend/src/ts/components/WelcomePanel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import { getForumAdminUrl } from '../utils';
import { pricingPolls, pollsBlogPost } from '../constants/links';

export interface IWelcomePanelProps {
shortname: string;
Expand Down Expand Up @@ -40,6 +41,31 @@ const WelcomePanel = (props: IWelcomePanelProps) => (
</li>
</ul>
</div>
<div className='welcome-panel-column'>
<h3>
{__('Polls')}
</h3>
<ul>
<li>
<a
className='welcome-icon dashicons-welcome-write-blog'
href={pollsBlogPost}
target='_blank'
>
{__('Learn More')}
</a>
</li>
<li>
<a
className='welcome-icon dashicons-welcome-widgets-menus'
href={pricingPolls}
target='_blank'
>
{__('Get Started')}
</a>
</li>
</ul>
</div>
<div className='welcome-panel-column'>
<h3>
{__('Analytics')}
Expand Down
13 changes: 7 additions & 6 deletions frontend/src/ts/components/WhatsNew.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import * as React from 'react';
import { pricingPolls } from '../constants/links';

const latestVersion: String = '3.1.1';
const latestVersion: String = '3.1.2';
const updates: Array<String> = [
'The Disqus Embed will now render properly on sites using WordPress Block Themes in addition to Classic Themes',
'A refreshed UI for the Disqus plugin admin panel',
'Robust improvements to manual and automatic syncing: multiple bug fixes and increased allowable manual syncing data range',
'More informative error messaging in the browser console and plugin UI when encountering issues with manual and automatic syncing for easier troubleshooting'
'Disqus Polls is now live! Engage your audiences with interactive polls, and seamlessly install them on your site.'
]

const WhatsNew: React.FC = () => {
Expand All @@ -19,7 +17,10 @@ const WhatsNew: React.FC = () => {
<button className='button' onClick={handleClick}>{showWhatsNew ? 'Hide' : `What's New in v${latestVersion}?`}</button>
<div className={`${showWhatsNew ? '' : ' hidden'}`}>
<ul>
{updates.map((update, index) => <li key={index}>- {update}</li>)}
{updates.map((update, index) => <li key={index}>{update}</li>)}
<li>
<a href={pricingPolls} key='pricing-link'>Get started with Disqus Polls today</a>
</li>
</ul>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/ts/constants/links.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const pricingPolls = 'https://disqus.com/pricing/?product=polls';
export const pollsBlogPost = 'https://blog.disqus.com/disqus-polls-are-here-and-available-to-all-publishers';
27 changes: 27 additions & 0 deletions frontend/tests/components/__snapshots__/WelcomePanel.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,33 @@ exports[`WelcomePanel renders basic layout 1`] = `
</li>
</ul>
</div>
<div
className="welcome-panel-column"
>
<h3>
Polls
</h3>
<ul>
<li>
<a
className="welcome-icon dashicons-welcome-write-blog"
href="https://blog.disqus.com/disqus-polls-are-here-and-available-to-all-publishers"
target="_blank"
>
Learn More
</a>
</li>
<li>
<a
className="welcome-icon dashicons-welcome-widgets-menus"
href="https://disqus.com/pricing/?product=polls"
target="_blank"
>
Get Started
</a>
</li>
</ul>
</div>
<div
className="welcome-panel-column"
>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "disqus-wordpress-plugin",
"version": "3.1.1",
"version": "3.1.2",
"description": "A WordPress plugin that allows site owners to easily replace the default commenting system with Disqus",
"main": "frontend/src/js/index.js",
"scripts": {
Expand Down
Loading