Skip to content

Conversation

@markconroy
Copy link
Member

Closes #321

What does this change?

  1. Rewrites our services JS to remove jQuery and use vanilla JS
  2. Fixing coding standards

We need to get this merged so our tests will start passing again.

How to test

Add a service page, set a parent for it, go to the parent page and check that you can still use the drag 'n' drop feature to drag the page to the 'child pages' field.

How can we measure success?

Our tests pass and continue to pass.


Thanks to Big Blue Door for sponsoring my time to work on this.

@rupertj
Copy link
Member

rupertj commented Sep 9, 2025

You could remove the dependency on core/jquery from the libraries.yml for these submodules too.

@tonypaulbarker
Copy link
Contributor

@rupertj perhaps that's one for a follow up? We still have a little JQuery lurking in services status JS

Copy link
Contributor

@tonypaulbarker tonypaulbarker left a comment

Choose a reason for hiding this comment

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

I inspected the code and tested service status tabs (see https://demo.localgovdrupal.org/service-status ) and drag and drop on the Adult health and social care service landing page of the demo content /node/21/edit

Everything seems fine. No console errors.

See comments re: jQuery dependencies and remaining jQuery from Rupert and I.

Screenshot 2025-09-09 at 10 10 19 Screenshot 2025-09-09 at 10 10 56

@finnlewis
Copy link
Member

You could remove the dependency on core/jquery from the libraries.yml for these submodules too.

Added this issue #325

@finnlewis finnlewis merged commit eee9ba2 into 2.x Sep 9, 2025
14 of 17 checks passed
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.

Fix eslint errors

5 participants