Skip to content

Fix for MOB-20343#159

Merged
swarna04 merged 5 commits intoadobe:dev-v5.0.0from
spoorthipujariadobe:MOB-20343
Mar 7, 2024
Merged

Fix for MOB-20343#159
swarna04 merged 5 commits intoadobe:dev-v5.0.0from
spoorthipujariadobe:MOB-20343

Conversation

@spoorthipujariadobe
Copy link
Copy Markdown
Contributor

Description

Hide preview on device floating button when the webview is open to prevent clicking and recreating webview

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 16, 2024

Codecov Report

❗ No coverage uploaded for pull request base (dev-v5.0.0@6c3ff72). Click here to learn what that means.
The diff coverage is 100.00%.

❗ Current head 251a148 differs from pull request most recent head 70e3a49. Consider uploading reports for the commit 70e3a49 to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-v5.0.0     #159   +/-   ##
=============================================
  Coverage              ?   92.17%           
=============================================
  Files                 ?       25           
  Lines                 ?     2234           
  Branches              ?        0           
=============================================
  Hits                  ?     2059           
  Misses                ?      175           
  Partials              ?        0           

}

class MockFloatingButton: FloatingButtonPresentable {
enum invocation {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: enum/struct/class names should begin with an uppercase letter.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed

return
}

state.previewButton?.dismiss()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we dismiss showing the preview button before L175?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The webview is not displayed if the network call to fetch the preview html fails. In this case the floating button can remain visible so we can retry preview selection

@swarna04 swarna04 merged commit 4c49c32 into adobe:dev-v5.0.0 Mar 7, 2024
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