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-mobile: setup activity flow #5239

Merged
merged 10 commits into from Nov 21, 2022

Conversation

paul-boegelsack
Copy link
Contributor

@paul-boegelsack paul-boegelsack commented Nov 18, 2022

Summary

This PR initializes the activity flow for stardust mobile

Changelog

- Adds activity sub router
- Adds activity drawer
- Modifies the activity tile component for mobile to display the fast claim/reject buttons
- Adds a check for the stronghold locking status when a transaction is claimed to display the password drawer when needed

Relevant Issues

Testing

Enable dashboard.activity.details and dashboard.activity.actions in packages/mobile/features/features.ts

You can use branch dev-mode/mobile-stardust for testing purposes.
From the root of the repo in this PR's branch refactor/mobile-routers-after-refactor you can do:

git diff origin/dev-mode/mobile-stardust > branch.diff
git apply --reverse branch.diff

Platforms

Please select any platforms where your changes have been tested.

  • Desktop
    • MacOS
    • Linux
    • Windows
  • Mobile
    • iOS
    • Android

Instructions

Please describe the specific instructions, configurations, and/or test cases necessary to test and verify that your changes work as intended.

...

Checklist

Please tick all of the following boxes that are relevant to your changes.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or modified tests that prove my changes work as intended
  • I have verified that new and existing unit tests pass locally with my changes
  • I have verified that my latest changes pass CI workflows for testing and linting
  • I have made corresponding changes to the documentation

Copy link
Member

@begonaalvarezd begonaalvarezd left a comment

Choose a reason for hiding this comment

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

Great work 🚀

Comment on lines +19 to +23
function handleOnClick(): void {
$selectedActivity = activity
$activityRouter?.goTo(ActivityRoute.Details)
onClick()
}
Copy link
Member

Choose a reason for hiding this comment

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

To make the component reusable in the future possibily with desktop, I wouldnt handle this logic here but let the view be the one to decide, so ideally we should add a onActivityClick to packages/mobile/components/ActivityList.svelte and handle the logic directlty in ActivityList, I think it might be better this way

onClick()
}

function onReject(): void {
Copy link
Member

Choose a reason for hiding this comment

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

Same here, routing logic shouldnt be in a component but on the routing views

$activityRouter?.goTo(ActivityRoute.Reject)
}

async function onClaim(): Promise<void> {
Copy link
Member

Choose a reason for hiding this comment

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

Same here, I would move all this out

@begonaalvarezd begonaalvarezd merged commit fe82d3f into stardust-develop Nov 21, 2022
@begonaalvarezd begonaalvarezd deleted the feat-mobile/setup-activity-details branch November 21, 2022 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context:wallet stardust Related to the Stardust Protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants