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

Blaze: move plugin out of the Jetpack plugin and into package #28062

Merged
merged 16 commits into from
Dec 23, 2022

Conversation

jeherve
Copy link
Member

@jeherve jeherve commented Dec 22, 2022

Changes proposed in this Pull Request:

This is a follow-up to the following PRs:

This commit brings in:

  • The panel's code from the Jetpack plugin.
    • We change the way we register the panel, so it can be registered outside of the Jetpack plugin; it shouldn't rely on the list of enabled extensions that is managed by the Jetpack plugin.
  • The tooling to build the JavaScript bundle in the package.
  • The dependencies for it.
  • We then enqueue that bundle in the block editor.

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Jetpack product discussion

  • 1386-gh-dotcom-forge

Does this pull request change what data or activity we track or use?

  • No

Testing instructions:

jetpack build packages/promote-posts
jetpack watch packages/promote-posts

  • Start on a WordPress.com simple or WoA site that's connected to WordPress.com.
  • Switch to this branch, or use the Jetpack Beta plugin to run this branch.
  • Add the following in a place that's going to be loaded:
use Automattic\Jetpack\Promote_Posts;
Promote_Posts::configure();
  • Go to Posts > Add New
  • Publish a post.
  • Check the post-publish sidebar panel
  • Is the button there?

jeherve and others added 11 commits December 15, 2022 15:07
This should be used in the Jetpack plugin instead of the currently hardcoded analytics pulled from the React dashboard.
We can then leverage it in other plugins as well.
This should prove easier to use by other standalone plugins, which do not have the same data passed to JavaScript via Jetpack_Editor_Initial_State.
Grabbing the data from the connection package should consequently be easier.
Let's turn the simple link into a button so it is more visible. This also follows the pattern already in use in the Anchor post-publish panel.

This also updates tracking for this button click to use the new tool introduced in #27937
@jeherve jeherve added [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] In Progress [Pri] Normal DO NOT MERGE don't merge it! labels Dec 22, 2022
@jeherve jeherve self-assigned this Dec 22, 2022
@github-actions github-actions bot added [Extension] Blaze [Package] Promote Posts [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ labels Dec 22, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2022

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ All commits were linted before commit.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.


Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped.
Then, add the "[Status] Needs Team review" label and ask someone from your team review the code.
Once you’ve done so, switch to the "[Status] Needs Review" label; someone from Jetpack Crew will then review this PR and merge it to be included in the next Jetpack release.


Jetpack plugin:

  • Next scheduled release: January 3, 2023.
  • Scheduled code freeze: December 26, 2022.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2022

Are you an Automattician? You can now test your Pull Request on WordPress.com. On your sandbox, run bin/jetpack-downloader test jetpack update/blaze-move-package to get started. More details: p9dueE-5Nn-p2

This is a follow-up to the following PRs:

- #27928 introducing the panel
- #27960 changing the panel's design.

This commit brings in:
- The panel's code from the Jetpack plugin.
    - We change the way we register the panel, so it can be registered outside of the Jetpack plugin; it shouldn't rely on the list of enabled extensions that is managed by the Jetpack plugin.
- The tooling to build the JavaScript bundle in the package.
- The dependencies for it.
- We then enqueue that bundle in the block editor.
@dereksmart
Copy link
Member

The build for the editor needed some sass compiling. Added in fc6a36a

Also added watch functionality in 5c83d74

This is building and testing well

@dereksmart dereksmart removed the DO NOT MERGE don't merge it! label Dec 23, 2022
Base automatically changed from update/promote-post-publish-button to trunk December 23, 2022 14:01
@dereksmart dereksmart force-pushed the update/blaze-move-package branch 2 times, most recently from 0225a56 to e76a582 Compare December 23, 2022 14:18
@dereksmart dereksmart added the [Status] Ready to Merge Go ahead, you can push that green button! label Dec 23, 2022
Copy link
Member

@dereksmart dereksmart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builds and watches working. Merged trunk. Testing well! Will follow up with renaming and enabling on Jetpack

@dereksmart dereksmart enabled auto-merge (squash) December 23, 2022 14:41
@dereksmart dereksmart merged commit 061e1da into trunk Dec 23, 2022
@dereksmart dereksmart deleted the update/blaze-move-package branch December 23, 2022 14:51
@github-actions github-actions bot removed [Status] In Progress [Status] Ready to Merge Go ahead, you can push that green button! labels Dec 23, 2022
romarioraffington added a commit that referenced this pull request Jan 4, 2023
* Boost: Fix regenerate admin notice (#28012)

* Show regenerate notice only if Critical CSS module is active

* changelog

* Boost: Add image guide package (#27952)

* Add package image-guide

* [not verified] Attempt to use the image-guide package

* changelog

* Specify a main file in package.json

* Two step build

* Use simpler type syntax since prettier... doesn't like it?

* Build image-guide on boost e2e tests

* changelog

* Setup tests

* Attempt to fix imports

* Change main file

* Fixed monorepo package dependencies

* changelog

* Update package.lock

* Update boost pnpm packages

* Attempt to fix monorepo package version refs

* changelog

* Another attempt to fix failed checks

* changelog

* Update boost packages

* Revert main in package.json

* Change main file

* Fix type imports

* [not verified] Revert "Fix type imports"

This reverts commit 66c2eadf0bb452121c45e7ef1887f632a977d09e.

* Allow heart-of-team to approve PRs for image-guide js package

* Specify main and types files separately

* Import types differently

Co-authored-by: Mark George <thingalon@gmail.com>

* Premium Content / Subscriptions: introduce Paid Newsletter functionality (#26417)

Co-authored-by: brent <brent@n3f.com>
Co-authored-by: Fabien MILLERAND <fab@millerf.com>
Co-authored-by: Brent Nef <nef@a8c.com>
Co-authored-by: Romario <romarioraff@gmail.com>
Co-authored-by: Matías Ventura <mv@matiasventura.com>
Co-authored-by: Matias Ventura <matias@automattic.com>
Co-authored-by: MILLER/F <millerf@automattic.com>
Co-authored-by: Kuba Birecki <kuba.birecki@crystalplanet.io>
Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
Co-authored-by: Brandon Kraft <public@brandonkraft.com>

* Add/auto publish for image guide (#28032)

Co-authored-by: Mark George <thingalon@gmail.com>

* Gifting toggle: Update default value based on plan expiration date (#27987)

Co-authored-by: Candy Tsai <candy02058912@gmail.com>

* Fix out-of-bounds menus on the admin (#27958)

* [not verified] Fix the out-of-bounds menu. It also caused the menu to flicker if you positioned the mouse in a specific position

* [not verified] Add the listener in the init funciton

* [not verified] Fix the arrow display

* [not verified] Fix missing spaces and changelog text

* [not verified] Prevent code from running twice

* [not verified] Add explanation for using a fallback for the viewport check

* [not verified] Remove the focus when leave the main element

* [not verified] Use the link height instead of hardcoding it

* [not verified] Checking if the site is atomic through a global variable instead of using a class to do it

Co-authored-by: Valter Lorran <valter.lorran@automattic.com>

* Contact Form: Adjust Form placeholder footer links styles (#28008)

* Adjust Form placeholder footer links style

* changelog

* Internationalization: fix context for translated product name. (#28035)

* Removing box-sizing:border-box from Base Styles (#28024)

* Jetpack: Add responses export modal (#27821)

Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>

* Allow supporting merge PRs with changelogger. (#27881)

* [not verified] Allow supporting merge PRs with changelogger.

* [not verified] Add changelog.

* [not verified] Update version number for CLI.

* [not verified] Upgrade changelogger reference in all plugins.

* [not verified] Add changelogs.

* [not verified] Also add support for default merge message from GH.

* [not verified] Add unit test for supporting merge in changelogger.

* [not verified] Remove unneeded capturing groups and added anchoring.

* [not verified] Apply coding standards.

* [not verified] Remove redundant test.

* VideoPress: Add videopress embed shortcode (#27842)

* [not verified] add jetpack_videopress shortcode

* [not verified] move width and height out of poster data

* [not verified] add generated jetpack_videopress shortcode to video details component

* [not verified] changelog

* [not verified] specify the video block

* [not verified] improve shortcode markup

* [not verified] read guid as first unnamed argument

* change shortcode to videopress and override jetpack shortcode

* [not verified] change generated shortcode

* changelog

* fix video url on block by id

* fix versions

* simplify existing shortcode check

* add cover attribute

* Blocks: switch to new shared, extracted implementation of Tracks (#27940)

Co-authored-by: Derek Smart <dsmart@dsmart-mbp.lan>

* Blogging Prompts: Don't display within app webviews (#28023)

If a block is unsupported in the mobile app, a user can still edit it via a web view (known as the "Unsupported Block Editor" or "UBE"). Since the introduction of the blogging/writing prompts on WordPress.com, the block no longer loads within the UBE. The prompts display instead.

This PR fixes that issue by preventing the prompts from displaying if it's detected that the editor is loading from the mobile app.

* Fix layout visual issues (#28055)

* my-jetpack: fix Product card layout issue

* fix product card detail layout issue

* fix VideoPress seach layout issue

* fix VideoPress detail input layout issue

* changelog

* fix VideoPress clipboard button layout issue

* bump My Jetpack version

* CLI: Cleanup release command next messages (#28041)

* Add new i18n fonts and rename them via filter (#27854)

* VideoPress: improve blocks building process (#28025)

* Add copy-webpack-plugin dep

* changelog

* re-organize building blocks folders

* copy block.json files when building

* point to buld when registering blocks

* fix file paths in video block def

* fix file paths Video Chapters block def

* exclude src/client files in prod

* Copy extensions index file JSON file to the build directory

* Reference correct extensions index JSON file

* use Assets lib to regiters extensions

* refactor extensions. Add helpers.

* move copy-webpack-plugin to dev deps

* load scritps to handle extendd blocks

* debug() unregistering core/embed videopress

* update deps

Co-authored-by: Luiz Kowalski <lhkowalski@gmail.com>

* Contact Form: Update child blocks icons (#28047)

* Update Form child blocks icons

* changelog

* Admin page: avoid warning when disconnecting Jetpack (#28003)

* Payment blocks: Fix upgrade nudge in the site editor (#27909)

* Payment blocks: Fix upgrade nudge in the site editor.

* Pass only "ref" from blockProps

* VideoPress: remove video editor.js unused file (#28060)

* remove unused editor.js file

* changelog

* Revue block: Part 1 of retiring the block - adding a placeholder message. (#27961)

* Subscribe Block: ensure custom button spacing is correct (#28057)

* Shortcode: Update Mixcloud oEmbed url and fix up typos (#28061)

Co-authored-by: Derek Smart <smart@automattic.com>

* Add review prompt for social plugin (#27917)

* Initial placement of review prompt in post publish panel

* Add ability to dismiss review prompt

* Update the permission check function name

* changelog

* Update conditions for showing the review prompt

* Fix project versions

* Add analytics to review prompt

* Swap out typed URL

* Conditionally load the connection state

* Updates based on feedback, performance improvements

* Fix connection package JS error

* move analytics functionality into an existing hook, fix logic error

* changelog

* Refine conditions for when the review request should show

* Allow review prompt to be disabled via filter, add check for post already shared

* Change method for checking whether post is already shared

* changelog

* Fix meta default for already shared

* version management

* Clean up Image-Guide (#28053)

* Add the image-guide to exclusions from the Jetpack and packages list

* Mark it as non-private for npm publishing

* Remove eslint file, to let the standard monorepo rules in the door

* changelog

* Clean up linting complaints

Co-authored-by: Mark George <thingalon@gmail.com>

* Boost/ignore analytics failures (#28051)

* Do not allow analytics errors to break other things

* changelog

Co-authored-by: Mark George <thingalon@gmail.com>

* Boost: Add image guide tracks (#28056)

* Track image-guide ui toggle

* Track image guide images and page

Signed-off-by: Adnan Haque <adnan007.id@gmail.com>

* Add initial state and page impact tracking to image guide

Signed-off-by: Adnan Haque <adnan007.id@gmail.com>

* changelog

* Fix build issues

Signed-off-by: Adnan Haque <adnan007.id@gmail.com>

* Revert "Add review prompt for social plugin (#27917)" (#28066)

This reverts commit 09d067639a48fbdf29389d95fe2bb876ee8c3ba9.

* Admin: use minimzed CSS for stats widget (#27788)

* Sync: Add an option key to WooCommerce whitelist (#27988)

* [not verified] Sync: Add more option keys to Woo whitelist

These are some additional options for WooCommerce that should probably
be synced

Co-authored-by: Brandon Kraft <public@brandonkraft.com>

* Stats: Update dependencies for stats admin bundle (#28065)

* [not verified] load dependencies for stats bundle

* [not verified] changelog

* fix versions

* Blocks: iterate on the design of the Promote post-publish panel (#27960)

* Blocks: add a new Analytics hook

This should be used in the Jetpack plugin instead of the currently hardcoded analytics pulled from the React dashboard.
We can then leverage it in other plugins as well.

* Fix imports

* Get connection data from conn. package instead of Jetpack data

This should prove easier to use by other standalone plugins, which do not have the same data passed to JavaScript via Jetpack_Editor_Initial_State.
Grabbing the data from the connection package should consequently be easier.

* Expand docs

* Blocks: switch to new shared, extracted implementation of Tracks

This is a follow-up to #27937.

* Blocks: update Promote button in post-publish panel

Let's turn the simple link into a button so it is more visible. This also follows the pattern already in use in the Anchor post-publish panel.

This also updates tracking for this button click to use the new tool introduced in #27937

* Update the icon

See https://github.com/Automattic/jetpack/pull/27960#issuecomment-1362793951

* Rename tracks event

Co-authored-by: Derek Smart <dsmart@dsmart-mbp.lan>
Co-authored-by: Derek Smart <smart@automattic.com>

* Blaze: move plugin out of the Jetpack plugin and into package (#28062)

* Blocks: add a new Analytics hook

This should be used in the Jetpack plugin instead of the currently hardcoded analytics pulled from the React dashboard.
We can then leverage it in other plugins as well.

* Fix imports

* Get connection data from conn. package instead of Jetpack data

This should prove easier to use by other standalone plugins, which do not have the same data passed to JavaScript via Jetpack_Editor_Initial_State.
Grabbing the data from the connection package should consequently be easier.

* Expand docs

* Blocks: switch to new shared, extracted implementation of Tracks

This is a follow-up to #27937.

* Blocks: update Promote button in post-publish panel

Let's turn the simple link into a button so it is more visible. This also follows the pattern already in use in the Anchor post-publish panel.

This also updates tracking for this button click to use the new tool introduced in #27937

* Update the icon

See https://github.com/Automattic/jetpack/pull/27960#issuecomment-1362793951

* Blaze: move plugin out of the Jetpack plugin and into package

This is a follow-up to the following PRs:

- #27928 introducing the panel
- #27960 changing the panel's design.

This commit brings in:
- The panel's code from the Jetpack plugin.
    - We change the way we register the panel, so it can be registered outside of the Jetpack plugin; it shouldn't rely on the list of enabled extensions that is managed by the Jetpack plugin.
- The tooling to build the JavaScript bundle in the package.
- The dependencies for it.
- We then enqueue that bundle in the block editor.

* Fix build errors: process sass

* Add watch command for building the client.

* update lock files

Co-authored-by: Derek Smart <dsmart@dsmart-mbp.lan>

* Site Settings API: Expose `show_on_front` and `page_on_front` options (#28042)

* [not verified] Site Settings API: expose  and  options

* [not verified] changelog

* [not verified] Improve validation for updating of both option values

* [not verified] Remove invalid update case

* [not verified] Add test case

* Add  settings api test case

* Add options to test endpoint

* WAF: Check if rule files exist before requiring them (#28050)

* Promote Posts: Rename package to Blaze (#28073)

* Promote Posts: Rename to Blaze

* changelog

* update composer dependency in Jetpack

* remove testing code

* Rename descriptions too

* Uppercase, and bump things for new repos

* Update lock

* Fix bug label

* try composer lock again

* Apply suggestions from code review

Co-authored-by: Karen Attfield <karenlattfield@gmail.com>

* fix linting errors caused by committing suggestions from review.

Co-authored-by: Derek Smart <dsmart@dsmart-mbp.lan>
Co-authored-by: Karen Attfield <karenlattfield@gmail.com>

* Contact Form: Adjust Form placeholder colors (#28044)

* Protect: Hide WAF screen on unsupported platforms (#27939)

* My Jetpack: Move VaultPress Backup out of hybrid concept (#28022)

* My Jetpack: Move Social out of hybrid concept (#28074)

* Image guide: Updating the package version and changelogger (#28071)

* Updating the image guide package version and changelogger

* Updating package.json version

* Image Guide: Fix image guide package (#28080)

* Remove prepare script

* changelog

* Add a release branch prefix to independently release image-guide

* Image Guide: Remove release branch prefix (#28081)

* Remove imageg-guide branch prefix

* changelog

* Image Guide: Update versions (#28082)

* Update changelog

* Remove release branch prefix from image-guide

* Bump version number

* Init 11.7-a.10 plus changelogs (#28086)

* Jetpack 11.7-a.9: Updating the Jetpack plugin changelog and readme. (#28089)

* VideoPress: Shortcode adjustments (#28083)

* add muted attribute to video shortcode override

* fix active standalone plugin check

* add aspect ratio and default cover as false

* fix cover attribute on jetpack videopress player

* disable cover for video shortcode override

* changelog

* bump version

* My Jetpack: Move VideoPress out of hybrid concept (#28097)

* My Jetpack: Move VideoPress extends from Hybrid to Product

* My Jetpack: Add tests for VideoPress Product

* Changelog

* Bump version

* Rollback phpcsstandards updates to fix trunk test failures. (#28099)

* Rolled back PHPCS utils updates that cause breaking tests.

* Changelog.

* Project versions.

* Fix `Linting / ESLint (non-excluded files only)` test (#28103)

* Revert "Premium Content / Subscriptions: introduce Paid Newsletter functionality (#28102)

* Revert "Premium Content / Subscriptions: introduce Paid Newsletter functionality (#26417)"

This reverts commit ab1665d12cc8baaff91e3dffa2b5089762674f7e.

* changelog

* My Jetpack: Manage Connection modal layout fix (#28101)

* fix box-sizing on manage connections modal footer

* changelog

* fix versions

Co-authored-by: Alvaro Vega <alvaro.vega@automattic.com>

* Creating new release (#28110)

* [Package] My Jetpack: Add connection support + manage links and append Owner word to connection owner (#28095)

* [not verified] Add learn more and manage links

* [not verified] changelog

* [not verified] Append (Owner) to the name when owned by user

* [not verified] Update tests

* [not verified] Remove empty space if not owner, modify logic for space after connectionInfoText

* Blaze: Enable in Jetpack by default (#28077)

Co-authored-by: Derek Smart <dsmart@dsmart-mbp.lan>
Co-authored-by: Karen Attfield <karenlattfield@gmail.com>

* Protect: Add scan progress bar (#27171)

* Initialize add/scan-in-protect feature branch

* Protect: Formalize status, extension, and threat data with model classes (#25426)

* Protect: Update use of 'vulnerability' naming to more generic 'threat' convention (#25445)

* Protect: Update vulnerability list designs (#26448)

* Rebase to add/scan-in-protect - Implement Protect threat item CTA design changes, changelog entry

* Minor spacing adjustment

* Protect: Update footer designs (#26399)

* Rebase to add/scan-in-protect - Implement Protect admin footer designs, changelog entry

* Minor spacing adjustment

* Reduce spacing to match designs

* Add siteSuffix to jetpackProtectInitialState and update footer links accordingly

* Add placeholder and TODO comment for remaining missing Cloud learn more link

* Remove Learn more button from Cloud product section until an appropriate link is available

* Protect: Update pricing page (#26210)

* Changelog entry

* Update Admin component

* Update Interstitial component

* Add PricingTable component

* Minor spacing adjustment

* Remove feature item tooltip icon and popover details until we have content available for them

* Introduce a Plan class for extracting plan data from the WPcom public API, to ensure we can access pricing details regardless of cxn status

* Protect: Add Scan API as the data source for users with a scan plan (#26119)

* [not verified] Add data models for the status and its related extensions and threats

* [not verified] changelog

* [not verified] Fix: use core information from status when generating

* [not verified] Remove extension property from Threat_Model

* [not verified] Remove 'fixer' property from Threat_Model and update 'fixable' property to include fixer information

* [not verified] Minor adjustments to Status_Model properties

* [not verified] Add tests for extension and threat models

* [not verified] Make set_vulnerabilities a public method so it can be useful in implementation

* Fix sample vulnerability type

* changelog

* [not verified] Add data models for the status and its related extensions and threats

* [not verified] changelog

* [not verified] Fix: use core information from status when generating

* [not verified] Remove extension property from Threat_Model

* [not verified] Remove 'fixer' property from Threat_Model and update 'fixable' property to include fixer information

* [not verified] Minor adjustments to Status_Model properties

* [not verified] Add tests for extension and threat models

* [not verified] Make set_vulnerabilities a public method so it can be useful in implementation

* [not verified] Fix sample vulnerability type

* [not verified] changelog

* [not verified] Update use of 'vulnerability' naming to more generic 'threat' convention

* [not verified] Update additional uses of 'vulnerability' naming to more generic 'threat' convention

* [not verified] changelog

* [not verified] Fix property name capitalization

* [not verified] Add Scan API as a data source in Protect

* Default checked to true for Scan API results, for now

* Fix PHPDoc for class property

* changelogs

* Move cache functionality to parent Status class, and cache Scan_Status API calls

* Fix implementation of Jetpack_Plan class

* Ensure Jetpack_Plan class exists before calling static supports() method

* Add REST API endpoint to remotely clear the Scan API cache

* Reduce cache duration to 5 minutes for the Scan API data source

* Add scan results to Protect debug helper module

* Fix: filename threat property name

* Fix: add missing threat count incrementations

* Fix: check for filename instead of file property

* Restore use of constants instead of class properties

* add permission callback for Protect cache clear endpoint

* Fix tests

* Fix test serialization issue

* Add serialization to the other status class just in case

* Fix linting error

* Fix linting violations

* Protect: Add support for displaying file and database threats (#26418)

* [not verified] Add DiffViewer component

* [not verified] Add MarkedLines component

* Add file and database threats to the Protect UI

* Changelog

* Add overflow-x to filename class

* Add overflow-x to .threat-filename

* Update styles.module.scss

Co-authored-by: Miguel Xavier Penha Neto <miguelxpn2@gmail.com>

* Protect: add the ability to ignore threats for paid plan users (#26571)

* [not verified] Add DiffViewer component

* [not verified] Add MarkedLines component

* Add file and database threats to the Protect UI

* Changelog

* [not verified] Add DiffViewer component

* [not verified] Add MarkedLines component

* [not verified] Add file and database threats to the Protect UI

* [not verified] Changelog

* [not verified] Add the ability to ignore threats to Protect

* Update ignore threat warning message

* Changelog

* Add permission callback to ignore threat endpoint

Co-authored-by: Miguel Xavier Penha Neto <miguel.neto@automattic.com>

Co-authored-by: Miguel Xavier Penha Neto <miguel.neto@automattic.com>
Co-authored-by: Miguel Xavier Penha Neto <miguelxpn2@gmail.com>

* Protect: Update product upgrade (#26570)

* Update Protect upgrade product from Security Bundle to Scan and add temporary footer content

* Changelog entry

* Update new threat item CTA to use Scan as upgrade product

* Update Interstitial stories mock data from securityBundle to jetpackScan

* Update remaining securityBundle instances

* Update new pricing page to use Scan as upgrade product

* Update remaining securityBundle instances

* Update Plan class default to use Scan

* Use Plan class in primary Jetpack_Protect class

* Add AdminSectionHero component to pricing page

* Update ThreatsNavigation component to use Scan in hasRequiredPlan check

* Add temporary conditional logic for threat item CTA display

* Use Scan class has_required_plan() method to accurately detect the presence of the Scan module

* Protect: Add paid UI using Scan API data source (#26533)

* [not verified] Add data models for the status and its related extensions and threats

* [not verified] changelog

* [not verified] Fix: use core information from status when generating

* [not verified] Remove extension property from Threat_Model

* [not verified] Remove 'fixer' property from Threat_Model and update 'fixable' property to include fixer information

* [not verified] Minor adjustments to Status_Model properties

* [not verified] Add tests for extension and threat models

* [not verified] Make set_vulnerabilities a public method so it can be useful in implementation

* Fix sample vulnerability type

* changelog

* [not verified] Add data models for the status and its related extensions and threats

* [not verified] changelog

* [not verified] Fix: use core information from status when generating

* [not verified] Remove extension property from Threat_Model

* [not verified] Remove 'fixer' property from Threat_Model and update 'fixable' property to include fixer information

* [not verified] Minor adjustments to Status_Model properties

* [not verified] Add tests for extension and threat models

* [not verified] Make set_vulnerabilities a public method so it can be useful in implementation

* [not verified] Fix sample vulnerability type

* [not verified] changelog

* [not verified] Update use of 'vulnerability' naming to more generic 'threat' convention

* [not verified] Update additional uses of 'vulnerability' naming to more generic 'threat' convention

* [not verified] changelog

* [not verified] Fix property name capitalization

* [not verified] Add Scan API as a data source in Protect

* Default checked to true for Scan API results, for now

* Fix PHPDoc for class property

* changelogs

* Move cache functionality to parent Status class, and cache Scan_Status API calls

* Fix implementation of Jetpack_Plan class

* Ensure Jetpack_Plan class exists before calling static supports() method

* Add REST API endpoint to remotely clear the Scan API cache

* Reduce cache duration to 5 minutes for the Scan API data source

* Add scan results to Protect debug helper module

* Fix: filename threat property name

* Fix: add missing threat count incrementations

* Fix: check for filename instead of file property

* Introduce separation between free and paid threats-lists components

* Update ThreatsList components to apply conditional UI changes based on plan requirements

* Correct path for useThreatsList import

* Reverse logic on required plan check

* Changelog entry

* Optimize ThreatSeverityBadge component functions

* Resolve build issues with optimizations breaking translations

* Update sprintf comment accordingly

* Update PaidList to include source property

* Restore use of constants instead of class properties

* Hook up Scan API data source and fix minor styling and wording issues

* Display fixer buttons conditionally based on fixable property presence, update Auto fix all button to display fixableCount

* Fix Icon span display in mobile when threat is not fixable

* add permission callback for Protect cache clear endpoint

* Update threat header and footer class names

* Update button spacing

* Fix tests

* Add ThreatSeverityBadge component to ignore threat modal

* Improve naming consistency

* Fix threats-list component styling issues

* Add and import dedicated stylesheet for free-accordion component

* Remove addressed to-do comments

* Remove unneeded free-accordion component styles

* Use flexbox for threat list header (#26860)

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Protect: Add ability to manually enqueue scans (#26793)

* [not verified] Add data models for the status and its related extensions and threats

* [not verified] changelog

* [not verified] Fix: use core information from status when generating

* [not verified] Remove extension property from Threat_Model

* [not verified] Remove 'fixer' property from Threat_Model and update 'fixable' property to include fixer information

* [not verified] Minor adjustments to Status_Model properties

* [not verified] Add tests for extension and threat models

* [not verified] Make set_vulnerabilities a public method so it can be useful in implementation

* Fix sample vulnerability type

* changelog

* [not verified] Add data models for the status and its related extensions and threats

* [not verified] changelog

* [not verified] Fix: use core information from status when generating

* [not verified] Remove extension property from Threat_Model

* [not verified] Remove 'fixer' property from Threat_Model and update 'fixable' property to include fixer information

* [not verified] Minor adjustments to Status_Model properties

* [not verified] Add tests for extension and threat models

* [not verified] Make set_vulnerabilities a public method so it can be useful in implementation

* [not verified] Fix sample vulnerability type

* [not verified] changelog

* [not verified] Update use of 'vulnerability' naming to more generic 'threat' convention

* [not verified] Update additional uses of 'vulnerability' naming to more generic 'threat' convention

* [not verified] changelog

* [not verified] Fix property name capitalization

* [not verified] Add Scan API as a data source in Protect

* Default checked to true for Scan API results, for now

* Fix PHPDoc for class property

* changelogs

* Move cache functionality to parent Status class, and cache Scan_Status API calls

* Fix implementation of Jetpack_Plan class

* Ensure Jetpack_Plan class exists before calling static supports() method

* Add REST API endpoint to remotely clear the Scan API cache

* Reduce cache duration to 5 minutes for the Scan API data source

* Add scan results to Protect debug helper module

* Fix: filename threat property name

* Fix: add missing threat count incrementations

* Fix: check for filename instead of file property

* Introduce separation between free and paid threats-lists components

* Update ThreatsList components to apply conditional UI changes based on plan requirements

* Correct path for useThreatsList import

* Reverse logic on required plan check

* Changelog entry

* Optimize ThreatSeverityBadge component functions

* Resolve build issues with optimizations breaking translations

* Update sprintf comment accordingly

* Update PaidList to include source property

* Restore use of constants instead of class properties

* Hook up Scan API data source and fix minor styling and wording issues

* Display fixer buttons conditionally based on fixable property presence, update Auto fix all button to display fixableCount

* Fix Icon span display in mobile when threat is not fixable

* add permission callback for Protect cache clear endpoint

* Update threat header and footer class names

* Update button spacing

* Fix tests

* Add ThreatSeverityBadge component to ignore threat modal

* Improve naming consistency

* Add manual scan functionality

* Changelogger entry

* Update Client wpcom request to blog specific method and remove scan modal

* Fix manualScan link CSS sudo class effects

* Add a scanIsEnqueuing state for the isLoading property of the Scan now button

* Change up manual scan action flow - click, scan enqueuing state true, success notice, refresh status, catch error, scan enqueuing state false

* Fix threats-list component styling issues

* Add and import dedicated stylesheet for free-accordion component

* Remove addressed to-do comments

* Remove unneeded free-accordion component styles

* Use flexbox for threat list header (#26860)

* Address review feedback

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Protect: Add ability to auto-fix threats (#26686)

* [not verified] Add data models for the status and its related extensions and threats

* [not verified] changelog

* [not verified] Fix: use core information from status when generating

* [not verified] Remove extension property from Threat_Model

* [not verified] Remove 'fixer' property from Threat_Model and update 'fixable' property to include fixer information

* [not verified] Minor adjustments to Status_Model properties

* [not verified] Add tests for extension and threat models

* [not verified] Make set_vulnerabilities a public method so it can be useful in implementation

* Fix sample vulnerability type

* changelog

* [not verified] Add data models for the status and its related extensions and threats

* [not verified] changelog

* [not verified] Fix: use core information from status when generating

* [not verified] Remove extension property from Threat_Model

* [not verified] Remove 'fixer' property from Threat_Model and update 'fixable' property to include fixer information

* [not verified] Minor adjustments to Status_Model properties

* [not verified] Add tests for extension and threat models

* [not verified] Make set_vulnerabilities a public method so it can be useful in implementation

* [not verified] Fix sample vulnerability type

* [not verified] changelog

* [not verified] Update use of 'vulnerability' naming to more generic 'threat' convention

* [not verified] Update additional uses of 'vulnerability' naming to more generic 'threat' convention

* [not verified] changelog

* [not verified] Fix property name capitalization

* [not verified] Add Scan API as a data source in Protect

* Default checked to true for Scan API results, for now

* Fix PHPDoc for class property

* changelogs

* Move cache functionality to parent Status class, and cache Scan_Status API calls

* Fix implementation of Jetpack_Plan class

* Ensure Jetpack_Plan class exists before calling static supports() method

* Add REST API endpoint to remotely clear the Scan API cache

* Reduce cache duration to 5 minutes for the Scan API data source

* Add scan results to Protect debug helper module

* Fix: filename threat property name

* Fix: add missing threat count incrementations

* [not verified] Add DiffViewer component

* [not verified] Add MarkedLines component

* Add file and database threats to the Protect UI

* Changelog

* Fix: check for filename instead of file property

* [not verified] Add DiffViewer component

* [not verified] Add MarkedLines component

* [not verified] Add file and database threats to the Protect UI

* [not verified] Changelog

* Introduce separation between free and paid threats-lists components

* Update ThreatsList components to apply conditional UI changes based on plan requirements

* Correct path for useThreatsList import

* Reverse logic on required plan check

* Changelog entry

* Optimize ThreatSeverityBadge component functions

* Resolve build issues with optimizations breaking translations

* Update sprintf comment accordingly

* Update PaidList to include source property

* Restore use of constants instead of class properties

* Hook up Scan API data source and fix minor styling and wording issues

* Display fixer buttons conditionally based on fixable property presence, update Auto fix all button to display fixableCount

* Fix Icon span display in mobile when threat is not fixable

* add permission callback for Protect cache clear endpoint

* [not verified] Add the ability to ignore threats to Protect

* Update threat header and footer class names

* Update button spacing

* Fix tests

* Update ignore threat warning message

* Changelog

* Fix test serialization issue

* Add serialization to the other status class just in case

* Fix linting error

* Fix linting violations

* Protect: Add support for displaying file and database threats (#26418)

* [not verified] Add DiffViewer component

* [not verified] Add MarkedLines component

* Add file and database threats to the Protect UI

* Changelog

* Add overflow-x to filename class

* Add overflow-x to .threat-filename

* Update styles.module.scss

Co-authored-by: Miguel Xavier Penha Neto <miguelxpn2@gmail.com>

* Add permission callback to ignore threat endpoint

* [not verified] Add initial server side functionality for fixing threats

* [not verified] Add ability to fix individual threats on the front end

* Add permission callback for fix threat api

* Fix fix_threat action

* Add ThreatSeverityBadge component to ignore threat modal

* Improve naming consistency

* Show modal asking for credentials when trying to fix if no credential is set

* Implement fix all modal

* Fix styling

* Remove duplicated siteSuffix

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Return false if response parsing fails

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Fix wrong docblock

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Add second parameter to useEffect dependency array

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Change return to boolean for consistency sake

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Fix syntax

* Fix passing of threatList props to modal, and add JSDoc block for setModal action

* Fix error from resolving merge conflicts

* Remove duplicate fixer and scan buttons left over from merge conflict

* Add credentials loading handling and indicator to fix all threats modal.

* Move credentials checks into a reusable component

* Poll for fixer status after triggering an auto-fix

* use async promise for fixer status check

* Fix missing dispatch call

* Decode response from fix threats endpoint

* Adjust styling of threat fix headers

* Add API endpoint to send a GET request to WPCOM fixer endpoint

* Use new fix-threats-status endpoint in getFixThreatsStatus()

* Fix button position in case of long threat header title

* Fix PHPCS linting issues

* Do not resolve in progress threats promise to prevent status refresh before threats are fixed

* Include 'unavailable' credentials status in the credentials needed check

* Add scan button to summary when no threat list is shown

* Add mobile styles for scan button in summary

* Remove use of data param from GET apiFetch request

* SCSS syntax error fix

* Fix button width on desktop

* Add threat IDs via the query string when sending a GET request

* Add success message when threats have been fixed

* Remove hard-coded threat count amount

* Clear the cache after checking for threat fix status

* Add a ?hard-refresh option to the status API endpoint, so the app can request fresh data

* [not verified] Revert "Add a ?hard-refresh option to the status API endpoint, so the app can request fresh data"

This reverts commit 94bd744308fa6dd3a5d6fe3739be90e848f9b0f8.

* Fix button styles

* Poll status until scanning begins after triggering a manual scan

* Poll credentials as long as the credentials-needed-modal is open

* Poll for credentials while the credentials-needed modal is open

* Poll for credentials while the credentials-needed modal is open

* Add key prop to mapped ThreatFixHeader

* Validate that all threats were fixed in getFixThreatsStatus()

* Move useCredentialState() hook into the AdminPage so it doesn't run when disconnected

* Hard reload (no cache) status when polling until scanning

* Hard reload (no cache) status when polling

* Remove 'in_progress' from scanning check, as that is only applicable to the Protect Status data source

* Show loading spinner when an auto-fix is in progress

Co-authored-by: dkmyta <dkmyta10@gmail.com>
Co-authored-by: Miguel Xavier Penha Neto <miguel.neto@automattic.com>
Co-authored-by: Miguel Xavier Penha Neto <miguelxpn2@gmail.com>

* Clear both protect and scan cache on ?hard_refresh status requests

* Fix credentials polling

* Add READMEs for CredentialsGate, Modal, and Notice components

* Continue polling status until lastChecked has a value

* Protect: Add user connection gate for applicable actions (#26909)

* [not verified] Add data models for the status and its related extensions and threats

* [not verified] changelog

* [not verified] Fix: use core information from status when generating

* [not verified] Remove extension property from Threat_Model

* [not verified] Remove 'fixer' property from Threat_Model and update 'fixable' property to include fixer information

* [not verified] Minor adjustments to Status_Model properties

* [not verified] Add tests for extension and threat models

* [not verified] Make set_vulnerabilities a public method so it can be useful in implementation

* Fix sample vulnerability type

* changelog

* [not verified] Add data models for the status and its related extensions and threats

* [not verified] changelog

* [not verified] Fix: use core information from status when generating

* [not verified] Remove extension property from Threat_Model

* [not verified] Remove 'fixer' property from Threat_Model and update 'fixable' property to include fixer information

* [not verified] Minor adjustments to Status_Model properties

* [not verified] Add tests for extension and threat models

* [not verified] Make set_vulnerabilities a public method so it can be useful in implementation

* [not verified] Fix sample vulnerability type

* [not verified] changelog

* [not verified] Update use of 'vulnerability' naming to more generic 'threat' convention

* [not verified] Update additional uses of 'vulnerability' naming to more generic 'threat' convention

* [not verified] changelog

* [not verified] Fix property name capitalization

* [not verified] Add Scan API as a data source in Protect

* Default checked to true for Scan API results, for now

* Fix PHPDoc for class property

* changelogs

* Move cache functionality to parent Status class, and cache Scan_Status API calls

* Fix implementation of Jetpack_Plan class

* Ensure Jetpack_Plan class exists before calling static supports() method

* Add REST API endpoint to remotely clear the Scan API cache

* Reduce cache duration to 5 minutes for the Scan API data source

* Add scan results to Protect debug helper module

* Fix: filename threat property name

* Fix: add missing threat count incrementations

* [not verified] Add DiffViewer component

* [not verified] Add MarkedLines component

* Add file and database threats to the Protect UI

* Changelog

* Fix: check for filename instead of file property

* [not verified] Add DiffViewer component

* [not verified] Add MarkedLines component

* [not verified] Add file and database threats to the Protect UI

* [not verified] Changelog

* Introduce separation between free and paid threats-lists components

* Update ThreatsList components to apply conditional UI changes based on plan requirements

* Correct path for useThreatsList import

* Reverse logic on required plan check

* Changelog entry

* Optimize ThreatSeverityBadge component functions

* Resolve build issues with optimizations breaking translations

* Update sprintf comment accordingly

* Update PaidList to include source property

* Restore use of constants instead of class properties

* Hook up Scan API data source and fix minor styling and wording issues

* Display fixer buttons conditionally based on fixable property presence, update Auto fix all button to display fixableCount

* Fix Icon span display in mobile when threat is not fixable

* add permission callback for Protect cache clear endpoint

* [not verified] Add the ability to ignore threats to Protect

* Update threat header and footer class names

* Update button spacing

* Fix tests

* Update ignore threat warning message

* Changelog

* Fix test serialization issue

* Add serialization to the other status class just in case

* Fix linting error

* Fix linting violations

* Protect: Add support for displaying file and database threats (#26418)

* [not verified] Add DiffViewer component

* [not verified] Add MarkedLines component

* Add file and database threats to the Protect UI

* Changelog

* Add overflow-x to filename class

* Add overflow-x to .threat-filename

* Update styles.module.scss

Co-authored-by: Miguel Xavier Penha Neto <miguelxpn2@gmail.com>

* Add permission callback to ignore threat endpoint

* [not verified] Add initial server side functionality for fixing threats

* [not verified] Add ability to fix individual threats on the front end

* Add permission callback for fix threat api

* Fix fix_threat action

* Add ThreatSeverityBadge component to ignore threat modal

* Improve naming consistency

* Show modal asking for credentials when trying to fix if no credential is set

* Implement fix all modal

* Fix styling

* Remove duplicated siteSuffix

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Return false if response parsing fails

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Fix wrong docblock

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Add second parameter to useEffect dependency array

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Change return to boolean for consistency sake

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Fix syntax

* Fix passing of threatList props to modal, and add JSDoc block for setModal action

* Fix error from resolving merge conflicts

* Remove duplicate fixer and scan buttons left over from merge conflict

* Add credentials loading handling and indicator to fix all threats modal.

* Move credentials checks into a reusable component

* Poll for fixer status after triggering an auto-fix

* use async promise for fixer status check

* Fix missing dispatch call

* Decode response from fix threats endpoint

* Adjust styling of threat fix headers

* Add API endpoint to send a GET request to WPCOM fixer endpoint

* Use new fix-threats-status endpoint in getFixThreatsStatus()

* Fix button position in case of long threat header title

* Fix PHPCS linting issues

* Do not resolve in progress threats promise to prevent status refresh before threats are fixed

* Include 'unavailable' credentials status in the credentials needed check

* Add scan button to summary when no threat list is shown

* Add mobile styles for scan button in summary

* Remove use of data param from GET apiFetch request

* SCSS syntax error fix

* Fix button width on desktop

* Add threat IDs via the query string when sending a GET request

* Add success message when threats have been fixed

* Remove hard-coded threat count amount

* Clear the cache after checking for threat fix status

* Add a ?hard-refresh option to the status API endpoint, so the app can request fresh data

* [not verified] Revert "Add a ?hard-refresh option to the status API endpoint, so the app can request fresh data"

This reverts commit 94bd744308fa6dd3a5d6fe3739be90e848f9b0f8.

* Fix button styles

* Poll status until scanning begins after triggering a manual scan

* Poll credentials as long as the credentials-needed-modal is open

* Poll for credentials while the credentials-needed modal is open

* Poll for credentials while the credentials-needed modal is open

* Introduce and apply a user connection gate to all actions that require it

* Changelogger entry

* Add key prop to mapped ThreatFixHeader

* Validate that all threats were fixed in getFixThreatsStatus()

* Move useCredentialState() hook into the AdminPage so it doesn't run when disconnected

* Hard reload (no cache) status when polling until scanning

* Hard reload (no cache) status when polling

* Remove 'in_progress' from scanning check, as that is only applicable to the Protect Status data source

* Show loading spinner when an auto-fix is in progress

* Update key prop for mapped ThreatFixHeader

* Remove unused CSS

* Fix regression in wording

Co-authored-by: Nate Weller <nate.weller@automattic.com>
Co-authored-by: Miguel Xavier Penha Neto <miguel.neto@automattic.com>
Co-authored-by: Miguel Xavier Penha Neto <miguelxpn2@gmail.com>

* Protect: Update "Don't worry about a thing" messaging when no threats are known (#26954)

* Change credentials check to use the /scan endpoint and verify the credentials array (#26944)

* Change credentials check to use the /scan endpoint and verify the credentials array

* Update logic in the credentials-needed-modal

* Fix names and change default selector type

* Ensure credentials array is not empty when validating if credentials exist

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Protect: Sync user data (#26966)

* Include the Users sync module in the initial sync

* Changelogger entry

* Add siteProductAvailabilityHandler() to checkout flow hook

* Protect: Calculate threat counts on the client side (#27011)

* Add action for clearing notices

* Protect: Check for required plan after site connection during upgrade flow (#27031)

* Add siteProductAvailabilityHandler() to checkout flow hook
* Fix redirect url used by useProductCheckoutWorkflow

* Add SCAN_STARTED action and update manual scan flow

* Remove unneeded status polling function, and update state status property

* Remove lastChecked property to immediately trigger in-progress display

* Rename action for better understanding, add timeouts so success notice is rendered and dismissed before further actions are taken

* Add action for clearing notices (#27036)

* Adjust START_SCAN_OPTIMISTICALLY action to no longer change lastChecked prop, and update in-progress display conditional to additionally consider status

* Use null as a default value for credentials so we can determine if they have been fetched yet (#27074)

* Remove outdated TO DO comment

* Introduce a current scan progress bar within the in-progress display

* Protect: Refresh plan data after returning from checkout (#27041)

* Protect: Improve manual scan flow (#27042)

* Fix build string literal translation optimization issues

* Manually reset automatic changes to classnames and prop-types package versions set in main pnpm-lock.yaml

* Update comments and CSS class names

* Update ProgressBar component import path

* Use src directory for ProgressBar component import

* Revert previous changes to component import path

* Protect: Update and use ThemeProvider colors instead of hex values (#27174)

* Abandon @automattic/components ProgressBar in favor of a custom Protect component

* Add progress transition animation

* Protect: Use --spacing-base property for layout and positioning styles (#27175)

* Update pnpm-lock.yaml

* Add component stories

* Add aria attributes for accessibility and set upper value limitations

* Update ProtectProgressBar component property names

* Generalize component naming

* Add spacing variable comments

* Delete add-protect-theme-provider-colors

* Delete add-protect-model-classes

* Delete add-ignore-threats

* Delete add-protect-file-database-threats

* Delete add-protect-manual-scans

* Delete add-protect-model-classes

* Delete add-protect-paid-ui

* Delete add-protect-scan-api-data-source

* Delete add-protect-sync-user-data

* Delete add-protect-user-connection-gate

* Delete update-protect-footer-designs

* Delete update-protect-pricing-page

* Delete update-protect-product-upgrade

* Delete update-protect-vulnerability-list-cta

* Delete update-protect-vulnerability-vs-threat-naming

* Remove outdated comment

* Fix typo

* Update ProgressBar check to consider null

Co-authored-by: Nate Weller <nate.weller@automattic.com>

* Fix errors

* Remove conditional spinner text

* Add and apply setStatusProgress action within useStatusPolling when a scan remains scheduled or in progress

* Update startScanOptimistically action to set currentProgress to 0 so progress bar renders immediately

* changelog

* Fix project version

* Minor adjustments to Progress Bar component

Co-authored-by: Nate Weller <nate.weller@automattic.com>
Co-authored-by: Miguel Xavier Penha Neto <miguelxpn2@gmail.com>
Co-authored-by: Miguel Xavier Penha Neto <miguel.neto@automattic.com>

* Stats: Make Odyssey Stats toggle visible for all (#28105)

* My Jetpack: modify secondary admin view (#28114)

* Add connection owner line and remove site connection manage link

* changelog

* update tests

* remove unused onclick and actiontext

* My Jetpack: Move Search out of hybrid concept (#28113)

* My Jetpack: Move search out of hybrid and include tests

* My Jetpack: Mark Hybrid_Product class as deprecated

* changelog

* My Jetpack: Update comment on hybrid_product

* Revert Revert Add review prompt for social plugin (#28072)

Co-authored-by: CodeyGuyDylan <dylan.munson@automattic.com>

* Revert "Add new i18n fonts and rename them via filter" (#28122)

Co-authored-by: Samiff <samiff@users.noreply.github.com>

* Jetpack 11.7 testing instructions (#28098)

Co-authored-by: Yaroslav Kukharuk <i.kukharuk@gmail.com>

* Jetpack/Backup/Social: Init new cycles and backport changelogs (#28136)

* Backup: Updating Backup readme for 1.4.3-beta release (#28137)

* Social: Updating Social readme for 1.6.0-beta release (#28138)

* CLI: Update Jetpack Package Generate Command (#27918)

Co-authored-by: Samiff <samiff@users.noreply.github.com>

* WAF: Move rule files directory to the WAF wp-content directory (#28049)

* Protect: Remove unused productData state variable (#28092)

* Protect: Fix success message grammar when only one threat was fixed (#28091)

* Site Settings API: Expose `page_for_posts` option (#28096)

* [not verified] Settings API: Expose 'page_for_posts' option

* [not verified] changelog

* Blaze: Only show promote in post list for published posts. (#28139)

* Blaze: Only show promote post row on published posts.

* changelog

* fix changelog version

Co-authored-by: Derek Smart <dsmart@dsmart-mbp.lan>

* VideoPress: re implement useResumableUploader(). Avoid unneeded jwt-upload request (#28135)

* [not verified] initial refactoring

* [not verified] rename data with uploadingData

* [not verified] types

* [not verified] populate data with id, guid and src once uploaded

* [not verified] expose video media data

* [not verified] check isDone when onProgress

* [not verified] fix checking initial status

* [not verified] add upload-jwt option to getMediaToken lib

* [not verified] use getMediaToken(). Get rid of getJWT()

* [not verified] enum uploading status

* [not verified] better error hanlding when getting media token

* improve useResumableUploader() using async/await

* [not verified] simplify getting upload tokens

* [not verified] rollback using typs instead of enum for status

* [not verified] tidy types. set resumable object actions

* [not verified] videopress-upload use useResumableUploader() hook

* [not verified] fix GUID import

* [not verified] fix useVideoData() types

* [not verified] changelog

* rename types for VideoId and VideoGuid

* fix default value of media data

* move and create resumableFileUploader() helper

* VideoGUID > VideoGuid (do not change on this PR)

* rollbackl usinf debug() in getMediaToken()

* update changelog

* Update projects/packages/videopress/src/client/block-editor/blocks/video/components/videopress-uploader/index.js

Co-authored-by: Luiz Kowalski <lhkowalski@gmail.com>

* fix importing resumable hook. Fix var typo

* bump new version

* Update projects/packages/videopress/src/client/hooks/use-resumable-uploader/index.ts

Co-authored-by: Luiz Kowalski <lhkowalski@gmail.com>

* Update projects/packages/videopress/src/client/hooks/use-resumable-uploader/index.ts

Co-authored-by: Luiz Kowalski <lhkowalski@gmail.com>

* Update projects/packages/videopress/src/client/hooks/use-resumable-uploader/index.ts

Co-authored-by: Luiz Kowalski <lhkowalski@gmail.com>

* fix var name typo bug

Co-authored-by: Luiz Kowalski <lhkowalski@gmail.com>

* Releasing new version of Blaze package (#28148)

* Fix export modal connect link (#28147)

* oEmbed: Add iCloud Keynote URL scheme (#28067)

* [not verified] oEmbed: Add new URL scheme for iCloud Keynote

* [not verified] changelog

* [not verified] Shortcodes: Increase timeout for new Apple oEmbed to 10 seconds

* [not verified] Shortcodes: Removed oEmbed todo comment to just above filter call

* [not verified] Shortcodes: Add test for new http request timeout for iCloud embed

* Shortcodes: Add test for new http request timeout for iCloud embed

* Jetpack: Fix export modal nonces (#28152)

* Blaze: update wording for the Post list link (#28155)

Co-authored-by: Derek Smart <smart@automattic.com>

* Remove Jetpack Blocks section from At a Glance page (#28153)

* Remove Jetpack Blocks section from At A Glance

* changelog

* VideoPress: Fix minors TS issues in use video data hooks (#28143)

* [not verified] ts enhancements in useSyncMedia hooks

* [not verified] improve readme doc

* changelog

* Licensing: Fix issue in activate license key button not working. (#28014)

* Remove useEffect in ActivationScreen component that sets the JP Rest API root and nonce.

* changelog

* Bump Licensing package version.

* Releasing second new version of Blaze package during 11.7 beta period (#28161)

* VideoPress: update libs used to upload a video in the dashboard context (#28163)

* update libs to upload a video in dashboard

* changelog

* rename instance to handle uploading file

* VideoPress: add Replace control video block (#28162)

* [not verified] Add replace control - first approach

* [not verified] connect replace control with uploader component

* [not verified] register ajax admin types

* fix getting guid when selecting from library

* minor debug() log changes

* export AdminAjaxQueryAttachmentsResponseItemProps

* changelog

* Update dependency @testing-library/dom to v8.19.1 (#28128)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update dependency @types/jest to v29.2.5 (#28129)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

Signed-off-by: Adnan Haque <adnan007.id@gmail.com>
Co-authored-by: Adnan Haque <eAdnan007@users.noreply.github.com>
Co-authored-by: Mark George <thingalon@gmail.com>
Co-authored-by: Artur Piszek <artur.piszek@automattic.com>
Co-authored-by: brent <brent@n3f.com>
Co-authored-by: Fabien MILLERAND <fab@millerf.com>
Co-authored-by: Brent Nef <nef@a8c.com>
Co-authored-by: Matías Ventura <mv@matiasventura.com>
Co-authored-by: Matias Ventura <matias@automattic.com>
Co-authored-by: MILLER/F <millerf@automattic.com>
Co-authored-by: Kuba Birecki <kuba.birecki@crystalplanet.io>
Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
Co-authored-by: Brandon Kraft <public@brandonkraft.com>
Co-authored-by: thingalon <mark@thingalon.com>
Co-authored-by: Gabriel Demichelis <gabrieldemichelis@gmail.com>
Co-authored-by: Candy Tsai <candy02058912@gmail.com>
Co-authored-by: valterlorran <valterlorran@hotmail.com>
Co-authored-by: Valter Lorran <valter.lorran@automattic.com>
Co-authored-by: jcheringer <jcheringer@users.noreply.github.com>
Co-authored-by: Karen Attfield <karenlattfield@gmail.com>
Co-authored-by: Christian Gastrell <cgastrell@gmail.com>
Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
Co-authored-by: Douglas Henri <dhasilva@users.noreply.github.com>
Co-authored-by: Derek Smart <dsmart@dsmart-mbp.lan>
Co-authored-by: Siobhan Bamber <siobhan@automattic.com>
Co-authored-by: Damián Suárez <rdsuarez@gmail.com>
Co-authored-by: Steve D <33553323+sdixon194@users.noreply.github.com>
Co-authored-by: Mikael Korpela <mikael@ihminen.org>
Co-authored-by: Luiz Kowalski <lhkowalski@gmail.com>
Co-authored-by: Bogdan Ungureanu <bogdanungureanu21@gmail.com>
Co-authored-by: Mat Clayton <mat@mixcloud.com>
Co-authored-by: Derek Smart <smart@automattic.com>
Co-authored-by: jboland88 <18016357+jboland88@users.noreply.github.com>
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
Co-authored-by: Jasper Kang <jasper.kang@automattic.com>
Co-authored-by: Maciej Grabowski <mashikag@users.noreply.github.com>
Co-authored-by: Nate Weller <nate.weller@automattic.com>
Co-authored-by: Renato Augusto Gama dos Santos <renato_0603@hotmail.com>
Co-authored-by: Igor Zinovyev <zinigor@gmail.com>
Co-authored-by: Dylan Munson <65001528+CodeyGuyDylan@users.noreply.github.com>
Co-authored-by: Alvaro Vega <alvaro.vega@automattic.com>
Co-authored-by: dkmyta <43220201+dkmyta@users.noreply.github.com>
Co-authored-by: Miguel Xavier Penha Neto <miguelxpn2@gmail.com>
Co-authored-by: Miguel Xavier Penha Neto <miguel.neto@automattic.com>
Co-authored-by: Jason Moon <4044428+jsnmoon@users.noreply.github.com>
Co-authored-by: CodeyGuyDylan <dylan.munson@automattic.com>
Co-authored-by: Samiff <samiff@users.noreply.github.com>
Co-authored-by: Yaroslav Kukharuk <i.kukharuk@gmail.com>
Co-authored-by: Eric Binnion <ericbinnion@gmail.com>
Co-authored-by: James Kenneth Guidaven <jkguidaven@gmail.com>
Co-authored-by: Calypso Bot <sysops+ghmatticbot@automattic.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
jeherve added a commit that referenced this pull request Jan 4, 2023
Since the extension was extracted from the Jetpack and into a package in #28062, the panel gets registered outside of the traditional Jetpack setup. It does not rely on that extension list, and will be registered regardless of the settings there. We can consequently remove the item from the list with no consequences.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Extension] Blaze [Extension] Post Publish Promote Post Panel [Package] Promote Posts [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants