# `PhoenixKitAgent.Web.Dock.Texts`
[🔗](https://github.com/BeamLabEU/phoenix_kit_agent/blob/v0.1.0/lib/phoenix_kit_agent/web/dock/texts.ex#L1)

What the chat panel (`PhoenixKitAgent.Web.Dock`) tells a person instead of a
code: the refusals of `PhoenixKitAgent.Conversations`,
`PhoenixKitAgent.Turns` and `PhoenixKitAgent.Attachments`, the codes of a
failed attachment (`PhoenixKitAgent.Attachments.Processor`), the notices of
a turn (stored in English, shown by their code), the states and refusals of
a confirmation card (`PhoenixKitAgent.Confirmations`) and the upload errors
of LiveView. A code this module does not know gets a general text, never
the code itself.

# `attachment_error`

```elixir
@spec attachment_error(String.t() | nil) :: String.t()
```

The text for the `error` code of a failed attachment.

# `card_outcome`

```elixir
@spec card_outcome(String.t()) :: String.t()
```

The line of the notice that settles a confirmation card, by its outcome.

# `card_refusal`

```elixir
@spec card_refusal(term()) :: String.t()
```

The text for a click on a confirmation card that did nothing (the card keeps
waiting): the refusals of `PhoenixKitAgent.Confirmations`, `{:refused,
code}` with the executor's code among them.

# `card_title`

```elixir
@spec card_title(String.t()) :: String.t()
```

The heading of a confirmation card in its state.

# `notice`

```elixir
@spec notice(String.t() | nil) :: String.t() | nil
```

The text of a notice in the feed by its `error` code, in the panel's
language, or `nil` for a code whose stored text says more than the code (a
model error, which also tells whether the files were taken off the
message): that one is shown as it was written.

# `notice`

```elixir
@spec notice(String.t() | nil, String.t() | nil) :: String.t() | nil
```

The feed's notice text, including the two fixed model-error texts whose
shared error code does not say whether the pictures were taken off the
message. Older stored notices are translated too; other text stays as stored.

# `refusal`

```elixir
@spec refusal(term()) :: String.t()
```

The text for a refusal of a call the panel made.

# `upload_error`

```elixir
@spec upload_error(atom()) :: String.t()
```

The text for an error of a LiveView upload entry.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
