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

Leaderboard app with query #1864

Merged

Conversation

diminator
Copy link
Contributor

Description

This PR requires branch aaronmgdr/build4

Implements the dynamic leaderboard app using a graphql query and leaderboard script:
#1810

Tested

Tested by running locally.

Related issues

To check

I'm not sure how env-config.js.template works

diminator and others added 5 commits November 26, 2019 00:59
…inator/leaderboard-app-with-query

# Conflicts:
#	packages/web/env-config.js.template
#	packages/web/src/dev/Engage.tsx
#	packages/web/src/dev/LeaderBoard.tsx
#	packages/web/src/dev/LeaderBoardApp.tsx
#	packages/web/static/locales/en/dev.json
@@ -97,10 +94,11 @@ function sorter(alpha: Competitor, bravo: Competitor) {
return -1
}

const PORTIONS = 8
const Portions = 8
Copy link
Member

@aaronmgdr aaronmgdr Nov 26, 2019

Choose a reason for hiding this comment

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

why the change? for consts all caps is really more common, with Pascalcase I tend to think interfaces or classes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true, the linter was complaining, but we can revert

@@ -9,7 +9,7 @@ const environments = {
projectId: 'celo-faucet',
},
LEADERBOARD: {
uri: "http://localhost:8080/v1/graphql",
uri: "http://localhost:4000/graphiql",
Copy link
Member

Choose a reason for hiding this comment

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

I assume eventually this will be a non localhost URL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it should be the one of blockscout

@diminator
Copy link
Contributor Author

Seems circleci is having some issues. probably build4 branch needs to sync in master

@diminator diminator merged commit 02cf1b4 into celo-org:aaronmgdr/build4 Nov 26, 2019
@diminator diminator deleted the diminator/leaderboard-app-query branch November 26, 2019 15:25
cmcewen pushed a commit that referenced this pull request Nov 27, 2019
* new stack area before too much crazy

* Freeze the illustration as we scroll past it

* Mobile and tablet sizes working

* fix hash link scroll to correct offset

* Add leaderboard

* Add browse code button to full stack area and update title of features area

* Order those imports

* Add connection footer to build page

* More copying of files from other branch over

* Add alignment options to social channels

* JK

* Add back translations

* add Transcieve graphic

* mathemagic

* Reduce lines and cleanup code

* Wait 2 seconds before running animation

* The great celo stake off

* That sweet baking

* Set max height for graphic

* Three mode stickiness

* Engagement area of build page with mobile support

* Fix Buttons on Firebox being  wrong sized

* Add space between buttons

* When scrolling up our little illogical re attaches to the flow

* This works. Maybe I can make better

* Highlight ALL layers when code

* Little fixes

* Build updates

* Updates to engage

* Merging Diminator leaderboard into aaronmgdr /build (#1860)

* - make page / baklava
- leaderboard app with graphql fetch

* fix lint

* port leaderboard app to dev page

* remove unused packages

* expand leaderboard and env vars

* Let the games begin

* Lint fix

* Leaderboard app with query (#1864)

* cherry pick leaderboard app

* web site changes

* it was changed now

* cleanup

* fix duplicate import

* Fuck yeah

* Some improvements

* lockfile changes

* Add terms link

* Always be linting

* Fix lint errors

* Lint

* Show leaderboard and handle empty array

* Fix env config

* Prettify template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants