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

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

Closed
Lenni009 opened this issue Apr 13, 2024 · 2 comments · Fixed by #92
Closed

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

Lenni009 opened this issue Apr 13, 2024 · 2 comments · Fixed by #92
Labels
enhancement New feature or request

Comments

@Lenni009
Copy link
Member

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 Lenni009 added the enhancement New feature or request label Apr 13, 2024
@Lenni009
Copy link
Member Author

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
Copy link
Member Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant