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

Integrate new file fields #2775

Merged
merged 105 commits into from
Nov 20, 2018
Merged

Integrate new file fields #2775

merged 105 commits into from
Nov 20, 2018

Conversation

Shelob9
Copy link
Collaborator

@Shelob9 Shelob9 commented Oct 18, 2018

Josh Pollock added 2 commits October 18, 2018 15:50
* feature/2771:
  markdown fix in testing docs #2771
  migrate in e2e tests #2771
  Setup test imports for e2e tests #2771
  setup unit tests seperate from WordPress 'unit' tests #2701
  cypress tests #2771
  cache dirs on travis #2771
  make phpunit integration tests run locally in container #2711
  docker install scripts #2771 added to bin
  #2771 delete old docker env

# Conflicts:
#	package-lock.json
@Shelob9 Shelob9 added the PR (Patch) Is a pull request label Oct 18, 2018
@Shelob9 Shelob9 added this to the 1.8.0 milestone Oct 18, 2018
@Shelob9 Shelob9 self-assigned this Oct 18, 2018
@Shelob9
Copy link
Collaborator Author

Shelob9 commented Oct 18, 2018

NOTES to resolve before merge:

  • I hardcoded add_filter( 'caldera_forms_render_assets_minify', '__return_false' ); in main plugin file. Dev environment needs a mu-plugins dir for this.
  • I removed init of old trackign system, which we should do.
  • I removed freemius, which we should not do

@Shelob9
Copy link
Collaborator Author

Shelob9 commented Oct 23, 2018

To finish this:

  1. @New0 Make button look like the old button https://github.com/CalderaWP/Caldera-Forms/blob/9ecc5d67b9d5426516ce2b1f2dd399cd0b8f5f5e/clients/tests/unit/render/Fields/FileInput.test.js
  2. @Shelob9 Make cf2 fields repeat
  3. @Shelob9 Finish making it submit and write tests for that.

Josh Pollock added 5 commits October 23, 2018 10:44
# Conflicts:
#	assets/build/css/caldera-forms-front.min.css
#	assets/css/caldera-forms-front.css
#	assets/js/caldera-forms-front.js
#	tests/bootstrap-unit.php
@Shelob9
Copy link
Collaborator Author

Shelob9 commented Oct 25, 2018

@New0 For button style:

  1. It should look the same (the drag or click to upload element) as an existing file field. This should be done by applying existing rules using same classes. IE If I had an advanced file field and targetted it with custom CSS in my theme, those rules should have same effect on new file field. Be careful that cf-uploader-trigger class is what advanced file fields bind to, and using that is a bad idea.
  2. Drag over should still work.

@Shelob9
Copy link
Collaborator Author

Shelob9 commented Oct 25, 2018

TODOS

Front-end @New0

  • Style
  • Image preview (this is a feature I will let go off)
  • Support multiple
  • Submit

Server-side @Shelob9

  • Integrate with existing abstractions for upload handler, file path.

  • Tests for above

  • Test form submission with cf_file fields

  • e2e Tests @Shelob9

  • Integration tests for wp_mail (attached properly)

  • Integration tests for CF Pro emails (attached properly, there is an API endpoint for this)

screen shot 2018-10-25 at 10 54 04 am

New0 and others added 5 commits November 14, 2018 11:09
- console errors need to be removed 
- other tests needed to complete this series
- review pertinence of all tests and remove non useful tests
This test is made with correct props with enzyme at L187 in clients\tests\unit\render\Fields\Mocks\MockFileRenderer.test.js 

This should also make Trvis ci tests pass ( #2802 )
* #2801 add a job manager

* #2801 run queue manager

* schedule delete with job manager #2801

* Remove var_dump #2801

* mild cleanup for starting the runner #2801

* add queue run endpoint #2801

* rest api route for running queue now checked with CF PRo api keys #2801

* #2801 more tests for the run queue endpoint and fixed its response

* Resolve Conflicts #2802

* Resolve conflicts #2802

* Resolve conflicts #2802
@Shelob9
Copy link
Collaborator Author

Shelob9 commented Nov 16, 2018

@New0 When we talk next,

  • discuss naming, labeling, icon and if we move existing advanced file fields to deprecated or what not.
  • There is no * for required fields.
  • The preview in Gutenberg block does not render this field.
  • Next field types to cf2afy - I argue checkboxes, radios since they are the ones with bad markup and more fragile code for reading/updating state via jQuery.val or whatever in state/conditionals.

Josh Pollock and others added 20 commits November 15, 2018 22:04
…ed and they have no value, you can submit the form
…ture/2766

# Conflicts:
#	classes/forms.php
#	tests/test-entry-fields-collection.php
#	tests/test-forms-api.php
#	tests/test-save.php
- Make all Files Field component texts translatable
- When multiple isn't allowed and a file is set, let the button displayed as disabled instead of hiding it and adding text.
@Shelob9
Copy link
Collaborator Author

Shelob9 commented Nov 20, 2018

@New0 I am going to merge this to develop and tag an alpha today. This works. #2814 and #1399 can be separate PRs we can get into alpha 2.

@Shelob9 Shelob9 merged commit 954c14e into develop Nov 20, 2018
@Shelob9 Shelob9 changed the title [WIP] Integrate new file fields Integrate new file fields Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR (Patch) Is a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants