You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(newspack-ui): standardize snackbars + accessible notices
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(newspack-ui): add ghost-dark button variant
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* refactor(newspack-ui): rename modal-width vars to width tokens
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(newspack-ui): refine snackbar layout, motion and error icon
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat(newspack-ui): snackbar type cues and review fixes
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(newspack-ui): address Copilot review feedback
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(newspack-ui): add elevation 2 to snackbar items
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
'type' => 'success', // Severity; drives the ARIA announcement politeness ('error' assertive, else polite), the type icon, and the [data-type] styling.
84
106
'id' => uniqid(),
85
107
'autohide' => true, // If false, the notice will have a close button.
86
108
'active_on_load' => true, // Whether the notice should be visible on page load.
Copy file name to clipboardExpand all lines: plugins/newspack-plugin/includes/plugins/woocommerce-subscriptions/group-subscription/class-group-subscription-invite.php
+12-35Lines changed: 12 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -863,49 +863,26 @@ public static function render_invite_notice() {
863
863
}
864
864
865
865
$messages = [
866
-
'link_invalid' => [
867
-
'message' => __( 'This link is no longer valid. Please contact the group manager.', 'newspack-plugin' ),
868
-
'type' => 'error',
869
-
],
870
-
'link_full' => [
871
-
'message' => __( 'This group already has the maximum number of members. Please contact the group manager.', 'newspack-plugin' ),
872
-
'type' => 'error',
873
-
],
874
-
'link_failed' => [
875
-
'message' => __( "We couldn't add you to the group. Please contact the group manager.", 'newspack-plugin' ),
876
-
'type' => 'error',
877
-
],
878
-
'login_needed' => [
879
-
'message' => __( 'Please log in or register an account to join the group.', 'newspack-plugin' ),
'error_email_mismatch' => __( 'This invitation is for a different email address.', 'newspack-plugin' ),
872
+
'error_invite_invalid' => __( 'Invalid or expired invitation.', 'newspack-plugin' ),
873
+
'error_registration_failed' => __( 'Could not create your account. Please try again.', 'newspack-plugin' ),
898
874
];
899
875
900
876
if ( 'success' === $result ) {
901
877
$message = __( 'You have successfully joined the group!', 'newspack-plugin' );
902
878
$type = 'success';
903
879
} else {
904
-
$message = ! empty( $messages[ $result ]['message'] ) ? $messages[ $result ]['message'] : __( 'There was a problem with your invitation.', 'newspack-plugin' );
Copy file name to clipboardExpand all lines: plugins/newspack-plugin/includes/plugins/woocommerce/my-account/templates/v1/group-subscription-members.php
0 commit comments