Skip to content

Commit

Permalink
Jetpack Social | Warn the user that their scheduled posts won't get s…
Browse files Browse the repository at this point in the history
…hared if they will get over limits. (#34183)

* Enhance RecordBarMeter component with `className`

* Add changelog

* Add store types

* Update store selectors and actions

* Update consumer hook to use new selectors

* Create useShareLimits hook

* Move `ShareCounter` to publicize-components and name it `ShareLimitsBar`

* Create separate notice components

* Fix the post editor notices

* Update Jetpack Social admin page to use the new meter bar

* Remove unused code left after #34111

* Add changelog

* Fix share count

* Update index.js

* Include active connections count for notices

* Fix i18n build error

* Enhance RecordBarMeter component with `className`

* Add changelog

* Extract constants and improve types

* Extract messages to utility function

* Enhance RecordBarMeter component with `className`

* Add changelog

* Fix up versions

* Revert "Remove unused code left after #34111"

This reverts commit ca45999.

* Use @wordpress/element instead of react

* Fix messaging

* Let TS infer type

* Combine the share limits logic into a single useSelect call

* Fix the limits shown even after a paid plan
  • Loading branch information
manzoorwanijk committed Dec 13, 2023
1 parent 0c1049d commit e7e26dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function getMustReauthConnections( state ) {
*
* @param {import("../types").SocialStoreState} state - State object.
*
* @returns {Array} List of enabled connections.
* @returns {Array<import("../types").Connection>} List of enabled connections.
*/
export function getEnabledConnections( state ) {
return getConnections( state ).filter( connection => connection.enabled );
Expand Down

0 comments on commit e7e26dc

Please sign in to comment.