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

fix: added missing back buttons to settings pages #1387

Merged

Conversation

al-rosenthal
Copy link
Contributor

Summary of Changes

updated header for biometry, update pin, terms and push notifications screens in the settings stack

Screenshots, videos, or gifs

n/a

Breaking change guide

n/a

Related Issues

BC Wallet: 2338

Pull Request Checklist

Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.

  • All commits contain a DCO Signed-off-by line (we use the DCO GitHub app to enforce this)
  • If applicable, screenshots, gifs, or video are included for UI changes
  • If applicable, breaking changes are described above along with how to address them
  • Updated documentation as needed for changed code and new or modified features
  • Added sufficient tests so that overall code coverage is not reduced

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

Pro Tip 🤓

  • Read our contribution guide at least once; it will save you a few review cycles!
  • Your PR will likely not be reviewed until all the above boxes are checked and all automated checks have passed

updated header for biometry, update pin, terms and push notifications screens in the settings stack

Signed-off-by: al-rosenthal <[email protected]>
@al-rosenthal al-rosenthal requested a review from a team as a code owner January 10, 2025 20:06
Copy link
Contributor

@bryce-mcmath bryce-mcmath left a comment

Choose a reason for hiding this comment

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

Is this event / event emitter used anywhere else in the code base? Is there going to be any dead code because of this change that could be removed?

@al-rosenthal
Copy link
Contributor Author

Is this event / event emitter used anywhere else in the code base? Is there going to be any dead code because of this change that could be removed?

Good call, there were two dispatch events in the UseBiometry file that have been removed.

Copy link
Contributor

@bryce-mcmath bryce-mcmath left a comment

Choose a reason for hiding this comment

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

One more question / nitpick, but nice job finding and snipping out that dead code

packages/legacy/core/App/navigators/SettingStack.tsx Outdated Show resolved Hide resolved
@jleach jleach self-requested a review January 13, 2025 21:23
jleach
jleach previously approved these changes Jan 13, 2025
Moved back navigation special case logic to onboarding flow and left back navigation apart of the default screen options

Signed-off-by: al-rosenthal <[email protected]>
Copy link
Contributor

@bryce-mcmath bryce-mcmath left a comment

Choose a reason for hiding this comment

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

Just a couple questions, functional code changes look great

@@ -51,7 +51,7 @@ export class AppContainer implements Container {
}

public resolve<K extends keyof TokenMapping>(token: K): TokenMapping[K] {
return this._container.resolve(token) as TokenMapping[K]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change? It seems unrelated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've got a sonar cube plugin and flagged the casting as unnecessary

@@ -23,7 +23,7 @@ export class AppContainer implements Container {

//This is an example of how to customize the screen layout and use custom header for wallets who wnat to hide default navigation header
//To hide navigation header for a specific page, use headerShown: false in the screen options like this
/*
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change? Left over from when you were thinking of moving this commented example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to leave the comment where it is as it doesn't make much sense in the default config either. My sonar cube plugin also flags this to be deleted but with /** it treats it as more than just a code block

@@ -207,7 +207,7 @@ export class MainContainer implements Container {
}

public resolve<K extends keyof TokenMapping>(token: K): TokenMapping[K] {
return this._container.resolve(token) as TokenMapping[K]
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've got a sonar cube plugin and flagged the casting as unnecessary

@al-rosenthal al-rosenthal merged commit cf55823 into openwallet-foundation:main Jan 14, 2025
8 checks passed
@al-rosenthal al-rosenthal deleted the fix/MissingBackButton branch January 14, 2025 17:31
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.

3 participants