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 HPPS instructions #7420

Merged
merged 4 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
4 changes: 4 additions & 0 deletions changelog/add-hpps-instructions
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Include instructions to the High-Performance Progress Storage settings screen
12 changes: 11 additions & 1 deletion includes/class-sensei-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1220,11 +1220,21 @@
<div class="notice notice-info inline sensei-settings__progress-storage-settings hidden">
<p>
<?php
echo esc_html( __( 'Save changes to make synchronization setting available.', 'sensei-lms' ) );
echo esc_html( __( 'Save changes to make the feature settings available.', 'sensei-lms' ) );

Check warning on line 1223 in includes/class-sensei-settings.php

View check run for this annotation

Codecov / codecov/patch

includes/class-sensei-settings.php#L1223

Added line #L1223 was not covered by tests
?>
</p>
</div>
<?php endif; ?>
<h4><?php esc_html_e( 'Instructions', 'sensei-lms' ); ?></h4>
<p><?php esc_html_e( 'To enable High-Performance Progress Storage, follow these steps:', 'sensei-lms' ); ?></p>

Check warning on line 1229 in includes/class-sensei-settings.php

View check run for this annotation

Codecov / codecov/patch

includes/class-sensei-settings.php#L1228-L1229

Added lines #L1228 - L1229 were not covered by tests
<ol>
<li><?php esc_html_e( 'Select the "Store the progress of your students in separate tables" checkbox and save the changes.', 'sensei-lms' ); ?></li>
<li><?php esc_html_e( 'Select the "Synchronize the student progress between storages" checkbox and save the changes.', 'sensei-lms' ); ?></li>
<li><?php esc_html_e( 'Wait until the "Migration complete and data synchronization enabled" message is displayed. This may take awhile and you will need to refresh the page to see the updated status.', 'sensei-lms' ); ?></li>
<li><?php esc_html_e( 'Select the "High-Performance progress storage (experimental)" option and save the changes.', 'sensei-lms' ); ?></li>
<li><?php esc_html_e( 'You are now using High-Performance Progress Storage!', 'sensei-lms' ); ?></li>

Check warning on line 1235 in includes/class-sensei-settings.php

View check run for this annotation

Codecov / codecov/patch

includes/class-sensei-settings.php#L1231-L1235

Added lines #L1231 - L1235 were not covered by tests
</ol>
<p><?php echo wp_kses_post( __( 'To learn more about the feature, check the <a href="https://senseilms.com/documentation/high-performance-progress-storage/" target="_blank">docs</a>.', 'sensei-lms' ) ); ?></p>

Check warning on line 1237 in includes/class-sensei-settings.php

View check run for this annotation

Codecov / codecov/patch

includes/class-sensei-settings.php#L1237

Added line #L1237 was not covered by tests
</div>
<?php
Sensei()->assets->enqueue( 'sensei-experimental-features-progress-storage', 'js/admin/settings/experimental-features.js', array( 'jquery' ), true );
Expand Down
Loading