# 0022 Display names for a live report's parameters come from the source

Source: [\#1019](<https://github.com/eizedev/pivotkit/issues/1019>)

## Context and Problem Statement

A live report ([0020](<https://pivotkit.eize.dev/decisions/0020-browser-tokens-for-live-rows/index.md>), [0021](<https://pivotkit.eize.dev/decisions/0021-the-browser-path/index.md>)) names the parameters it read in Copy link's toast and in the note under Share. It used the names the source takes, such as `customerId`. People who share a report do not know these names. Where should a readable name come from, and how does it reach the page?

## Considered Options

- A title per parameter in the source's declaration, sent with the rows answer.
- Names the host page passes to the component.
- A separate route for the names.

## Decision Outcome

Chosen option: a title in the source's declaration, sent with the rows answer, because the operator already describes each parameter there, and every page that shows the source gets the same names without a request of its own. The decision on \#1019: the names come from the server's configuration, named by the operator, with the technical name as fallback.

- Names from the host page: rejected, because the viewer page has no host, and a host would repeat what the operator already knows. A host page may not set them for now.
- A separate route: rejected, because it adds a request and a right to check for a few words.
- `rest.browser` as the place: rejected, because a parameter belongs to one source, and its description is there already.
- `sources.<id>.params.<name>.title` is one line of at most 80 characters. The configuration check refuses an empty title, a line break and control characters.
- The rows answer has `paramTitles` with the titles of the parameters the caller sent. A parameter bound to a claim is never named, so a page learns nothing about the sign-in from it.
- `list_sources` lists the title beside the description.
- The page shows a title as plain text and falls back to the parameter's name. The link keeps the technical name: it is the query the server reads.
- One title per parameter, in the operator's words; no title per language. Most operators serve one language; titles per language can follow when a server needs them.

Group names are not part of this record. A live report shows no group, and the link carries only a digest of it. Only `create_link` takes a group, as the groups claim carries it, such as an object ID of Microsoft Entra ID. Names for groups there change how a link is made (a name to resolve within the maker's own groups), so they need a decision of their own, in a follow-up to \#1019.

### Consequences

- Good: the toast and the share note read like the operator's own words, on every page that shows the source.
- Good: no new route and no request more; a refused page gets no titles.
- Bad: a report for people of several languages shows the operator's one title to everyone.
- Bad: an operator who writes an internal name into a title shows it to every reader of the rows.
