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

Support DISCLOSURE_LIST form field #3394

Merged
merged 10 commits into from
Apr 22, 2024
Merged

Support DISCLOSURE_LIST form field #3394

merged 10 commits into from
Apr 22, 2024

Conversation

Kadrian
Copy link
Collaborator

@Kadrian Kadrian commented Apr 15, 2024

This adds support for a new field with type DISCLOSURE_LIST. It's a collapsible / expandable section of nested fields, which are all always sent to the sever (in contrast to TABS, where only the active tab is sent), and it's a "creatable" list, meaning the DISCLOSURE_LIST field can be used for a single disclosure section, but it allows adding additional disclosure sections by clicking a plus button. The value sent to the backend is always an array of disclosures

Array<{ [fieldname: string]: unknown }>

Also, this

  • extracts the form fields into individual components
  • adds tailwind css to slowly move towards a less verbose way of styling

@Kadrian Kadrian marked this pull request as draft April 15, 2024 10:12
@Kadrian Kadrian changed the title Start updating types, add DISCLOSURE field Support DISCLOSURE form field Apr 15, 2024
@Kadrian Kadrian changed the title Support DISCLOSURE form field Support DISCLOSURE_LIST form field Apr 22, 2024
@Kadrian Kadrian marked this pull request as ready for review April 22, 2024 09:44
@Kadrian Kadrian merged commit 964fe09 into develop Apr 22, 2024
6 checks passed
@delete-merged-branch delete-merged-branch bot deleted the add-disclosure-field-type branch April 22, 2024 10:10
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.

None yet

1 participant