-
Notifications
You must be signed in to change notification settings - Fork 100
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 Site Icon tests for Site Health and warnings in Customizer control #702
Merged
westonruter
merged 69 commits into
develop
from
feature/229-site-health-tests-for-site-icon
Apr 1, 2022
Merged
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
d18eeed
Add js for maskable icon customizer preview settings
thelovekesh 7d9e93e
Add icon purpose as `any maskable` if user have not checked site icon…
thelovekesh cd67ec2
Update to show icon as maskable when user uplaods site-icon
thelovekesh df60ff3
Update theme_mod type in settings with option
thelovekesh e147659
Move code from manifest to admin
c0005c8
Optimize JS for icon handling
c9e7bca
Fix: Add mask when image updated
5172a07
Update function names
2a50729
Fix: Icon toggling
e07955f
Use default maskable set from option
9657a3c
Fix eslint warnings
thelovekesh 9e96825
Fix site icon purpose addition in manifest
thelovekesh 7e73f78
Remove maskbale icon setting registration
thelovekesh 8850990
Add file for regestring maskable icon setting
thelovekesh 940ce83
Add customizer manager class for init
thelovekesh 6cf206e
Fix showing and hiding of maskable icon setting based on site icon
thelovekesh 5e93c75
Move customizer script to wp-admin folder
thelovekesh 3a6a0ea
Fix: Initial checkbox state
da51dfe
Update: Set maskable icon setting visibility from js
thelovekesh a4f6e46
Remove active_callback as already implemented in js
thelovekesh 9c1e043
Fix phpcs errors
thelovekesh 5a43714
Add inline doc and fix adding of icon purpose
thelovekesh d25f371
Add test cases for maskable icon customizer settings
thelovekesh 99a09e5
Add test cases for adding icon purpose in manifest
thelovekesh 15b8bbe
Remove empty file for adding tests related to admin.php
thelovekesh bb106bc
Enqueue site icon default value
8bd06ea
Remove redundant code
6d18007
Fix: Linting
540b96d
Remove section binind on expend event
thelovekesh 261f9fc
Add active_callback and remove inline js for sending site_icon value
thelovekesh 053abf0
Remove customizer js from wp-includes
thelovekesh 9796921
Fix: Checkbox toggle and state management
9db329f
Rename pwa_maskable_icon option to site_icon_maskable
westonruter aa53d84
Use priority on site_icon to set priority of site_icon_maskable
westonruter cd6f5ff
Improve method, dependency, and file naming
westonruter aef39e2
Simplify logic for managing site_icon_maskable active state
westonruter 6e6a187
Refactor logic to better utilize Customizer JS API
westonruter 9c18eda
Fix logic inversion for maskable icon
westonruter f1c834d
Add missing covers tags
westonruter 1fd98ec
Merge branch 'feature/304-makable-icon-setting' into feature/integration
7621c6e
Add site health tests for the site icon
thelovekesh 34b02e5
Fix: DocBlock
thelovekesh c37d7e9
Update wp_getimagesize function with wp_get_attachment_metadata
thelovekesh 88b1986
Add image for testing the site icon
thelovekesh dccd1b2
Add tests for validating site icons
thelovekesh 5595f72
Fix: return type
b58c78b
JS: Validation for icon
8033350
Fix: Linting
eb120de
Merge branch 'develop' of github.com:GoogleChromeLabs/pwa-wp into fea…
westonruter 89b9d58
Skip test_pwa_validate_site_icon_not_png on PHP 7.1
westonruter ca01f7b
Reuse existing variable and improve variable name
westonruter eac70d9
Use warning notification type
westonruter 85f590a
Add notifications to control instead of section
westonruter e7d0c61
Improve function name
westonruter 44f13f5
Use attachment data for notifications and update notifications when s…
westonruter d6c815a
Show missing icon notification when attachment is no longer present
westonruter 5bbe720
Remove extraneous variable
westonruter b27018d
Reuse l10n object in Customizer
westonruter dc25901
Add warning notifications for non-PNG and non-square icons
westonruter 92da073
Improve strings and presentation of site health test
westonruter 4d545fd
Improve method naming and return value
westonruter e6a716d
Fix boolean condition for whether icon is too small
westonruter bb4cac4
Remove extraneous comments
westonruter d06a61d
Reset notifications when site icon has been removed
westonruter bca28f1
Improve name of JS file
westonruter 79b9c57
Add paragraph wrapper and harden translation escaping
westonruter 12586a1
Add customize cap check before adding button to Customizer
westonruter b1d7399
Further generalize naming for site icon code after bca28f1af
westonruter adda38a
Improve test phpdoc descriptions
westonruter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Improve strings and presentation of site health test
- Loading branch information
commit 92da073a330b90635b002c887cac32e42b6f5726
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.