-
Notifications
You must be signed in to change notification settings - Fork 985
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
chore: remove mock data from wallet and feature flag incomplete features #18569
Conversation
Jenkins BuildsClick to see older builds (12)
|
|
||
(def wallet-feature-flags | ||
{:edit-default-keypair false | ||
:bridge-token false}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@briansztamfater, @vkjr can you check this pr please. It's brief but want to make sure you're both okay with this as it's "removing" work you did. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -50,7 +51,9 @@ | |||
:receive-action #(rf/dispatch [:open-modal :wallet-share-address {:status :receive}]) | |||
:buy-action #(rf/dispatch [:show-bottom-sheet | |||
{:content buy-drawer}]) | |||
:bridge-action #(rf/dispatch [:open-modal :wallet-bridge])}]) | |||
:bridge-action (if (:bridge-token config/wallet-feature-flags) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To improve readability, maybe would be nice to have some function like feature-enabled?
that receives the feature key, located in a utils file. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I agree! There was discussion in another pr - #18530 (comment)
where we will put some effort into how we want to work with feature flags.
For now I will leave it this way but in an upcoming pr/issue will refactor this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 😃
@@ -12,6 +11,6 @@ | |||
(defn view | |||
[] | |||
[rn/flat-list | |||
{:data temp/collectible-activities | |||
{:data nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a TODO here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah sure, I'll create the issues for the code removed so the data structure is easy to track 👍
afa5059
to
e7ff56d
Compare
75% of end-end tests have passed
Failed tests (9)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePR:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestDeepLinksOneDevice:
Expected to fail tests (3)Click to expandClass TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Passed tests (36)Click to expandClass TestCommunityOneDeviceMerged:
Class TestActivityMultipleDevicePRTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! 🚀
:section (i18n/label :t/on-the-web)}] | ||
[rn/view {:style style/link-cards-container} | ||
(for [item (:cards collectible-about)] | ||
^{:key (:title item)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker: I know this is not from your PR. I have a feeling that using the name of the collectable as the key is not a good idea as it may have the same names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe id
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR was really needed @J-Son89 👍
Just a comment, as @briansztamfater said, I'd like to improve the readability of the feature flags, but we can do it in a later PR.
e7ff56d
to
1c6ec2f
Compare
67% of end-end tests have passed
Failed tests (13)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
Class TestDeepLinksOneDevice:
Expected to fail tests (3)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Passed tests (32)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePR:
Class TestActivityMultipleDevicePRTwo:
Class TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityCenterContactRequestMultipleDevicePR:
|
90% of end-end tests have passed
Failed tests (2)Click to expandClass TestDeepLinksOneDevice:
Expected to fail tests (3)Click to expandClass TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Passed tests (43)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePR:
Class TestActivityMultipleDevicePRTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
|
Hey @J-Son89! Thanks for the PR. Please take a look at the issue. ISSUE 1 Suggested addresses are still shown while entering receiver's addressActual result: telegram-cloud-document-2-5298888018512330314.mp4Expected result: according to PR description
|
Thanks @pavloburykh - I missed that one! 🙏 |
ISSUE 2 Editing Derivation Path is not under feature flagActual result: 'Button pressed' alert instead of 'feature disabled in config file' alert when editing Derivation Path at the same time 'feature disabled in config file' alert appears when tapping Edit default key-pair - is it expected? telegram-cloud-document-2-5298888018512330819.mp4Expected result: Editing Derivation Path should be under feature flag |
Oh sorry issue 2 is sort of sloppy on my(/devs) part - it hadn't been started yet so there is no feature flag there. |
'coming soon' alert text would be okay IMHO. |
Ok thanks, I'll update with that 👌 |
1c6ec2f
to
94c0a6e
Compare
@pavloburykh - For issue 1 - this was an oversight on my part. the reason I assumed the suggestions would be empty is because I removed the mock data, however this is actually the resolved address of the ENS being looked up and so it is real data. So from the perspective of what this pr is achieving to do this is not an issue (as it's real data) However @briansztamfater did find some other issue related to that and has addressed in a small pr here: Let me know what you think to do from here? |
Thanx @J-Son89. No other issues from my side. But a small question: we also have 'to be implemented' alerts all over the app including wallet telegram-cloud-document-2-5303391618139701348.mp4Are we going to change those alert to a new one 'Coming soon'? Is there any difference between the purpose of those 2 different alerts? |
They're the exact same, we can look to standardise this in another issue. Probably a better approach and will be easier for us to track too |
fixes: #18378
This pr removes mock data for the following features
Removed mock data from Collectibles Overview Page
Added Feature flag for Bridge page and for Edit Derivation Path
https://github.com/status-im/status-mobile/assets/22799766/eccd0fe1-8a8c-421b-a8a4-529cd0e27393
≈i.e on this page:
Note: I will create features to correctly restore all of these features with real data and with that I will link this pr so that the respective data structures are not lost 👍
Happy to rework this approach if there is a preferable alternative.
To test:
View a collectible page - you will see the activity is now not displaying
you will also see the socials links are now not showing - these were on the about tab of the collectibles view
Also on the Account input there is no suggested addresses showing now - these were mock previously.
i.e go to account page - click send button - start inputting an address
Added Feature flag for Bridge page
Added Feature flag for Edit Derivation Path