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

Revise 'About' Section #426

Merged
merged 24 commits into from
Jan 8, 2024
Merged

Revise 'About' Section #426

merged 24 commits into from
Jan 8, 2024

Conversation

fsimonjetz
Copy link
Contributor

No description provided.

@@ -582,8 +583,28 @@ test('inject ChapterDisplay', async () => {
}
}

const translationReference = referenceFactory.build()
const intertextReference = referenceFactory.build()
const translationReference = referenceFactory.build(
Copy link

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.

},
}
)
const intertextReference = referenceFactory.build(
Copy link

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.

src/about/ui/fragmentarium.tsx Show resolved Hide resolved
Annie Attia, Sona Eypper, and Henry Stadhouders (as external
collaborators).
<p />
<p>
Copy link

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.

@@ -42,3 +42,20 @@ export default class MarkupService {
return this.referenceInjector.injectReferencesToMarkup(parts)
}
}

export class CachedMarkupService extends MarkupService {
fromString(text: string): Bluebird<readonly MarkupPart[]> {
Copy link

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.

import Markup from 'markup/ui/markup'
import MarkupService from 'markup/application/MarkupService'

import afoRegisterCover from 'about/ui/static/afoRegister.png'

export default function AboutProject(
export default function AboutBibliography(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function AboutBibliography has 308 lines of code (exceeds 25 allowed). Consider refactoring.

export default function AboutProject(
markupService: MarkupService
): JSX.Element {
export default function AboutCorpus(markupService: MarkupService): JSX.Element {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function AboutCorpus has 91 lines of code (exceeds 25 allowed). Consider refactoring.

@@ -21,44 +21,72 @@ import smithdt1 from 'about/ui/static/smithdt1.jpg'
import strassmaier from 'about/ui/static/strassmaier.jpg'
import strassmaiercopies from 'about/ui/static/strassmaiercopies.jpg'

export default function AboutProject(
export default function AboutFragmentarium(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function AboutFragmentarium has 733 lines of code (exceeds 25 allowed). Consider refactoring.

Copy link

codeclimate bot commented Jan 8, 2024

Code Climate has analyzed commit 89b6840 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 95.4% (75% is the threshold).

This pull request will bring the total coverage in the repository to 90.9% (0.0% change).

View more on Code Climate.

@fsimonjetz fsimonjetz merged commit a4844be into master Jan 8, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant