Eisvana / Eisvana-Census

Census management website for Eisvana
http://census.eisvana.com/
GNU General Public License v3.0
0 stars 1 forks source link

Add a way for people to select another base as their primary base #84

Closed Lenni009 closed 7 months ago

Lenni009 commented 7 months ago

Query all bases of a user from the wiki that were built in Eisvana Display that list Give user the option to choose one Let them give a reason (in case they deleted the old one)

Don't show the button if there is only one base available.

The button could be on the census table page. The request should only fired when they actively click on the button, otherwise we end up spamming the API.

Lenni009 commented 7 months ago

Example API call:

https://nomanssky.fandom.com/api.php?action=cargoquery&format=json&origin=*&tables=Bases&fields=Name&where=CensusPlayer%3D%22Binder198%22%20AND%20Civilized%3D%22Eisvana%22
Lenni009 commented 7 months ago

Display a "Chance Census Base" button on all players, since we don't know if they have multiple bases.

If they click it, fire the query.

If the query returns only one base, display a "Create New Page" button (like the "New" button on the player card)