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 5858f1e commit bc65801
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export default function PublicizeForm( {
const hasInstagramConnection = connections.some(
connection => connection.service_name === 'instagram-business'
);

const { showShareLimits, numberOfSharesRemaining } = useSelect( select => {
return {
showShareLimits: select( socialStore ).showShareLimits(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
p.auto-share-title {
font-weight: 600;
text-transform: uppercase;
}
}

0 comments on commit bc65801

Please sign in to comment.