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: populate help section #2619

Merged
merged 3 commits into from
Oct 12, 2023
Merged

fix: populate help section #2619

merged 3 commits into from
Oct 12, 2023

Conversation

iamacook
Copy link
Member

What it solves

Resolves missing WC help info

How this PR fixes it

The help regarding connection/interaction with a dApp has been added.

How to test it

Open the WC modal and observe the help information within the accordions. Hiding and showing them should work accordingly.

Screenshots

wc-help

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

@iamacook iamacook self-assigned this Oct 12, 2023
@github-actions
Copy link

github-actions bot commented Oct 12, 2023

Branch preview

⏳ Deploying a preview site...

@github-actions
Copy link

github-actions bot commented Oct 12, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Comment on lines 62 to 65
'Connect a dApp by following the above steps',
`Ensure the dApp is connected to ${chain?.chainName ?? 'this chain'}`,
'Initiate a transaction/signature request via the dApp',
'Transact/sign as normal via the Safe',
Copy link
Member

Choose a reason for hiding this comment

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

Please exctract the hardcode to a const, you can use a replacement pattern for the chain name.

Comment on lines 71 to 72
<HintAccordion title="How do I connect to a dApp?" items={ConnectionSteps} />
<HintAccordion title="How do I interact with a dApp?" items={InteractionSteps} />
Copy link
Member

Choose a reason for hiding this comment

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

Please extract the hardcoded titles.

Copy link
Member

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

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

Looks good overall.
Just one UX comment: after clicking on "Don't show again", it hides everything too abruptly. Ideally it should do it at least with a little delay (300ms?).

Copy link
Member

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

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

🙏

@iamacook iamacook merged commit 868f0ac into nect Oct 12, 2023
3 of 7 checks passed
@iamacook iamacook deleted the wc-help branch October 12, 2023 09:56
@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants