-
Notifications
You must be signed in to change notification settings - Fork 27
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
Feat/leaderboard #46
Feat/leaderboard #46
Conversation
@0x4007 remember this from when I authored the CLI? Is this still something that you'd be interested in seeing? It would work much like this PR, pull CSV/JSON from up-to-date source and allow a simple address aggregation search? I saw it in TG but not sure if it happened, but a script to populate the current permitDB with all previous permits using the cli and then the source could just be supabase for individual users searching for their own unspent permits I've been using the CLI personally to grab my unspent permits after leaving gathering a couple up if I can 🤣 |
two things: The preview deployment login is redirecting to the live deployment meaning you can't effectively sign in via github into the preview url and the leaderboard uses GH api to grab the source CSV and Supabase for (all) usernames, date created etc unless cached, so that's a trouble. Seems there's a DB schema mismatch looking at the logs. What is the |
wallets = where |
This should be on a separate page. It clutters the UI for searching for new work. Also the numbers don't look right. I'm pretty sure the core team members collected more that what is shown on your screenshot. Otherwise pretty interesting feature! |
So leaderboard button should push to a new page completely i.e Should the leaderboard button be up-top or should it join the "help" button down-low?
I was thinking how can I be sitting up there with the big boys myself lmao, but the CLI is only parsing permits from comments posted by either yourself or the bot, not manual payments. I'll need to check if it's checking the new |
@Keyrxng What supabase instance did you use for testing? I'm getting an empty leadeerboard without any errors when I'm trying the following credentials which are used for the pavlovcik's supabase instance which is currently used for production (@gentlementlegen pls correct me if I'm wrong):
|
That's the one I used. I'll add a loader/toaster. You need to be signed in with GitHub, open the leaderboard and wait and it will populate. It'll store the info in I'm just after trying it again myself. |
Yes, pls add a loader. I cleared the local storage and then everything worked fine. |
Since this depends on the CLI and an update to the workflows, should I aim to clear those up first and then see this through? Because this is currently pulling static leaderboard data from my repo |
@Keyrxng Questions:
|
The
A better idea might be to open a task and have the payout history that the CLI is able to pull and pipe that into the current |
So the plan is:
Correct? |
Yes this sounds good to me @rndquu |
Can you instead make a new repo for this? Just fork the code and make a separate page and remove all the complex logic around displaying GitHub issues. It really doesn't make sense to me to make work.ubq.fi handle leaderboards, but I understand why you did it (the rows are a useful structure to display the leaderboard.) If you create leaderboard.ubq.fi repo, my cloudflare worker should automatically map it to the domain. |
I assume you mean @rndquu here, once the repo is created if you could ping me and I'll jump on it rndquu |
|
@0x4007 I am due out just shortly for an apt but will open one by this evening. I had been working on ubiquity/.github#109 trying to ensure the data is as trustworthy and accurate as possible but it's been tricky to know if it's 100% accurate without a lot of manual inspection at first but it's not far off so that's why I haven't made any further progress with this PR. Data without confirming isNonceClaimed
Data with confirmed isNonceClaimed
|
Resolves #45
QA
leaderboard.mp4