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

Implement file component #45

Merged
merged 15 commits into from
Nov 1, 2023
Merged

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens commented Oct 25, 2023

Partly fixes open-formulieren/open-forms#2958

Implement the file component in the new form builder, which scopes the translations to the component itself and should resolve these translation issues.

  • Run makemessages and ship translations

@sergei-maertens sergei-maertens force-pushed the feature/file-component-edit-form branch from c5d64e7 to 408e1aa Compare October 25, 2023 15:59
* Expose file types from context - the backend needs to feed the
  list of possible options to the builder.
* Extend decorators and stories to handle (default) file types
* Add file name template field
* Add file type (multi) select
* Add 'use global config file types' checkbox
* Add 'maxFileSize' textbox
* Add 'maxNumberOfFiles' number field

The input validation is added as todo for a separate commit.
@sergei-maertens sergei-maertens force-pushed the feature/file-component-edit-form branch 2 times, most recently from 0f672dd to 427cd56 Compare October 26, 2023 10:42
* Show image resizing options
* Reset image resizing configuration if no image content type is
  selected
* Implemented derived/calculated component properties from file types
  config field
@sergei-maertens sergei-maertens force-pushed the feature/file-component-edit-form branch from 427cd56 to 3179e42 Compare October 26, 2023 13:40
* Process the possible document types per backend/domain into optgroups
  for react-select to properly display.
* Fetch confidentiality levels from backend/context
* Add bronorganisatie and title fields
Comment on lines +213 to +215
<Component type="columns">
<div className="columns">
<div className="column column--span-md">
Copy link
Member Author

Choose a reason for hiding this comment

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

column styles are in the backend CSS, so they're displayed in a single column in storybook

The useAsync hook runs before the select component even renders,
so there is some execution time that may cause the 'loading...'
message to never display or too briefly for the testing tools
to pick it up.
@sergei-maertens sergei-maertens force-pushed the feature/file-component-edit-form branch from 7ada014 to a1378f3 Compare October 27, 2023 10:44
Contains the fixes for the file upload component.
@sergei-maertens sergei-maertens force-pushed the feature/file-component-edit-form branch from 7e9f246 to 453a235 Compare October 27, 2023 14:20
@sergei-maertens sergei-maertens marked this pull request as ready for review October 27, 2023 14:20
@sergei-maertens sergei-maertens merged commit e6832e9 into main Nov 1, 2023
8 checks passed
@sergei-maertens sergei-maertens deleted the feature/file-component-edit-form branch November 22, 2023 15:13
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.

All translation disapear after adding/modifying components in repeating group & field group
2 participants