From fd9d0f6d593108a82e77c143a67cc489ca680a84 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Wed, 26 Nov 2025 08:37:28 -0800 Subject: [PATCH] update org dashboard --- app/main/views/organizations.py | 4 ++-- app/templates/components/org_nav.html | 2 +- .../views/organizations/organization/index.html | 16 ++++++++++------ .../organizations/organization/users/index.html | 6 +++--- .../organization/users/invite-org-user.html | 8 ++++---- 5 files changed, 20 insertions(+), 16 deletions(-) diff --git a/app/main/views/organizations.py b/app/main/views/organizations.py index 6e3496a7f..7bedc2ff5 100644 --- a/app/main/views/organizations.py +++ b/app/main/views/organizations.py @@ -245,10 +245,10 @@ def get_services_dashboard_data(organization, year): if sms_sent > 0 or sms_remainder > 0: if sms_cost > 0: usage_parts.append( - f"{sms_sent:,} sms ({sms_remainder:,} remaining, ${sms_cost:,.2f})" + f"{sms_sent:,} sms ({sms_remainder:,} message parts remaining, ${sms_cost:,.2f})" ) else: - usage_parts.append(f"{sms_sent:,} sms ({sms_remainder:,} remaining)") + usage_parts.append(f"{sms_sent:,} sms ({sms_remainder:,} message parts remaining)") service["usage"] = ", ".join(usage_parts) if usage_parts else "No usage" diff --git a/app/templates/components/org_nav.html b/app/templates/components/org_nav.html index d93eb8cf7..0e5960b17 100644 --- a/app/templates/components/org_nav.html +++ b/app/templates/components/org_nav.html @@ -4,7 +4,7 @@
  • Dashboard
  • {% endif %}
  • Usage
  • -
  • Team members
  • +
  • Org admins
  • {% if current_user.platform_admin %}
  • Settings
  • Trial mode services
  • diff --git a/app/templates/views/organizations/organization/index.html b/app/templates/views/organizations/organization/index.html index 879e9c994..c8c9889e5 100644 --- a/app/templates/views/organizations/organization/index.html +++ b/app/templates/views/organizations/organization/index.html @@ -11,12 +11,12 @@
    -

    Overall {{ selected_year }} Total Message Allowance

    +

    Overall Usage

    @@ -142,6 +142,9 @@ {% endif %} +
    + Invite team member +
    @@ -275,7 +279,7 @@ {{ service.name }} {% if not service.active %} - Suspended + Archived {% elif service.restricted %} Trial {% else %} diff --git a/app/templates/views/organizations/organization/users/index.html b/app/templates/views/organizations/organization/users/index.html index c052a6806..8f53039c1 100644 --- a/app/templates/views/organizations/organization/users/index.html +++ b/app/templates/views/organizations/organization/users/index.html @@ -5,7 +5,7 @@ {% from "components/components/button/macro.njk" import usaButton %} {% block org_page_title %} - Team members + Organization administrators {% endblock %} {% block maincolumn_content %} @@ -20,7 +20,7 @@ {% endif %}

    - Team members + Organization administrators

    {% if show_search_box %} @@ -66,7 +66,7 @@
    {{ usaButton({ "element": "a", - "text": "Invite team member", + "text": "Invite an organization administrator", "href": url_for('.invite_org_user', org_id=current_org.id), "classes": "usa-button" }) }} diff --git a/app/templates/views/organizations/organization/users/invite-org-user.html b/app/templates/views/organizations/organization/users/invite-org-user.html index f8a61bc79..6f3508a7f 100644 --- a/app/templates/views/organizations/organization/users/invite-org-user.html +++ b/app/templates/views/organizations/organization/users/invite-org-user.html @@ -15,7 +15,7 @@ {% block maincolumn_content %} - {{ page_header("Invite a team member") }} + {{ page_header("Invite an organization administrator") }} {% call form_wrapper() %} {{ form.email_address( param_extensions={ @@ -26,11 +26,11 @@

    - {{ current_org.name }} team members can: + {{ current_org.name }} organization administrators can:

      -
    • see usage and team members for each service
    • -
    • invite other team members
    • +
    • access and manage all services
    • +
    • invite or remove other organization administrators