Commit graph

978 commits

Author SHA1 Message Date
Matias Benedetto
a2befa0e08
Update Node version to 20 (#617)
* Update Node version to 20

* undo unwanted change
2024-05-06 13:55:15 -03:00
Aki Hamano
59c3aac75e
ESLint: Add new rules (#616) 2024-05-06 12:49:30 +09:00
github-actions[bot]
17121fcea7
Version bump & changelog update (#610)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-30 15:52:36 -04:00
Aki Hamano
089c616cdd
Editor Sidebar: Persist "Save Changes" panel settings (#607) 2024-04-30 12:41:26 -04:00
Aki Hamano
35cbb46035
Fix problem with zip file creation on Windows (#606)
---------

Co-authored-by: Vicente Canales <1157901+vcanales@users.noreply.github.com>
Co-authored-by: Jason Crist <jcrist@pbking.com>
2024-04-30 12:34:57 -04:00
Matias Benedetto
058c6fe255
Fix custom fonts assets path (#601)
* fix custom fonts assets path
* improve syntax
* Update admin/create-theme/theme-zip.php

Co-authored-by: Vicente Canales <1157901+vcanales@users.noreply.github.com>
2024-04-30 12:26:49 -04:00
Aki Hamano
6aa9391d9a
Remove unused UpdateThemePanel component (#608) 2024-04-30 12:12:10 -04:00
Aki Hamano
9830e9de79
Check ZipArchive class before zip export (#609) 2024-04-30 12:10:57 -04:00
Aki Hamano
b0c48cdfbc
Editor Sidebar: Make save panel text translatable (#603)
* Editor Sidebar: Make save panel text translatable

* add another missing translation fn

---------

Co-authored-by: Vicente Canales <vicente.canales@automattic.com>
2024-04-28 09:58:50 -04:00
Aki Hamano
1787f9048f
Editor Sidebar: Improve screen title UI (#605) 2024-04-28 09:48:43 -04:00
Matias Benedetto
352a397d2d
move files (#598) 2024-04-26 12:36:43 -03:00
github-actions[bot]
39c9cd87a5
Version bump & changelog update (#596)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-25 18:06:10 -04:00
Vicente Canales
9af54976d6
Document the release process (#594) 2024-04-25 18:03:15 -04:00
Vicente Canales
4e51effd55
Make sure code is being deployed to the directory only on Release PR Merge (#593)
* Remove ability to manually dispatch deploy action

* Group conditions to avoid unwanted OR ops
2024-04-25 16:50:41 -04:00
Vicente Canales
9ff52eb6cc
Remove font management (#595)
* Remove font management code

Since the Font Management page is on its way out via deprecation, we
should remove the js code related to it.

* lint: Add missing dependency to useSelect

* Remove php files

* remove references to index.js and php files

* remove font library react app

* remove tests & data

* remove demo text input

* Removed some unused resources

* Returned the font management portion still needed

* removed unused utility functions and their unit tests (leaving a sample unit test in its place rather than dismantling the unit tests

* Returned create-panel to pre-fixed days

---------

Co-authored-by: Jason Crist <jcrist@pbking.com>
2024-04-25 14:17:31 -04:00
github-actions[bot]
5d0a091419
Version bump & changelog update (#592)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-25 09:25:26 -04:00
Jason Crist
d737bbab0e
Process group background image when saving theme (#586) 2024-04-25 08:03:30 -04:00
Jason Crist
05acf3c492
Removed unnecessary filter rejecting unsafe URLs (#588) 2024-04-24 16:43:37 -04:00
Jason Crist
3ba985d63c
fix/cover-block-content-stripped (#587) 2024-04-24 13:37:10 -04:00
Jason Crist
510fc50ea7
When there are no fonts to export an error is thrown (null ref). This change checks for fonts to copy to the theme before trying to. (#582) 2024-04-24 13:36:52 -04:00
Aki Hamano
5d8dd7ba05
Fix hardcoded wp-admin URLs (#576) 2024-04-24 12:20:07 +01:00
Aki Hamano
8ea4a7d6b1
Code Quality: Remove no-undef eslint rule (#577) 2024-04-23 14:34:29 -04:00
Sarah Norris
721c084c1f
Move screenshot refs to screenshot section (#580) 2024-04-22 16:47:03 +01:00
github-actions[bot]
2e47033b59
Version bump & changelog update (#579)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-22 09:02:11 -04:00
Jason Crist
09154a8ee5
Save only templates that have been changed (#572)
Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>
2024-04-22 07:56:09 -04:00
Aki Hamano
a07987a309
i18n: Make modal titles translatable (#575) 2024-04-22 10:05:58 +01:00
Jason Crist
87f06a368b
Update readme with changes from UI changes and updated screenshots (#571)
* Update readme with changes from UI changes and updated screenshots

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>
2024-04-19 10:43:28 -04:00
Pedro Mendonça
e70f992d6a
Fix concatenation of translation strings (#554)
* Fix concatenation of translation strings
Use createInterpolateElement to make complete translation strings without concatenation.
2024-04-18 13:31:47 -04:00
Jason Crist
996398098d
Include activated Fonts on theme zip export functions (#564)
* Include activated Fonts on theme zip export functions
* Fixed font saving unit test/bug
2024-04-18 13:28:18 -04:00
Jason Crist
2fec3098b2
Fix/un transposed patterns (#567)
* Added tests to validate replacing theme namespace and refactored to support it
* Pass slug to patternize content when cloning theme
* Fixed creating of theme slug from name using no -'s to fix namespace swapping issue
2024-04-18 13:27:40 -04:00
Jason Crist
6ab7656bb5
Try/refactor editor UI (#563)
* Simplify top-level menu items

* Added Create Variation panel

* Moved Metadata editor to modal

* Simplified Create Panel
* Removed the 'export' option from the clone workflow

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>
Co-authored-by: Vicente Canales <1157901+vcanales@users.noreply.github.com>
2024-04-18 11:40:55 -04:00
Sarah Norris
b930cad019
Update readme files with editor-specific steps and screenshot references (#555)
* Update readme info with screenshot refs

* Update readme.md

* Add line breaks before lists in readme.txt

* Remove single list item

* Remove ref to pages

* Add fonts info

* Add install/uninstall fonts info

Co-Authored-By: Jason Crist <jcrist@pbking.com>

---------

Co-authored-by: Jason Crist <jcrist@pbking.com>
2024-04-11 09:23:57 +01:00
github-actions[bot]
ac153ae6e8
Version bump & changelog update (#551)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-09 13:46:50 -04:00
Vicente Canales
c6492f7575
Update readme, remove test files from release build (#548)
* Update readme, removing reference to fonts

* Remove from readme.md

* Remove test-related files from release build

* Update README.md

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>

* Update README.md

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>

* Update README.md

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>

---------

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>
2024-04-09 13:40:17 -04:00
github-actions[bot]
8a28063a65
Version bump & changelog update (#547) 2024-04-09 11:42:02 -04:00
Vicente Canales
99915dc894
Add missing build step to deploy workflow (#546) 2024-04-09 11:38:05 -04:00
github-actions[bot]
0ce33a49a4
Version bump & changelog update (#545)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-09 11:11:03 -04:00
Vicente Canales
094dce3df3
remove reviewer addition (#544) 2024-04-09 11:04:44 -04:00
Vicente Canales
fd372a6960
Refactor GitHub release workflows (#542)
* Refactor GitHub release workflows

Refactor GitHub release workflows in order to comply with branch protection
rules. The new process:

1. Run the "Create new release PR" manually, selecting the release type
   ("major", "minor", or "patch"). This will create a new branch
including the Changelog update and the version bumo on the readme,
create-block-theme.php, and package.json files.
2. Merging the PR created on the previous step will trigger the deploy
   workflow, which remains unchanged, except for the conditions added in
order for it to run only if the merged PR matches the characteristics of
automated release PR.

1. Fork this repo
2. Checkout this branch
3. Merge intro trunk on the fork
4. Run the workflow, a new PR should be created on the fork
5. Merge the PR; the automated deploy step will run. At this point, the
   only thing that you'll be able to test on the fork is that the deploy
workflow correctly identifies the PR and branch as a new release. The
deploy itself requires credentials only available on the parent repo.

* add block themers as reviewers

* prefix tag with v

* add block themers as reviewers

* move version prefix to step where it's needed

* add deploy step name

* add trailing backslash

* remove reviewer

* add block-themers as reviewers for the release pr
2024-04-09 10:58:56 -04:00
Vicente Canales
14a6f168f9
Fix changelog creation script (#541)
* Fix changelog creation script

* don't reverse log, list by creation date instead

* remove comments

* remove debug comments

* remove debug console log

* exit on error retrieving changes

* remove redundant error print

* update screenshots and move to assets/

The directory changes follows the guidelines in the docs:
https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/#where-do-i-put-my-files

* compress screenshots, format as jpg
2024-04-05 22:41:08 -03:00
Vicente Canales
0f961efb28
Add theme json inspector (#520)
* deps: add codemirror dependencies

* add user theme data endpoint

* Add code mirror editor for theme json data

* Moved json editor stuff to a modal class and started a resolvers file for API handling

* add theme name to editor modal title

* refactor fetchThemeJson

* reword from editor to inspector

* reword

* Update src/plugin-sidebar.js

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>

* Update src/editor-sidebar/json-editor-modal.js

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>

---------

Co-authored-by: Jason Crist <jcrist@pbking.com>
Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>
2024-04-05 13:02:14 -03:00
Madhu Dollu
703640474e
add deprecation notice in theme export admin screen (#540) 2024-04-04 11:02:44 -03:00
Madhu Dollu
0630bf29f7
Replace font management with screen pointing to native font library (#539)
* replace font management with screen pointing to native font library

* tweak copy, add translations

---------

Co-authored-by: Vicente Canales <vicente.canales@automattic.com>
2024-04-04 10:53:25 +05:30
Jason Crist
294dd70080
Added creation of theme validation to site editor interface (#532) 2024-04-03 17:42:59 +05:30
Jason Crist
239d139950
Add/child theme creation (#531)
* Add Child Theme Creation to Site Editor

* Added 'export child theme' option
2024-04-02 17:47:01 +05:30
Aki Hamano
0693307225
Add blueprint.json file to enable plugin previews (#511) 2024-03-27 09:43:56 -04:00
Jason Crist
20bcc01052
Extracted any logic that may need to be tested from the api class (#522)
* Extracted any logic that may need to be tested from the api class

* Refactored to facilitate testing

* Refactored zip construction to use shared code with saving logic

* Consolidated template and css parsing logic for theme exporting

* removed queryID removal from query blocks

* Fixed the image processing so that the id is removed from inner content correctly

* Added tests that evaluate encoded patterns and test patterns created from templates with media

* Added taxQuery removal tests and fixed taxQuery attribute removal logic

* Refactored image/cover processing to more cleanly handle id classes

* Add test and fixed bugs around escaping <'s and >'s

* localized quote blocks

* Added localization processing to list, verse, table and media-text blocks

---------

Co-authored-by: Vicente Canales <vicente.canales@automattic.com>
Co-authored-by: Madhu Dollu <madhusudhan.dollu@gmail.com>
2024-03-27 09:41:01 -04:00
Jason Crist
99a35c5d99
Use CORE for Font Management (#518)
Co-authored-by: Vicente Canales <vicente.canales@automattic.com>
2024-03-22 06:48:47 -04:00
Vicente Canales
1545d48b45
Add integration tests (#393)
* Add and configure PHPUnit

Co-authored-by: Jason Crist <jcrist@pbking.com>
2024-03-11 12:48:34 -04:00
Jonathan Desrosiers
ddcff991c6
Remove CODE_OF_CONDUCT.md from .distignore. (#515) 2024-02-20 09:17:43 -05:00