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

Improvement/browser refactor #1829

Merged
merged 28 commits into from
Sep 29, 2020
Merged

Conversation

andrepimenta
Copy link
Member

Description

Browser refactoring and update of the native webview.

Checklist

  • Tests are included if applicable
  • Any added code is fully documented

@andrepimenta andrepimenta requested a review from a team as a code owner September 11, 2020 12:29
@andrepimenta andrepimenta marked this pull request as draft September 11, 2020 12:29
@ibrahimtaveras00 ibrahimtaveras00 added needs-qa Any New Features that needs a full manual QA prior to being added to a release. next release labels Sep 14, 2020
@andrepimenta andrepimenta marked this pull request as ready for review September 17, 2020 18:00
Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

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

QA Passed 👍

@ibrahimtaveras00 ibrahimtaveras00 removed the needs-qa Any New Features that needs a full manual QA prior to being added to a release. label Sep 18, 2020
@ibrahimtaveras00 ibrahimtaveras00 added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) QA Passed A successful QA run through has been done labels Sep 18, 2020
@rickycodes rickycodes force-pushed the improvement/browser-refactor branch from 09df6c7 to c17a6f0 Compare September 21, 2020 15:51
Copy link
Contributor

@rickycodes rickycodes left a comment

Choose a reason for hiding this comment

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

tested this out locally. seems to function well!

ones less forked dep! 🎉

/**
* Add bookmark
*/
const addBookmark = () => {
Copy link
Contributor

@estebanmino estebanmino Sep 28, 2020

Choose a reason for hiding this comment

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

this could be missing the bookmarks passes in the script

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

then on second load

image

Copy link
Contributor

Choose a reason for hiding this comment

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

disregard this comment

@@ -487,25 +407,17 @@ export class BrowserTab extends PureComponent {
const rpcMethods = {
eth_requestAccounts: async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this method is not working when calling it directly. for ex uniswap.eth

image

Copy link
Contributor

Choose a reason for hiding this comment

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

same happend on prod

{!isHidden() && renderWatchAssetModal()}
{!isHidden() && renderOptions()}
{!isHidden() && renderBottomBar()}
{!isHidden() && renderOnboardingWizard()}
Copy link
Contributor

Choose a reason for hiding this comment

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

feels like we're calling this method too many times on render?

{!isHidden() && renderPhishingModal()}
{!isHidden() && renderUrlModal()}
{!isHidden() && renderApprovalModal()}
{!isHidden() && renderPhishingModal()}
Copy link
Contributor

Choose a reason for hiding this comment

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

two calls of renderPhishingModal

@estebanmino estebanmino merged commit 32aceaf into develop Sep 29, 2020
@estebanmino estebanmino deleted the improvement/browser-refactor branch September 29, 2020 17:31
rickycodes added a commit that referenced this pull request Jan 31, 2022
* First implementation working

* finish use effect

* Update webview

* Fix watch asset

* Improve url modal

* Fix replace and remove unused variable

* Comments

* Fix approved hosts & webview inject

* Fix effects and callbacks

* Update test and remove unecessary comments

* Fix redirections

* Fix more redirects

* Fix redirections and add icon

* Fix address bar icon

* Move some variables from state to component and native webview fix

* remove logs

* Update tabs and fix patch package error

* Improve tabs initial performance

* Fix www replace

* move render phishing up

* update test

* fixing phishing with timeout

* Update test

* Tidy up getFavicon

* ishidden

* snap

Co-authored-by: rickycodes <ricky.miller@gmail.com>
Co-authored-by: Esteban Mino <efmino@uc.cl>
cryptodev-2s added a commit that referenced this pull request Jul 24, 2024
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

- Update the attribution link to match the current app version.
- The update-attributions workflow was using a low-privilege token for
checking out the repository. The checkout step is what determines which
credentials are used upon push. The later step with git push well fail
with a HTTP 403 response despite having a token declared with write
access, because git push uses the credentials setup during checkout.

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

## **Related issues**

Fixes: [#1829](MetaMask/mobile-planning#1829)

## **Manual testing steps**

1. Go to`Settings` Page.
2. Scroll down and click on `About Metamask`.
3. Click on `Attributions`.
4. You should then be redirected to
https://raw.githubusercontent.com/MetaMask/metamask-mobile/v7.27.0/attribution.txt
(where v7.27.0 is the current Metamask Mobile version)

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**


https://github.com/user-attachments/assets/99acf283-a3df-4332-b8f9-85b622f1a838

<!-- [screenshots/recordings] -->

### **After**


https://github.com/user-attachments/assets/7db6972e-96c7-4689-8c1b-2802704bb886

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) next release QA Passed A successful QA run through has been done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants