Commit graph

985 commits

Author SHA1 Message Date
Jason Crist
f3dc5c9f52
Allow spaces in slugs. Changed logic to correctly replace functions. Updated tests. (#622) 2024-05-10 07:55:20 -04:00
Jason Crist
b496fc090a
Reset changelog and version on clone and theme creation (#623) 2024-05-10 07:54:57 -04:00
Vicente Canales
0524255734
Use non-default port for wp-env (#611) 2024-05-09 09:48:47 -04:00
Aki Hamano
d1ed884dab
Update package-lock.json (#620)
Co-authored-by: Sarah Norris <sarah@sekai.co.uk>
2024-05-09 09:48:01 -04:00
Vicente Canales
ddc91e2c0c
Tests: use tests-wordpress wp-env for phpunit (#618)
Running tests on the `cli` environment causes coflicts with the `dev`
environment; the tests will log you out, modify the theme, etc.

Running tests on `tests-wordpress` will allow you to run tests along
with the `dev` environment without interference.
2024-05-09 09:47:41 -04:00
Sarah Norris
9612377ec0
Add Repository Management section to contributing docs (#614)
* Add Repository Management section

* Add bullet point list to Repository Management section

* Add link to GH project board

* Update CONTRIBUTING.md

Co-authored-by: Vicente Canales <1157901+vcanales@users.noreply.github.com>

* Remove link to core-themes channel

* Add Discussions section with links to Slack

---------

Co-authored-by: Vicente Canales <1157901+vcanales@users.noreply.github.com>
2024-05-07 02:45:48 +01:00
Matias Benedetto
c9d1b43a74
update wp-env version (#619) 2024-05-06 14:13:17 -03:00
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