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

Reduce code verbosity of forms #683

Merged
merged 15 commits into from
Jan 9, 2023
Merged

Conversation

michael-markl
Copy link
Member

@michael-markl michael-markl commented Jan 4, 2023

This PR reduces code verbosity for forms by introducing utility functions for compound forms.

(
This was a bit of a fun side project to get to know typescript better^^. My typescript wishlist:
microsoft/TypeScript#12936
and
microsoft/TypeScript#14466
)

Base automatically changed from CompleteApplicationForm to whitelabel January 9, 2023 09:18
Copy link
Member

@maxammann maxammann 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, I did a quick review of the code and a smoke test.

Maybe some minor thing we can do in this PR: I would propose to make the "Ich beantrage neben der physischen auch die digitale Ehrenamtskarte." opt-out so it is by default selected.

I think most people would like one but maybe dont set it because they dont know what it is.

@michael-markl michael-markl merged commit 7609c42 into whitelabel Jan 9, 2023
@michael-markl michael-markl deleted the add-compound-utils branch January 9, 2023 16:44
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.

2 participants