Skip to content

WIP: Rewrite UpdateStatus as an ES Module #5366

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kr8n3r
Copy link
Contributor

@kr8n3r kr8n3r commented Jan 31, 2025

We want to migrate all of our legacy Javascript files to ESM, so this is the latest in the series of conversions.

Rewrite follows the same conventions we previously used for FocusBanner, Collapsible checkboxes, ColourPreview, FileUpload, Autofocus, PreviewPane, CopyToClipboard, EnhancedTextbox and others.

Added bonus: removes the use of jQuery and use Fetch API

In this PR we:

  • rewrite the module as ES Module
  • update the tests to be ES Module
  • remove old module JS file
  • remove old module from the legacy bundle build

How to test

Edit SMS template page is the easiest as the "Will be charged as 1 text message" is updated using this script

@kr8n3r kr8n3r force-pushed the rewrite-update-status-as-esm branch 3 times, most recently from 8d82c99 to f020541 Compare April 29, 2025 12:40
@kr8n3r kr8n3r changed the title Rewrite update status as esm Rewrite UpdateStatus as an ES Module Apr 29, 2025
@kr8n3r kr8n3r force-pushed the rewrite-update-status-as-esm branch from f020541 to 88b80bc Compare April 29, 2025 12:47
@kr8n3r kr8n3r marked this pull request as ready for review April 29, 2025 12:50
@kr8n3r kr8n3r force-pushed the rewrite-update-status-as-esm branch from 88b80bc to b6c98ec Compare April 29, 2025 13:07
We want to migrate all of our legacy Javascript
files to ESM, so this is the latest in the series
of conversions.

Rewrite follows the same conventions we previously
used for FocusBanner, Collapsible checkboxes,
ColourPreview, FileUpload, Autofocus, PreviewPane,
CopyToClipboard and others.

We Fetch API to do teh posting instead of jQuery's
AJAX.

In this PR we:

- rewrite the module as ES Module
- update the tests to be ES Module
- remove old module JS file
- remove old module from the legacy bundle build
@kr8n3r kr8n3r force-pushed the rewrite-update-status-as-esm branch from b6c98ec to 90915c8 Compare April 29, 2025 13:28
@tombye tombye self-assigned this May 1, 2025
@kr8n3r kr8n3r changed the title Rewrite UpdateStatus as an ES Module WIP: Rewrite UpdateStatus as an ES Module May 2, 2025
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