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#61223 19600 reload edit pages after saving and show copyable shortcode there #160

Conversation

vu-vuong-esg
Copy link
Contributor

No description provided.

@vu-vuong-esg vu-vuong-esg requested a review from jayay December 31, 2021 02:06
@coveralls
Copy link

coveralls commented Dec 31, 2021

Pull Request Test Coverage Report for Build 2581497061

  • 44 of 93 (47.31%) changed or added relevant lines in 11 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.2%) to 80.382%

Changes Missing Coverage Covered Lines Changed/Added Lines %
plugin/Controller/AdminViewController.php 4 5 80.0%
plugin/Renderer/InputFieldEmailRenderer.php 4 5 80.0%
plugin/Renderer/InputFieldComplexSortableDetailListContentDefault.php 0 2 0.0%
plugin/Renderer/InputFieldComplexSortableDetailListRenderer.php 0 2 0.0%
plugin/Renderer/InputModelRenderer.php 0 5 0.0%
plugin/Model/FormModelBuilder/FormModelBuilderDBAddress.php 0 19 0.0%
plugin/Model/FormModelBuilder/FormModelBuilderDBEstateUnitListSettings.php 0 19 0.0%
Files with Coverage Reduction New Missed Lines %
plugin/Model/InputModelBase.php 1 86.11%
plugin/Renderer/InputFieldComplexSortableDetailListContentDefault.php 1 0%
Totals Coverage Status
Change from base Build 2568534500: -0.2%
Covered Lines: 6179
Relevant Lines: 7687

💛 - Coveralls

@hungnc89
Copy link
Contributor

@jayay could you please review this PR?

@michaelarnold-dev michaelarnold-dev changed the title 19600 reload edit pages after saving and show copyable shortcode there P#61223 19600 reload edit pages after saving and show copyable shortcode there Jan 13, 2022
@vu-vuong-esg vu-vuong-esg removed the request for review from jayay January 25, 2022 04:07
@hungnc89 hungnc89 requested a review from jayay February 7, 2022 03:21
@hungnc89
Copy link
Contributor

hungnc89 commented Feb 7, 2022

@jayay please check PR help me, thanks

@hungnc89
Copy link
Contributor

@jayay could you please review this PR?

jQuery(document).ready(function($){
$('#button-copy').click(function() {
var copyCode = document.getElementsByTagName("code").item(0);
// console.log(copyCode);
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove the debug code


$code = '[oo_estate view=="'.$listName.'"]';
Copy link
Contributor

Choose a reason for hiding this comment

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

one = too much

{
$id = HtmlIdGenerator::generateByString($this->_id);
echo '<input type="button" class="button" id="button-copy" name="'
.esc_attr($id).'" value="'.esc_html__('Copy !', 'onoffice-for-wp-websites').'" '
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy! would be better

@tang-hien-egs tang-hien-egs force-pushed the 19600-Reload-edit-pages-after-saving-and-show-copyable-shortcode-there branch from 819190d to 9b7cd74 Compare March 15, 2022 03:55
@tang-hien-egs tang-hien-egs requested a review from jayay March 17, 2022 03:22
@vu-vuong-esg
Copy link
Contributor Author

@jayay i fixed, can you check PR help me ?

@tang-hien-egs tang-hien-egs force-pushed the 19600-Reload-edit-pages-after-saving-and-show-copyable-shortcode-there branch from 6312cd3 to da59f69 Compare March 29, 2022 09:10

$codes = '[oo_estate view=="'.$listName.'"]';
Copy link
Contributor

Choose a reason for hiding this comment

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

one = too much here


public function testCreateInputModelButton()
{
$pInstance = $this->getMockBuilder(FormModelBuilderDBEstateListSettings::class)
Copy link
Contributor

Choose a reason for hiding this comment

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

Testing a class using a mock of itself doesn't really make sense

Copy link
Contributor

Choose a reason for hiding this comment

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

i fixed it, please check PR help me !

LongTrong-exe
LongTrong-exe previously approved these changes Jun 22, 2022
@github-actions
Copy link

Steps to install the approved version:

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

@dai-eastgate
Copy link
Contributor

This is the test video:

Reload_edit_pages_after_saving_and_show_copyable_shortcode_there_2.mp4

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.

There's too many changes for me to review them, but I will test it.

@github-actions
Copy link

Steps to install the approved version:

  1. Download onoffice-4.1-60-g72efd7b1-please-unpack.zip from https://github.com/onOfficeGmbH/oo-wp-plugin/actions/runs/2570166521.
  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.

I didn't explicitely ask before, but it would be great to also have a unified way of showing shortcodes.

  1. The detail view does not use the new shortcode display:

    grafik

    It should look like this:

    grafik

  2. Similarly, when the detail view shortcode is not used
    grafik

    it should look like this:

    grafik

  3. Unit list settings do not show a shortcode.

    grafik

    They should have the same shortcode as the estate list settings (also the same behavior when creating a new unit list).

@dai-eastgate
Copy link
Contributor

Do we apply the new display shortcode for other pages (estate list, address list, form, unit lits)?

@jmaas-onoffice
Copy link
Contributor

I'm not sure I understand. What do you mean? 😅

@github-actions
Copy link

Steps to install the approved version:

  1. Download onoffice-4.1-63-gcbd4c0ae-please-unpack.zip from https://github.com/onOfficeGmbH/oo-wp-plugin/actions/runs/2581970021.
  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.

It all works great, thanks! Another PR finally finished. 🎉

@jmaas-onoffice jmaas-onoffice merged commit bdb6c93 into master Jun 29, 2022
@jmaas-onoffice jmaas-onoffice deleted the 19600-Reload-edit-pages-after-saving-and-show-copyable-shortcode-there branch June 29, 2022 14: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.

P#61223 Reload edit pages after saving and show copyable shortcode there