Skip to content

feat(case-converter): add text case converter and slug generator (#76) - #94

Open
ajithakdev wants to merge 3 commits into
mainfrom
feat/text-case-converter
Open

ajithakdev wants to merge 3 commits into
mainfrom
feat/text-case-converter

Conversation

@ajithakdev

@ajithakdev ajithakdev commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #76

Adds a comprehensive, zero-dependency, 100% client-side Text Case Converter & Slug Generator tool:

  • 12 Supported Conversions:
    • camelCase
    • PascalCase
    • snake_case
    • CONSTANT_CASE
    • kebab-case
    • URL Slug (with diacritic decomposition & normalization, punctuation stripping, trim dashes)
    • Title Case
    • Sentence case
    • dot.case
    • path/case
    • lowercase
    • UPPERCASE
  • Automatic Casing Detection: Recognizes current casing format and informs the user in real-time.
  • Batch Multi-Line Transformation: Convert lists/lines of variables or text to any target format with one click.
  • Live Output Grid: Responsive cards with individual 1-click copy buttons and toast feedback.
  • Quick Preset Samples: 5 sample inputs demonstrating different casing structures.
  • URL Synchronization: Shareable state with useUrlState for instant linking.
  • Registered & Categorized: Added to registry with Type icon and categorized under 'Converters & Formatters' on the Landing page.

Testing & Verification

  • Unit test suite: src/tools/case-converter/caseConverter.test.ts (10 unit tests) covering all 12 casing transformations, Unicode diacritics stripping, edge cases, punctuation handling, and casing detection.
  • Component test suite: src/tools/case-converter/caseConverterTool.test.tsx (5 component tests) covering layout, real-time input updating, sample loading, batch conversion, and casing badge.
  • Full project test suite passed: 56 passed across 9 test files
  • Full typecheck (tsc -b), lint (eslint .), and production bundle build (vite build) verified with zero errors.

Devin Review

@netlify

netlify Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for toolglass-by-ajithakdev ready!

Name Link
🔨 Latest commit 7a6b057
🔍 Latest deploy log https://app.netlify.com/projects/toolglass-by-ajithakdev/deploys/6a9f08e9beb10100085b0f8d
😎 Deploy Preview https://deploy-preview-94--toolglass-by-ajithakdev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

Comment thread src/tools/case-converter/caseConverter.ts Outdated
Comment thread src/tools/case-converter/caseConverter.ts

This branch has not been deployed

No deployments
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.

feat: Text Case Converter & Slug Generator — camelCase, snake_case, kebab-case, and more

1 participant