Giter Club home page Giter Club logo

stats.gallery's Introduction

stats.gallery

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Note: some macOS users may need to use a different port from the default (8080):

npm run serve -- --port 8888

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

stats.gallery's People

Contributors

amgando avatar bexanderthebex avatar dan-near avatar egodive avatar encody avatar jhammond2012 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stats.gallery's Issues

comparison with other accounts

in terms of:

  • over / under average usage of account as measured in # of transactions
    given the average number of transactions per unit time (eg. day, week, month), how does this account relate?

  • contribution to the overall velocity of money as measured in total amount of money / money-related transactions sent / received
    given the number of transactions related to money (eg action = TRANSFER), how does this account compare with others that are (a) sending money (b) receiving money (c) total send / receive (d) counting number of Tx vs average Tx size

  • personified diversity of engagement with apps
    given the number of transactions with existing production apps, is this account considered (a) a honeybee, floating from one to another or (b) a beaver that sticks to the same area or (c) a bear that thunders in with big money movements, etc.

Write about page

Ideally have a few paragraphs describing the utility of the app in a lighthearted manner. Graphics/GIFs are a plus.

staking badge not appearing

Describe the bug
Staking badge doesn't show under Near Address

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://stats.gallery/mainnet/wimscot123.near/
  2. Click on 'quests'
  3. Scroll down to 'achievements.'
  4. See staking badge showing up under achievements. But not showing on top

Expected behavior
Staking badge should show on top under near address. Cause: Locked up contract since ICO
screencapture-wallet-near-org-staking-2021-10-04-10_27_19

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version latest

Additional context
Add any other context about the problem here.

Sponsored badges

Monthly(?) subscription fee for entities to sponsor their own badges

Group RPC calls

Currently RPC calls are issued for every receipt affecting an account. When receipts occur in close proximity to one another (within a block or two) only one RPC call should be issued.

Overview: Streak Status

Is your feature request related to a problem? Please describe.
Streaks are a well known to drive adoption, in line with NEAR goals of retaining new accounts and turning them into Monthly Active Users.

Describe the solution you'd like
On the Overview page we can display user Streaks as an indicator of continued activity. It's somewhere in between "Time with NEAR" and "Weekly Transaction Rate", both of which are interesting statistics but don't gamify engagement. I think this can replace "Weekly Transaction Rate" which tells me less than the "Transactions sent" section of "Brief Stats".

If we only keep track of one Streak it should be a Weekly Activity Streak. The ? could be "How many consecutive weeks have you used NEAR."

A daily activity streak would be good to include as well. If a user has a goal of keeping up a Daily Activity Streak they are more likely to be successful in maintaining their Weekly Activity Streak. It also makes the box more dynamic, it's easy to forget about interacting with an app for a day, so it would reset here and there while the Weekly Activity Streak continued to grow. I think two streak scores could be displayed in a box and it would make sense.

Besides displaying the current number for WAS and DAS we could display the user all time longest WAS and DAS. If they're current is pushing the all-time higher we could make it exciting by adding the same visual styling to the ATH and current numbers.

Tracking Streaks will give us a new ๐Ÿ’จ badge that looks at a users Streak ATH (to be tweaked):
COMMON: 4 week + 15 day
RARE: 8 week + 30 day
SUPER RARE: 12 week + 45 day
EPIC: 16 week + 60 day

Displaying the Daily streak on a users generated image "stamp book" will give them a reminder to continue using dApps and making transfers.

normalize account names using lowercase

currently a valid account name with uppercase letters don't return any results

T3.edu-daos.near doesn't work on MainNet but
t3.edu-daos.near works just fine.

there should be no difference. both should work

create shareable URL for reports

a big piece of the puzzle here is to be able to send your gallery of activity to others.

this requires a URL that leads directly to account stats.

when stats appear, the URL should be updated to reflect what is currently showing on the screen so it can be shared.

Reward badges with NEAR or tokens

Along the lines of rabbithole.gg, dApps could sponsor badges for trying out their platforms.

MVP would be to perform the same query as stats.gallery per badge and do an airdrop to the qualifying addresses. NEAR Data Center Guild could be a partner for this.

More advanced would be storing badge accomplishments as metadata on a dynamic NFT representing each account. The graphic is already being generated. Proof of concept for the NFT is near.watch.

The goal of all this is to encourage MAU on chain. Badges are something for people to check on every day/week/month to see what quests to go on for rewards. The badge itself may be enough reward for some people, but sites like nearcrowd have proven there is an appetite to complete tasks for NEAR.

NFT badge not appearing

Describe the bug
A clear and concise description of what the bug is.
I can't reload my page and see any achievements about me on page.

Expected behavior
A clear and concise description of what you expected to happen.
This is cannot update although I click reload or use F5 button.
I have some NFTs on Paras but I am not get a achievement with this.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser : Brave
  • Version [e.g. 22]

Thanks for reading and I hope I can resolve this problem.

Transactions: Transfers Filter

image

Is your feature request related to a problem? Please describe.
Right now it is only possible to filter by All | Incoming | Outgoing | Function Call.

Describe the solution you'd like
I'd like to be able to filter by Transfers.

Less important, but I also don't see transfers listed in the circular graph. It would be interesting to see red/out and green/in slices there.

More color!

The app needs to be more colorful! Please submit ideas for how to make it pop more.

Data range selector

UI component to select timestamp range (before/after) of data to display (right now a limit of 20 actions is hardcoded)

[BADGE] Guild Leader

What is the name of the badge?
Guild Leader

When will the badge be awarded?
When you found or run a guild

Is this a series of badges (i.e. different badges awarded for different degrees of completion)?
This is a one-off badge showing your connection and OG in the ecosystem

Provide a simple SVG icon for the badge

What color(s) would you prefer the badge to be?
No preferences

Is this badge associated with a particular organization, product, or service?
Yes: The specific guild you lead

Does this badge link somewhere?

No

Fix tailwindcss purge warnings

warn - Tailwind is not purging unused styles because no template paths have been provided.warn - If you have manually configured PurgeCSS outside of Tailwind or are deliberately not removing unused styles, set `purge: false` in your Tailwind config file to silence this 
warning.
warn - https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css

Network-wide Statistics

Is your feature request related to a problem? Please describe.
I'm looking for a stats.gallery dashboard with network-wide statistics that could be integrated, for example, on www.nearweek.com

Describe the solution you'd like
Would it be possible to have a dashboard/overview featuring:

  • Weekly Top 5 most active wallets (most active users)
  • Weekly top 5 most used dApps
  • Amount of dApps on NEAR - Hopefully we can see it grow every week
  • Weekly top NFT projects

And then have a

  1. 4-week function
  2. An all time/aggregate function as well

Describe alternatives you've considered
Having a bounty for making it and posting in NEAR Data Center TG

Message templates for Pingbox integration

@TrevorJTClarke

There are two possible messages that stats.gallery could send to users right now:

  1. Earned a badge
  2. Advanced to a new level

Earned a badge

Badge acquisition status is determined by the return value of an SQL query to a PostgreSQL indexer server, for example:

select count(*) as result
where exists(
  select *
  from action_receipt_actions
  where action_kind = 'DEPLOY_CONTRACT'
    and receipt_predecessor_account_id = 'hatchet.near'
)

Queries will return 0 when a badge is not acquired, and >0 when a badge is acquired. If the badge is a boolean badge (such as the one above), it will return 1 when the badge is awarded. Some badges have multiple levels (example), so instead of the badge being awarded at any return value >0, there are some predetermined levels, which are established here on the frontend.

Badge queries are stored in badge-*.sql.js files here.

Messaging

Congratulations, you've earned the <badge-name> badge on stats.gallery!

TODO: I can ask a designer to work on messaging and email design/template if desired.

Advanced to a new level

Levels are awarded based on an exponentially increasing score requirement. A user's score is calculated by awarding certain types of on-chain actions with different point values. Levels names are determined here (lvl 10+ is "Nearkat").

Messaging

You've advanced to level <#> and won the title <level-name> on stats.gallery! Look at you go!

[BADGE] DAO-ist

What is the name of the badge?

DAO-ist

When will the badge be awarded?

COMMON
If a user has received payment from a SputnikDAO v2 contract.

RARE
If a user has submitted a proposal to a SputnikDAO v2 contract.

SUPER RARE
If a user is an explicit council member of a SputnikDAO v2 contract.

EPIC
If a user is an explicit council member of more than one SputnikDAO v2 contract.

Provide a simple SVG icon for the badge

(cool S from https://www.sputnik.fund/)

<path d="M83.88 76.75C83.7114 75.8569 83.3383 75.0149 82.79 74.29C82.79 74.29 82.79 74.29 82.79 74.23C82.72 74.15 82.66 74.07 82.59 74L68.83 57.32C68.6375 57.1121 68.3727 56.9856 68.09 56.9666C67.8073 56.9476 67.528 57.0374 67.3093 57.2177C67.0907 57.398 66.9493 57.655 66.9141 57.9362C66.8789 58.2174 66.9526 58.5014 67.12 58.73L77.92 71.84C77.527 71.8403 77.135 71.8805 76.75 71.96C75.932 72.1316 75.1588 72.4722 74.48 72.96L53.09 51.52V51.47C53.4015 51.0139 53.6536 50.5199 53.84 50L82.74 54.13H82.89C83.1625 54.119 83.4214 54.008 83.6172 53.8183C83.8131 53.6286 83.9323 53.3734 83.9521 53.1014C83.9719 52.8294 83.8909 52.5597 83.7245 52.3437C83.5581 52.1276 83.318 51.9804 83.05 51.93L54.15 47.8C54.1381 47.4909 54.1013 47.1832 54.04 46.88C53.8542 45.8863 53.4169 44.9568 52.77 44.18H73C73.2534 44.1312 73.4818 43.9958 73.6461 43.7968C73.8104 43.5979 73.9003 43.348 73.9003 43.09C73.9003 42.832 73.8104 42.5821 73.6461 42.3832C73.4818 42.1842 73.2534 42.0488 73 42H48.13C47.7207 41.9969 47.3121 42.0337 46.91 42.11C46.1204 42.2612 45.3685 42.5669 44.6975 43.0097C44.0265 43.4525 43.4496 44.0235 43 44.69C42.5525 45.3513 42.2416 46.0952 42.0853 46.8783C41.9291 47.6613 41.9307 48.4676 42.09 49.25C42.2587 50.1431 42.6317 50.9851 43.18 51.71C43.18 51.71 43.18 51.71 43.18 51.77C43.25 51.85 43.31 51.93 43.38 52L57.17 68.68C57.2758 68.805 57.4075 68.9055 57.556 68.9746C57.7045 69.0437 57.8662 69.0796 58.03 69.08C58.2406 69.0819 58.4472 69.0233 58.6255 68.9112C58.8037 68.7991 58.946 68.6382 59.0355 68.4476C59.1251 68.257 59.158 68.0448 59.1304 67.836C59.1028 67.6273 59.0159 67.4308 58.88 67.27L48.08 54.16C49.3108 54.1543 50.512 53.7817 51.53 53.09L72.91 74.48C72.5946 74.9517 72.3425 75.4627 72.16 76L43.26 71.87C43.1022 71.8068 42.9319 71.7807 42.7624 71.7938C42.5929 71.8068 42.4286 71.8586 42.2823 71.9452C42.136 72.0318 42.0115 72.1509 41.9185 72.2932C41.8254 72.4355 41.7663 72.5973 41.7457 72.766C41.7251 72.9348 41.7436 73.106 41.7996 73.2666C41.8557 73.4271 41.9479 73.5725 42.0691 73.6918C42.1903 73.811 42.3373 73.9008 42.4987 73.9543C42.6601 74.0077 42.8316 74.0234 43 74L71.9 78.13C71.9136 78.4385 71.947 78.7458 72 79.05C72.1922 80.0435 72.6325 80.9723 73.28 81.75H53.05C52.7751 81.7762 52.5198 81.9039 52.334 82.1082C52.1482 82.3126 52.0453 82.5788 52.0453 82.855C52.0453 83.1312 52.1482 83.3974 52.334 83.6018C52.5198 83.8061 52.7751 83.9338 53.05 83.96H78C78.8919 83.9538 79.7714 83.7506 80.5755 83.3647C81.3796 82.9789 82.0885 82.42 82.6513 81.7282C83.2142 81.0363 83.6171 80.2285 83.8313 79.3627C84.0454 78.4969 84.0655 77.5945 83.89 76.72L83.88 76.75Z" fill="white"></path>

What color(s) would you prefer the badge to be?

#7600FF

Is this badge associated with a particular organization, product, or service?

SputnikDAO

Does this badge link somewhere?

http://sputnik.fund/

[BADGE] One-of-a-kind (increased rarities)

What is the name of the badge?

One-of-a-kind

When will the badge be awarded?

SUPER RARE
Send an NFT

EPIC
Send and Receive 10 NFTs on multiple contracts.

Is this a series of badges (i.e. different badges awarded for different degrees of completion)?

Yes, continuation of the One-of-a-kind badge.

Provide a simple SVG icon for the badge

Same as current badge but increase the rarity levels.

Remove timeframe and network selectors

This will involve:

  1. Dropping support for multiple networks (so removing support for testnet)
  2. Having "timeframe" be a component-specific, rather than session-specific value. Basically we want components to always have interesting data to show, so if they have to reach a little further back in history (or automagically request more data when the user expands/scrolls/etc) than other components in order to display something interesting, that is ok.

Tweet button only shows up on first page load; dynamic pages only display fallback "Tweet" text

Describe the bug
Dynamic navigation to a page that has a Twitter "Tweet" button in the header only displays the text "Tweet" instead of the nice button.

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to https://stats.gallery
  2. Enter an account name and press "Show stats"

Expected behavior
Blue Twitter button is rendered

Screenshots
brave_2021-09-13-12-40-50

Desktop (please complete the following information):

  • Browser: Brave

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.