Skip to content

Commit

Permalink
Social: Add Social Share Status modal for published posts (#39051)
Browse files Browse the repository at this point in the history
* Register meta with name of `jetpack_social_post_shares`

* Add new meta to usePostMeta hook

* Add bare components with fetching data

* changelog

* Add moment

* Populate the modal

* Remove moment and schema as we use store

* Improve share retrieval and css

* Only order the list

* Rebase onto the global modal

* Remove leftover file

* revert bad change

* Fix minification issue

* remove external_id from types

* Improve normalizeShareStatus

---------

Co-authored-by: Manzoor Wani <manzoorwani.jk@gmail.com>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/10613572453

Upstream-Ref: Automattic/jetpack@48ac019
  • Loading branch information
gmjuhasz authored and matticbot committed Aug 29, 2024
1 parent f6b97e6 commit ab26a60
Show file tree
Hide file tree
Showing 11 changed files with 135 additions and 127 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"automattic/jetpack-search": "^0.45.0-alpha",
"automattic/jetpack-stats": "^0.13.1",
"automattic/jetpack-status": "^3.3.4",
"automattic/jetpack-sync": "^3.8.1"
"automattic/jetpack-sync": "^3.9.0-alpha"
},
"require-dev": {
"automattic/jetpack-changelogger": "^4.2.6",
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-my-jetpack/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"automattic/jetpack-constants": "^2.0.4",
"automattic/jetpack-plans": "^0.4.8",
"automattic/jetpack-status": "^3.3.4",
"automattic/jetpack-sync": "^3.8.1",
"automattic/jetpack-sync": "^3.9.0-alpha",
"automattic/jetpack-protect-status": "^0.1.3"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": ">=7.0",
"automattic/jetpack-connection": "^2.12.5",
"automattic/jetpack-plugins-installer": "^0.4.2",
"automattic/jetpack-sync": "^3.8.1",
"automattic/jetpack-sync": "^3.9.0-alpha",
"automattic/jetpack-protect-models": "^0.2.1",
"automattic/jetpack-plans": "^0.4.8"
},
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-search/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"automattic/jetpack-status": "^3.3.4",
"automattic/jetpack-config": "^2.0.4",
"automattic/jetpack-my-jetpack": "^4.33.1",
"automattic/jetpack-sync": "^3.8.1"
"automattic/jetpack-sync": "^3.9.0-alpha"
},
"require-dev": {
"automattic/jetpack-changelogger": "^4.2.6",
Expand Down
8 changes: 8 additions & 0 deletions jetpack_vendor/automattic/jetpack-sync/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.9.0-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

### Added
- Add share status log modal to published posts

## [3.8.1] - 2024-08-29
### Changed
- Sync: Add subscription type for HPOS orders only if WooCommerce Subscriptions plugin exists [#39118]
Expand Down Expand Up @@ -1258,6 +1265,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Packages: Move sync to a classmapped package

[3.9.0-alpha]: https://github.com/Automattic/jetpack-sync/compare/v3.8.1...v3.9.0-alpha
[3.8.1]: https://github.com/Automattic/jetpack-sync/compare/v3.8.0...v3.8.1
[3.8.0]: https://github.com/Automattic/jetpack-sync/compare/v3.7.1...v3.8.0
[3.7.1]: https://github.com/Automattic/jetpack-sync/compare/v3.7.0...v3.7.1
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-sync/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "3.8.x-dev"
"dev-trunk": "3.9.x-dev"
},
"dependencies": {
"test-only": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
class Package_Version {

const PACKAGE_VERSION = '3.8.1';
const PACKAGE_VERSION = '3.9.0-alpha';

const PACKAGE_SLUG = 'sync';

Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/i18n-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
),
'jetpack-sync' => array(
'path' => 'jetpack_vendor/automattic/jetpack-sync',
'ver' => '3.8.1',
'ver' => '3.9.0-alpha1724928414',
),
),
);
68 changes: 34 additions & 34 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats",
"reference": "de6bc8d137a4e56b76ee465c9e7b3929e0e26aeb"
"reference": "3027fe367198941a9e0b3b2b6f2ab9df58e75682"
},
"require": {
"php": ">=7.0"
Expand Down Expand Up @@ -60,7 +60,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui",
"reference": "d4e7c90719e753611e2e8a41a4d6d849139ca821"
"reference": "8d45d003e76f19ae763c95afa492248c49042b34"
},
"require": {
"php": ">=7.0"
Expand Down Expand Up @@ -125,7 +125,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-assets",
"reference": "584a8addd8f1ba061cd16fcf87cf64f70445db3a"
"reference": "f14dc92417ac656bd42a997e9860a5bae03fe836"
},
"require": {
"automattic/jetpack-constants": "^2.0.4",
Expand Down Expand Up @@ -194,7 +194,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-autoloader",
"reference": "a3fc87940eb1abaa978fba2dda511b2f61c1ba14"
"reference": "165997b8d4fa14715b63aaccb3db71d36410873c"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
Expand Down Expand Up @@ -261,7 +261,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-core",
"reference": "108603d9d054705a9745f24a13f5576a5784fc6e"
"reference": "fc5f853dc803e52766910bb1cfdfa67ef1b2303d"
},
"require": {
"automattic/jetpack-connection": "^2.12.5",
Expand Down Expand Up @@ -329,7 +329,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score",
"reference": "7fa9da01d16b0ff62b357ee779d69b2b35049125"
"reference": "eac88a145edf186c635d09dc41ab98bd80ab4da0"
},
"require": {
"automattic/jetpack-boost-core": "^0.2.9",
Expand Down Expand Up @@ -405,7 +405,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin",
"reference": "e8c3ef2cac47c72d38d00617a12c39c0e7343715"
"reference": "c0a99993cf41c6bee8023864b692aa7bddc5c91e"
},
"require": {
"composer-plugin-api": "^2.1.0",
Expand Down Expand Up @@ -465,7 +465,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-config",
"reference": "34f5db9eb3db40b56fad8b5615a36bfd2a1fcb35"
"reference": "af7a39cfd90551d660f6c5e6017511b6ebbafb48"
},
"require": {
"php": ">=7.0"
Expand Down Expand Up @@ -540,7 +540,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-connection",
"reference": "66bfb3ded940a7f6d9057483ef2eeb0bc4330747"
"reference": "0515b4465a46ff4aebc54e1a9bde2044c17a4049"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^2.0.2",
Expand Down Expand Up @@ -627,7 +627,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-constants",
"reference": "c4df37ed9d5ba3f39b1c13cce791d497ee1b38aa"
"reference": "2e5deef8c3d084691ac7982dbc8d02c080df34ff"
},
"require": {
"php": ">=7.0"
Expand Down Expand Up @@ -681,7 +681,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-device-detection",
"reference": "b561400e7571c10a063754d0c00b283ae5de3b60"
"reference": "b9d90be42b85dc670c4f230d2f5622533e8d1cd1"
},
"require": {
"php": ">=7.0"
Expand Down Expand Up @@ -734,7 +734,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-explat",
"reference": "8323e723fb4035979a3cb41adbf0ed06bb960bf8"
"reference": "ca0afb2c24a1773a3afbfae5a35a917ffbfe452c"
},
"require": {
"automattic/jetpack-connection": "^2.12.5",
Expand Down Expand Up @@ -809,7 +809,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-ip",
"reference": "1f3dad74bb637be896732b3a4ef809405954d7cb"
"reference": "c6d4c6b305ec7620f6c65791fb63ee323318c40d"
},
"require": {
"php": ">=7.0"
Expand Down Expand Up @@ -867,7 +867,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-jitm",
"reference": "10eb8ab15dbf8a3043618fb6fa47e1669139b713"
"reference": "9e9ce7664f8b8402254e191ed4563e6a641dd8b3"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^2.0.2",
Expand Down Expand Up @@ -942,7 +942,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-licensing",
"reference": "63c9042d26bb49c808aec97bb6baccdfc01bca74"
"reference": "f22e9ad3ed19509c36a04b5f03cce34884f53b28"
},
"require": {
"automattic/jetpack-connection": "^2.12.5",
Expand Down Expand Up @@ -1004,7 +1004,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-logo",
"reference": "58bd5cfd3af2e9b15f1321e2f808ac1c412a6695"
"reference": "3089dbcef952e7aa313f22cba452d39ac5c77383"
},
"require": {
"php": ">=7.0"
Expand Down Expand Up @@ -1057,7 +1057,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack",
"reference": "4b42cd154863c4be5c07b6313430bdbf7c79dc95"
"reference": "d536cd57c6a838e728bb6907787d35cc68779537"
},
"require": {
"automattic/jetpack-admin-ui": "^0.4.4",
Expand All @@ -1073,7 +1073,7 @@
"automattic/jetpack-protect-status": "^0.1.3",
"automattic/jetpack-redirect": "^2.0.3",
"automattic/jetpack-status": "^3.3.4",
"automattic/jetpack-sync": "^3.8.1",
"automattic/jetpack-sync": "^3.9.0-alpha",
"php": ">=7.0"
},
"require-dev": {
Expand Down Expand Up @@ -1159,7 +1159,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-password-checker",
"reference": "d96125fc5ca81ace1549c64fc0984e93a7f918e0"
"reference": "8170c849f6e8178691c2ef7db022acefecd03afc"
},
"require": {
"php": ">=7.0"
Expand Down Expand Up @@ -1220,7 +1220,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plans",
"reference": "3fb4e39dba7b8c264676748ab05fe465e9cd42ea"
"reference": "f72a007a7a76cb4e7c0d36edb6bf0f682b8046f7"
},
"require": {
"automattic/jetpack-connection": "^2.12.5",
Expand Down Expand Up @@ -1288,7 +1288,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer",
"reference": "77c9f8a9d53bad24075776cde59d35cc3dfc6ff4"
"reference": "59fa6de694305994a21ae05c4f5f58116a4c8799"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^2.0.2",
Expand Down Expand Up @@ -1344,7 +1344,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-models",
"reference": "ac90fe47d8beb1d1cb5ccd2a4e835b27c8cb6f91"
"reference": "b6f5f511d5c764926669f7f229843d535c169f23"
},
"require": {
"php": ">=7.0"
Expand Down Expand Up @@ -1414,14 +1414,14 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-status",
"reference": "cb63b61fbcf21c0fa1ab0019852e7823c444f2fa"
"reference": "c829114507bff74f3424135b57d7504409d7a580"
},
"require": {
"automattic/jetpack-connection": "^2.12.5",
"automattic/jetpack-plans": "^0.4.8",
"automattic/jetpack-plugins-installer": "^0.4.2",
"automattic/jetpack-protect-models": "^0.2.1",
"automattic/jetpack-sync": "^3.8.1",
"automattic/jetpack-sync": "^3.9.0-alpha",
"php": ">=7.0"
},
"require-dev": {
Expand Down Expand Up @@ -1489,7 +1489,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-redirect",
"reference": "d4fffd433e1304fa6ec7584b17eb909a17ef61e9"
"reference": "886f73a2e46b8dc7f72c6d14656c2c66d163327e"
},
"require": {
"automattic/jetpack-status": "^3.3.4",
Expand Down Expand Up @@ -1544,7 +1544,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-roles",
"reference": "bf106336b52f6731fa1213cf3718b327bab7660d"
"reference": "c5a840ade4a988eff3a24a9dcefaaf3c9a9e76e3"
},
"require": {
"php": ">=7.0"
Expand Down Expand Up @@ -1598,7 +1598,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-search",
"reference": "6b9a03b2e58a023482ab3c160f17946df6c0e5bf"
"reference": "8fea1e936c84c18c49ce41cc85bbdad9ccf7f3a5"
},
"require": {
"automattic/jetpack-assets": "^2.3.5",
Expand All @@ -1607,7 +1607,7 @@
"automattic/jetpack-constants": "^2.0.4",
"automattic/jetpack-my-jetpack": "^4.33.1",
"automattic/jetpack-status": "^3.3.4",
"automattic/jetpack-sync": "^3.8.1",
"automattic/jetpack-sync": "^3.9.0-alpha",
"php": ">=7.0"
},
"require-dev": {
Expand Down Expand Up @@ -1686,7 +1686,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-stats",
"reference": "6b32acb84f64f91ef9d9734c635cf1c7204a99af"
"reference": "2c4da6571440b212702905ef54b4cdd01d74feea"
},
"require": {
"automattic/jetpack-connection": "^2.12.5",
Expand Down Expand Up @@ -1753,7 +1753,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-status",
"reference": "b8766d1e9d601838c1428480a1db7872f66c4bf9"
"reference": "0c24a70d30a88d6aefad923fd081f3b7725da466"
},
"require": {
"automattic/jetpack-constants": "^2.0.4",
Expand Down Expand Up @@ -1812,12 +1812,12 @@
},
{
"name": "automattic/jetpack-sync",
"version": "3.8.1",
"version_normalized": "3.8.1.0",
"version": "3.9.0-alpha.1724928414",
"version_normalized": "3.9.0.0-alpha1724928414",
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-sync",
"reference": "de1d1021129cd1309d00ee4ee313c7f031a60ee1"
"reference": "f76b401e51377449f7703f47d353afbc1b2f8ce6"
},
"require": {
"automattic/jetpack-connection": "^2.12.5",
Expand Down Expand Up @@ -1850,7 +1850,7 @@
"link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "3.8.x-dev"
"dev-trunk": "3.9.x-dev"
},
"dependencies": {
"test-only": [
Expand Down
Loading

0 comments on commit ab26a60

Please sign in to comment.