Frontend interface for the Admin Panel web app.
Most aspects are fairly self explanatory, but this guide should cover any tricky bits as they get added.
Documentation for importing GeoJSON can be found here.
When creating a new user, you have the option to create them as an API client. When you do this, you have one chance only to retrieve the client secret. The steps for Google Chrome are:
- Open the inspector (right click → “Inspect”).
- Select the “Network” tab.
- On the Admin Panel, create a new user, and choose “Yes” on the API client field.
- Back on the Network Inspector, click on the request to
/users
with a200
response. - View the response body, find the
secretKey
field, and keep it safe!
This secret key is used as the password in Basic Auth headers sent by API clients. Their permissions are verified based on the user the API client is attached to.
The Viz Builder App is an interface for creating Tupaia visualisations such as Cartesian charts and pie charts.
It is a standalone app that sits inside the Admin Panel on the viz-builder
route. It is inside the Admin Panel so that it can use the Admin Panel authentication and to give a more seamless user experience.
The Viz Builder App code is contained from the Admin Panel code so that it can be exported and imported into other apps such as LESMIS if required.
It is also separated from the Admin Panel code so that we can use modern React techniques such as TanStack Query (formerly React Query).