wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

refactor: create TS version of convertToCamelCase

Open nightnei opened this issue 9 months ago • 3 comments

Proposed Changes

We have convertToCamelCase function which is written with the help of JS.

This PR adds TS version of this function.

Why are these changes being made?

The main issue - we lose TS-types if we use this function inside ts / tsx modules.

Testing Instructions (let's test existing case, where we integrated this function)

  1. Create Simple website

  2. Open settings -> Writing

  3. Assert that you see "Post my Voice" and "Press this" in the "Publishign tools" section
    Screenshot 2024-05-15 at 12 46 53

  4. Turn on "Post by Voice"

  5. Assert that the code is generated, success notice "Changes saved successfully!" appeared and you see the next UI
    Screenshot 2024-05-16 at 17 07 28

  6. Click on "Regenerate code" and assert that it's regenerrated and success notice "Code regenerated successfully!" appeared

  7. Turn off "Post by voice" and assert that UI works and looks good
    Screenshot 2024-05-16 at 17 08 58

nightnei avatar May 22 '24 11:05 nightnei