Skip to content

Conversation

@EreMaijala
Copy link
Contributor

TODO:

  • Decide what, if anything, to do with current new item form and results actions.
  • Add tests.

@EreMaijala EreMaijala requested a review from demiankatz January 12, 2026 09:12
Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting this started, @EreMaijala. I haven't had a chance to do any hands-on testing or to review everything carefully, but see below for a few minor things.

I'll comment further when I have a bit more time!

Comment on lines +1993 to +1998
* @param string|object|array $target String to translate or an array of text
* domain and string to translate
* @param array $tokens Tokens to inject into the translated
* string
* @param string $default Default value to use if no translation is
* found (null for no default).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor formatting suggestions:

Suggested change
* @param string|object|array $target String to translate or an array of text
* domain and string to translate
* @param array $tokens Tokens to inject into the translated
* string
* @param string $default Default value to use if no translation is
* found (null for no default).
* @param string|object|array $target String to translate or an array of text
* domain and string to translate
* @param array $tokens Tokens to inject into the translated string
* @param string $default Default value to use if no translation is
* found (null for no default).

*
* @return string
*/
public function replaceFacet($field, $value, $operator = 'AND')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well add types to new methods...

Suggested change
public function replaceFacet($field, $value, $operator = 'AND')
public function replaceFacet(string $field, string $value, string $operator = 'AND'): static

* @param string $value Facet value
* @param string $operator Facet type to add (AND, OR, NOT)
*
* @return string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this isn't returning a string...

Suggested change
* @return string
* @return static

"version": "2.11.8",
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
"integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
"peer": true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This random change again!

Suggested change
"peer": true,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants