Conversation
…d native share functionality - Added a new `post-sharing.php` template for displaying sharing options. - Created `PostSharing.js` class to handle copy and share actions, including user feedback. - Introduced SCSS styles for the post sharing buttons and their states. - Updated language files to include new strings for sharing actions. - Added SVG icons for copy and share actions. - Integrated the new component into the main JavaScript and SCSS files.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cb3ac16. Configure here.
Remove the hidden attribute so aria-live can announce feedback; rely on sr-only for visual hiding.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Résumé
Ajout d’un composant de partage d’article moderne, sans dépendre des réseaux sociaux tiers :
navigator.shareest indisponible, le bouton copie reste affiché sur mobileFichiers principaux
components/parts/common/post-sharing.phpdata-*pour les messages JS)src/js/classes/PostSharing.jssrc/scss/05-components/_post-sharing.scsssrc/img/icons/sprite/{link,share,check-circle}.svglanguages/*Utilisation
i18n
Pas de traduction JS : les libellés dynamiques (succès / erreurs) sont passés en
data-*depuis le PHP (esc_attr__), commeurlettitle. Les labels visibles utilisentesc_html__.Accessibilité
type="button"role="status"+aria-live="polite"(sr-only)AbortError) non traitée comme une erreurPlan de test
languages/fr_FR.poNote
Low Risk
Front-end-only sharing UI using clipboard and Web Share APIs; no server-side or security-sensitive logic.
Overview
Adds a post sharing UI that avoids third-party social widgets: copy link on larger viewports (Clipboard API) and native share on small screens (Web Share API), with copy shown on mobile when
navigator.shareis missing.The PHP partial outputs buttons, icons, and passes translated success/error strings via
data-*attributes forPostSharing.js, which handles copy feedback (label/icon swap, ~3s reset), share vianavigator.share, androle="status"announcements. Styles control desktop/mobile button visibility and the--no-native-sharefallback.Also adds link, share, and check-circle sprite icons, wires the component into the main JS/SCSS bundles, and refreshes POT / fr_FR strings (including unrelated catalog line updates).
logo-beapi.svgis removed from the sprite set.Reviewed by Cursor Bugbot for commit 9923ea3. Bugbot is set up for automated code reviews on this repo. Configure here.