Skip to content
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

Which case should we use for FONT grade? #107

Open
actuallyyun opened this issue Apr 28, 2023 · 4 comments
Open

Which case should we use for FONT grade? #107

actuallyyun opened this issue Apr 28, 2023 · 4 comments
Labels
bug Something isn't working question Further information is requested
Milestone

Comments

@actuallyyun
Copy link
Contributor

Currently, the Font grade uses lowercase, and does not support uppercase:

Font.getScore('7B') Output: 0

Font.getScore('7b') Output: [ 76, 77 ]

I think it would be a good idea to use uppercase for the FONT grade to distinguish it from the French sports grade, but supports lowercase input as well.

What do you think? @musoke

@musoke
Copy link
Collaborator

musoke commented Apr 28, 2023 via email

@musoke
Copy link
Collaborator

musoke commented Apr 28, 2023

Allowing uppercase would be easy.

Need to check how they're stored in https://github.com/openbeta/openbeta-graphql and double check with a lot of people before disallowing lowercase - I suspect that disallowing lowercase will break routes currently in the db.

@actuallyyun
Copy link
Contributor Author

I see. Also later I noticed inconsistencies in allowing lower/upper cases in font scale methods. (isType is not case sensitive)
To begin with, should I delete this from README since this behavior is not consistent

// Font grade is not case sensitive
console.log('Is 6a a Font Scale?',Font.isType('6a'))

Then we could begin a discussion about which case to allow for font grade.
What do you think?

@musoke
Copy link
Collaborator

musoke commented May 2, 2023

I agree, remove that from the examples.

@musoke musoke added bug Something isn't working question Further information is requested labels May 3, 2023
@musoke musoke added this to the Next milestone May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants