Skip to content
Draft

2.0.0 #118

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
371 commits
Select commit Hold shift + click to select a range
744a992
Updates for the 10up Content Picker
s3rgiosan Mar 14, 2025
ed27efb
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Mar 14, 2025
416656c
Remove console.log
s3rgiosan Mar 14, 2025
1da467f
Fix relationship return format for Content Picker
s3rgiosan Mar 14, 2025
c448f18
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Mar 14, 2025
1827028
Rename RelatedPosts to RelatedEntities to support post-to-user relati…
s3rgiosan Mar 14, 2025
cf65bb2
Rename file
s3rgiosan Mar 14, 2025
052f5fa
Pass undefined on contentTypes for post-to-user relationships
s3rgiosan Mar 14, 2025
15852ca
Fix post type for REST related entities queries
s3rgiosan Mar 14, 2025
dfcf7d7
Fix related entities queries
s3rgiosan Mar 14, 2025
643a666
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Mar 14, 2025
fde2b8c
Fix save sort data
s3rgiosan Mar 14, 2025
960e5b9
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Mar 14, 2025
ee02171
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Mar 14, 2025
810c18c
Remove test code 🤦‍♂️
s3rgiosan Mar 14, 2025
d17bf7e
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Mar 14, 2025
d8720b0
Remove old UI classes
s3rgiosan Mar 14, 2025
dcf4a01
Enqueue block editor styles in the classic editor
s3rgiosan Mar 14, 2025
b01093c
Only enqueue classic editor assets if the post is using the classic e…
s3rgiosan Mar 14, 2025
a49beb1
Render metaboxes for post-to-user and post-to-post relationships
s3rgiosan Mar 14, 2025
24f0d01
Update helpers
s3rgiosan Mar 14, 2025
ac252d3
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Mar 14, 2025
bd25262
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Mar 14, 2025
400cf4e
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Mar 14, 2025
20ccd4c
Define plugin constants in plugin class for library usage
s3rgiosan Mar 18, 2025
97a2b87
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Mar 18, 2025
27cb2bc
Use __DIR__
s3rgiosan Mar 18, 2025
927705c
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Mar 18, 2025
c10624a
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Mar 18, 2025
360d9cb
Add dist files
s3rgiosan Mar 20, 2025
0784a92
Remove dist files
s3rgiosan Mar 21, 2025
03a4ef2
Respect "enable_ui" flag when rendering the relationship panel
s3rgiosan Apr 4, 2025
a1cc078
Remove deprecated search API
s3rgiosan Apr 4, 2025
6cfe3af
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Apr 4, 2025
bfc9d66
Customize picked relationship item
s3rgiosan Apr 4, 2025
32402d0
Add await for updateRelatedEntities
s3rgiosan Apr 4, 2025
2572e8b
Add REST endpoint that retrieves all relationships by type
s3rgiosan May 6, 2025
74898cb
Add support to return all relationships
s3rgiosan May 6, 2025
9ecb4b9
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan May 6, 2025
dd5bba7
Update dependencies
s3rgiosan May 6, 2025
9ce0b6b
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan May 6, 2025
b7edacf
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan May 6, 2025
ea74052
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan May 6, 2025
fb2d409
Use id and remove ID
s3rgiosan May 6, 2025
d35c0fd
Update internal state while syncing to the server in the background
s3rgiosan May 6, 2025
ba82f14
Add docblocks
s3rgiosan May 6, 2025
5b2770c
Extract key generation logic
s3rgiosan May 6, 2025
0f8170b
Remove redundant state update call
s3rgiosan May 6, 2025
d7e6258
Memoize selector
s3rgiosan May 6, 2025
cca2536
Fix adding new relationships
s3rgiosan May 6, 2025
7884213
Update useRelatedEntities hook
s3rgiosan May 6, 2025
a131a14
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan May 6, 2025
07e424e
Delete the Search endpoint since we are using 10up's Content Picker
s3rgiosan May 8, 2025
bbb2003
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan May 8, 2025
d88aa0a
Improve ContentPicker query filtering for relationship context
s3rgiosan May 8, 2025
799dd8e
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan May 8, 2025
53ad11d
Update MetaBox.php
s3rgiosan May 9, 2025
5e5ad19
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan May 9, 2025
93eae18
Merge branch 'feature/data-api-backbone' into feature/picked-relation…
s3rgiosan May 16, 2025
2311f6b
Replace Truncate component with Text component and add title attribut…
s3rgiosan May 16, 2025
0308424
Fix typo
barryceelen May 21, 2025
b5350e9
Add support for max_items
barryceelen May 21, 2025
95bdda1
Merge pull request #112 from 10up/feature/max-items
s3rgiosan May 22, 2025
be20df2
Remove REST field since its use was replaced by a custom store
s3rgiosan May 22, 2025
220503b
Add filter_by and filter_value to the Relationships endpoint
s3rgiosan May 22, 2025
dbd3cfb
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan May 22, 2025
c094329
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan May 22, 2025
c54e42e
Restore Search V1 endpoint
s3rgiosan May 22, 2025
c2640e8
Update to 100
s3rgiosan May 22, 2025
fead1ae
Update 10up Block components
s3rgiosan May 22, 2025
a7dc0bf
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan May 22, 2025
9544833
Merge branch 'feature/data-api-backbone' into feature/picked-relation…
s3rgiosan May 22, 2025
3f6915f
Add npm scripts
s3rgiosan May 26, 2025
113342c
Merge branch 'develop' into feature/helpers
s3rgiosan May 26, 2025
462b7d2
Merge branch 'feature/helpers' into feature/data-api-backbone
s3rgiosan May 26, 2025
4fbce70
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan May 26, 2025
4d80b92
Add links to the REST API responses for post types that support REST
s3rgiosan May 26, 2025
cf79b34
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan May 26, 2025
cc44db1
Review modules setup
s3rgiosan May 26, 2025
ee94e60
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan May 26, 2025
c5a19f3
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan May 26, 2025
e031119
Only reflect relationship changes after post being saved
s3rgiosan Jun 16, 2025
e8703a2
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jun 16, 2025
fa33e64
Update dependencies
s3rgiosan Jun 16, 2025
fc7263a
Address PR comments
s3rgiosan Jun 17, 2025
02ef40d
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jun 17, 2025
0a0b4a7
Update dependencies
s3rgiosan Jun 17, 2025
357bd1c
Update test dependencies
s3rgiosan Jan 8, 2026
5dbaedb
Add tests for the new helpers
s3rgiosan Jan 8, 2026
55e0573
Fix metabox test
s3rgiosan Jan 8, 2026
33d1832
Fix format and add docblocks
s3rgiosan Jan 8, 2026
ac61c1b
Update tests to use wp-env + phpunit
s3rgiosan Jan 9, 2026
9cb8396
Add more npm commands
s3rgiosan Jan 9, 2026
79c4d93
Cleanup registry after each test
s3rgiosan Jan 9, 2026
fe7f90e
Add docblocks to tests, fix format and use strict comparisons (assert…
s3rgiosan Jan 9, 2026
81d9b22
Simplify test command
s3rgiosan Jan 9, 2026
bc2ce16
Fix non-deterministic tests
s3rgiosan Jan 9, 2026
6d1d52c
Merge branch 'develop' into feature/helpers
s3rgiosan Jan 9, 2026
24471e3
Add spellcheck disable line
s3rgiosan Jan 9, 2026
56c7358
Add support for flags
s3rgiosan Jan 9, 2026
f53a9cf
Add nvmrc file
s3rgiosan Jan 9, 2026
4ec73be
Add action to test PHP
s3rgiosan Jan 9, 2026
5834009
Add cache path
s3rgiosan Jan 9, 2026
81ec0fa
Add npm install step
s3rgiosan Jan 9, 2026
d4d063c
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Jan 9, 2026
b60d779
Fix tests format
s3rgiosan Jan 9, 2026
69c90be
Update base test case to extend WP_UnitTestCase
s3rgiosan Jan 9, 2026
0f48d83
Add REST class test
s3rgiosan Jan 9, 2026
00661ff
Fix dummy data call
s3rgiosan Jan 9, 2026
feb2a5b
Register relationships in the registry
s3rgiosan Jan 9, 2026
b4e3657
Fix REST tests
s3rgiosan Jan 9, 2026
16fd170
Add Related Entities REST test
s3rgiosan Jan 9, 2026
fcbee6e
Fix REST headers assertion
s3rgiosan Jan 9, 2026
6b6397e
Add rest of the REST tests
s3rgiosan Jan 10, 2026
27b4c51
Declare constants to fix unit test
s3rgiosan Jan 10, 2026
b0e3e57
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Jan 10, 2026
78ab86d
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 12, 2026
75ca707
Remove unused setup method
s3rgiosan Jan 12, 2026
cf7e454
Revert update
s3rgiosan Jan 12, 2026
b95625c
Revert update
s3rgiosan Jan 12, 2026
ce4efd2
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Jan 12, 2026
531015d
Update tests for "loose" comparisons (backwards compat)
s3rgiosan Jan 12, 2026
10f6cf2
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Jan 12, 2026
2519760
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Jan 12, 2026
386c15c
Update 10up block components dependecy
s3rgiosan Jan 12, 2026
636317d
Remove URL from UI
s3rgiosan Jan 12, 2026
1623896
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 12, 2026
65b0770
Update spellchecker typos
s3rgiosan Jan 12, 2026
76aa620
Merge branch 'release/1.7.0' into feature/rest-api-endpoint
s3rgiosan Jan 12, 2026
3589782
Update dependencies
s3rgiosan Jan 12, 2026
9187a42
Update dependencies
s3rgiosan Jan 12, 2026
b593a81
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Jan 12, 2026
142d6d8
Restoring URL
s3rgiosan Jan 12, 2026
0b6197a
Add compiled assets
s3rgiosan Jan 12, 2026
67024a8
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 12, 2026
786b2f3
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 12, 2026
dc4d448
Update compiled assets
s3rgiosan Jan 12, 2026
88a99fb
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 12, 2026
a7034f0
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Jan 12, 2026
e420d76
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Jan 12, 2026
5ced2aa
Ignore dist dir on spellcheck
s3rgiosan Jan 12, 2026
1b97ba1
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 12, 2026
4e8bf37
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 12, 2026
38cec00
Fix typo definition
s3rgiosan Jan 12, 2026
cb0aa23
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 12, 2026
8ad0b31
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 12, 2026
5b79cb8
Fix file format
s3rgiosan Jan 12, 2026
21a4315
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 12, 2026
724e000
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 12, 2026
a16976f
Update dependencies
s3rgiosan Jan 12, 2026
affed85
Update dependencies
s3rgiosan Jan 12, 2026
62ee315
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 12, 2026
f6cd566
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 12, 2026
4d1845f
Merge branch 'feature/data-api-backbone' into feature/picked-relation…
s3rgiosan Jan 12, 2026
58bccc9
Add filters to customize the search result and the picked item
s3rgiosan Jan 12, 2026
dc8a226
Add container to allow for customization
s3rgiosan Jan 12, 2026
812a473
Update built assets
s3rgiosan Jan 12, 2026
017c37f
Add filter to customize the picked item preview component
s3rgiosan Jan 12, 2026
3e72d8d
Merge branch 'feature/picked-relationship-component' into release/1.7.0
s3rgiosan Jan 12, 2026
d409b64
Remove script localization
s3rgiosan Jan 12, 2026
1c97023
Merge branch 'feature/picked-relationship-component' into release/1.7.0
s3rgiosan Jan 12, 2026
c329050
Remove setup call that is no longer needed
s3rgiosan Jan 12, 2026
f84dbff
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 12, 2026
9808b84
Fix classic editor persistance
s3rgiosan Jan 12, 2026
4168d2d
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 12, 2026
cc3ec5a
Add build command to fix GH action
s3rgiosan Jan 29, 2026
b7d10a4
Add makepot and archive commands
s3rgiosan Jan 29, 2026
e0ac45a
Update dependencies
s3rgiosan Jan 29, 2026
8a70b93
Install node-wp-i18n
s3rgiosan Jan 29, 2026
ac14513
Update CHANGELOG
s3rgiosan Jan 29, 2026
e6d69b5
Add deprecation tag
s3rgiosan Jan 30, 2026
5842c2f
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Jan 30, 2026
690c608
Remove unused class properties
s3rgiosan Jan 30, 2026
a2de6d2
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Jan 30, 2026
ba6441b
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 30, 2026
38a47e0
Fix previous commit
s3rgiosan Jan 30, 2026
fd2fcf9
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 30, 2026
2afbfef
Merge branch 'feature/data-api-backbone' into feature/picked-relation…
s3rgiosan Jan 30, 2026
9524fbf
Merge branch 'feature/picked-relationship-component' into release/1.7.0
s3rgiosan Jan 30, 2026
9089792
no message
s3rgiosan Jan 30, 2026
7972817
Merge branch 'feature/data-api-backbone' into release/1.7.0
s3rgiosan Jan 30, 2026
018e08a
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 30, 2026
da99486
Update version to 2.0.0
s3rgiosan Jan 30, 2026
24fc0f5
Add architecture document
s3rgiosan Jan 30, 2026
8064212
Validate input params
s3rgiosan Jan 30, 2026
bd055a2
Add check for db errors
s3rgiosan Jan 30, 2026
334815a
Add filter for the default posts per page limit for relationship queries
s3rgiosan Jan 30, 2026
a429b86
Add static variable caching to both `get_post_to_post_relationships_b…
s3rgiosan Jan 30, 2026
f0b997e
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Jan 30, 2026
7f17afe
Fix schema
s3rgiosan Jan 30, 2026
f981895
Fix status sanitize callback
s3rgiosan Jan 30, 2026
4ce9183
Fix permissions check
s3rgiosan Jan 30, 2026
fc29a9a
Add check if post exists
s3rgiosan Jan 30, 2026
294e829
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Jan 30, 2026
80fd0ac
Fix tests
s3rgiosan Jan 30, 2026
362b226
Update dependencies
s3rgiosan Jan 30, 2026
3d147c8
Bypass static cache when doing tests
s3rgiosan Jan 30, 2026
8eaae84
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Jan 30, 2026
51d3a32
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Jan 30, 2026
06240e4
Add missing key to map
s3rgiosan Jan 30, 2026
39518bd
Serialize options to avoid unnecessary re-renders when parent re-renders
s3rgiosan Jan 30, 2026
8757263
Add try-catch to api fetch requests
s3rgiosan Jan 30, 2026
4d01001
Filter non number ids
s3rgiosan Jan 30, 2026
4f853bc
Memoize options to avoid unnecessary re-renders when parent re-renders
s3rgiosan Jan 30, 2026
30a9deb
Update built assets
s3rgiosan Jan 30, 2026
a011d1f
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 30, 2026
d5f316a
Add missing capability checks
s3rgiosan Jan 30, 2026
63c10fa
Check file_exists before enqueuing
s3rgiosan Jan 30, 2026
01a87eb
Cache post relationship data
s3rgiosan Jan 30, 2026
116792b
Merge branch 'feature/data-api-backbone' into feature/picked-relation…
s3rgiosan Jan 30, 2026
964ce06
Fix hook dependencies
s3rgiosan Jan 30, 2026
5b1ea3a
Update version to 2.0.0
s3rgiosan Jan 30, 2026
ad7108a
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Jan 30, 2026
23a4bdd
Update version
s3rgiosan Jan 30, 2026
01ec95a
Update version
s3rgiosan Jan 30, 2026
41b943f
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Jan 30, 2026
ae8138a
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Jan 30, 2026
36f2d20
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 30, 2026
7c4c2fe
Update version
s3rgiosan Jan 30, 2026
2a6c0f3
Merge branch 'feature/data-api-backbone' into feature/picked-relation…
s3rgiosan Jan 30, 2026
0e6a7f7
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 30, 2026
7414b26
Merge branch 'feature/picked-relationship-component' into release/1.7.0
s3rgiosan Jan 30, 2026
8c12c03
Fix array syntax inconsistency
s3rgiosan Jan 30, 2026
7f20796
Only expose relationship structure to authorized users
s3rgiosan Jan 30, 2026
9ce1e74
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Jan 30, 2026
cdb49aa
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 30, 2026
f87a51b
Merge branch 'feature/data-api-backbone' into feature/picked-relation…
s3rgiosan Jan 30, 2026
bf55d73
Merge branch 'feature/picked-relationship-component' into release/1.7.0
s3rgiosan Jan 30, 2026
bce3612
Fetch all pages to ensure all related entities are loaded
s3rgiosan Jan 30, 2026
f460a62
Add fixed height for content types that have many related entities
s3rgiosan Jan 30, 2026
f78c1da
Merge branch 'feature/data-api-backbone' into feature/classic-editor-…
s3rgiosan Jan 30, 2026
da0439c
Enqueue admin styles for classic editor
s3rgiosan Jan 30, 2026
7c508d9
Merge branch 'feature/data-api-backbone' into feature/picked-relation…
s3rgiosan Jan 30, 2026
7802669
Merge branch 'feature/picked-relationship-component' into release/1.7.0
s3rgiosan Jan 30, 2026
f30250f
Merge branch 'feature/classic-editor-support' into release/1.7.0
s3rgiosan Jan 30, 2026
3e51ae7
Update architecture doc
s3rgiosan Jan 30, 2026
0febc0b
Update test-php action
s3rgiosan Jan 30, 2026
4c5a35e
Merge branch 'feature/helpers' into feature/rest-api-endpoint
s3rgiosan Jan 30, 2026
48dc513
Merge branch 'feature/rest-api-endpoint' into feature/data-api-backbone
s3rgiosan Jan 30, 2026
a98d959
Merge branch 'feature/data-api-backbone' into feature/picked-relation…
s3rgiosan Jan 30, 2026
5c28109
Merge branch 'feature/picked-relationship-component' into release/1.7.0
s3rgiosan Jan 30, 2026
ce78d3a
Rename test php command
s3rgiosan Jan 30, 2026
02d40bc
Merge branch 'feature/data-api-backbone' into feature/picked-relation…
s3rgiosan Jan 30, 2026
1930d40
Merge branch 'feature/picked-relationship-component' into release/1.7.0
s3rgiosan Jan 30, 2026
41c1923
Add playground demo
s3rgiosan Jan 30, 2026
9c52265
Update README
s3rgiosan Jan 30, 2026
bfac489
Update version requirements in readme.txt
jeffpaul Jan 30, 2026
3a22384
Update required WordPress version to 6.8
jeffpaul Jan 30, 2026
02dd11b
Bump version from 1.6.0 to 2.0.0
jeffpaul Jan 30, 2026
e743369
Bump version from 1.6.0 to 2.0.0
jeffpaul Jan 30, 2026
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
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[{*.json,*.yml,.babelrc,.bowerrc,.browserslistrc,.postcssrc, .eslintrc, .stylelintrc}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
18 changes: 17 additions & 1 deletion .github/_typos.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
[default.extend-words]
# Add words that should be ignored (define them as themselves)
Tung = "Tung" # Example: Don't correct the surname "Tung"
curent = "curent" # Intentionally preserving misspelling to avoid breaking changes
curent = "curent" # Intentionally preserving misspelling to avoid breaking changes
stati = "stati" # Plural for statuses

[type.php]
extend-ignore-re = [
# spellchecker:disable-line:
"(?Rm)^.*//\\s*@spellchecker:disable-line(\\b.*)?$",

# spellchecker:<on|off>:
"//\\s*@spellchecker:off\\s*\\n.*\\n\\s*//\\s*@spellchecker:on"
]

[files]
extend-exclude = [
"build",
"dist"
]
45 changes: 45 additions & 0 deletions .github/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "WP Content Connect",
"description": "WordPress library that enables direct relationships for posts to posts and posts to users.",
"author": "10up"
},
"landingPage": "/wp-admin/",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
},
"login": true,
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "url",
"url": "https://github.com/10up/wp-content-connect/archive/refs/tags/2.0.0-beta.2.zip"
},
"options": {
"activate": true,
"targetFolderName": "wp-content-connect"
}
},
{
"step": "installPlugin",
"pluginData": {
"resource": "git:directory",
"url": "https://github.com/fabiankaegy/wp-content-connect-example-data",
"ref": "main"
},
"options": {
"activate": true
}
},
{
"step": "wp-cli",
"command": "wp content-connect-example generate --universities=10 --cities=20 --people=100"
}
]
}
55 changes: 55 additions & 0 deletions .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Test PHP

env:
COMPOSER_VERSION: "2"
COMPOSER_CACHE: "${{ github.workspace }}/.composer-cache"

on:
push:
branches:
- develop
- trunk
pull_request:
branches:
- develop

permissions:
contents: read

jobs:
test-php:
runs-on: ubuntu-latest
steps:
- name: Check out our repo source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

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

- name: Prepare composer cache
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
with:
path: ${{ env.COMPOSER_CACHE }}
key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-${{ env.COMPOSER_VERSION }}-

- name: Set PHP version
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
with:
php-version: '8.2'
extensions: :php-psr
coverage: none

- name: Install Node dependencies
run: npm ci --no-optional

- name: Install dependencies
run: composer install --ignore-platform-reqs

- name: Setup Tests
run: npm run test:setup

- name: Run Tests
run: npm run test:php
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.phpunit.result.cache
test-results/

# Version Control
.svn

Expand Down Expand Up @@ -27,7 +30,3 @@ npm-debug.log
sassdoc
scss-lint-report.xml
config.codekit

/assets/js/content-connect.js
/assets/js/content-connect.min.js

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
15 changes: 15 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"core": "WordPress/WordPress#master",
"phpVersion": "8.2",
"plugins": [
"."
],
"mappings": {
"wp-content/plugins/wp-content-connect": "."
},
"config": {
"WP_DEBUG": true,
"SCRIPT_DEBUG": true
}
}

Loading
Loading