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

Add a Tour Component #1632

Merged
merged 55 commits into from
Sep 19, 2023
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
148a62a
Local: Add GP_SCRIPT_DEBUG to load the unminified CSS and JS (#1614)
amieiro May 4, 2023
3ff7d1d
Move the jQuery popover file to the assets directory (#1666)
akirk Aug 3, 2023
44f6c52
Run npm install
trymebytes Sep 1, 2023
dd00ca3
Update popover version
trymebytes Sep 4, 2023
967a336
Update minified popover script to v1.2.17
trymebytes Sep 4, 2023
e657784
Update popover css version to v1.2.17
trymebytes Sep 4, 2023
dc2e344
Revert changes to Gruntfile
trymebytes Sep 4, 2023
b3c7ab9
Add tour items
trymebytes May 31, 2023
cb14ac2
Show poopover on click
trymebytes Jun 1, 2023
d1c9a86
Change colour of tour icon
trymebytes Jun 2, 2023
721dd9a
Add custom tours
trymebytes Jun 5, 2023
aaff58e
Add jquery-webui-popover css file
trymebytes Jun 5, 2023
1da6586
Fix layout issue
trymebytes Jun 7, 2023
2d6b911
Fix tour sequence
akirk Jun 8, 2023
832c2cf
Fix jump to next
trymebytes Jun 9, 2023
4a525e5
Tour JSON from PHP
akirk Jul 20, 2023
c14ea0d
use the gp_tour in JS
akirk Jul 20, 2023
efc8173
Use the `gp-editor` registered script
trymebytes Jul 27, 2023
b9d56f3
Abstract tour code into a new tour.js file
trymebytes Jul 28, 2023
400114c
Enqueue popover stylesheet
trymebytes Aug 1, 2023
a27c658
Remove css for pulse-wrapper
trymebytes Aug 1, 2023
b98224d
Remove console log
trymebytes Aug 2, 2023
6d810ec
Add border to tour element
trymebytes Aug 2, 2023
51a6986
Remove border on closing tour
trymebytes Aug 3, 2023
d0600c7
Add previous button to tour
trymebytes Aug 4, 2023
070e4be
Reposition the previous link
trymebytes Aug 5, 2023
7eaf6ae
Improve popover UI
trymebytes Aug 5, 2023
3bfda34
Remove extra linebreak
trymebytes Aug 5, 2023
dfb52a8
Change color of dismiss link
trymebytes Aug 5, 2023
5c13702
Remove unused files
trymebytes Aug 8, 2023
c74dc8d
Update to newer version again
akirk Aug 8, 2023
ee0f2ac
lint
akirk Aug 8, 2023
54002e3
lint
akirk Aug 8, 2023
f150727
es5
akirk Aug 8, 2023
2463de5
es5
akirk Aug 8, 2023
65d39d8
Fix popover dispay type
trymebytes Aug 31, 2023
83fc8b7
Update CSS to stabilize UI on clicks
pedro-mendonca Aug 8, 2023
6ace78d
Improve popover UI css and i18n
pedro-mendonca Aug 8, 2023
9bbef41
Add ability to add custom css to tour item selector
trymebytes Sep 1, 2023
625720b
Remove unused code
trymebytes Sep 1, 2023
06addc6
Remove extra new line
trymebytes Sep 1, 2023
be1b4d3
Enqueue tour styles and scripts in header
trymebytes Sep 1, 2023
22f6554
Fix lint error
trymebytes Sep 1, 2023
dd93281
Fix es5 lint errors
trymebytes Sep 2, 2023
fe4fbd3
Update css to remove dashed box overflow
trymebytes Sep 3, 2023
e5fceae
Remove popover licence
trymebytes Sep 4, 2023
0972c7f
Remove duplicate code
trymebytes Sep 4, 2023
fae58b0
Display one popover at a time
trymebytes Sep 5, 2023
2296cab
Run npm install
trymebytes Sep 13, 2023
0fd0d52
Remove line, popover already hidden on clicking .pulse
trymebytes Sep 14, 2023
fc12ff9
Skip to next item if valid selector cannot be found
trymebytes Sep 18, 2023
d4344cc
Fix lint errors
trymebytes Sep 18, 2023
12b85af
Add visible selector
trymebytes Sep 18, 2023
b629e7d
Add missing visible selector
trymebytes Sep 18, 2023
99b47ee
Merge branch 'develop' into site-tour
trymebytes Sep 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/js/tour.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jQuery( document ).ready(

if ( ! tourEndsHere ) {
// Check if the selector for the next item does not exists
if ( jQuery( window.tour[ tourName ][ nextItem ].selector ).length < 1 ) {
if ( jQuery( window.tour[ tourName ][ nextItem ].selector + ':visible' ).length < 1 ) {
while ( nextItem < window.tour[ tourName ].length ) {
if ( jQuery( window.tour[ tourName ][ nextItem ].selector ).length > 0 ) {
trymebytes marked this conversation as resolved.
Show resolved Hide resolved
break;
Expand Down