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

Feature/466796 add page #710

Merged
merged 22 commits into from
Feb 21, 2025
Merged

Feature/466796 add page #710

merged 22 commits into from
Feb 21, 2025

Conversation

jbarnsley10
Copy link
Contributor

Add page
Add question
List questions


$defra-brand-colour: govuk-organisation-colour(department-for-environment-food-rural-affairs);

.editor-card {
Copy link
Contributor

@whitewaterdesign whitewaterdesign Feb 20, 2025

Choose a reason for hiding this comment

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

purely for cleanliness, nice to have a line break in between parent/child class, bit pedantic I know.

}
]
},
headers: { Authorization: `Bearer ${token}` }
Copy link
Contributor

Choose a reason for hiding this comment

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

if this is being reused, could be pulled out to a const.

},
useNewMasthead: true
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Like this. 👍

const now = new Date()
const authorId = 'f50ceeed-b7a4-47cf-a498-094efc99f8bc'
const authorDisplayName = 'Enrique Chase'

Copy link
Contributor

Choose a reason for hiding this comment

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

would be nice to have these stored in a separate folder. If everyone else is happy with a __stubs__ folder (or some other name) so that they can be reused across tests. We can't use __mocks__ as eslint doesn't like imports from these directories.

updatedAt: now,
updatedBy: author
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

A stub builder might help with these. Was a pattern colleagues used on an old project.

Copy link
Contributor

@whitewaterdesign whitewaterdesign left a comment

Choose a reason for hiding this comment

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

Looks good to me, great stuff @jbarnsley10 👍 . This will need to be merged together with my PR I think.

@jbarnsley10 jbarnsley10 merged commit fd88eed into main Feb 21, 2025
11 checks passed
@jbarnsley10 jbarnsley10 deleted the feature/466796-add-page branch February 21, 2025 11:31
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.

3 participants