From 12f39a52d60d24e67eda0c63a7576e895656ec0f Mon Sep 17 00:00:00 2001 From: ramon Date: Fri, 8 Sep 2023 14:04:00 +1000 Subject: [PATCH] Initial commit: just seeing what needs to be done to add a rename/delete action to single pattern view in the site editor sidebar in view mode. See: https://github.com/WordPress/gutenberg/pull/54173#pullrequestreview-1610241523 Starting to consolidate rename-menu-item.js Tightening up conditions. Removed unused rename component. Set decoded title var Ensure correct back path when deleting templates --- .idea/GitLink.xml | 6 + .idea/codeStyles/Project.xml | 70 ++ .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/inspectionProfiles/Project_Default.xml | 7 + .idea/php.xml | 88 ++ .idea/vcs.xml | 6 + .idea/workspace.xml | 1068 +++++++++++++++++ .../edit-site/src/components/editor/index.js | 2 + .../src/components/page-patterns/grid-item.js | 5 +- .../page-patterns/rename-menu-item.js | 132 -- .../index.js | 7 +- .../src/components/template-actions/index.js | 105 +- .../template-actions/rename-menu-item.js | 73 +- packages/edit-site/src/store/actions.js | 2 +- 14 files changed, 1393 insertions(+), 183 deletions(-) create mode 100644 .idea/GitLink.xml create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/php.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/GitLink.xml b/.idea/GitLink.xml new file mode 100644 index 00000000000000..009597cc2f1e8e --- /dev/null +++ b/.idea/GitLink.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 00000000000000..d9f67957a1b9b6 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 00000000000000..79ee123c2b23e0 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000000000..7c4836fbe32725 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 00000000000000..933ba591767b32 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000000000..94a25f7f4cb416 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 00000000000000..c5377a2f0645d2 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,1068 @@ + + + + + + + + + + + + + + + + + $PROJECT_DIR$/composer.json + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + "keyToString": { + "Notification.DisplayName-DoNotAsk-Dependencies from package.json": "Dependencies from package.json available", + "Notification.DoNotAsk-Dependencies from package.json": "true", + "RunOnceActivity.OpenProjectViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "WebServerToolWindowFactoryState": "false", + "last_opened_file_path": "/Users/ramon/projects/gutenberg/packages/edit-site/src/components/template-actions", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.standard": "true", + "node.js.detected.package.stylelint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.standard": "", + "node.js.selected.package.stylelint": "/Users/ramon/projects/gutenberg/node_modules/stylelint", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs.jest.jest_package": "/Users/ramon/projects/gutenberg/node_modules/jest", + "nodejs_interpreter_path": "/Users/ramon/.nvm/versions/node/v18.13.0/bin/node", + "nodejs_package_manager_path": "npm", + "prettierjs.PrettierConfiguration.Package": "/Users/ramon/projects/gutenberg/node_modules/prettier", + "run.code.analysis.last.selected.profile": "pProject Default", + "settings.editor.selected.configurable": "preferences.sourceCode.SCSS", + "ts.external.directory.path": "/Users/ramon/projects/gutenberg/node_modules/typescript/lib", + "vue.rearranger.settings.migration": "true" + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + 1681465457967 + + + 1701126940620 + + + 1701136167073 + + + 1701153696097 + + + 1701153898545 + + + 1701210604257 + + + 1701224111840 + + + 1701234260257 + + + 1701236074459 + + + 1701313577819 + + + 1701321643744 + + + 1701334330491 + + + 1701334999997 + + + 1701392225525 + + + 1701412316980 + + + 1701640805253 + + + 1701641325307 + + + 1701641665471 + + + 1701642159703 + + + 1701655033075 + + + 1701663551785 + + + 1701663635873 + + + 1701667512931 + + + 1701668349444 + + + 1701733462361 + + + 1701733837500 + + + 1701734581182 + + + 1701749822730 + + + 1701774746747 + + + 1701831351134 + + + 1701833838329 + + + 1701835088917 + + + 1701835885871 + + + 1701851613435 + + + 1701901278373 + + + 1701919397889 + + + 1701922582211 + + + 1701923293166 + + + 1701924607873 + + + 1701936016856 + + + 1701993805533 + + + 1702012223090 + + + 1702012611427 + + + 1702012777299 + + + 1702250902522 + + + 1702252557659 + + + 1702267617228 + + + 1702268095389 + + + 1702269533072 + + + 1702281880489 + + + + + + + + + + + + + + + + + + + + + file://$PROJECT_DIR$/packages/compose/src/hooks/use-resize-observer/index.tsx + 226 + + + file://$PROJECT_DIR$/packages/edit-site/src/components/page-content-focus-manager/disable-non-page-content-blocks.js + 51 + + + file://$PROJECT_DIR$/packages/edit-site/src/hooks/push-changes-to-global-styles/index.js + 392 + + + file://$PROJECT_DIR$/packages/core-data/src/resolvers.js + 192 + + + file://$PROJECT_DIR$/packages/edit-site/src/components/sync-state-with-url/use-sync-path-with-url.js + 50 + + + + + + + +