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

Get Contact page question labels and descriptions from back-end #744

Merged
merged 20 commits into from
Mar 10, 2025

Conversation

alimpens
Copy link
Contributor

@alimpens alimpens commented Mar 3, 2025

No description provided.

Comment on lines 23 to 27
const textareaComponents =
primaryForm?.filter((component): component is StaticFormTextAreaComponentOutput => component.type === 'textarea') ||
[]

return <Home formData={textareaComponents} />
Copy link
Contributor

Choose a reason for hiding this comment

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

What is happening here? And why is this necessary?

Comment on lines 4 to 6
import { Grid, SubmitButton } from '@meldingen/ui'
import { useActionState } from 'react'

Copy link
Contributor

Choose a reason for hiding this comment

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

We didn't set a test coverage limit, but branches of this component are at 77% since the airadescribedby is not tested.

@alimpens alimpens requested a review from vdegraaf March 10, 2025 13:52
Comment on lines 23 to 25
return (
<Grid paddingBottom="large" paddingTop="medium">
<Grid.Cell span={{ narrow: 4, medium: 6, wide: 6 }} start={{ narrow: 1, medium: 2, wide: 3 }}>
Copy link
Contributor

Choose a reason for hiding this comment

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

This component needs internationalisation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup. I didn't do that yet to prevent merge conflicts.

@alimpens alimpens merged commit 1a82fbd into main Mar 10, 2025
3 checks passed
@alimpens alimpens deleted the get-static-form-texts-from-be branch March 10, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants