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

rewrite with react #48

Merged
merged 11 commits into from
Jun 17, 2018
Merged

rewrite with react #48

merged 11 commits into from
Jun 17, 2018

Conversation

gasolin
Copy link
Collaborator

@gasolin gasolin commented Mar 16, 2018

related to #47

Imgur

@owocki
Copy link
Contributor

owocki commented Mar 16, 2018

qa notes:

  1. seems to take several seconds when browsing a github issue for the 'fund issue' button to show up. can we dial up the speed on this?
  2. we could use some design resources on http://bits.owocki.com/213Y100F0B2E/Image%202018-03-16%20at%2010.39.57%20AM.png -- (buttons colors, placement, etc). also there is a stray single quote next to 'View.

all in all, i think this is a solid direction to take things and i'm thrilled @gasolin that you took the initaitive!

cc @mbeacom to see what he thinks !

@gasolin
Copy link
Collaborator Author

gasolin commented Mar 16, 2018

QA note 2 the 'view >> issue is fixed in PR :p (sorry I didn't update the screencast)
QA Note 1 is caused because now the query starts after showing the content.
Could do the fetch in an earlier life cycle (ex: componentWillMount)

@gasolin
Copy link
Collaborator Author

gasolin commented Mar 20, 2018

The loading is faster now. Check the screencast
Imgur

@mbeacom how do you think?

@gasolin
Copy link
Collaborator Author

gasolin commented Mar 27, 2018

Hi @mbeacom @owocki , I saw the bounty universe is in alpha and it looks like a perfect fit with this extension. Could we have a quick talk to decide if we want to implement the next features based on this react rewrite?

@mbeacom
Copy link
Contributor

mbeacom commented Mar 27, 2018

@gasolin Sounds good! When were you thinking?

@owocki
Copy link
Contributor

owocki commented Mar 27, 2018

@gasolin @mbeacom id be down to chat about this on thursday. wanna shoot me an invite? calendly.com/owocki

@mbeacom u wanna join?

@mbeacom
Copy link
Contributor

mbeacom commented Mar 27, 2018

@owocki Sure!

@gasolin
Copy link
Collaborator Author

gasolin commented Mar 28, 2018

@owocki your proposed time doesn't fit well to me(12am ~ 6am local time), so I'll write a GIP for the improvement proposal https://github.com/gitcoinco/GIPs instead and we can see if it make sense.

@gasolin
Copy link
Collaborator Author

gasolin commented Mar 28, 2018

@ghost ghost assigned gasolin May 29, 2018
@ghost ghost added the in progress label May 29, 2018
Copy link
Collaborator

@arku arku left a comment

Choose a reason for hiding this comment

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

@gasolin Looks good overall. Left a few minor comments. Do check them out.


//injects various information on the page
var body = function(url) {
var isOnGitHubcom = url.indexOf('://github.com') !== -1 && url.indexOf('://github.com') < 15;
Copy link
Collaborator

Choose a reason for hiding this comment

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

May I know the significance of the magic number 15?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not sure why this number comes out.
Since we already do some protection via extension manifest, lets remove it

//run callbacks from event
for (var i = 0; i < callbacks.length; i++){
var callback = callbacks[i];
callback(event);
}

}, false);

injectWeb3Context();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this function call removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

since we don't need to show web3 related info in extension now

import React from 'react';
import robot from './bot.png';

export function Bot() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like we're not rendering the Bot component in App.

  • May I know why?
  • If we don't need it, can we remove this component file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it was made to mimic the old ui. I disable it to let extension focus on the main content. would remove it

import React from 'react';
import banner from './header.png';

export function Header() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto, why isn't the Header component used in App component?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

same reason, would remove it

</div>
<h5>Funded Issues</h5>
<input type='text' id='search_bar' value={this.state.keyword} placeholder='Search for keywords..' onChange={this.handleChange} onKeyDown={this.handleKeyDown} />
<button id="search-button" style={searchBtnStyle} onClick={this.handleClick} className='btn btn-sm btn-primary js-details-target gitcoin_button'>Search</button>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the search button should be disabled if the query is empty.

What do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

when query is empty, press enter will show non-filtered result

</thead>
<TableNodes {...this.state} />
</table>
<a target='new' href='https://gitcoin.co/explorer' rel='noopener noreferrer'>View More &gt;&gt; </a>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think when a user searches for something and if there aren't any results, the 'View more' link shouldn't be rendered.

Thoughts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@arku
Copy link
Collaborator

arku commented Jun 17, 2018

@gasolin Thanks for addressing my comments and apologies for taking so long on this one.

LGTM 👍

@arku arku merged commit 77da801 into gitcoinco:master Jun 17, 2018
@ghost ghost removed the in progress label Jun 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants