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

P#63827 Add a default email address #186

Merged
merged 52 commits into from
May 30, 2022

Conversation

hungnc89
Copy link
Contributor

No description provided.

@hungnc89
Copy link
Contributor Author

hungnc89 commented Feb 24, 2022

@jayay This task has not been finished yet because it is depended on #139. That PR is not merged.

@jayay
Copy link
Contributor

jayay commented Mar 15, 2022

#139 was merged today 🎉

…s' into 63827_add_a_default_email_address

# Conflicts:
#	languages/onoffice-for-wp-websites-de_DE.mo
#	languages/onoffice-for-wp-websites-de_DE.po
#	languages/onoffice-for-wp-websites-es_ES.mo
#	languages/onoffice-for-wp-websites-es_ES.po
#	languages/onoffice-for-wp-websites-it_IT.mo
#	languages/onoffice-for-wp-websites-it_IT.po
#	languages/onoffice-for-wp-websites-nl_NL.mo
#	languages/onoffice-for-wp-websites-nl_NL.po
#	languages/onoffice-for-wp-websites.pot
#	plugin/Controller/AdminViewController.php
#	plugin/Installer/DatabaseChanges.php
@coveralls
Copy link

coveralls commented Mar 21, 2022

Pull Request Test Coverage Report for Build 2407625054

  • 56 of 84 (66.67%) changed or added relevant lines in 13 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.6%) to 81.363%

Changes Missing Coverage Covered Lines Changed/Added Lines %
plugin/Controller/AdminViewController.php 10 11 90.91%
plugin/FormPostContact.php 2 3 66.67%
plugin/Renderer/InputFieldEmailRenderer.php 9 10 90.0%
plugin/Model/InputModelBase.php 1 4 25.0%
plugin/Record/RecordManagerReadForm.php 0 5 0.0%
plugin/Model/FormModelBuilder/FormModelBuilderDBForm.php 20 28 71.43%
plugin/Renderer/InputModelRenderer.php 0 9 0.0%
Totals Coverage Status
Change from base Build 2396840137: 0.6%
Covered Lines: 6793
Relevant Lines: 8349

💛 - Coveralls

update getCountDefaultRecipientRecord func
add param to contruct of displayUsingEmptyDefaultEmailError func
plugin/Gui/Table/WP/ListTable.php Outdated Show resolved Hide resolved
plugin/Renderer/InputModelRenderer.php Outdated Show resolved Hide resolved
…_email_address

# Conflicts:
#	languages/onoffice-for-wp-websites-de_DE.mo
#	languages/onoffice-for-wp-websites-es_ES.mo
#	languages/onoffice-for-wp-websites-it_IT.mo
#	languages/onoffice-for-wp-websites-nl_NL.mo
@hungnc89 hungnc89 requested a review from jmaas-onoffice April 20, 2022 06:10
@github-actions
Copy link

Steps to install the approved version:

  1. Download onoffice-3.0-17-gf59894e0-please-unpack.zip from https://github.com/onOfficeGmbH/oo-wp-plugin/actions/runs/2194063221.
  2. Unpack the downloaded file to get another .zip file.
  3. Upload that inner .zip file to WordPress.

Copy link
Contributor

@jmaas-onoffice jmaas-onoffice left a comment

Choose a reason for hiding this comment

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

When I upgrade from the released v3.0, I get the following error on the forms overview:
grafik

Unfortunately, none of the test instances seems free at the moment. If you can't reproduce the issue, please tell me and we will wait until a test instance is free.

@hungnc89 hungnc89 requested a review from jmaas-onoffice April 21, 2022 04:51
@github-actions
Copy link

Steps to install the approved version:

  1. Download onoffice-3.2-45-g213612bc-please-unpack.zip from https://github.com/onOfficeGmbH/oo-wp-plugin/actions/runs/2375971300.
  2. Unpack the downloaded file to get another .zip file.
  3. Upload that inner .zip file to WordPress.

Copy link
Contributor

@jmaas-onoffice jmaas-onoffice left a comment

Choose a reason for hiding this comment

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

  1. For the contact form, the email override starts out deactivated as desired. For interest and owner forms, it starts out activated and when the default email is active, it suddenly gets disabled after loading. Please make it consistent with the contact form for all form types.
  2. In the contact form, the label for the email is "Override email address", but for the other form types it is "Override Recipient's E-Mail Address". Please make it consistent and use "Override email address" for all form types.

LongTrong-exe
LongTrong-exe previously approved these changes May 25, 2022
@github-actions
Copy link

Steps to install the approved version:

  1. Download onoffice-3.2-46-ge8b400e5-please-unpack.zip from https://github.com/onOfficeGmbH/oo-wp-plugin/actions/runs/2383152235.
  2. Unpack the downloaded file to get another .zip file.
  3. Upload that inner .zip file to WordPress.

@LongTrong-exe
Copy link
Contributor

@jmaas-onoffice On master branch, email input in all forms has type 'text', so I update it to 'email' type and add email validation when saving form.

@jmaas-onoffice
Copy link
Contributor

@LongTrong-exe Yes, that sounds good, thanks.

I think we had some discussion on how to validate email addresses in another PR, but I can't find it. The conclusion was: Don't do anything complicated, type="email" is enough. ;)

@jmaas-onoffice
Copy link
Contributor

Oh, I didn't see that you already requested my review. I will have a look!

var typesNeedValid = ['email'];

form.submit(function (e) {
e.preventDefault();
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a bit confused by this. Why do we need to prevent the form from sending and validate and save it ourselves here? Shouldn't that be something we do in #160?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to fix that in #160

@LongTrong-exe LongTrong-exe requested review from jmaas-onoffice and removed request for jmaas-onoffice May 30, 2022 08:15
@github-actions
Copy link

Steps to install the approved version:

  1. Download onoffice-3.2-62-g914b1701-please-unpack.zip from https://github.com/onOfficeGmbH/oo-wp-plugin/actions/runs/2408834411.
  2. Unpack the downloaded file to get another .zip file.
  3. Upload that inner .zip file to WordPress.

@jmaas-onoffice jmaas-onoffice merged commit 29535f2 into master May 30, 2022
@jmaas-onoffice jmaas-onoffice deleted the 63827_add_a_default_email_address branch May 30, 2022 14:47
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.

7 participants