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

feat: improve Thunder's menu GQLS for better accessibility and SEO #702

Open
wants to merge 27 commits into
base: 7.3.x
Choose a base branch
from

Conversation

IT-Cru
Copy link
Contributor

@IT-Cru IT-Cru commented Apr 18, 2023

To improve accessibility and SEO of menus in Thunder GQLS related projects it would be good to add following elements from Drupal core to Thunder's menu GQLS schema for each menu item.

  • Description
  • Expanded
  • Attributes (not included in this PR yet!)

Discussion with community

Attributes are not included, because here some general key/value Attribute type should be added to Thunder's GQLS and maybe GraphQL's data producer for menu_link_attribute should be checked, if this could not also provide an array of attributes instead of using it per attribute.

These attributes could be useful for other contrib modules like menu_link_attributes to get its data via GraphQL query.

What is missing

  • Testing data for menus needs to be extended to validate data for new GraphQL fields.
  • Update of Headless API docs needs to be updated in menu section.

Make sure these boxes are checked before submitting your pull request - thank you!

  • All coding styles are fulfilled. (How to check for cs issues?)
  • All tests are running locally. (How to run the test?)
  • Necessary update hooks are provided.
  • User roles have correct access for new introduced permission.
  • Every thunder module has a README.md in its root. Follow this guidelines, but we don't need every topic.
  • Code is covered with well-balanced amount of inline comments.
  • New features or changes are documented.

If you are really awesome, then your feature is covered by additional tests. Well done!

dbosen and others added 6 commits March 27, 2023 11:25
* feat(thunder_paragraphs): add src field to ParagraphVideo type
feat(thunder_gqls): add MediaSourceField data producer plugin for GraphQL

feat(thunder_gqls): add ThunderMediaProvider data producer plugin
fix(thunder_gqls): fix MediaVideo src field resolver to use media_source_field data producer plugin

feat(thunder_gqls): add src field resolver for ParagraphVideo GraphQL type
test(thunder_gqls): update paragraphs.query.graphql and paragraphs.response.json to include src field for ParagraphVideo type

* Fix

* Fix

* Rename src to reference

---------

Co-authored-by: Christian Fritsch <[email protected]>
* Allow multiple media types in entity browser view

* Add update hook

* Fix cs

* Better description

---------

Co-authored-by: Christian Fritsch <[email protected]>
* feat(composer.json): add drupal/xymatic dependency
feat(thunder_xymatic): add core.entity_form_display.media.xymatic.bulk_edit.yml configuration file

feat(thunder_xymatic): add default entity form display for media bundle xymatic

feat(thunder_xymatic): add media form display and field for xymatic bundle

feat(thunder_xymatic): add media type and field storage for Xymatic integration

* Add install hook

* Fix cs

* Rm

---------

Co-authored-by: Christian Fritsch <[email protected]>
* Release 6.5.4

* Fix

* Add news article

---------

Co-authored-by: Christian Fritsch <[email protected]>
@ol0lll ol0lll temporarily deployed to thunder-pr-702 April 18, 2023 12:58 Inactive
Copy link
Member

@dbosen dbosen left a comment

Choose a reason for hiding this comment

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

Implementation looks good.
Please extend the menu.query test to include the new fields.

chrfritsch and others added 15 commits April 26, 2023 09:28
…displays for media.xymatic bundle (#704)

feat(thunder_xymatic): add media.xymatic.thumbnail view display configuration file

Co-authored-by: Christian Fritsch <[email protected]>
* Add caption and description to xymatic

* Remove caption

---------

Co-authored-by: Christian Fritsch <[email protected]>
* Add video and xymatic type

* Move from entity to metaData

* Update thunder_paragraphs.base.graphqls

---------

Co-authored-by: Christian Fritsch <[email protected]>
* Test the testing

* try using selenium url without env vars

* escape args

* debug

* more args

* use localhost

* add back env

* add back env

* no para

* set env vars

* no env

* escape

* show env

* trigger

* fix args

* show env

* move

* hardcore chromedriver url

* Set vars

* remove escape

* hardcore again

* remove filter

* Update tests.yml

* Back to normal

---------

Co-authored-by: Christian Fritsch <[email protected]>
Co-authored-by: Volker Killesreiter <[email protected]>
- remove instagram test 
- improve mysql deadlocks
- fix metatag tests
Remove patch and unpin media_entity_pinterest.
@IT-Cru IT-Cru changed the base branch from 6.5.x to 7.2.x April 29, 2024 10:54
@IT-Cru IT-Cru changed the base branch from 7.2.x to 6.5.x April 29, 2024 11:07
@dbosen dbosen changed the base branch from 6.5.x to 7.2.x April 29, 2024 11:16
@dbosen dbosen changed the base branch from 7.2.x to 6.5.x April 29, 2024 11:19
@dbosen dbosen changed the base branch from 6.5.x to 7.2.x April 29, 2024 11:22
@dbosen dbosen changed the base branch from 7.2.x to 6.5.x April 29, 2024 11:22
@dbosen dbosen changed the base branch from 6.5.x to 7.2.x April 29, 2024 11:23
@chrfritsch chrfritsch marked this pull request as draft April 30, 2024 09:21
@dbosen dbosen changed the base branch from 7.2.x to 7.3.x September 5, 2024 07:36
@dbosen dbosen marked this pull request as ready for review September 9, 2024 07:02
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.

4 participants