forum

Working on page mods for /community/matches

posted
Total Posts
2
Topic Starter
Lakitu
I'm working on the following UI improvements to the website:
- Adding "Ranked" in the map details card if the map is in fact ranked
- Adding user rank and level under the name but above the country thumbnail
- Disable the auto-scroll-to-bottom each time an event is received if you have manually scrolled the page up. (iow: will only fire if the page is already scrolled to the bottom)
- Add placement number beside name ("#1", "#2", "#3", etc)
- Put a line between teams

I need:
- API endpoint to pull user rank and level, I have access to the user ID and name in the json from the event
- API endpoint to pull rank information about a beatmap, I have access to the beatmap ID


Mods I have completed:
- Dark theme for /community/matches and /b
- Player Arrive/Leave messages removed from /community/matches (makes page much cleaner and shorter)


So, how do I go about getting API access?
I could have used data from the events json, but the values I need are set to null:

{
"user_id": 8728684,
"accuracy": 0.93582375478927204,
"mods": ["DT", "HD"],
"score": 1302164,
"max_combo": 212,
"perfect": 0,
"statistics": {
"count_50": 0,
"count_100": 17,
"count_300": 320,
"count_geki": 60,
"count_katu": 15,
"count_miss": 11
},
"pp": null,
"rank": null,
"created_at": null,
"multiplayer": {
"slot": 10,
"team": "none",
"pass": 0
}
},


Thanks
abraker
Instead of making browser addons for the new website, perhaps it's worth going over with ppy if such stuff can be added in, as well as toggles for the match join/leave and the like in user settings.

Imo an open source project should not be subject to 3rd party modifications unless the features are rejected
Please sign in to reply.

New reply