feat(PLAT-553): Support for alphanumeric CNPJ with normalization to uppercase#600
Open
MarcosViniciusPC wants to merge 6 commits into
Open
feat(PLAT-553): Support for alphanumeric CNPJ with normalization to uppercase#600MarcosViniciusPC wants to merge 6 commits into
MarcosViniciusPC wants to merge 6 commits into
Conversation
|
simone-shiozawa
approved these changes
May 21, 2026
UlissesMantovani
approved these changes
May 21, 2026
OtavioBernardes
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Task
https://jirasoftware.catho.com.br/browse/PLAT-553
This pull request updates the CNPJ input component to support alphanumeric values (for the first 12 digits), ensures the last two digits are numeric, and automatically transforms input to uppercase. It also adds comprehensive tests for these changes and updates the CNPJ mask logic to enforce the new rules.
This pull request updates the GitHub Actions workflows to use a newer Ubuntu version and removes regression test steps from the CI pipeline. It also modifies the
.gitignorefile in the.lokidirectory.CI/CD Workflow Updates:
Updated the runner environment from
ubuntu-20.04toubuntu-22.04in both.github/workflows/actions-development.ymland.github/workflows/actions-publish.ymlfor improved compatibility and security. [1] [2] [3]Removed the regression test steps (
yarn build:regression) from both workflow files, streamlining the CI process to only run unit tests. [1] [2]Repository Maintenance:
currentanddifferencefrom.loki/.gitignore, which may affect how visual regression artifacts are tracked in version control.# TaskCNPJ Input Improvements:
masks.cnpjmask inmasks.jsto allow alphanumeric characters for the first 12 positions and restrict the last two positions to numeric digits only.cnpjPipefunction inInputTypes.jsxto automatically transform CNPJ input to uppercase while typing, and applied it to theInput.CNPJcomponent.Testing Enhancements:
Input.unit.test.jsxto verify that the CNPJ input allows alphanumeric characters, ignores symbols, keeps the last two digits numeric, and transforms input to uppercase.masks.unit.test.jsto ensure the CNPJ mask correctly enforces alphanumeric and numeric-only rules for the appropriate positions.Other:
test:regression:storybookscript inpackage.jsonto remove thefusercommand.