Skip to content

Commit

Permalink
chore(ia): clean up connections
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Jan 29, 2025
1 parent b4b317c commit ed4c44a
Show file tree
Hide file tree
Showing 17 changed files with 4 additions and 1,798 deletions.
2 changes: 1 addition & 1 deletion includes/class-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function enqueue_block_editor_assets() {
'reader_activation_terms' => Reader_Activation::get_setting( 'terms_text' ),
'reader_activation_url' => Reader_Activation::get_setting( 'terms_url' ),
'has_recaptcha' => Recaptcha::can_use_captcha(),
'recaptcha_url' => admin_url( 'admin.php?page=newspack-connections-wizard' ),
'recaptcha_url' => admin_url( 'admin.php?page=newspack-settings' ),
]
);
\wp_enqueue_style(
Expand Down
1 change: 0 additions & 1 deletion includes/class-newspack.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ private function includes() {
include_once NEWSPACK_ABSPATH . 'includes/wizards/class-analytics-wizard.php';
include_once NEWSPACK_ABSPATH . 'includes/wizards/class-engagement-wizard.php';
include_once NEWSPACK_ABSPATH . 'includes/wizards/class-health-check-wizard.php';
include_once NEWSPACK_ABSPATH . 'includes/wizards/class-connections-wizard.php';
include_once NEWSPACK_ABSPATH . 'includes/class-wizards.php';

include_once NEWSPACK_ABSPATH . 'includes/class-handoff-banner.php';
Expand Down
1 change: 0 additions & 1 deletion includes/class-wizards.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public static function init() {
'seo' => new SEO_Wizard(),
'health-check' => new Health_Check_Wizard(),
'engagement' => new Engagement_Wizard(),
'connections' => new Connections_Wizard(),
// v2 Information Architecture.
'newspack-dashboard' => new Newspack_Dashboard(),
'setup' => new Setup_Wizard(),
Expand Down
2 changes: 1 addition & 1 deletion includes/oauth/class-fivetran-connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static function api_create_connection( $request ) {
[
'service' => $service,
'service_data' => $service_data,
'redirect_after' => admin_url( 'admin.php?page=newspack-connections-wizard' ),
'redirect_after' => admin_url( 'admin.php?page=newspack-settings' ),
]
);
$response = self::process_proxy_response( \wp_safe_remote_post( $url, [ 'timeout' => 30 ] ) ); // phpcs:ignore WordPressVIPMinimum.Performance.RemoteRequestTimeout.timeout_timeout
Expand Down
82 changes: 0 additions & 82 deletions includes/wizards/class-connections-wizard.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/wizards/advertising/components/onboarding/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useEffect, useState, useRef, Fragment } from '@wordpress/element';
* Internal dependencies.
*/
import { Card, ButtonCard, Notice, TextControl } from '../../../../components/src';
import GoogleOAuth from '../../../connections/views/main/google';
import GoogleOAuth from '../../../newspack/views/settings/connections/google-oauth';
import { handleJSONFile } from '../utils';

export default function AdsOnboarding( { onUpdate, onSuccess } ) {
Expand Down
44 changes: 0 additions & 44 deletions src/wizards/connections/index.js

This file was deleted.

113 changes: 0 additions & 113 deletions src/wizards/connections/style.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/wizards/connections/views/index.js

This file was deleted.

Loading

0 comments on commit ed4c44a

Please sign in to comment.