How nodero-group-project/ade-chat-assistant-frontend works
Nodero is a React frontend for asking Aotearoa Data Explorer questions in natural language, with a separate admin path for managing datasets. Users enter through the landing page, open chat, and submit a question; the chat adapter requests a report from the backend and presents returned SDMX data and token usage. Admins can list, add, edit, and delete datasets through the backend. The backend’s internal processing is outside this repository, so the graph treats it as an external service.
Main entry points: RenderChat.tsx Chat interface · App.tsx App routes · Home.tsx Role selection · Dataset.tsx Dataset management
Components 9
App navigation
- App routes
src/App.tsx - Role selection
src/components/Home.tsx
Question and report flow
- Chat interface
src/components/RenderChat.tsx - Report adapter
src/adapter.tsx
Response presentation
- SDMX results table
src/components/MuiTable.tsx - Token usage display
src/components/TokenUsage.tsx
Dataset administration
- Dataset management
src/components/Dataset.tsx
Other components
- User
- ADE backend API
Connections 11
- User → App routes: opens app
README.md - App routes → Role selection: routes to
src/App.tsx - App routes → Chat interface: routes to
src/App.tsx - App routes → Dataset management: routes to
src/App.tsx - Role selection → Chat interface: navigates to
src/components/Home.tsx - Role selection → Dataset management: navigates to
src/components/Home.tsx - Chat interface → Report adapter: submits messages
src/components/RenderChat.tsx - Report adapter → ADE backend API: requests reports
src/adapter.tsx - Chat interface → SDMX results table: renders SDMX data
src/components/RenderChat.tsx - Chat interface → Token usage display: renders token data
src/components/RenderChat.tsx - Dataset management → ADE backend API: manages datasets
src/components/Dataset.tsx