Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
9120171
Update edit menu interface.
sheabunge Dec 21, 2024
4bebe07
Add tooltips to multisite sharing and priority controls on edit page.
sheabunge Dec 21, 2024
7b12e59
Update version number to 3.7.0-dev.1.
sheabunge Dec 21, 2024
9e1d608
Merge branch 'core' into ui-refresh/core
sheabunge Jan 17, 2025
11b6851
Merge branch 'core' into ui-refresh/core
sheabunge Mar 21, 2025
6d64c3b
Apply changes from pro branch.
sheabunge Mar 21, 2025
0ccb826
Merge branch 'core' into edit-refresh/core
sheabunge Mar 21, 2025
2a20811
Improving parsing of unknown data into snippet objects.
sheabunge Mar 28, 2025
e22e89a
Update snippet parsing function to accept an unknown value.
sheabunge Mar 28, 2025
dd48e30
Introduce updated type badge styles.
sheabunge Mar 28, 2025
bb037ef
Improve layout of navigation buttons on manage menu.
sheabunge Mar 28, 2025
45cff3d
Apply cosmetic changes from pro branch.
sheabunge Mar 28, 2025
5293754
Simplify request API in JavaScript.
sheabunge Mar 28, 2025
1150c37
Merge branch 'core' into edit-refresh/core
sheabunge May 6, 2025
fd87470
Introduce stylelint.
sheabunge May 9, 2025
b603493
Enforce use of logical properties through stylelint.
sheabunge May 9, 2025
8a94b1f
Add minimal stylistic rules to stylelint.
sheabunge May 9, 2025
22b9a9f
Merge branch 'core' into edit-refresh/core
sheabunge May 20, 2025
10d869d
Port changes from 'pro' branch.
sheabunge Jul 3, 2025
988ea04
Improve consistency of badges and implement upsell dialog.
sheabunge Jul 14, 2025
777a74a
Remove upgrade dialog.
sheabunge Jul 14, 2025
e5a9531
Uplift tooltips to ensure versitility and holistic styling.
sheabunge Jul 15, 2025
8a1267e
Update badges and fix cloud page inconsistencies.
sheabunge Jul 15, 2025
91f1ebf
Prevent snippet editor from becoming 'unloaded' and refusing to reini…
sheabunge Jul 15, 2025
ed904f0
Remove conditions from type menu for saved snippets.
sheabunge Jul 15, 2025
b871fc3
Implement expand/minimise functionality for code editor.
sheabunge Jul 15, 2025
a5b5d74
Simplify theme variables.
sheabunge Jul 17, 2025
d4f75b1
Improve snippet schema definition.
sheabunge Jul 17, 2025
cf78caf
Fix storage and export of conditions.
sheabunge Jul 18, 2025
90796c7
Fix incrementing snippet revision twice.
sheabunge Jul 18, 2025
bf08f2e
Version 3.7.0-alpha.2.
sheabunge Jul 18, 2025
7dced86
Version 3.7.0-beta.1.
sheabunge Jul 18, 2025
ba668da
Ensure logical property shorthand is used in CSS files.
sheabunge Jul 30, 2025
0bdca00
Clean up leftover conditions code.
sheabunge Jul 30, 2025
255f28e
Ensure decoding JSON works successfully before including condition wh…
sheabunge Jul 30, 2025
f981c32
Revert snippet evaluation hook to 'plugins_loaded'.
sheabunge Jul 31, 2025
3baf4f8
Merge branch 'core' into edit-refresh/core
sheabunge Jul 31, 2025
d21e606
Update fetch_active_snippets() function to always return a combined a…
sheabunge Jul 31, 2025
47f9a96
Fix missing download buttons on cloud search menu and fix styling.
sheabunge Aug 1, 2025
4662ec1
Update changelog and readme for 3.7.0-beta.2.
sheabunge Aug 1, 2025
13566c6
Merge branch 'core' into edit-refresh/core
sheabunge Aug 7, 2025
26731cf
Merge branch 'core' into edit-refresh/core
sheabunge Aug 15, 2025
881765f
Unslash search term. Resolves #240.
sheabunge Aug 15, 2025
bad9c8c
Update version number to 3.7.0-beta.5.
sheabunge Aug 15, 2025
9b97e47
Move dropdowns from above snippet editor to sidebar.
sheabunge Aug 19, 2025
9118ce6
Add menu icon manually to prevent 'blinking' on load.
sheabunge Aug 19, 2025
10bd151
Move shortcode builder into separate modal.
sheabunge Aug 19, 2025
3c0376e
Use createInterpolateElement to allow HTML within translation strings…
sheabunge Aug 19, 2025
82205b3
Fix copy to clipboard button changing width when loading.
sheabunge Aug 19, 2025
9b5af4b
Move tag editor to below description editor.
sheabunge Aug 19, 2025
db8daf6
Fix inspection warnings.
sheabunge Aug 20, 2025
fefdaf2
Add hover state to badge on conditions modal button.
sheabunge Aug 20, 2025
1e0cc8b
Improve UX of activation switch.
sheabunge Aug 21, 2025
76301a7
Fix issue evaluating content snippet code with unclosed PHP tags.
sheabunge Aug 22, 2025
ecb1434
Update feedback share link.
sheabunge Aug 22, 2025
1cb269e
Update version number to 3.7.0-beta.7.
sheabunge Aug 22, 2025
a3b29f2
Update changelog.
sheabunge Aug 22, 2025
dbaa316
Move snippet type input next to name control.
sheabunge Aug 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog

## [3.7.0] (beta release)

### Added
* New 'conditions' feature: control where and when snippets execute with a powerful logic builder. (PRO)

### Changed
* Redesigned edit menu with refreshed look and functionality.
* Updated snippet type badges to be more visually distinct.
* Redesigned tooltips used throughout the plugin.
* Moved content snippet shortcode options into separate modal window.
* Updated snippet tag editor to use built-in WordPress tag editor.
* Created proper form for sharing beta feedback.
* Improved UX of snippet activation toggle.

### Fixed
* Fetching active snippets on a multisite network now respects the 'priority' field above all else when ordering snippets.
* Cloud search appears correctly and allows downloading snippets in the free version of Code Snippets.
* Improved performance of loading admin menu icon.

## [3.6.9] (2025-02-17)

### Changed
* Updated `Cloud_API::get_bundles()` to properly check bundle data and return an empty array if no valid bundles are present.
* Refactored `Cloud_List_Table::fetch_snippets()` to always return a valid `Cloud_Snippets` instance.
* Cleaned up bundle iteration code and improved translation handling in the bundles view.

### Fixed
* Fixed errors in bundle iteration by adding a check for the bundles array before iterating.

## [3.6.8] (2025-02-14)

### Added
Expand Down
4 changes: 4 additions & 0 deletions config/modules/postcss-color-hsl.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module 'postcss-color-hsl' {
import type { Plugin } from 'postcss'
export default function (): Plugin
}
11 changes: 8 additions & 3 deletions config/webpack-css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import path from 'path'
import libsass from 'sass'
import cssnano from 'cssnano'
import autoprefixer from 'autoprefixer'
import hexrgba from 'postcss-hexrgba'
import rgbaCompat from 'postcss-hexrgba'
import hslCompat from 'postcss-color-hsl'
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
import RemoveEmptyScriptsPlugin from 'webpack-remove-empty-scripts'
import { glob } from 'glob'
Expand All @@ -12,7 +13,8 @@ import type { Config as PostCssConfig } from 'postcss-load-config'

const postcssOptions: PostCssConfig = {
plugins: [
hexrgba(),
rgbaCompat(),
hslCompat(),
autoprefixer(),
cssnano({
preset: ['default', { discardComments: { removeAll: true } }]
Expand Down Expand Up @@ -61,7 +63,10 @@ export const cssWebpackConfig: Configuration = {
loader: 'sass-loader',
options: {
implementation: libsass,
sourceMap: true
sourceMap: true,
sassOptions: {
loadPaths: ['node_modules']
}
}
}
]
Expand Down
11 changes: 8 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import globals from 'globals'
import eslintJs from '@eslint/js'
import eslintTs from 'typescript-eslint'
import stylistic from '@stylistic/eslint-plugin'
import reactHooks from 'eslint-plugin-react-hooks'
import importPlugin from 'eslint-plugin-import'
import reactPlugin from 'eslint-plugin-react'
import { FlatCompat } from '@eslint/eslintrc'
Expand All @@ -21,7 +22,11 @@ export default eslintTs.config(
reactPlugin.configs.flat.recommended,
importPlugin.flatConfigs.recommended,
{
ignores: ['bundle/*', 'src/dist/*', 'src/vendor/*', 'svn/*', 'eslint.config.mjs']
plugins: { 'react-hooks': reactHooks },
rules: reactHooks.configs.recommended.rules,
},
{
ignores: ['bundle/*', 'src/dist/*', 'src/vendor/*', 'svn/*', '*.config.mjs', '*.config.js']
},
{
languageOptions: {
Expand Down Expand Up @@ -58,13 +63,13 @@ export default eslintTs.config(
'@stylistic/indent': ['error', 'tab', { SwitchCase: 1 }],
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
'@stylistic/linebreak-style': ['error', 'unix'],
'@stylistic/max-len': ['warn', 140, { ignorePattern: 'd="([\\s\\S]*?)"' }],
'@stylistic/max-len': ['warn', 140, { ignorePattern: 'd="(.*?)"|_[_xn]\\(|import .+ from .+' }],
'@stylistic/multiline-ternary': 'off',
'@stylistic/no-extra-parens': ['error', 'all'],
'@stylistic/no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'@stylistic/no-tabs': ['error', { allowIndentationTabs: true }],
'@stylistic/object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
'@stylistic/operator-linebreak': ['error', 'before'],
'@stylistic/operator-linebreak': ['error', 'after', { 'overrides': { '?': 'before', ':': 'before' } }],
'@stylistic/padded-blocks': ['error', 'never'],
'@stylistic/quote-props': ['error', 'consistent-as-needed'],
'@stylistic/quotes': ['error', 'single', { avoidEscape: true }],
Expand Down
Loading