Skip to content

feat: permissions system within sdk redux store#8785

Merged
christopherferreira9 merged 11 commits into
mainfrom
feat/more-permissions
Mar 6, 2024
Merged

feat: permissions system within sdk redux store#8785
christopherferreira9 merged 11 commits into
mainfrom
feat/more-permissions

Conversation

@abretonc7s

@abretonc7s abretonc7s commented Feb 29, 2024

Copy link
Copy Markdown
Contributor

Description

  • Migrate away from Default Preferences to manage persisted session state.
  • Migrate walletconnect to permission system
  • Connection flow optimization for ios mobile

Grouped within a single PR as these features are tightly integrated together.

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • 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.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@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.

@abretonc7s abretonc7s force-pushed the feat/more-permissions branch from c2636a9 to e7234e8 Compare March 4, 2024 09:14
@abretonc7s abretonc7s added needs-qa Any New Features that needs a full manual QA prior to being added to a release. team-sdk-deprecated DEPRECATED: please use "team-wallet-integrations" instead WalletConnect WalletConnect related issue or bug labels Mar 4, 2024
@abretonc7s abretonc7s marked this pull request as ready for review March 4, 2024 11:43
@abretonc7s abretonc7s requested a review from a team as a code owner March 4, 2024 11:43
@github-actions

github-actions Bot commented Mar 4, 2024

Copy link
Copy Markdown
Contributor

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: e7234e8ef562e746406d0a2fe3b88b12eb165c8d
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/afbd6544-890c-44e3-82a2-2e8dce366e77

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@codecov-commenter

codecov-commenter commented Mar 4, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 49.64029% with 70 lines in your changes are missing coverage. Please review.

Project coverage is 41.64%. Comparing base (0c45fbf) to head (f5e5e91).

Files Patch % Lines
...components/Views/AccountConnect/AccountConnect.tsx 0.00% 17 Missing ⚠️
app/core/WalletConnect/WalletConnectV2.ts 0.00% 13 Missing ⚠️
app/reducers/sdk/index.ts 50.00% 11 Missing and 1 partial ⚠️
app/actions/sdk/index.ts 72.00% 7 Missing ⚠️
...ts/Views/SDKSessionsManager/SDKSessionsManager.tsx 0.00% 5 Missing ⚠️
...e/SDKConnect/InitializationManagement/asyncInit.ts 68.75% 5 Missing ⚠️
app/core/RPCMethods/RPCMethodMiddleware.ts 50.00% 1 Missing and 2 partials ⚠️
...ventListenersHandlers/handleClientsDisconnected.ts 0.00% 2 Missing ⚠️
.../core/SDKConnect/ConnectionManagement/reconnect.ts 33.33% 2 Missing ⚠️
...SDKConnect/ConnectionManagement/watchConnection.ts 60.00% 1 Missing and 1 partial ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8785      +/-   ##
==========================================
+ Coverage   41.61%   41.64%   +0.03%     
==========================================
  Files        1269     1271       +2     
  Lines       30871    30898      +27     
  Branches     3086     3083       -3     
==========================================
+ Hits        12846    12869      +23     
- Misses      17248    17252       +4     
  Partials      777      777              

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

andreahaku
andreahaku previously approved these changes Mar 4, 2024

@andreahaku andreahaku left a comment

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.

LGTM

@abretonc7s abretonc7s force-pushed the feat/more-permissions branch from eb41084 to ba3e052 Compare March 5, 2024 02:28
@christopherferreira9 christopherferreira9 self-assigned this Mar 5, 2024
@christopherferreira9 christopherferreira9 added QA in Progress QA has started on the feature. and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Mar 5, 2024
@abretonc7s abretonc7s force-pushed the feat/more-permissions branch from 4514277 to f5e5e91 Compare March 6, 2024 01:31
@github-actions

github-actions Bot commented Mar 6, 2024

Copy link
Copy Markdown
Contributor

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: f5e5e91671d3ca0c5c9d4e315e7cb2125a77bb9c
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/476ec5c1-bda1-491b-bfe3-376e3e8924e9

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@abretonc7s abretonc7s force-pushed the feat/more-permissions branch from f5e5e91 to 675eacf Compare March 6, 2024 13:47
andreahaku
andreahaku previously approved these changes Mar 6, 2024

@andreahaku andreahaku left a comment

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.

LGTM

@andreahaku andreahaku left a comment

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.

LGTM

@sonarqubecloud

sonarqubecloud Bot commented Mar 6, 2024

Copy link
Copy Markdown

@christopherferreira9

Copy link
Copy Markdown
Contributor

LGTM

Test cases:

@christopherferreira9 christopherferreira9 merged commit 8299ec9 into main Mar 6, 2024
@christopherferreira9 christopherferreira9 deleted the feat/more-permissions branch March 6, 2024 15:17
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 6, 2024
@metamaskbot metamaskbot added the release-7.19.0 Issue or pull request that will be included in release 7.19.0 label Mar 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

QA in Progress QA has started on the feature. release-7.19.0 Issue or pull request that will be included in release 7.19.0 team-sdk-deprecated DEPRECATED: please use "team-wallet-integrations" instead WalletConnect WalletConnect related issue or bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants