fix(assistant): readable cards for any tool, and the CI round

- A card for a tool without one of its own names what it works on: the place
  of an assignment, the day, the note, the booking; its arguments sit under
  the labels the other cards use, a new order reads as the names in order.
  28 frequent tools carry their own action name in every language.
- The server's own steps without a card still refuse, as before.
- Tests: the rate limit is asked one request after another, the mention list
  closes on the caret move a browser reports, the place factory hands its
  category over as a plain id, eleven files formatted.
This commit is contained in:
Maurice
2026-10-21 22:28:34 +02:00
parent 4406d5085f
commit c37d3f773e
47 changed files with 1019 additions and 76 deletions
@@ -107,7 +107,9 @@ function ProviderChips({
const { t } = useTranslation();
const tile = (kind: AiApiKeyKind) =>
`flex min-w-0 items-center gap-2 rounded-lg border px-2 py-1.5 text-start transition-colors hover:bg-surface-hover ${
picked === kind ? 'border-accent bg-surface-card ring-1 ring-accent' : 'border-edge-faint bg-surface-card hover:border-edge'
picked === kind
? 'border-accent bg-surface-card ring-1 ring-accent'
: 'border-edge-faint bg-surface-card hover:border-edge'
}`;
return (
<div className="flex flex-col gap-1.5">
@@ -97,7 +97,7 @@ describe('useKeyConnect', () => {
});
expect(taken).toBe(true);
await waitFor(() =>
expect(repo.connectKey).toHaveBeenCalledWith({ kind: 'openrouter', apiKey: 'unknown-format-key' }),
expect(repo.connectKey).toHaveBeenCalledWith({ kind: 'openrouter', apiKey: 'unknown-format-key' })
);
});