-
Notifications
You must be signed in to change notification settings - Fork 0
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
Colophons #462
Merged
Colophons #462
Changes from 14 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ed80897
Implement fragment colophon editor & refactor (WiP)
khoidt 5926372
Merge remote-tracking branch 'origin/master' into colophons
khoidt 7d1b903
Implement editor (WiP)
khoidt d46fb73
Refactor
khoidt d1611c7
Add colophon factories & refactor
khoidt 6ace461
Extend inputs, refactor & update tests
khoidt 6ade26c
Implement individuals form (WiP)
khoidt 8807a77
Adjust placeholders
khoidt 2c67eb9
Implement form changes (WiP)
khoidt e97c98f
Implement endpoint
khoidt 0e1aba7
Update fields & implement tests (WiP)
khoidt 2863ff8
Merge remote-tracking branch 'origin/master' into colophons
khoidt 4d9af1d
Add endpoint & major update
khoidt b5127e2
Update & add tests
khoidt dc87f43
Merge remote-tracking branch 'origin/master' into colophons
khoidt b088a96
Refactor
khoidt b747ea5
Refactor more
khoidt 5c12aad
Add colophons info & tests
khoidt 912a822
Clean up
khoidt 8afc586
Add tests for colophon data
khoidt 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 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 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 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 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 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,45 @@ | ||
import React from 'react' | ||
import { Form } from 'react-bootstrap' | ||
|
||
export interface BrokenUncertainProps { | ||
name: string | ||
isBroken?: boolean | ||
isUncertain?: boolean | ||
setBroken: | ||
| React.Dispatch<React.SetStateAction<boolean>> | ||
| ((isBroken: boolean) => void) | ||
setUncertain: | ||
| React.Dispatch<React.SetStateAction<boolean>> | ||
| ((isUncertain: boolean) => void) | ||
} | ||
|
||
export function BrokenAndUncertainSwitches({ | ||
name, | ||
isBroken = false, | ||
isUncertain = false, | ||
setBroken, | ||
setUncertain, | ||
}: BrokenUncertainProps): JSX.Element { | ||
return ( | ||
<> | ||
<Form.Switch | ||
label={`Broken`} | ||
id={`${name}_broken`} | ||
aria-label={`${name}-broken-switch`} | ||
data-testid={`${name}-broken-switch`} | ||
style={{ marginLeft: '10px' }} | ||
onChange={(event) => setBroken(event.target.checked)} | ||
checked={isBroken} | ||
/> | ||
<Form.Switch | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar blocks of code found in 2 locations. Consider refactoring. |
||
label={`Uncertain`} | ||
id={`${name}_uncertain`} | ||
aria-label={`${name}-uncertain-switch`} | ||
data-testid={`${name}-uncertain-switch`} | ||
style={{ marginLeft: '10px' }} | ||
onChange={(event) => setUncertain(event.target.checked)} | ||
checked={isUncertain} | ||
/> | ||
</> | ||
) | ||
} |
This file contains 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 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 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 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 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.
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.
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.
Similar blocks of code found in 2 locations. Consider refactoring.