Skip to content

SPIKE implementing polling instead of Turbo for image processing checking [WHIT-3226]#11352

Draft
patrickpatrickpatrick wants to merge 4 commits intomainfrom
polling-not-turbo
Draft

SPIKE implementing polling instead of Turbo for image processing checking [WHIT-3226]#11352
patrickpatrickpatrick wants to merge 4 commits intomainfrom
polling-not-turbo

Conversation

@patrickpatrickpatrick
Copy link
Copy Markdown
Contributor

@patrickpatrickpatrick patrickpatrickpatrick commented Apr 10, 2026

What

Implement polling to check if an image is processed, rather than asking the user to refresh the page to see a processed image.

Technical Details

  • Add new JSON route edition_images#show
  • Create new component ImageProcessingChecker
  • Add ImageProcessingChecker to ImageComponent
  • Add ImageProcessingChecker to ImageCropper
    • Move init to start
    • Add MutationObserver to init that runs start if there is an image in the ImageCropper component

Why

Provides a more intuitive experience if users do not have to refresh the page to see uploaded images.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

This application is owned by the Whitehall Experience team. Please let us know in #govuk-whitehall-experience-tech when you raise any PRs.

Follow these steps if you are doing a Rails upgrade.

@patrickpatrickpatrick patrickpatrickpatrick force-pushed the polling-not-turbo branch 3 times, most recently from 74dd38c to 4ab1485 Compare April 13, 2026 09:27
@patrickpatrickpatrick patrickpatrickpatrick changed the title polling not turbo SPIKE implementing polling instead of Turbo for image processing checking Apr 13, 2026
@patrickpatrickpatrick patrickpatrickpatrick changed the title SPIKE implementing polling instead of Turbo for image processing checking SPIKE implementing polling instead of Turbo for image processing checking [WHIT-3226] Apr 14, 2026
@patrickpatrickpatrick patrickpatrickpatrick force-pushed the polling-not-turbo branch 3 times, most recently from 35a20e9 to cd1be15 Compare April 16, 2026 14:46
@patrickpatrickpatrick patrickpatrickpatrick force-pushed the polling-not-turbo branch 2 times, most recently from 147d74c to 008d7a3 Compare April 16, 2026 14:51
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.

1 participant