-
Notifications
You must be signed in to change notification settings - Fork 47
feedback actions #809
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
Merged
Merged
feedback actions #809
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6a0b8de
add connectkit
jkbktl 5e063ab
shared providers
jkbktl 3697f43
move turbopack from experimental
jkbktl 396fda3
Update ignoreCommand in vercel.json
felicio 74efb1f
add button to portfolio, add wallet connect
jkbktl fb55c94
f builds
jkbktl 84430fb
f
jkbktl 216f2d8
f shared
jkbktl 6346e55
clean up
jkbktl 31f2c9f
u
jkbktl 4308a1c
Add wallet connect feature
jkbktl 0e6cd78
u
jkbktl 99fde63
u
jkbktl d5fc7f9
add feedback actions
jkbktl a924a9a
Create soft-vans-suffer.md
jkbktl 3b3572f
review fixes
jkbktl 44e9c2a
update links
jkbktl 4488632
Merge branch 'main' into feat/feedback-actions
jkbktl 8a32787
f
jkbktl 3046eee
update dropdown icon
jkbktl 65cef9e
Revert "update dropdown icon"
jkbktl f204746
update correct dropdown icon
jkbktl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| "@status-im/status-network": patch | ||
| "hub": patch | ||
| --- | ||
|
|
||
| feedback actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/status-network/src/components/feedback-popover/dropdown-icon.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import type { SVGProps } from 'react' | ||
|
|
||
| const DropdownIcon = (props: SVGProps<SVGSVGElement>) => { | ||
| return ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width="12" | ||
| height="12" | ||
| fill="none" | ||
| aria-hidden={true} | ||
| focusable={false} | ||
| {...props} | ||
| > | ||
| <g stroke="currentColor" clipPath="url(#a)"> | ||
| <circle cx="6" cy="6" r="5" strokeWidth="1.2" /> | ||
| <path strokeWidth="1.1" d="M3.5 5 6 7.5 8.5 5" /> | ||
| </g> | ||
| <defs> | ||
| <clipPath id="a"> | ||
| <path fill="#fff" d="M0 0h12v12H0z" /> | ||
| </clipPath> | ||
| </defs> | ||
| </svg> | ||
| ) | ||
| } | ||
|
|
||
| export { DropdownIcon } |
56 changes: 56 additions & 0 deletions
56
packages/status-network/src/components/feedback-popover/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| import { useState } from 'react' | ||
|
|
||
| import { DropdownMenu } from '@status-im/components' | ||
|
|
||
| import { DropdownIcon } from './dropdown-icon' | ||
|
|
||
| const FEEDBACK_LINKS = [ | ||
| { | ||
| label: 'Contact us', | ||
| href: 'https://statusnetwork.typeform.com/contact-us', | ||
| }, | ||
| { | ||
| label: 'Submit bug', | ||
| href: 'https://github.com/status-im/status-web/issues/new?template=bug_report.md', | ||
| }, | ||
| ] | ||
|
|
||
| const FeedbackPopover = () => { | ||
| const [isOpen, setIsOpen] = useState(false) | ||
|
|
||
| return ( | ||
| <DropdownMenu.Root onOpenChange={setIsOpen} open={isOpen}> | ||
| <button | ||
| type="button" | ||
| className="flex cursor-pointer select-none items-center rounded-10 border border-neutral-70 hover:border-neutral-60" | ||
| > | ||
| <div className="flex items-center gap-1 px-2 py-[5px] text-15 font-500 text-white-100 transition"> | ||
| Share feedback | ||
| <span className="text-neutral-50"> | ||
| <DropdownIcon /> | ||
| </span> | ||
| </div> | ||
| </button> | ||
|
|
||
| <DropdownMenu.Content | ||
| collisionPadding={12} | ||
| sideOffset={24} | ||
| className="w-[256px]" | ||
| style={{ zIndex: 100 }} | ||
| > | ||
| {FEEDBACK_LINKS.map(({ label, href }) => ( | ||
| <DropdownMenu.Item | ||
| key={label} | ||
| label={label} | ||
| external | ||
| onSelect={() => { | ||
| window.open(href, '_blank', 'noopener,noreferrer') | ||
| }} | ||
| /> | ||
| ))} | ||
| </DropdownMenu.Content> | ||
| </DropdownMenu.Root> | ||
| ) | ||
| } | ||
|
|
||
| export { FeedbackPopover } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.