Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Go Live" items #18

Merged
merged 117 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
6546b8a
Remove EDD and legacy text domain loading
mrcasual May 1, 2024
6501f7f
Update Grunt config & remove legacy translations
mrcasual May 1, 2024
69cbb80
Remove Travis configuration
mrcasual May 1, 2024
4de1db5
Update code to use PSR-4 loading
mrcasual May 1, 2024
5f5959a
Remove legacy GV extension class & optimize plugin loading
mrcasual May 2, 2024
7428697
Clean up .gitignore
mrcasual May 2, 2024
10e0ab3
Exclude files from the build archive
mrcasual May 2, 2024
635d2f4
Use short array syntax
mrcasual May 2, 2024
12932cb
Add Pico CSS
mrcasual May 2, 2024
c40298f
Fix filter name
mrcasual May 2, 2024
0c82696
Define global constant with plugin file
mrcasual May 2, 2024
031469c
Add Chota, Cirrus, Marx, MVP, Picnic, Pure, Sakura, Simple CSS framew…
mrcasual May 3, 2024
aaa6df9
Add stylesheet selection as a global GravityView setting
mrcasual May 3, 2024
ab157e3
Add Pico CSS to GravityView global settings
mrcasual May 3, 2024
36560ab
Generate CSS framework dropdown choices from an object
mrcasual May 3, 2024
285e7a0
Add missing class import
mrcasual May 4, 2024
11157e3
Start refactoring the main Plugin class and Settings/Menu
mrcasual May 6, 2024
d3af75b
Set 'dashboard_view' on $_REQUEST when navigating to the View menu item
mrcasual May 6, 2024
2db0c1a
Update hook names for managing admin menu items
mrcasual May 6, 2024
c4c6978
Add JS script to be enqueued on when displaying the Dashboard View
mrcasual May 6, 2024
783a8c1
Fix undefined index
mrcasual May 6, 2024
5d68eef
Allow using custom slug for Dashboard Views
mrcasual May 6, 2024
32891ca
Add Dashboards View settings to the View editor
mrcasual May 6, 2024
631823d
Return only those Views that were configured for Dashboard display
mrcasual May 6, 2024
9b9f942
Update @since tags
mrcasual May 6, 2024
9516545
Refactor the main JS and add modifier key to shortcuts
mrcasual May 7, 2024
f326b94
Add user role selection to View editor's Dashboard Views settings
mrcasual May 7, 2024
293a6c9
Update repo's readme.md
mrcasual May 7, 2024
26df3d0
Update styles for the role selection element
mrcasual May 7, 2024
a5ecd3d
Fix improper ID used for the label element
mrcasual May 7, 2024
cb12f23
Replace hardcoded roles object with WP roles
mrcasual May 7, 2024
6c6584b
Do not include administrator role in the role selection dropdown
mrcasual May 8, 2024
1f50d7b
Display admin menu items only if user has necessary roles
mrcasual May 8, 2024
a5bdb7e
Allow specifying custom name for Dashboard Views
mrcasual May 8, 2024
ca0f8c0
Fix Grunt config
mrcasual May 8, 2024
55b2ffe
Add filters to modify View output and template
mrcasual May 8, 2024
e63e77d
Conditionally show the custom View name setting
mrcasual May 8, 2024
55a4749
Fix copypasta issue, yo!
mrcasual May 8, 2024
4dccc59
Set the default access role in the main plugin file
mrcasual May 8, 2024
07894e2
Update docblocks
mrcasual May 8, 2024
89cb5b8
Allow custom-positioning of the Dashboard Views menu in admin panel
mrcasual May 10, 2024
aa01b3b
Display notice when no Dashboard Views are configured
mrcasual May 10, 2024
3475883
Update styles
mrcasual May 10, 2024
881d456
Allow grouping of Dashboard Views
mrcasual May 13, 2024
30eda9e
Add View field option to exclude it from being displayed in the Dashb…
mrcasual May 13, 2024
7c50342
Fix group order not being set on submenu items
mrcasual May 13, 2024
7651b70
Hide fields that are not configured for display in the Dashboard
mrcasual May 13, 2024
d5308d1
Add a setting to prevent the View from rendering in the frontend (#17)
mrcasual May 13, 2024
6fda9b7
Fix endless loop introduced by e63e77d
mrcasual May 13, 2024
83109cb
Explicitly define submenus variable
mrcasual May 13, 2024
9b789b5
Fix the display of submenu items
mrcasual May 13, 2024
5d7be90
Fix docblock/class import
mrcasual May 13, 2024
63f9ed7
Refactor code
mrcasual May 14, 2024
7b13839
Handle entry deletion and duplication
mrcasual May 14, 2024
a3ade91
Load Gravity Flow's UI assets
mrcasual May 14, 2024
9ffa680
Configure CI
mrcasual May 14, 2024
87627cc
Bump version to 2.0-beta
mrcasual May 14, 2024
89aab1a
Add "View in Dashbord" link to View actions in GV View list table
mrcasual May 14, 2024
1cfc29a
Fix Dashboards Views menu not being positioned after GravityKit's menu
mrcasual May 15, 2024
a98f6d3
Set Pico as default stylesheet
mrcasual May 15, 2024
2b70f89
Revert "Fix the display of submenu items"
mrcasual May 15, 2024
96dcbd8
Rename variable as it makes more sense
mrcasual May 15, 2024
6fb92f4
Refactor code by moving View-related logic to the View class
mrcasual May 15, 2024
11b369f
Refactor and the user role access check
mrcasual May 15, 2024
4c2b1a6
Add GravityView Foundation setting to select fallback menu position
mrcasual May 15, 2024
9b8f9c0
Override WP's post and current screen before/after rendering the View
mrcasual May 21, 2024
caae47d
Add support for DataTables
mrcasual May 21, 2024
561b633
Use constant for Foundation's admin menu ID
mrcasual May 21, 2024
05473eb
Use the correct global $menu property as an ID
mrcasual May 21, 2024
d3556bd
Update Request logic that checks if it's a Dashboard View
mrcasual May 21, 2024
7d6a3f4
Enable lightbox (gallery) support
mrcasual May 21, 2024
8af9ec1
Update docblocks
mrcasual May 21, 2024
f760085
Remove unused/older code
mrcasual May 21, 2024
25b7d71
Use the correct menu ID for WP's Dashboard menu
mrcasual May 21, 2024
4eb207a
Update z-index of Fancybox's container
mrcasual May 22, 2024
7757f81
Fix Search throwing JS error because gvGlobals is not defined
mrcasual May 22, 2024
f083f40
Enqueue scripts after rendering the View
mrcasual May 23, 2024
eaf7527
Adjust the order when scripts are enqueued
mrcasual May 23, 2024
005109a
Adjust GravityMaps radius search styles
mrcasual May 23, 2024
ae2401c
Adjust info window single entry link in GravityMaps
mrcasual May 23, 2024
6663c2e
Move get_base_url() method to the Request class
mrcasual May 24, 2024
5a9d220
Use proper semantic version
mrcasual May 24, 2024
c68f9ba
Remove unused code
mrcasual May 24, 2024
5c7a582
Update custom View name setting description
mrcasual May 24, 2024
7886e85
Do not allow viewing the View in frontend if it's disabled in options
mrcasual May 24, 2024
2addf22
Display notice in the View editor when it's a Dashboard-only View
mrcasual May 24, 2024
26c3636
Require GravityView 2.23
mrcasual May 24, 2024
46860cb
Add field option to exclude it from frontend display
mrcasual May 24, 2024
ed5e6cb
Cache is_dashboard_view() response
mrcasual May 24, 2024
65cc270
Cache function responses to improve performance
mrcasual May 25, 2024
e460d5b
Fix Foundation settings that broke in 65cc270
mrcasual May 25, 2024
2a33924
Update translations
mrcasual May 25, 2024
e3ee3f4
Fix and improve conditional checks
mrcasual May 27, 2024
b1eab6c
Add Dashicon [ci skip]
zackkatz May 27, 2024
9de9f68
Remove redundant code
mrcasual May 27, 2024
22f2a94
Remove unused variable [ci skip]
mrcasual May 27, 2024
3b6af1f
Exclude build and cache files
zackkatz May 27, 2024
3f1879d
Fix DataTables length input display
zackkatz May 27, 2024
f7641e7
Invert the setting to be internal-only
zackkatz May 27, 2024
b8e78b1
Complete "internal-only" setting name modification
zackkatz May 27, 2024
e394095
Disable "View on website." link if internal-only
zackkatz May 27, 2024
f4df97f
Add method to implement DRY
zackkatz May 27, 2024
b50fc36
Prevent Permalink: showing up when internal-only
zackkatz May 27, 2024
61c893c
Remove Views from being available via query
zackkatz May 27, 2024
b80b42d
Restore seeing Views in Views table
zackkatz May 27, 2024
3868b1f
Use shorthand array syntax & format code
mrcasual May 27, 2024
b50cf49
Fix z-index conflict with Yoast
zackkatz May 27, 2024
13c3d87
Move user role settings up
zackkatz May 27, 2024
83b222e
Tweak some wording
zackkatz May 27, 2024
9a5e3a2
Add filter for menu icon
zackkatz May 27, 2024
a287711
Add better description [ci skip]
zackkatz May 29, 2024
0870858
Fix edit entry not working
mrcasual May 30, 2024
88ef158
Update filter name to use the our naming convention [ci skip]
mrcasual May 30, 2024
1a21d13
Update language per @rafaehlers feedback
zackkatz Jun 4, 2024
918eab2
Remove Group & Group Order View settings
mrcasual Jun 24, 2024
1a2e088
Trigger build
mrcasual Jun 26, 2024
2faf62c
Update translations
zackkatz Jun 27, 2024
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
70 changes: 70 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
version: 2.1

anchors:
context: &context
context: shared

default_job_config: &default_job_config
working_directory: /home/circleci/plugin
machine:
image: default

jobs:
build_package_release:
<<: *default_job_config
steps:
- checkout
- run:
name: Getting GK test/build tools
command: |
git clone [email protected]:GravityKit/Tooling.git /home/circleci/tooling
- restore_cache:
key: node-dependencies-{{ checksum "package-lock.json" }}
- run:
name: Installing dependencies
command: |
/home/circleci/tooling/build-tools/build_tools.sh npm -o install
/home/circleci/tooling/build-tools/build_tools.sh composer -o "install --no-dev"
- save_cache:
key: node-dependencies-{{ checksum "package-lock.json" }}
paths:
- node_modules
- run:
name: Building and packaging
command: |
/home/circleci/tooling/build-tools/build_tools.sh grunt
if [ "${CIRCLE_BRANCH}" != "main" ]; then
/home/circleci/tooling/build-tools/build_tools.sh package_build -o "gravityview-dashboard gravityview-dashboard-views.php --include-hash"
else
/home/circleci/tooling/build-tools/build_tools.sh package_build -o "gravityview-dashboard gravityview-dashboard-views.php $([[ $(git log -n 1 | grep "\[skip release\]") ]] && echo --include-hash)"
fi
mkdir -p gravityview-dashboard
mv vendor gravityview-dashboard
mv build gravityview-dashboard
zip -gr $(ls gravityview-dashboard-*.zip) gravityview-dashboard build
mkdir .release
cp gravityview-dashboard-*.zip .release
- run:
name: Creating a GitHub release
command: |
if [ "${CIRCLE_BRANCH}" == "main" ]; then
git config user.email "[email protected]"
git config user.name "GravityKit - CI"
/home/circleci/tooling/build-tools/build_tools.sh create_release -o "gravityview-dashboard-views.php $(ls gravityview-dashboard-*.zip)"
fi
- run:
name: Notifying GravityKit Release Manager
command: |
if ! [[ $(git log -n 1 | grep "\[skip notify\]") ]]; then
/home/circleci/tooling/build-tools/build_tools.sh announce_build -o "gravityview-dashboard-views.php $(ls gravityview-dashboard-*.zip) --with-circle"
fi
- store_artifacts:
path: .release
destination: release

workflows:
version: 2
test_and_package:
jobs:
- build_package_release:
<<: *context
16 changes: 14 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# Auto detect text files and perform LF normalization
* text=auto
.circleci export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.husky export-ignore
composer.json export-ignore
composer.lock export-ignore
Gruntfile.js export-ignore
package-lock.json export-ignore
package.json export-ignore
phpcs.xml.dist export-ignore
readme.md export-ignore
translations.pot export-ignore

assets export-ignore
29 changes: 4 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
# ignore everything in the root except the "wp-content" directory.
!wp-content/

# ignore everything in the "wp-content" directory, except:
# "mu-plugins", "plugins", "themes" directory
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/

# ignore these plugins
wp-content/plugins/hello.php

# ignore specific themes
wp-content/themes/twenty*/

# ignore node dependency directories
node_modules/

# ignore log files and databases
*.log
*.sql
*.sqlite

.DS_Store
node_modules
vendor

.sass-cache
build
Empty file modified .husky/pre-commit
100644 → 100755
Empty file.
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

Loading