Skip to content

feat: replace confirmation re-design code fencing with env variable#23694

Merged
jpuri merged 4 commits intodevelopfrom
conf_redesign_env_variable
Mar 27, 2024
Merged

feat: replace confirmation re-design code fencing with env variable#23694
jpuri merged 4 commits intodevelopfrom
conf_redesign_env_variable

Conversation

@jpuri
Copy link
Copy Markdown
Contributor

@jpuri jpuri commented Mar 25, 2024

Description

Add env variable to enable confirmation re-design and remove code fencing.

Related issues

Fixes: #23600

Manual testing steps

  1. Enable ENABLE_CONFIRMATION_REDESIGN locally and start the app
  2. In test dapp submit personal sign request
  3. You should see request in re-designed pages

Screenshots/Recordings

NA

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • 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 format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). 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.

@jpuri jpuri added team-confirmations-secure-ux-PR PRs from the confirmations team needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) confirmation-redesign labels Mar 25, 2024
@jpuri jpuri requested a review from a team as a code owner March 25, 2024 12:33
@github-actions
Copy link
Copy Markdown
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.

segun
segun previously approved these changes Mar 25, 2024
import { renderHookWithProvider } from '../../../../test/lib/render-helpers';
import useCurrentConfirmation from './useCurrentConfirmation';

process.env.ENABLE_CONFIRMATION_REDESIGN = 'true';
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.

have we considered restoring the value after the tests have finished? e.g. in an afterAll hook

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.

Good point, I updated the PR.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.81%. Comparing base (87d98ea) to head (4fcbf9e).
Report is 29 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #23694      +/-   ##
===========================================
- Coverage    68.81%   68.81%   -0.00%     
===========================================
  Files         1169     1169              
  Lines        44376    44378       +2     
  Branches     11874    11875       +1     
===========================================
  Hits         30536    30536              
- Misses       13840    13842       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jpuri jpuri requested review from digiwand and segun March 26, 2024 14:33
@jpuri jpuri merged commit f0001e7 into develop Mar 27, 2024
@jpuri jpuri deleted the conf_redesign_env_variable branch March 27, 2024 09:42
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Mar 27, 2024
@metamaskbot metamaskbot added the release-11.15.0 Issue or pull request that will be included in release 11.15.0 label Mar 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

confirmation-redesign release-11.15.0 Issue or pull request that will be included in release 11.15.0 team-confirmations-secure-ux-PR PRs from the confirmations team

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Confirmation redesign - add env variable for redesigned pages and get rid of code fencing

5 participants