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

Drawer update #252

Merged
merged 60 commits into from
Apr 12, 2023
Merged
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
ca578b9
dashboard notices fix
erikyo Apr 5, 2023
898cdda
fixes drawer shadow position - #182
erikyo Apr 6, 2023
44adecc
overlays with the bell icon the drawer when is active - ref #191
erikyo Apr 6, 2023
fa8e67b
fix wrong date for new notifications
erikyo Apr 6, 2023
d92fba9
drawer wip
erikyo Apr 6, 2023
baf93d9
Merge remote-tracking branch 'erik/develop' into ui/drawer
erikyo Apr 7, 2023
b443e62
wip - drawer as a React component
erikyo Apr 7, 2023
8eee44d
Registers the drawer differently from the "notification areas"
erikyo Apr 7, 2023
98b3874
add Notification type // johnhooks
johnhooks Apr 7, 2023
2fd86f1
Merge remote-tracking branch 'erik/develop' into ui/drawer
erikyo Apr 7, 2023
ae439f4
Merge remote-tracking branch 'erik/develop' into ui/drawer
erikyo Apr 7, 2023
c582434
feature: type store
johnhooks Apr 7, 2023
bfa8154
fix: stash issues
johnhooks Apr 7, 2023
8c20c4d
feature: type redux store (#9)
johnhooks Apr 7, 2023
1af942e
Merge remote-tracking branch 'john/ui/drawer-suggestions' into ui/drawer
erikyo Apr 7, 2023
098d520
feature: type components
johnhooks Apr 8, 2023
9069727
fix: revert changes
johnhooks Apr 8, 2023
1164a27
fix: pass NoticeAction the correct props
johnhooks Apr 8, 2023
bd58026
notification Hub Component
erikyo Apr 8, 2023
4c796bb
js utils functions updated
erikyo Apr 8, 2023
30fec31
Notice component updated
erikyo Apr 8, 2023
e352ffc
updated style to match the new components
erikyo Apr 8, 2023
245033a
init updated
erikyo Apr 8, 2023
54a65ca
Merge remote-tracking branch 'john/ui/drawer-suggestions' into ui/drawer
erikyo Apr 8, 2023
7d9321d
solving merge conflicts // duplicated code
erikyo Apr 8, 2023
864a7b1
fix: remove second dashboard message
johnhooks Apr 8, 2023
b9b94a7
enables again focus/blur to show the drawer with keyboard
erikyo Apr 8, 2023
d9e2fd3
dashboard notices style cleanup
erikyo Apr 8, 2023
f83bc18
chore: improve tsconfig.json
johnhooks Apr 8, 2023
dafa99f
fix: types/global.d.ts
johnhooks Apr 8, 2023
794c3cd
consolidate Notices components
erikyo Apr 8, 2023
8078908
changes the sorting function and getNotices return types
erikyo Apr 8, 2023
7630241
changes the "generic" function getSorted into something more specific…
erikyo Apr 8, 2023
91853aa
reactor: update notice dates and ids
johnhooks Apr 9, 2023
b8b0959
refactor: fake notices id ordering
johnhooks Apr 9, 2023
6b3568a
adds stylelint
erikyo Apr 9, 2023
3d177f3
style optimization + lint
erikyo Apr 9, 2023
ecba2f6
Merge remote-tracking branch 'erik/ui/drawer' into ui/drawer
erikyo Apr 9, 2023
12df683
demo metabox: adds some defaults values (fix empty user new notices)
erikyo Apr 9, 2023
d32df7d
fix the function that splits notices by date
erikyo Apr 9, 2023
df0838c
updated drawer
erikyo Apr 9, 2023
518d4f6
fix: spread of fake notice dates
johnhooks Apr 9, 2023
2f25f2b
refactor: remove acceptLink external url
johnhooks Apr 9, 2023
a2b80cd
avoids to hide the bell icon (and the drawer) on mobile
erikyo Apr 9, 2023
ad7a77d
drawer responsive style
erikyo Apr 9, 2023
bcff3ef
fixes (click outside to close and splitByDate types)
erikyo Apr 9, 2023
c92b3f6
Drawer style
erikyo Apr 10, 2023
3c7c77d
add resize handle to drawer
erikyo Apr 10, 2023
bb3b7a9
chore: remove unnecessary file
johnhooks Apr 10, 2023
eae8b0f
fix: style and script registered path
johnhooks Apr 10, 2023
859e1e6
better way to handle undisplayed notification
erikyo Apr 10, 2023
0fc5451
Merge remote-tracking branch 'erik/ui/drawer' into ui/drawer
erikyo Apr 10, 2023
f1bf2aa
fix: notice dismiss
johnhooks Apr 10, 2023
9a62825
fix: use scss right
johnhooks Apr 10, 2023
0a0459e
updated imports
erikyo Apr 10, 2023
54c7b2b
Update src/scripts/components/Notice.js
erikyo Apr 10, 2023
7e10435
feature(utils): add nowInSeconds
johnhooks Apr 10, 2023
2a95093
Merge branch 'develop' into ui/drawer
erikyo Apr 12, 2023
74f08f1
solves merge issues
erikyo Apr 12, 2023
605a00e
updates "notify" to "notifications"
erikyo Apr 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions includes/demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function admin_bar_item( WP_Admin_Bar $wp_admin_bar ) {
/**
* Adds WP Notify area at the top of the dashboard
erikyo marked this conversation as resolved.
Show resolved Hide resolved
*/
function wp_notify_admin_notice() {
function admin_notice() {
echo '<div id="wp-notification-dashboard" class="wrap"></div>';
}
add_action( 'admin_notices', '\WP\Notifications\admin_notice' );
Expand All @@ -49,8 +49,8 @@ function enqueue_admin_assets() {
wp_enqueue_style( 'wp_notifications' );

/* Load scripts */
$asset = include WP_FEATURE_NOTIFICATION_PLUGIN_DIR . '/build/wp-notify.asset.php';
wp_register_script( 'wp_notifications', WP_FEATURE_NOTIFICATION_PLUGIN_DIR_URL . '/build/wp-notificationss.js', $asset['dependencies'], WP_FEATURE_NOTIFICATION_PLUGIN_VERSION, true );
$asset = include WP_FEATURE_NOTIFICATION_PLUGIN_DIR . '/build/wp-notifications.asset.php';
wp_register_script( 'wp_notifications', WP_FEATURE_NOTIFICATION_PLUGIN_DIR_URL . '/build/wp-notifications.js', $asset['dependencies'], WP_FEATURE_NOTIFICATION_PLUGIN_VERSION, true );
wp_enqueue_script( 'wp_notifications' );

wp_localize_script(
Expand Down