Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Feedback widget #161

Merged
merged 5 commits into from
Dec 5, 2023
Merged

Feedback widget #161

merged 5 commits into from
Dec 5, 2023

Conversation

wackerow
Copy link
Member

@wackerow wackerow commented Dec 1, 2023

Description

  • Add focus-trap-react package
  • Migrate useKeyPress hook
  • Migrate useOnClickOutside hook
  • Update FeedbackWidget component
  • Implement FeedbackWidget inside RootLayout

Cherry-picks bc400d6 from #152, implementing useSurvey hook

Related Issue

https://www.notion.so/efdn/Add-Feedback-widget-c99e6d8e04b0425ca6769c7ddf63ba7d?pvs=4

Copy link

netlify bot commented Dec 1, 2023

Deploy Preview for ethereum-org-fork ready!

Name Link
🔨 Latest commit 8d8e65e
🔍 Latest deploy log https://app.netlify.com/sites/ethereum-org-fork/deploys/656f1359fd37e8000815082f
😎 Deploy Preview https://deploy-preview-161--ethereum-org-fork.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

yarn add focus-trap-react, add associated hooks, implement in RootLayout
@@ -20,6 +20,7 @@
"@emotion/styled": "^11.11.0",
"@storybook/react": "^7.3.2",
"clipboard": "^2.0.11",
"focus-trap-react": "^10.2.3",

Choose a reason for hiding this comment

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

Where is this being used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

I see this translation without parsing in the FeedbackCard. This happens when only the t function is used. For rich text content, we have to parse the content with htmr which is implemented in the Translation component.

image

Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

Nice job @wackerow, looks great.

I've pushed a commit to fix the not parsed translation and some conflicts with dev.

Copy link
Member

@nhsz nhsz left a comment

Choose a reason for hiding this comment

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

LGTM

@nhsz nhsz merged commit 714d95f into dev Dec 5, 2023
@nhsz nhsz deleted the feedback-widget-component branch December 5, 2023 20:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants