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

Feature-first refactor #611

Merged
merged 164 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
eae0bde
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Aug 24, 2023
c1dbfc8
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Aug 30, 2023
e0edc31
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Nov 1, 2023
51b6363
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Nov 6, 2023
6954862
init
Sidsector9 Nov 6, 2023
1e85687
build apis for common provider fields
Sidsector9 Nov 6, 2023
77ef4e9
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Nov 6, 2023
51725a9
Merge branch 'develop' into classifai-non-react
Sidsector9 Nov 6, 2023
d28783f
migrate repeater fields
Sidsector9 Nov 6, 2023
dd065e8
fix repeater field name
Sidsector9 Nov 6, 2023
97c2961
remove redundant fields from Provider.php
Sidsector9 Nov 6, 2023
2b468db
try generate titles with existing classes
Sidsector9 Nov 6, 2023
09e7e88
update language processing handlers
Sidsector9 Nov 7, 2023
3868b80
pass feature instance to provider
Sidsector9 Nov 7, 2023
a765c73
fix OpenAI trait
Sidsector9 Nov 7, 2023
695c731
working title, excerpt gen and content resizing
Sidsector9 Nov 7, 2023
5572af7
phpcs fixes
Sidsector9 Nov 7, 2023
24fbc92
phpcs fixes
Sidsector9 Nov 7, 2023
8532d7b
migrate text to speech under language processing
Sidsector9 Nov 8, 2023
c57778b
add filter to sanitize feature settins
Sidsector9 Nov 8, 2023
49ce4fb
migrate audio transcripts
Sidsector9 Nov 9, 2023
d3bf6de
add action hooks to features
Sidsector9 Nov 9, 2023
2ed5b45
move logic from language processing to ChatGPT
Sidsector9 Nov 10, 2023
acc7915
move audio transcription to ChatGPT
Sidsector9 Nov 10, 2023
7661304
move speech synthesis to Speech.php
Sidsector9 Nov 10, 2023
24b6f45
fix is_feature_enabled method
Sidsector9 Nov 10, 2023
fec148d
fix is_feature_enabled for audio transcription
Sidsector9 Nov 10, 2023
6290a54
add conditional fields
Sidsector9 Nov 10, 2023
d7aac03
update sanitize_settings
Sidsector9 Nov 10, 2023
6bb3d18
add conditional fields JS support
Sidsector9 Nov 10, 2023
b7ae2dd
add helper methods
Sidsector9 Nov 16, 2023
25cab08
fix access levels
Sidsector9 Nov 16, 2023
7d80a69
refactor provider fields
Sidsector9 Nov 17, 2023
bcfdaf3
add smart cropping and text extraction features
Sidsector9 Nov 19, 2023
0f21a59
add methods to wrap common functionality
Sidsector9 Nov 19, 2023
33ef8cd
working image processing features, except Dall.E
Sidsector9 Nov 20, 2023
f6de77f
>>> settings error, need to revisit and apply to all providers
Sidsector9 Nov 20, 2023
11c9ade
media edit screen working
Sidsector9 Nov 22, 2023
0ae4005
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Nov 22, 2023
47f63c9
fix conditionals
Sidsector9 Nov 22, 2023
cf7095e
migrate Dall.E, add Image Generation feature
Sidsector9 Nov 26, 2023
6bd2a69
>>> add the run() feature method
Sidsector9 Nov 27, 2023
f2458cb
and run() to ImageGenerator
Sidsector9 Nov 28, 2023
efb3aa9
migrate bulk migration
Sidsector9 Nov 29, 2023
b120702
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Nov 29, 2023
80ce584
>>> partial migration of classification
Sidsector9 Dec 3, 2023
46cc5f3
>>> working classification
Sidsector9 Dec 4, 2023
848f9a7
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Dec 6, 2023
d8eba65
Merge branch 'develop' into classifai-non-react
Sidsector9 Dec 6, 2023
a8ec813
add missing function
faisal-alvi Dec 7, 2023
0d7c21f
fix the terms data object
faisal-alvi Dec 7, 2023
d44828d
Added initial access control settings fields in new settings.
iamdharmesh Dec 8, 2023
cee08ca
Add access control fields to feature settings.
iamdharmesh Dec 8, 2023
4ca89bb
Added common has_access, is_enabled and is_feature_enabled methods.
iamdharmesh Dec 8, 2023
eeef193
Updated user based opt out in user profile.
iamdharmesh Dec 8, 2023
fee46aa
Fix disable feature link for title generation.
iamdharmesh Dec 8, 2023
e00695d
Make disable feature link work.
iamdharmesh Dec 8, 2023
e210c6c
Remove features from providers.
iamdharmesh Dec 8, 2023
680945b
Remove unwanted function.
iamdharmesh Dec 8, 2023
73ff71f
Fix front-end permission issue for tts.
iamdharmesh Dec 8, 2023
21b4d9b
Add permission check in rest api.
iamdharmesh Dec 14, 2023
d4cc13a
Remove unwanted code.
iamdharmesh Dec 14, 2023
8cb10d4
Fix console error.
iamdharmesh Dec 14, 2023
10c2047
Fix Descriptive text rescan in media model.
iamdharmesh Dec 14, 2023
af6415f
Remove unwanted code.
iamdharmesh Dec 14, 2023
8e507d2
Fix fatal error in classifai setup.
iamdharmesh Dec 15, 2023
ef29b88
started working on fix onboarding.
iamdharmesh Dec 15, 2023
3f8f4a3
Updated step-1
iamdharmesh Dec 15, 2023
e5cd51a
Updated step-2 & 3
iamdharmesh Dec 15, 2023
e2a8079
Step 4 and styling improvements.
iamdharmesh Dec 15, 2023
be8955c
Remove unwanted code.
iamdharmesh Dec 15, 2023
c53110f
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Dec 21, 2023
2967390
Merge branch 'develop' into classifai-non-react
Sidsector9 Dec 21, 2023
b4df0d9
Merge branch 'classifai-non-react' into enhancement/566-2
Sidsector9 Dec 21, 2023
fb6c7b7
Merge pull request #634 from 10up/enhancement/566-2
Sidsector9 Dec 21, 2023
347970b
Merge branch 'classifai-non-react' of github.com:10up/classifai into …
Sidsector9 Dec 21, 2023
51e38ad
Merge branch 'classifai-non-react' into enhancement/access-control
Sidsector9 Dec 21, 2023
9ada3d8
Merge pull request #635 from 10up/enhancement/access-control
Sidsector9 Dec 21, 2023
2908398
Merge branch 'classifai-non-react' of github.com:10up/classifai into …
Sidsector9 Dec 21, 2023
d885713
Merge branch 'classifai-non-react' into refactor-onboarding
Sidsector9 Dec 21, 2023
1822cf1
Merge pull request #642 from 10up/refactor-onboarding
Sidsector9 Dec 21, 2023
a90b8ea
Merge branch 'classifai-non-react' of github.com:10up/classifai into …
Sidsector9 Dec 21, 2023
33f2d48
phpcs fixes
Sidsector9 Dec 21, 2023
ba84c7b
phpcs fixes
Sidsector9 Dec 21, 2023
d636b14
eslint fixes
Sidsector9 Dec 21, 2023
6cb569f
migrate OpenAI Embeddings
Sidsector9 Jan 1, 2024
b3ccdaf
add links to setup keys
Sidsector9 Jan 2, 2024
dd57777
add debug logger
Sidsector9 Jan 2, 2024
2c3242a
add latest response
Sidsector9 Jan 2, 2024
1e22f51
fix embeddings helper methods and CLI support
Sidsector9 Jan 2, 2024
d44866e
Add "Classify" bulk action.
iamdharmesh Jan 4, 2024
d430494
Fix prompt trash error.
iamdharmesh Jan 4, 2024
66ebf13
update e2e test to support feature-first refactor
Sidsector9 Jan 7, 2024
e9ddc96
migrate Recommended Content
Sidsector9 Jan 7, 2024
c82ec3c
Merge branch 'classifai-non-react' of github.com:10up/classifai into …
Sidsector9 Jan 7, 2024
1f3ca17
Merge branch 'classifai-non-react' into feature-first-e2e
Sidsector9 Jan 7, 2024
7534f84
move features for RecommendedContent
Sidsector9 Jan 7, 2024
848d68d
add Classification mode and method setting
Sidsector9 Jan 8, 2024
aa01177
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Jan 8, 2024
6b94ed7
Merge branch 'develop' into classifai-non-react
Sidsector9 Jan 8, 2024
edac3aa
fix link terms
Sidsector9 Jan 8, 2024
535309c
>>>> remove Feature constructor
Sidsector9 Jan 9, 2024
5503bad
>>>> working previewer for Watson
Sidsector9 Jan 9, 2024
f136c49
Merge branch 'classifai-non-react' into feature-first-e2e
Sidsector9 Jan 9, 2024
452a308
>>> 1 test failing
Sidsector9 Jan 9, 2024
c1ade8b
fix variable
Sidsector9 Jan 9, 2024
17d3cf3
Merge branch 'classifai-non-react' into feature-first-e2e
Sidsector9 Jan 9, 2024
b728685
uncomment tests
Sidsector9 Jan 9, 2024
e2632a3
fix OpenAI Embeddings
Sidsector9 Jan 10, 2024
b6647ec
Merge branch 'classifai-non-react' into feature-first-e2e
Sidsector9 Jan 10, 2024
0390a1f
fix OpenAI Embeddings tests
Sidsector9 Jan 11, 2024
5941047
fix url index
Sidsector9 Jan 14, 2024
2554a51
Merge branch 'classifai-non-react' into feature-first-e2e
Sidsector9 Jan 14, 2024
887758f
Merge branch 'develop' of github.com:10up/classifai into develop
Sidsector9 Jan 14, 2024
e905817
Merge branch 'develop' into classifai-non-react
Sidsector9 Jan 14, 2024
a0a8879
Merge branch 'classifai-non-react' into feature-first-e2e
Sidsector9 Jan 14, 2024
ae4cb11
fix eslint issues
Sidsector9 Jan 15, 2024
b2c71cb
Cleanup around the config constants we load, removing some code we do…
dkotter Jan 22, 2024
6a20a52
Cleanup how we autoload things. Rely on composer only instead of havi…
dkotter Jan 22, 2024
0c7b439
Try updating all of our npm dependencies
dkotter Jan 22, 2024
0019a90
Try updating all of our composer dependencies
dkotter Jan 22, 2024
896aa3c
Minor cleanup in the main Plugin.php file
dkotter Jan 22, 2024
5050854
Minor cleanup in the Helpers and PostClassifier files
dkotter Jan 22, 2024
221956d
Clean up services
dkotter Jan 22, 2024
f6b4e7b
Clean up services
dkotter Jan 22, 2024
108501a
Clean up taxonomies
dkotter Jan 22, 2024
23aa4d6
Clean up admin functionality
dkotter Jan 22, 2024
59a77ca
Clean up the features
dkotter Jan 23, 2024
ca3af48
Reduce duplicate code with how a feature sets it's providers
dkotter Jan 23, 2024
6c54715
Reduce duplicate code with how a feature handles settings
dkotter Jan 23, 2024
67db67a
Clean up Provider and AccessControl
dkotter Jan 23, 2024
8b1293b
Clean up the OpenAI provider code:
dkotter Jan 23, 2024
9a28c19
Clean up the Watson provider code
dkotter Jan 23, 2024
6224a39
Clean up the Azure provider code
dkotter Jan 23, 2024
84c217a
Fix all remaining PHPCS issues
dkotter Jan 23, 2024
46ea239
Start fixing unit tests
dkotter Jan 24, 2024
53d789f
A couple more PHPCS and test fixes
dkotter Jan 24, 2024
63c4144
Clean up a few more test failures
dkotter Jan 24, 2024
dff258a
Migrate all Excerpt Generation specific items from the Provider class…
dkotter Jan 24, 2024
957b28a
Migrate all Title Generation specific items from the Provider class t…
dkotter Jan 24, 2024
5550d40
Migrate all Content Resizing specific items from the Provider class t…
dkotter Jan 24, 2024
ce66151
Migrate all Audio Transcription specific items from the Provider clas…
dkotter Jan 25, 2024
2adbebf
Migrate all Image Generation specific items from the Provider class t…
dkotter Jan 25, 2024
2a53c86
Initial work done on getting the Azure AI Vision things moved from th…
dkotter Jan 25, 2024
099824f
Migrate all Image Cropping specific items from the Provider class to …
dkotter Jan 26, 2024
9747cca
Migrate all PDF Text Extraction specific items from the Provider clas…
dkotter Jan 26, 2024
574a35d
Merge branch 'classifai-non-react' of github.com:10up/classifai into …
Sidsector9 Jan 29, 2024
f3c4d58
Migrate all Text to Speech specific items from the Provider class to …
dkotter Jan 29, 2024
e28c85d
Move most of the Watson specific code into the Watson Provider direct…
dkotter Jan 29, 2024
5a093ac
Fix some bugs
dkotter Jan 30, 2024
bf92376
Fix some more bugs
dkotter Jan 30, 2024
b42700f
Fix tests
dkotter Jan 30, 2024
f8a6365
Fix last failing unit test
dkotter Jan 30, 2024
0a3d0f5
Merge branch 'classifai-non-react' into feature-first-e2e
dkotter Jan 30, 2024
ebbbcc5
Fix failing E2E tests. Some failures were legit bugs that have been f…
dkotter Jan 30, 2024
ff5b712
Merge pull request #653 from 10up/feature-first-e2e
dkotter Jan 30, 2024
523b4e3
Fix unit test
dkotter Jan 31, 2024
07e764c
Merge branch 'classifai-non-react' of github.com:10up/classifai into …
Sidsector9 Jan 31, 2024
f1b82fc
fix excerpt generation test
Sidsector9 Jan 31, 2024
6ab37ad
Fix tests that were failing due to the Classic Editor
dkotter Jan 31, 2024
1922118
Fix remaining PHPCS issues
dkotter Jan 31, 2024
c47bcf3
fix text to speech test
Sidsector9 Jan 31, 2024
11e8dff
Merge branch 'classifai-non-react' of github.com:10up/classifai into …
Sidsector9 Jan 31, 2024
bef8081
Don't run E2E tests on trunk for now as there's some known failures t…
dkotter Jan 31, 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
6 changes: 3 additions & 3 deletions .github/workflows/build-release-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set Node.js 16.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: npm install and build
Expand All @@ -22,7 +22,7 @@ jobs:
composer install --no-dev
npm run archive
- name: Upload the ZIP file as an artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
pull_request:
branches:
- develop

jobs:
cypress:
name: ${{ matrix.core.name }}
Expand All @@ -17,10 +18,10 @@ jobs:
core:
- {name: 'WP latest', version: 'latest'}
- {name: 'WP minimum', version: 'WordPress/WordPress#6.1'}
- {name: 'WP trunk', version: 'WordPress/WordPress#master'}
# - {name: 'WP trunk', version: 'WordPress/WordPress#master'}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: npm install
Expand Down Expand Up @@ -51,7 +52,7 @@ jobs:
cat ./tests/cypress/reports/mochawesome.md >> $GITHUB_STEP_SUMMARY

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-artifact-classifai
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Dependency Review
uses: actions/dependency-review-action@v3
uses: actions/dependency-review-action@v4
with:
license-check: true
vulnerability-check: false
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup node v16 and npm cache
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
Expand All @@ -32,7 +32,7 @@ jobs:

- name: Get updated JS files
id: changed-files
uses: tj-actions/changed-files@v41
uses: tj-actions/changed-files@v42
with:
files: |
**/*.js
Expand All @@ -52,14 +52,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set standard 10up cache directories
run: |
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"

- name: Prepare composer cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.COMPOSER_CACHE }}
key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }}
Expand All @@ -78,7 +78,7 @@ jobs:

- name: Get updated PHP files
id: changed-files
uses: tj-actions/changed-files@v41
uses: tj-actions/changed-files@v42
with:
files: |
**/*.php
Expand All @@ -97,7 +97,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: VIPCS check
uses: 10up/wpcs-action@stable
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Node.js 16.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set Node.js 16.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version-file: .nvmrc
- name: npm install and build
run: |
npm install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v4

- name: Set standard 10up cache directories
run: |
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"

- name: Prepare composer cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ env.COMPOSER_CACHE }}
key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }}
Expand All @@ -44,7 +44,7 @@ jobs:
- uses: getong/[email protected]

- name: Set PHP version
uses: shivammathur/setup-php@2.17.0
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
Expand Down
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

1 change: 0 additions & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{

Check warning on line 1 in .wp-env.json

View workflow job for this annotation

GitHub Actions / eslint

File ignored by default.
"core": "WordPress/WordPress#6.1",
"plugins": [".", "./tests/test-plugin", "https://downloads.wordpress.org/plugin/classic-editor.zip"],
"env": {
"tests": {
Expand Down
152 changes: 0 additions & 152 deletions autoload.php

This file was deleted.

Loading
Loading