navbar_alerts: Delay showing "Complete the organization profile" banner.

Currently, we are displaying the "Complete the organization profile"
banner immediately after the organization was created. It's important to
strongly encourage orgs to configure their profile, so we should delay
showing the banner if the profile has not been configured after 15 days.
Thus also allows the users to check out Zulip and see how it works before
configuring the organization settings.

Fixes: #24122.
This commit is contained in:
Joelute
2023-08-11 13:46:58 -04:00
committed by Tim Abbott
parent 255e382750
commit eb78264162
8 changed files with 48 additions and 1 deletions

View File

@@ -359,6 +359,7 @@ def fetch_initial_state_data(
state["demo_organization_scheduled_deletion_date"] = datetime_to_timestamp(
realm.demo_organization_scheduled_deletion_date
)
state["realm_date_created"] = datetime_to_timestamp(realm.date_created)
# Presence system parameters for client behavior.
state["server_presence_ping_interval_seconds"] = settings.PRESENCE_PING_INTERVAL_SECS