feat: add a network from the chat #2

Merged
thelion merged 5 commits from thelion/add-network into main 2026-11-11 12:55:17 +00:00 AGit
Owner

Signed in with evrd, the chat can add a network to the user's evrd account and go straight there: "+ add a network" in the picker or /network add, and an account with no network is asked to add one instead of being sent away.

  • pick a network evrd knows (its directory) or another server by hand (server, port, TLS)
  • nick and password (SASL, or NickServ when the server has no SASL); More options: sign-in method, SASL account, server password, ident, real name, accept any certificate
  • evrd's reason shows in the dialog when it refuses (a name already taken, the network limit)
  • a picked network's suggested channels are joined

Needs evrd 0.55 or newer (4evrd/evrd#160 lets a web chat's token add and connect a network). Tests: 3 new (78 pass); pnpm check ok.

🤖 Generated with Claude Code

Signed in with evrd, the chat can add a network to the user's evrd account and go straight there: "+ add a network" in the picker or `/network add`, and an account with no network is asked to add one instead of being sent away. - pick a network evrd knows (its directory) or another server by hand (server, port, TLS) - nick and password (SASL, or NickServ when the server has no SASL); **More options**: sign-in method, SASL account, server password, ident, real name, accept any certificate - evrd's reason shows in the dialog when it refuses (a name already taken, the network limit) - a picked network's suggested channels are joined Needs evrd 0.55 or newer (4evrd/evrd#160 lets a web chat's token add and connect a network). Tests: 3 new (78 pass); `pnpm check` ok. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed in, the network picker has "+ add a network" (and /network add):
pick one evrd knows, from its directory, or any server, with a nick and
an optional password. It's added to the user's evrd account, connected,
and the chat moves there. An account with no network yet gets the same
dialog instead of being sent to evrd and signed out. evrd's reason shows
when it won't add one (a name taken, the account's limit…).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
en, de, es, fr, id, it, ja, ms, pt-BR, ro, tr: every label, dialog and
/help line, and the lines the chat writes itself (connection, errors,
the add-network dialog). IRC syntax, nicks and what the server sends
stay as they are.

The language is the lang prop, else the visitor's pick in settings
(kept with the other settings), else navigator.languages, else English.
It's set as lang on the chat's root. Signed in, API calls send
X-Evrd-Language so evrd's refusals come back in it too.

i18n.js is dependency-free: a catalog per language (English has every
key, the others fall back to it), {placeholders} and Intl plurals.
Tests check every catalog against English and that switching language
changes a system line; English stays the default under node.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ircforever/chat!2
No description provided.