Skip to content

Commit 5d2e2d0

Browse files
authored
Merge pull request #238 from codesnippetspro/core
backmerge
2 parents ecfad99 + 2923980 commit 5d2e2d0

File tree

188 files changed

+14757
-13522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+14757
-13522
lines changed

.eslintrc.js

Lines changed: 0 additions & 89 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 47 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,65 @@
1-
name: "🐞 Bug Report"
2-
description: "Did you find a bug in Code Snippets and can you reproduce it consistently? Please report it here."
3-
labels: ["bug"]
1+
name: Bug report
2+
description: Create a report to help us improve
3+
labels: [ 'bug' ]
44
body:
5-
- type: markdown
5+
- type: textarea
66
attributes:
7-
value: |
8-
## ⚠️ BEFORE POSTING YOUR ISSUE
9-
### 🐞 Please create GitHub issues only for Code Snippets Bug Reports.
10-
#### ❌ GitHub issues should <ins>NOT BE USED FOR SUPPORT</ins> ❌.
11-
❔ If you have questions, need guidance, help, or general support, please use one of the following channels:
12-
- 🌐 [Code Snippets Community](https://www.facebook.com/groups/codesnippetsplugin) The main Facebook group where all kinds of users come together to help each other.
13-
- 📄 [Documentation](https://help.codesnippets.pro/) Learn everything about our Developer-API.
14-
- 💡 [Feature Requests](https://roadmap.codesnippets.pro/ideas) Let us know how we can make dev-life easier for you ; )
15-
- 🗺️ [Roadmap](https://roadmap.codesnippets.pro/roadmap) See what we're up to.
16-
- ⭐ [Reviews](https://wordpress.org/plugins/code-snippets/#reviews) Please leave a review, they really make a difference for us!
17-
- 🔄 [Changelog](https://wordpress.org/plugins/code-snippets/#developers) Check the latest features we released.
18-
- 💬 [Free Support Forum](https://wordpress.org/support/plugin/code-snippets/) Get help on WordPress.org.
19-
20-
💎 If you have an active [Code Snippets Pro](https://codesnippets.pro/) license you are entitled to personal support, please see your purchase email or visit your [Code Snippets Account page](https://codesnippets.pro/account/) for details.
21-
22-
### 🙏 Follow these best practices to help save you time
23-
- 🔍 **Search Before Posting:** Before creating a new Bug Report, please search for similar issues to prevent creating duplicates.
24-
- 🆕 **Stay Up-to-date:** Make sure you are using the most recent and stable versions of [Code Snippets](https://wordpress.org/plugins/code-snippets/#developers), [Code Snippets Pro](https://codesnippets.pro/), [WordPress](https://wordpress.org/download/releases/), and your theme.
25-
- 🔬 **Isolate the problem:** Deactivate all of your plugins (except Code Snippets Free/Pro), and temporarily change your WordPress theme to [Hello theme](https://wordpress.org/themes/hello-elementor/). If this solves the problem, gradually activate your plugins and theme one by one, until you spot the conflicting plugin or theme.
26-
- 🕵️ **Validate Your Issue:** If the issue can't be recreated consistently or reproduced on other sites, it's likely not a bug in Code Snippets. In that case, use one of the support links above.
27-
- 🧩 **Contact 3rd-party Support:** If the issue happens with a Code Snippets add-on, extension, compatible plugin, or integrated theme, contact their support first. We do not provide support for 3rd-party software.
28-
- 1️⃣ **One Issue Per Thread:** If you are experiencing more than one bug, submit only **<ins>ONE ISSUE PER THREAD</ins>**, so we can properly track them and reference them without any confusion.
7+
label: Current behavior
8+
description: A concise description of what you're experiencing.
9+
validations:
10+
required: true
2911

30-
## THE ISSUE
31-
- type: checkboxes
32-
id: prerequisites
33-
attributes:
34-
label: "Prerequisites"
35-
options:
36-
- label: "I have searched for similar issues in both open and closed tickets and cannot find a duplicate."
37-
required: true
38-
- label: "The issue still exists against the latest stable version of Code Snippets."
39-
required: true
40-
- type: dropdown
41-
id: bug_type
12+
- type: textarea
4213
attributes:
43-
label: "Type of Bug"
44-
description: "What type of bug are you reporting? Please select at least one option that is affected by the issue you're reporting (acceppts multiple options)."
45-
multiple: true
46-
options:
47-
- "Snippet type PHP"
48-
- "Snippet type HTML"
49-
- "Snippet type CSS"
50-
- "Snippet type JS"
51-
- "A Code Snippet"
52-
- "Design/Styles"
53-
- "Dependencies"
54-
- "Code Editor"
55-
- "Export/Import"
56-
- "Internationalization"
57-
- "Maintenance Mode"
58-
- "Notes"
59-
- "Performance"
60-
- "Plugin Settings"
61-
- "Privacy"
62-
- "Product/Core"
63-
- "Product/Pro"
64-
- "Product/Cloud"
65-
- "RTL"
66-
- "Semantics"
67-
- "SEO"
68-
- "UI/UX"
69-
- "Widget"
70-
- "Workflow"
71-
- "I'm Not Sure"
72-
- "Unspecified"
14+
label: Expected behavior
15+
description: A concise description of what you expected to happen.
7316
validations:
7417
required: true
18+
7519
- type: textarea
76-
id: description
20+
id: to_reproduce
21+
attributes:
22+
label: Steps to reproduce
23+
description: Outline the steps to reproduce the behavior.
24+
placeholder: >
25+
1. Go to '...'
26+
2. Click on '....'
27+
3. Scroll down to '....'
28+
4. See error
7729
validations:
78-
required: true
30+
required: false
31+
32+
- type: input
7933
attributes:
80-
label: "Description"
81-
description: "Describe the problem. What caused the issue? What did you expect to happen and what actually happened? Please be as descriptive as possible. Attach screenshots, screen recordings, and related links."
82-
- type: textarea
83-
id: steps_to_reproduce
34+
label: WordPress version
35+
description: What version of WordPress was this tested on?
8436
validations:
8537
required: true
38+
39+
- type: input
8640
attributes:
87-
label: "Steps to reproduce"
88-
description: "List all the steps needed to reproduce the issue in detail, so we can replicate it ourselves on our own installation. Be thorough, we won't be able to reproduce it if you don't explain how."
89-
placeholder: "1) ... 2) ... 3) ..."
90-
- type: checkboxes
91-
id: isolating_the_problem
41+
label: Code Snippets version
42+
description: What version of Code Snippets was this tested on?
43+
validations:
44+
required: true
45+
46+
- type: dropdown
9247
attributes:
93-
label: "Isolating the problem"
48+
label: Code Snippets license
49+
description: Was this tested on the core free plugin, or with Code Snippets Pro?
50+
multiple: true
9451
options:
95-
- label: "This bug happens with only the Code Snippets plugin active (Free or Pro)."
96-
- label: "This bug happens with a Blank WordPress theme active. For example: ([Hello theme](https://wordpress.org/themes/hello-elementor/))."
97-
- label: "I can reproduce this bug consistently following the steps above."
98-
- type: textarea
99-
id: system_info
52+
- Core (free)
53+
- Pro
10054
validations:
10155
required: true
56+
57+
- type: textarea
10258
attributes:
103-
label: "Comment"
104-
description: "Please add anything else you may deem useful for us to help you."
105-
render: markdown
106-
- type: markdown
107-
attributes:
108-
value: |
59+
label: Anything else?
60+
description: |
61+
Links? References? Anything that will give us more context about the issue you are encountering!
10962
110-
---
111-
⚠️ Please follow all the instructions indicated above, and fill all the required fields with valid information. We reserve the right to close issues that do not comply with these guidelines without any warning.
112-
113-
114-
63+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
64+
validations:
65+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
blank_issues_enabled: true
22
contact_links:
3-
- name: 🚀 Feature Request
4-
url: https://roadmap.codesnippets.pro/ideas
5-
about: Suggest new ideas, features, or enhancements
63
- name: ❓ Support Question
74
url: https://help.codesnippets.pro/
85
about: For Code Snippets users who need assistant and have general usage questions.
9-
- name: 💎 Premium Support - For customer only
6+
- name: 💎 Premium Support - For customers only
107
url: https://help.codesnippets.pro/
118
about: If you have an active license you are entitled to premium support.
12-
- name: 🗨️ Code Snippets Global Community
9+
- name: 🗨️ Code Snippets Facebook Community
1310
url: https://www.facebook.com/groups/codesnippetsplugin
1411
about: The main Facebook group where all kinds of users come together to help each other.
1512
- name: 📚 Code Snippets Documentation

.github/ISSUE_TEMPLATE/delete_me

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
labels: [ 'enhancement', 'suggestion' ]
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Is your feature request related to a problem? Please describe
8+
description: A clear and concise description of what the problem is.
9+
placeholder: e.g. I'm always frustrated when…
10+
validations:
11+
required: false
12+
13+
- type: textarea
14+
attributes:
15+
label: Describe the solution you'd like
16+
description: A clear and concise description of what you want to happen.
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
attributes:
22+
label: Describe alternatives you've considered
23+
description: A clear and concise description of any alternative solutions or features you've considered.
24+
validations:
25+
required: false
26+
27+
- type: textarea
28+
attributes:
29+
label: Additional context
30+
description: Add any other context or screenshots about the feature request here.
31+
validations:
32+
required: false

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "(Build): Plugin"
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
ref:
7+
required: false
8+
type: string
9+
default: ${{ inputs.ref }}
10+
outputs:
11+
artifact_name:
12+
value: ${{ jobs.build.outputs.artifact_name }}
13+
artifact_url:
14+
value: ${{ jobs.build.outputs.artifact_url }}
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
outputs:
19+
artifact_name: ${{ steps.build.outputs.name }}
20+
artifact_url: ${{ steps.artifacts.outputs.artifact-url }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
ref: ${{ inputs.ref }}
25+
26+
- name: Set up PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: '8.1'
30+
31+
- name: Set up Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version-file: .node-version
35+
36+
- name: Install & Build
37+
id: build
38+
run: |
39+
npm install && npm run bundle
40+
echo "name=$(jq -r .name package.json)" >> $GITHUB_OUTPUT
41+
42+
- name: Upload
43+
id: artifacts
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: ${{ steps.build.outputs.name }}
47+
path: ./bundle

0 commit comments

Comments
 (0)