From 98e27c8f251022320020716a9ef7a5b892ad2b61 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sat, 12 Sep 2026 13:48:09 +0200 Subject: feat(hub): the mail bounds are settings, with a panel to change them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They were constants in two modules, so an operator could not touch them without editing code and redeploying — and the hour a budget runs out is not when anyone wants to do that. `[mail]` in hub.toml carries the defaults; the live values live in `hub_settings`, read at each use. A missing row falls back to what the configuration file says, so an instance that never opens the panel behaves as its file describes. The panel sends only what changed, the hub clamps each value to a stated range and refuses a key it does not know, and the response is what gets rendered — so a clamped value is never shown as stored. `GET /v1/admin/mail` is the other half. There was no way to see any of this: a refusal was a line in the journal, so an instance that had stopped sending sign-up codes looked, from the panel, exactly like one with no sign-ups. It reports the hour's use, what is left for sign-ups, and what is left for recovery — the difference between those two being the reserved share made visible. Labels in all ten catalogues. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01T4YmK41VsEURWFdop4EEeT --- packages/meshbay-hub/src/meshbay_hub/static/locales/it.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'packages/meshbay-hub/src/meshbay_hub/static/locales/it.js') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js b/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js index 83fe150..cd64ffd 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/locales/it.js @@ -485,6 +485,19 @@ export default { 'admin.general_groups_heading': "Groups", 'admin.allow_public_groups_label': "Allow members to create public groups", 'admin.allow_public_groups_hint': "When off, new groups can only be private and invite-only. Existing public groups are left as they are — suspend them one by one from the Groups tab.", + 'admin.mail_heading': "Posta in uscita", + 'admin.mail_hint': "Cosa invia questo hub, e quanto. I due che contano sono il budget orario, che nessun numero di account può alzare, e il limite giornaliero per destinatario, che è ciò che vive davvero chi viene sommerso.", + 'admin.mail_this_hour': "Inviati in quest'ora", + 'admin.mail_remaining': "{general} rimasti per registrazioni e cambi di indirizzo, {recovery} per reimpostazioni della passphrase e inviti.", + 'admin.mail_hourly_budget': "Messaggi all'ora (intera istanza)", + 'admin.mail_hourly_reserved_for_recovery': "Di cui riservati a reimpostazioni e inviti", + 'admin.mail_destination_daily_cap': "Messaggi al giorno verso uno stesso destinatario", + 'admin.mail_destination_cooldown_seconds': "Secondi tra due messaggi allo stesso destinatario", + 'admin.mail_verification_resend_cooldown': "Secondi tra due codici di registrazione", + 'admin.mail_reset_cooldown': "Secondi tra due codici di reimpostazione", + 'admin.mail_email_change_cooldown': "Secondi prima che un account possa proporre un altro indirizzo", + 'admin.mail_save': "Salva i limiti di posta", + 'admin.mail_reset_defaults': "Ripristina i valori predefiniti", 'admin.settings_readonly': "Only an admin can change these settings.", // Admin stats -- cgit v1.2.3