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

feat: add support for template and header result pages #6832

Merged
merged 15 commits into from
Aug 3, 2023

Conversation

vinistevam
Copy link
Contributor

@vinistevam vinistevam commented Jul 19, 2023

Development & PR Process

  1. Follow MetaMask Mobile Coding Standards
  2. Add release-xx label to identify the PR slated for a upcoming release (will be used in release discussion)
  3. Add needs-dev-review label when work is completed
  4. Add needs-qa label when dev review is completed
  5. Add QA Passed label when QA has signed off

Description

This PR aims to include support for header and components on result pages (success & error). Additionally, it also includes support for templates identical to what already exists in the extension.

  • Add MetamaskTemplateRenderer with a safeComponentList to ensure only allow components can be rendered.
  • Add support for header and components on result pages (success and error).

Screenshots/Recordings

Note: the recordings below are for testing the components no change was done on the add & switch approval.

header_template_support_error.webm
header_template_support_success.webm

Issue

Progresses: https://github.com/MetaMask/mobile-planning/issues/1028

Pipeline E2E
https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/6836897f-b4ef-4564-8707-68419ad75ca3

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@vinistevam vinistevam force-pushed the 1028-support-header-template branch from a7c49fb to 67ce48d Compare July 20, 2023 07:55
@vinistevam vinistevam marked this pull request as ready for review July 20, 2023 08:00
@vinistevam vinistevam requested a review from a team as a code owner July 20, 2023 08:00
@vinistevam vinistevam force-pushed the 1028-support-header-template branch from 3954f17 to c551d97 Compare July 24, 2023 18:42
@vinistevam vinistevam force-pushed the 1028-support-header-template branch from c551d97 to 0fc32bb Compare July 25, 2023 10:59
@vinistevam vinistevam added the team-confirmations-system DEPRECATED: please use "team-confirmations" label instead label Aug 3, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

80.6% 80.6% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@vinistevam vinistevam merged commit 475e927 into main Aug 3, 2023
12 checks passed
@vinistevam vinistevam deleted the 1028-support-header-template branch August 3, 2023 15:16
@github-actions github-actions bot locked and limited conversation to collaborators Aug 3, 2023
@metamaskbot metamaskbot added the release-7.6.0 Issue or pull request that will be included in release 7.6.0 label Aug 3, 2023
@Gudahtt Gudahtt restored the 1028-support-header-template branch August 4, 2023 12:10
@vinistevam vinistevam added the No QA Needed/E2E Only Apply this label when your PR does not need any QA effort. label Aug 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed/E2E Only Apply this label when your PR does not need any QA effort. release-7.6.0 Issue or pull request that will be included in release 7.6.0 team-confirmations-system DEPRECATED: please use "team-confirmations" label instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants