fix: resolve hyphen error in issue #5948 (@sarthaknimbalkar) #5953
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.
Description
This pull request introduces two significant changes:
Renaming Layouts: The following layouts have been renamed to valid names:
3l*
(*white space here) ,seht-drai
,saiga-e
3l
,seht_drai
,saiga_e
These changes were made in the file located at
monkeytype/frontend/static/layouts/_list.json
.Validation Implementation: A validation mechanism has been implemented in the file
monkeytype/frontend/src/ts/config-validation.ts
to ensure that layout names conform to the new naming conventions.This enhancement allows us to display layout names without hyphens or underscores. For example, "seht_drai" will now appear as "seht drai," along with all such other similar names.
Checks
_list.json
,_groups.json
, and addedlanguages.json
.Closes #5948
There was another PR attempt made by @m4dd0c #5951