You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,12 @@
3
3
## [Unreleased]
4
4
5
5
- feat: Deprecate `PhoneField.phoneFormat` in favor of `PhoneField.phoneFormatType`, and add new `GfPhoneFormat` type. Props @chetanupare, @justlevine.
6
+
- feat: Add support for filtering entries by `isRead` and `isStarred` statuses.
6
7
- fix: Correctly resolve `AddressField.defaultState`, `AddressField.defaultProvince` based on the `addressType`. H/t @byanko-bot
7
8
- fix: Set the default `AddressField.inputs.label` for the State/Province and Zip/Postal inputs based on the `addressType`. H/t @byanko-bot
8
9
- chore: Update Composer and NPM deps.
9
10
- tests: Improve cleanup and factory instantiation for better local isolation.
11
+
- tests: Backfill tests for Entry connection args.
@@ -82,10 +82,6 @@ public static function get_connection_args(): array {
82
82
'type' => EntryTypeEnum::$type,
83
83
'description' => staticfn () => __( 'Entry status. Default is `SUBMITTED`. Currently no other types are supported.', 'wp-graphql-gravity-forms' ),
84
84
],
85
-
'formIds' => [
86
-
'type' => [ 'list_of' => 'ID' ],
87
-
'description' => staticfn () => __( 'Array of form IDs to limit the entries to. Exclude this argument to query all forms.', 'wp-graphql-gravity-forms' ),
@@ -94,6 +90,18 @@ public static function get_connection_args(): array {
94
90
'type' => FieldFiltersModeEnum::$type,
95
91
'description' => staticfn () => __( 'Whether to filter by ALL or ANY of the field filters. Default is ALL.', 'wp-graphql-gravity-forms' ),
96
92
],
93
+
'formIds' => [
94
+
'type' => [ 'list_of' => 'ID' ],
95
+
'description' => staticfn () => __( 'Array of form IDs to limit the entries to. Exclude this argument to query all forms.', 'wp-graphql-gravity-forms' ),
96
+
],
97
+
'isRead' => [
98
+
'type' => 'Boolean',
99
+
'description' => staticfn () => __( 'Whether to limit to read or unread entries. Default is to include both.', 'wp-graphql-gravity-forms' ),
100
+
],
101
+
'isStarred' => [
102
+
'type' => 'Boolean',
103
+
'description' => staticfn () => __( 'Whether to limit to starred or unstarred entries. Default is to include both.', 'wp-graphql-gravity-forms' ),
104
+
],
97
105
'orderby' => [
98
106
'type' => EntriesConnectionOrderbyInput::$type,
99
107
'description' => staticfn () => __( 'How to sort the entries.', 'wp-graphql-gravity-forms' ),
0 commit comments