-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
[ProjectLanguages] Add new analysis language or select new default #751
Conversation
Codecov Report
@@ Coverage Diff @@
## master #751 +/- ##
==========================================
+ Coverage 51.64% 51.69% +0.05%
==========================================
Files 242 242
Lines 6628 6652 +24
Branches 422 422
==========================================
+ Hits 3423 3439 +16
- Misses 2894 2903 +9
+ Partials 311 310 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
src/components/ProjectSettings/ProjectLanguages/ProjectLanguages.tsx, line 55 at r5 (raw file):
I think we need to handle the case where a user accidentally adds a language they already have. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @jasonleenaylor)
src/components/ProjectSettings/ProjectLanguages/ProjectLanguages.tsx, line 55 at r5 (raw file):
Previously, jasonleenaylor (Jason Naylor) wrote…
I think we need to handle the case where a user accidentally adds a language they already have.
The submit button is disabled if isNewWritingSystem
(below) returns false. Let me know if you want redundant safe-guards, in this function or via a comment somewhere.
src/components/ProjectSettings/ProjectLanguages/ProjectLanguages.tsx, line 55 at r5 (raw file): Previously, imnasnainaec (D. Ror.) wrote…
Sorry that I didn't see that. We don't need the redundant safeguard, but we should have a unit test for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @jasonleenaylor)
src/components/ProjectSettings/ProjectLanguages/ProjectLanguages.tsx, line 55 at r5 (raw file):
Previously, jasonleenaylor (Jason Naylor) wrote…
Sorry that I didn't see that. We don't need the redundant safeguard, but we should have a unit test for it.
Added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 3 files at r5, 1 of 1 files at r6.
Reviewable status: complete! all files reviewed, all discussions resolved
Resolves #712 (or at least the first two items).
Projects have 1 analysis language on creation. In project setting, this pr adds a + button to reveal the language picker and add a secondary analysis language.
The top language in the list is the primary/default associated with new entries, so this pr also adds a ↑ button by all secondary analysis languages allow it to be selected as the new default.
This change is