Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Schedule UI for snapshot in customizer #68

Merged
merged 62 commits into from
Aug 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
30df6bd
[WIP] Schedule UI for snapshot in customizer
PatelUtkarsh Jul 28, 2016
b01a91e
Template and css update
PatelUtkarsh Jul 29, 2016
069fbbe
Update template, refactor js for slidedown and add js function for da…
PatelUtkarsh Aug 1, 2016
c744de8
Update publish date from update call and add js update function to up…
PatelUtkarsh Aug 2, 2016
9766502
Working prototype for scheduling UI in customizer
PatelUtkarsh Aug 2, 2016
95e0573
Fix scheduling edit_date issue
PatelUtkarsh Aug 2, 2016
6492b66
Disable update button if snapshot schedule date changed
PatelUtkarsh Aug 3, 2016
7deb456
Schedule request only if schedule date is in future
PatelUtkarsh Aug 3, 2016
136ed7d
rename variable to isSnapshotHasUnsavedChanges
PatelUtkarsh Aug 3, 2016
9e04395
Add populateInputs and refactor populateSetting
PatelUtkarsh Aug 3, 2016
132dc8a
Change button text to schedule if snapshot post status is schedule
PatelUtkarsh Aug 3, 2016
8f20ab7
Add remain time to publish text
PatelUtkarsh Aug 3, 2016
0eba899
Add rest button
PatelUtkarsh Aug 3, 2016
d1fa9d5
Fix text domain
westonruter Aug 4, 2016
26399a1
Install eslint so checks can run
westonruter Aug 4, 2016
94d234b
Bump node.js to 5.x on Travis for sake of ESLint
westonruter Aug 4, 2016
6460b48
Add nvm use 4 to Travis
westonruter Aug 4, 2016
345294a
Do nvm install before nvm use
westonruter Aug 4, 2016
6311e36
Fix eslint issues
PatelUtkarsh Aug 4, 2016
a6c381d
Fix control visbility
valendesigns Aug 4, 2016
7be3a5b
Fix merge conflicts
valendesigns Aug 4, 2016
d8a1edb
Fix error on updateScheduledCountdown when controls are not initialized
PatelUtkarsh Aug 4, 2016
08a2171
On reset update UI settings
PatelUtkarsh Aug 4, 2016
4ef7d54
On snapshot change schedule icon should be visible
PatelUtkarsh Aug 4, 2016
c2281d0
Visibility of schedule toggle icon fix on publish and normalize date …
PatelUtkarsh Aug 4, 2016
9a58741
Fix edit link not visible on snapshot create
PatelUtkarsh Aug 4, 2016
73c1817
Fix unit test
PatelUtkarsh Aug 4, 2016
a8a614c
Code reivew changes
PatelUtkarsh Aug 4, 2016
0d21f51
Fix date issue on snapshot update after scheduling
PatelUtkarsh Aug 4, 2016
1ee150a
Fix eslint complexity
PatelUtkarsh Aug 4, 2016
256f7b6
On snapshot schedule/update call populateSetting to update UI
PatelUtkarsh Aug 4, 2016
96cba79
Refactor
valendesigns Aug 5, 2016
d7848cf
Fix eslint issues
valendesigns Aug 5, 2016
0f5634d
Fix typo
valendesigns Aug 5, 2016
2772725
Reset schedule variables when snapshot publish
PatelUtkarsh Aug 5, 2016
ccf7a86
Add unit-test for schedule snapshot
PatelUtkarsh Aug 5, 2016
ee64c74
Fix unit test for multisite
PatelUtkarsh Aug 5, 2016
5640162
Fix unit test for multisite for real
PatelUtkarsh Aug 5, 2016
976c740
Ensure a scheduled Snapshot is published after the Customizer is saved
valendesigns Aug 6, 2016
7d1a8cc
Fix tests
valendesigns Aug 6, 2016
a5294bd
Format template output
valendesigns Aug 6, 2016
f0391dd
Fix edit link visiblity issue on dirty snapshot state
PatelUtkarsh Aug 8, 2016
00a674c
Optimize extend in js
PatelUtkarsh Aug 8, 2016
1daff6c
Fix error args not undefine
PatelUtkarsh Aug 8, 2016
2f3fa54
Fix UI issue
PatelUtkarsh Aug 9, 2016
11b5acd
Remove extra semicolon
PatelUtkarsh Aug 9, 2016
e98c6f1
Simplify the z-index issue, only slightly
valendesigns Aug 10, 2016
244debe
Merge branch 'develop' of https://github.com/xwp/wp-customize-snapsho…
westonruter Aug 10, 2016
096d44c
Add unit-test for get_month_choices and override_post_date_default_data
PatelUtkarsh Aug 10, 2016
add9311
Title and screen reader text add
PatelUtkarsh Aug 10, 2016
00857ba
Check post exists check more readable
PatelUtkarsh Aug 10, 2016
ae7189d
Fix js dateValueOf function
PatelUtkarsh Aug 10, 2016
59a7484
Update unit-test
PatelUtkarsh Aug 10, 2016
f825bea
Add test for Customize_Snapshot_Manager::preview_snapshot_settings();…
westonruter Aug 11, 2016
4ea308b
Add test for Customize_Snapshot_Manager::import_snapshot_data()
westonruter Aug 11, 2016
85e590c
Add target blank on snapshot-edit link
PatelUtkarsh Aug 11, 2016
3e5ce8a
Merge branch 'feature/schedule-ui-customizer' of github.com:xwp/wp-cu…
PatelUtkarsh Aug 11, 2016
14572fe
Add test for setup_preview_ajax_requests in admin-ajax
westonruter Aug 11, 2016
4589448
Test last line of override_request_method
westonruter Aug 11, 2016
e416ced
Add test for Customize_Snapshot_Manager::preview_early_nav_menus_in_c…
westonruter Aug 11, 2016
1ed08b6
Add tests for customize_preview_init and enqueue_preview_scripts
westonruter Aug 11, 2016
535cbd5
Add test for filter_customize_refresh_nonces
westonruter Aug 11, 2016
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ env:
- WP_VERSION=latest WP_MULTISITE=1

install:
- nvm install 4 && nvm use 4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need node version 4, what is this fixing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint requires Node 4 now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was an ESLint fatal error otherwise since Node<4 doesn't support let. ESLint would also warn in the Travis build about the old version of node, before ultimately it would fatal error.

- export DEV_LIB_PATH=dev-lib
- if [ ! -e "$DEV_LIB_PATH" ] && [ -L .travis.yml ]; then export DEV_LIB_PATH=$( dirname $( readlink .travis.yml ) ); fi
- source $DEV_LIB_PATH/travis.install.sh
Expand Down
113 changes: 110 additions & 3 deletions css/customize-snapshots.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#snapshot-preview-link, #snapshot-edit-link {
#snapshot-preview-link,
#snapshot-schedule-button {
float: right;
margin-top: 13px;
margin-right: 4px;
color: #656a6f;
}
#snapshot-edit-link{

#snapshot-schedule-button {
display: block;
}

Expand All @@ -13,11 +15,13 @@
#snapshot-preview-link:active {
color: #191e23;
}

#snapshot-save {
float: right;
margin-top: 9px;
margin-right: 9px;
}

#customize-header-actions:not(.button-added) .button#save {
visibility: hidden;
}
Expand Down Expand Up @@ -53,4 +57,107 @@
margin-top: 6px;
margin-right: 6px;
}
}
}

#snapshot-schedule {
background: #fff !important;
border-bottom: 1px solid #ddd;
line-height: 1.5;
left: 0;
top: 46px;
position: absolute;
width: 100%;
box-shadow: 0 5px 0 0 rgba(0,0,0,0.05);
}

#snapshot-schedule .snapshot-schedule-title {
color: #555;
padding: 10px 10px 0;
}

#snapshot-schedule .snapshot-schedule-title h3 {
margin: .2em 2em .75em 0;
}

#snapshot-schedule a.snapshot-edit-link {
position: absolute;
top: 4px;
right: 1px;
width: 20px;
height: 20px;
cursor: pointer;
-webkit-box-shadow: none;
box-shadow: none;
-webkit-appearance: none;
background: transparent;
color: #555;
border: none;
padding: 10px;
}

#snapshot-schedule a.snapshot-edit-link:focus,
#snapshot-schedule a.snapshot-edit-link:hover {
color: #0073aa;

}

#snapshot-schedule a.snapshot-edit-link:before {
padding: 4px;
position: absolute;
top: 5px;
left: 6px;
-webkit-border-radius: 100%;
border-radius: 100%;
}

#snapshot-schedule a.snapshot-edit-link:focus:before {
-webkit-box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, .8);
}

#snapshot-schedule .snapshot-schedule-control {
padding: 10px;
}

#snapshot-schedule .accordion-section-title {
padding: 10px;
}

#snapshot-schedule .reset-time {
font-weight: normal;
font-size: 80%;
display: none;
}

.snapshot-schedule-control select.date-input {
height: 28px;
}

.snapshot-schedule-control select,
.snapshot-schedule-control input.date-input {
min-width: 10%;
width: auto;
}

.snapshot-schedule-control input.date-input {
-moz-appearance: textfield;
}

.snapshot-schedule-control input.date-input::-webkit-outer-spin-button,
.snapshot-schedule-control input.date-input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

.wp-full-overlay .wp-full-overlay-sidebar .wp-full-overlay-header {
padding-left: 15px;
z-index: 500101;
}

.select2-container {
z-index: 500100 !important;
}
Loading