Bug
The dashboard heading greets every user with "Good Morning, Petr" regardless of who is actually logged in.
Root cause
web/frontend/src/pages/Dashboard.tsx line 96 has the name hardcoded:
title={`${greeting()}, Petr`}
Fix
The backend already has a KeboolaUser model with a name field (src/keboola_agent_cli/models.py). The fix is to:
- Expose a
/me (or /user) endpoint in the FastAPI server that returns the current user's name from the active project's token verify response.
- Fetch it in the Dashboard and substitute
Petr with the real display name.
- Fall back gracefully to a generic greeting ("Good Morning!") if the name is unavailable.
Bug
The dashboard heading greets every user with "Good Morning, Petr" regardless of who is actually logged in.
Root cause
web/frontend/src/pages/Dashboard.tsxline 96 has the name hardcoded:Fix
The backend already has a
KeboolaUsermodel with anamefield (src/keboola_agent_cli/models.py). The fix is to:/me(or/user) endpoint in the FastAPI server that returns the current user's name from the active project's token verify response.Petrwith the real display name.