Skip to content

Commit c8f0fd4

Browse files
committed
Merge branch 'master' into brandable
2 parents e6c6122 + 5395169 commit c8f0fd4

34 files changed

+292
-110
lines changed

docker-compose.prod.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# overrides that make the app behave like a production build
22
services:
33
app:
4-
command: sh -c 'yarn build; yarn start'
4+
build:
5+
context: .
6+
target: prod
57
healthcheck:
68
test: ["CMD-SHELL", "sh -c 'apk add curl; curl -X POST http://app:3000/'"]
79
interval: 5s

src/components/atoms/assessment/assessment.scss

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
@use "../../../sass/mixins";
44

55
.assessment {
6-
@include mixins.margin(0 -24);
7-
@include mixins.padding(24);
6+
@include mixins.margin(0 -24 36);
7+
@include mixins.padding(36 24);
88
@include typography.assessment-body();
99

1010
.highlighted-term {
@@ -41,14 +41,12 @@
4141
}
4242

4343
@media only all and (min-width: settings.$breakpoint-small) {
44-
@include mixins.margin(0 -48);
45-
@include mixins.padding(36 48);
44+
@include mixins.margin(0 -48 36);
45+
@include mixins.padding(48);
4646
}
4747

4848
@media only all and (min-width: settings.$breakpoint-medium) {
49-
@include mixins.padding(24 36);
50-
51-
margin: 0;
49+
@include mixins.margin(0 0 36);
5250
}
5351

5452
background-color: var(--color-background);
@@ -61,6 +59,10 @@
6159
.assessment__body {
6260
@include mixins.margin(12, "bottom");
6361

62+
p:first-of-type {
63+
@include mixins.margin(0, "top");
64+
}
65+
6466
p:last-of-type {
6567
@include mixins.margin(0, "bottom");
6668
}

src/components/atoms/assessment/assessment.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Meta, StoryObj } from '@storybook/react';
22
import { within, userEvent, expect } from '@storybook/test';
33
import { Assessment } from './assessment';
4+
import '../../../i18n';
45

56
const meta: Meta<typeof Assessment> = {
67
title: 'Atoms/Assessment',

src/components/atoms/assessment/assessment.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { fireEvent, render, screen } from '@testing-library/react';
22
import { significanceTerms, strengthTerms } from '../../../utils/terms';
33
import { Assessment } from './assessment';
4+
import '../../../i18n';
45

56
let mockPathName = '';
67
jest.mock('next/navigation', () => ({

src/components/atoms/assessment/assessment.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import './assessment.scss';
2-
import '../../../i18n';
32
import { useEffect, useState } from 'react';
43
import { useTranslation } from 'react-i18next';
54
import { TermsList } from '../terms-list/terms-list';

src/components/atoms/review-content/review-content.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Meta, StoryObj } from '@storybook/react';
22
import { ReviewContent } from './review-content';
3+
import '../../../i18n';
34

45
const meta: Meta<typeof ReviewContent> = {
56
title: 'Atoms/Review Content',

src/components/atoms/review-content/review-content.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { render, screen } from '@testing-library/react';
22
import { ReviewContent } from './review-content';
3+
import '../../../i18n';
34

45
describe('ReviewContent', () => {
56
it('renders with a simple string content', async () => {

src/components/atoms/review-content/review-content.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import './review-content.scss';
2-
import '../../../i18n';
32
import { Descriptors } from '../descriptors/descriptors';
43

54
type Props = { content: string, id?: string, peerReviewUrl?: string, doi?: string };

src/components/atoms/review-process/review-process.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Meta, StoryObj } from '@storybook/react';
22
import { ReviewProcess } from './review-process';
3+
import '../../../i18n';
34

45
const meta: Meta<typeof ReviewProcess> = {
56
title: 'Atoms/Review Process',

src/components/atoms/review-process/review-process.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { render, screen } from '@testing-library/react';
22
import { ReviewProcess } from './review-process';
3+
import '../../../i18n';
34

45
describe('Review Process', () => {
56
it('renders review process', () => {

0 commit comments

Comments
 (0)