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

feat: Remove Page workaround UI from List component #3680

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Sep 16, 2024

What does this PR do?

  • Removes the isPageComponent variable from the List component, and the associated UI changes
  • Adds validation to the List editor modal - a List schema must allow multiple items

Why?

This was always a bit of unintended workaround, and we're now explicitly removing this as a Page component is likely a more suitable option.

image

This PR won't break any existing flows or behaviours, it will simply stop pseudo-Page components from being generated. Once the feature flag is removed from the Page feature, we can migrate any flows using the AdvertConsent schema to be a Page, and remove this option from the List schema folder.

@DafyddLlyr DafyddLlyr requested a review from a team September 16, 2024 13:28
</SelectInput>
</InputRowItem>
</InputRow>
<ErrorWrapper error={formik.errors.schema?.max}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Big diff here - the only change is the addition of this ErrorWrapper.

@DafyddLlyr DafyddLlyr changed the title feat: Remove Page workaround UI from List component" feat: Remove Page workaround UI from List component Sep 16, 2024
Copy link

github-actions bot commented Sep 16, 2024

Removed vultr server and associated DNS entries

Copy link
Contributor

@RODO94 RODO94 left a comment

Choose a reason for hiding this comment

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

Just one wee nit pick on the Error handling, and general thought on the logic behind the error

editor.planx.uk/src/@planx/components/List/model.ts Outdated Show resolved Hide resolved
@DafyddLlyr DafyddLlyr merged commit ae3ea0a into main Sep 16, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/remove-page-from-list branch September 16, 2024 16:30
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