Skip to content

Dashboard: greeting shows hardcoded name "Petr" instead of actual user #285

Description

@yustme

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:

  1. 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.
  2. Fetch it in the Dashboard and substitute Petr with the real display name.
  3. Fall back gracefully to a generic greeting ("Good Morning!") if the name is unavailable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions