Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

feat: Relates to #128. Add feedback button that links to Fether Github new issue #319

Merged
merged 12 commits into from
Jan 3, 2019

Conversation

ltfschoen
Copy link
Contributor

@ltfschoen ltfschoen commented Dec 20, 2018

Usage: Click the feedback icon shown in the bottom right corner of the Accounts page and it'll open the Fether Github new issue page

SVG icon used: https://www.svgrepo.com/svg/27566/message

Screenshot:

screen shot 2018-12-20 at 7 56 50 pm

@Tbaut
Copy link
Collaborator

Tbaut commented Dec 20, 2018

Simple but nice, either it's my screen or the black of the icon is more black than other icon (such as the +)?
Can we make sure to add a tooltip with something along the side "Give feedback on Github" so that users don't have to click to know what's going on?

@amaury1093
Copy link
Collaborator

Nice! As per #158, we're trying to move to Semantic UI. Could you maybe use one of the icons from https://react.semantic-ui.com/elements/icon/, if they are nice enough?

@ltfschoen
Copy link
Contributor Author

ltfschoen commented Dec 20, 2018

@amaurymartiny I've used Semantic UI icons before somewhere. I just tried replacing the existing icons with them as follows but I can't get anything to appear so far:

import { Icon } from 'semantic-ui-react';

<Icon link name='question circle outline'/>

Also tried the Semantic-UI tooltip https://semantic-ui.com/modules/popup.html suggested by @Tbaut and wrapping the contents of the Feedback component as follows, but can't get the tooltip to display above the account cards (tried changing z-index and so forth unsuccessfully so far)

<div className='feedback-icon ui icon' data-tooltip='Give feedback on Github'>

@Tbaut
Copy link
Collaborator

Tbaut commented Dec 21, 2018

What about something even more obvious (and what I am used to see elsewhere) as I fear a simple icon is not completely clear:
image

Wait for some feedback (:confused: / :+1: ?) before implementing it.

@ltfschoen
Copy link
Contributor Author

@Tbaut Great idea, much better than an icon that may have people guessing as to what it means

@ltfschoen
Copy link
Contributor Author

ltfschoen commented Dec 21, 2018

@Tbaut I've pushed a commit with the changes.

Screenshot:

screen shot 2018-12-21 at 3 14 31 pm

Copy link
Collaborator

@Tbaut Tbaut 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 :)

@ltfschoen
Copy link
Contributor Author

@amaurymartiny I've pushed commits that address your latest review comments

};

export const Feedback = () => (
<div className='feedback' onClick={openFeedbackLink}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

This could actually be<a href="" target="_blank" />, just to remove the cursor:pointer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@amaurymartiny i've pushed a commit that changes it to use <a href... instead. i've also removed the hand pointer and replaced with default arrow

@amaury1093
Copy link
Collaborator

amaury1093 commented Dec 31, 2018

I just tested on mac, and it shows a padding below the feedback button. @ltfschoen Can you try on yours? Apart from this nit I'm ready to merge the PR.

screenshot 2018-12-31 at 13 44 19

@ltfschoen
Copy link
Contributor Author

@amaurymartiny that's strange, it doesn't have the padding on mine (see screenshot below), so i'll have to look into that.

screen shot 2019-01-01 at 1 52 16 am

if i go into Developer Tools and add margin-bottom: 10px; (see screenshot below) then it looks similar to what you're seeing, but it shows shadow below my feedback button whereas there isn't any below mine.

screen shot 2019-01-01 at 1 59 18 am

i'm using Electron Version 2.0.3 (2.0.3) and Chrome 71.0.3578.80 (Official Build) (64-bit)

@ltfschoen
Copy link
Contributor Author

ltfschoen commented Dec 31, 2018

@amaurymartiny i have to add margin-bottom: 10px for it to add that bottom padding that you're seeing, except you don't have any bottom shadow for some reason.

screen shot 2019-01-01 at 1 59 18 am

i'm using the latest Chrome Version 71.0.3578.98 (Official Build) (64-bit) and Electron Version 2.0.3 (2.0.3)

@amaury1093
Copy link
Collaborator

After some quick testing, I think it only happens when you have only 1 account (and related to the min-height property on .window).

It doesn't bother me that much actually, so I'll just let @Tbaut have a last look if he's okay with this, if yes, we can merge.

Note: what actually bothers me a little bit more is the cursor: default on hover. Any reason why not to keep the default <a> behavior?

@ltfschoen
Copy link
Contributor Author

@amaurymartiny Sorry, I misinterpreted the following previous comment. I'll change back to default behaviour

just to remove the cursor:pointer

@ltfschoen
Copy link
Contributor Author

ltfschoen commented Jan 2, 2019

@amaurymartiny Yes you're correct, I temporarily changed it to just show one account in AccountList.js (i.e. {new Array(accountsList[0]).map(address => () and it shows the feedback button offset from the bottom. I'll see if I can fix that now

@Tbaut
Copy link
Collaborator

Tbaut commented Jan 2, 2019

That'd be great to fix this little offset to keep the screen consistent.

@ltfschoen
Copy link
Contributor Author

@amaurymartiny @Tbaut I've pushed some commits that fixes the offset that occurs when the account list length is undefined, 0 or 1

@Tbaut
Copy link
Collaborator

Tbaut commented Jan 2, 2019

The hack works, I'm good with how it looks if @amaurymartiny is fine with the hack :)

Copy link
Collaborator

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

Not my favorite hack, but it's alright. It should be cleaner once we switch to styled-components.

@amaury1093 amaury1093 merged commit e7b7ee4 into master Jan 3, 2019
@amaury1093 amaury1093 deleted the luke-128-feedback-button branch January 3, 2019 10:12
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.

3 participants