Skip to content

Commit dc2dd8b

Browse files
gmjuhaszmatticbot
authored andcommitted
Social: Remove instagram welcome notice (#35860)
* Remove component + usagee * changelog * Fixup versions Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/8018488334
1 parent 9cb098c commit dc2dd8b

File tree

4 files changed

+15
-63
lines changed

4 files changed

+15
-63
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.48.0-alpha] - unreleased
9+
10+
This is an alpha version! The changes listed here are not final.
11+
12+
### Removed
13+
- Removed a notice to tell users that instagram is new nad can be connected
14+
815
## [0.47.1] - 2024-02-13
916
### Changed
1017
- Updated package dependencies. [#35608]
@@ -590,6 +597,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
590597
### Changed
591598
- Updated package dependencies. [#24470]
592599

600+
[0.48.0-alpha]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.47.1...v0.48.0-alpha
593601
[0.47.1]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.47.0...v0.47.1
594602
[0.47.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.46.0...v0.47.0
595603
[0.46.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.45.2...v0.46.0

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@automattic/jetpack-publicize-components",
4-
"version": "0.47.1",
4+
"version": "0.48.0-alpha",
55
"description": "A library of JS components required by the Publicize editor plugin",
66
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/publicize-components/#readme",
77
"bugs": {

src/components/form/index.js

+6-19
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@ import useMediaRestrictions, { NO_MEDIA_ERROR } from '../../hooks/use-media-rest
2020
import useRefreshAutoConversionSettings from '../../hooks/use-refresh-auto-conversion-settings';
2121
import useRefreshConnections from '../../hooks/use-refresh-connections';
2222
import useSocialMediaConnections from '../../hooks/use-social-media-connections';
23-
import { CONNECTION_SERVICE_INSTAGRAM_BUSINESS, store as socialStore } from '../../social-store';
24-
import { getSupportedAdditionalConnections } from '../../utils';
23+
import { store as socialStore } from '../../social-store';
2524
import { AdvancedPlanNudge } from './advanced-plan-nudge';
2625
import { AutoConversionNotice } from './auto-conversion-notice';
2726
import { BrokenConnectionsNotice } from './broken-connections-notice';
2827
import { ConnectionsList } from './connections-list';
2928
import { EnabledConnectionsNotice } from './enabled-connections-notice';
3029
import { InstagramNoMediaNotice } from './instagram-no-media-notice';
31-
import { InstagramSupportedNotice } from './instagram-supported-notice';
3230
import { ShareCountInfo } from './share-count-info';
3331
import { SharePostForm } from './share-post-form';
3432
import { UnsupportedConnectionsNotice } from './unsupported-connections-notice';
@@ -47,19 +45,12 @@ export default function PublicizeForm() {
4745
const { isPublicizeEnabled, isPublicizeDisabledBySitePlan, connectionsAdminUrl } =
4846
usePublicizeConfig();
4947

50-
const hasInstagramConnection = connections.some(
51-
connection => connection.service_name === 'instagram-business'
52-
);
5348
const { numberOfSharesRemaining } = useSelect( select => {
5449
return {
5550
showShareLimits: select( socialStore ).showShareLimits(),
5651
numberOfSharesRemaining: select( socialStore ).numberOfSharesRemaining(),
5752
};
5853
}, [] );
59-
const shouldShowInstagramNotice =
60-
! hasInstagramConnection &&
61-
getSupportedAdditionalConnections().includes( CONNECTION_SERVICE_INSTAGRAM_BUSINESS ) &&
62-
shouldShowNotice( NOTICES.instagram );
6354

6455
const Wrapper = isPublicizeDisabledBySitePlan ? Disabled : Fragment;
6556

@@ -123,18 +114,14 @@ export default function PublicizeForm() {
123114
) ) }
124115
</>
125116
) : (
126-
! shouldShowInstagramNotice && (
127-
<PanelRow>
128-
<ExternalLink href={ connectionsAdminUrl }>
129-
{ __( 'Connect an account', 'jetpack' ) }
130-
</ExternalLink>
131-
</PanelRow>
132-
)
117+
<PanelRow>
118+
<ExternalLink href={ connectionsAdminUrl }>
119+
{ __( 'Connect an account', 'jetpack' ) }
120+
</ExternalLink>
121+
</PanelRow>
133122
) }
134123
{ ! isPublicizeDisabledBySitePlan && (
135124
<Fragment>
136-
{ shouldShowInstagramNotice && <InstagramSupportedNotice /> }
137-
138125
{ isPublicizeEnabled && hasEnabledConnections && <SharePostForm /> }
139126
<AdvancedPlanNudge />
140127
</Fragment>

src/components/form/instagram-supported-notice.tsx

-43
This file was deleted.

0 commit comments

Comments
 (0)