Collapsed sidebar shows only the status dot; rename Businesses → Business Groups

Collapsed sidebar now hides the network text (running/servers/operators) and
keeps just the centered status dot. Rename the user-facing 'Businesses' label to
'Business Groups' (sidebar, homepage tile, list title/heading/empty state, create
button, profile back-link); route/tab id stay 'businesses'.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jon
2026-06-05 20:22:41 +01:00
parent 62489b84b7
commit 7f12820eb3
4 changed files with 19 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}{{ tab | title }} — SimpleX Manager{% endblock %}
{% block title %}{{ 'Business Groups' if tab == 'businesses' else tab | title }} — SimpleX Manager{% endblock %}
{% block head %}
<style>
@@ -23,9 +23,10 @@
{% endblock %}
{% block content %}
{% set new_label = 'User' if tab == 'users' else ('Business' if tab == 'businesses' else 'Bot') %}
{% set new_label = 'User' if tab == 'users' else ('Business Group' if tab == 'businesses' else 'Bot') %}
{% set page_title = 'Business Groups' if tab == 'businesses' else tab | title %}
<div class="flex-between" style="margin-bottom: 24px;">
<h1 style="margin:0;">{{ tab | title }}</h1>
<h1 style="margin:0;">{{ page_title }}</h1>
<button class="btn btn-primary" onclick="openCreate()">
+ New {{ new_label }}
</button>
@@ -33,9 +34,9 @@
{% if tab == 'businesses' %}
<div class="card bot-types-card" style="margin-bottom:24px;">
<h2 style="font-size:15px;margin-bottom:8px;">Business accounts</h2>
<h2 style="font-size:15px;margin-bottom:8px;">Business Groups</h2>
<p class="muted" style="font-size:13px;">
A business account uses a <strong>business address</strong>: each customer who connects gets
A business group uses a <strong>business address</strong>: each customer who connects gets
their own group chat (so teammates can be added). You handle those conversations here, the same
way you chat in a group. Set an optional welcome message to auto-greet new customers.
</p>
@@ -101,8 +102,8 @@
<strong>No users yet</strong>
<p>Create a SimpleX user account to manage contacts and channels.</p>
{% elif tab == 'businesses' %}
<strong>No business accounts yet</strong>
<p>Create a business account; each customer who connects gets their own group chat.</p>
<strong>No business groups yet</strong>
<p>Create a business group; each customer who connects gets their own group chat.</p>
{% else %}
<strong>No bots yet</strong>
<p>Bots can echo messages, broadcast to subscribers, or run automated tasks.</p>