-
Notifications
You must be signed in to change notification settings - Fork 85
feat: StudioCodeListEditor - display Numberfield or Checkbox based on value type #14398
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
e9b29b2
feat: Add text resource selector to code list editor
TomasEng d6c13ac
Merge remote-tracking branch 'origin' into add-numberfield-to-code-li…
ErlingHauan e32b242
add conditional rendering of numberfield
ErlingHauan e861d29
base new code list item value type on first item in codelist
ErlingHauan 50ea9e5
Merge remote-tracking branch 'origin' into add-numberfield-to-code-li…
ErlingHauan 9e9a73f
renames
ErlingHauan 29079f6
update test name
ErlingHauan fd25884
Merge main to branch
ErlingHauan 1724951
Merge remote-tracking branch 'origin' into add-numberfield-to-code-li…
ErlingHauan aa6c8d2
Render checkbox when value is boolean
ErlingHauan 3aed7a8
Render checkbox when value is boolean
ErlingHauan 0882627
split input components
ErlingHauan 8c3861d
Merge branch 'add-numberfield-to-code-list-editor' of https://github.…
ErlingHauan 80fdc7f
base type of new row on last row
ErlingHauan e5194f8
Forward ref to input cells
ErlingHauan 0bd270e
Add tests
ErlingHauan 954bbbc
Update tests
ErlingHauan cf17f0b
Merge branch 'main' into add-numberfield-to-code-list-editor
ErlingHauan 0e73d8e
Update tests
ErlingHauan 1d01ce3
Use correct type and refactoring
ErlingHauan 3f0cdc3
Use type assertion in getTypeOfLastValue
ErlingHauan 4f1c8ba
Implement suggestions from rabbit
ErlingHauan 6c4ad49
Replace isNan with undefined check
ErlingHauan 267d8de
Partly fix PR comments
ErlingHauan 2ece2f2
Add additional validations
ErlingHauan c1aede4
add validation when a code list has multiple different types
ErlingHauan 69dad58
update tests for findCodeListErrors
ErlingHauan a97dbd4
add isFieldValid utility function
ErlingHauan 2e75731
render Numberfield for undefined values, and add texts for error mult…
ErlingHauan dc76955
fix type errors
ErlingHauan d9b82ad
rename textkeys, so that they are easier to compare in nb.json
ErlingHauan b57d41d
fix tests
ErlingHauan 8ca7808
remove text beside checkbox
ErlingHauan a7398f2
make TypedInputCellProps generic
ErlingHauan bb44d31
use rest prop in TypedInputCell
ErlingHauan 5745260
add undefined as type parameter for NumberfieldCell
ErlingHauan adae170
rename hasSingleType in describe string
ErlingHauan 6168338
strengthen extractUniqueTypes test
ErlingHauan c156e3e
Merge branch 'add-numberfield-to-code-list-editor' of https://github.…
ErlingHauan d8cac28
Merge branch 'main' into add-numberfield-to-code-list-editor
ErlingHauan f26f5be
Add rest parameter to Numberfield, CheckboxFiel and Textfield
ErlingHauan 07ade2a
Add test for error in getTypeOfLastValue
ErlingHauan 98f0a8c
Merge branch 'main' into add-numberfield-to-code-list-editor
TomasEng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
9 changes: 9 additions & 0 deletions
9
frontend/libs/studio-components/src/components/StudioCodelistEditor/types/TypeofResult.ts
ErlingHauan marked this conversation as resolved.
Show resolved
Hide resolved
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export type TypeofResult = | ||
| 'string' | ||
| 'number' | ||
| 'bigint' | ||
| 'boolean' | ||
| 'symbol' | ||
| 'undefined' | ||
| 'object' | ||
| 'function'; |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.