PhoenixKitCRM.SidebarBootstrap (PhoenixKitCRM v0.2.0)

Copy Markdown View Source

Registers CRM role subtabs into PhoenixKit.Dashboard.Registry under the namespace :phoenix_kit_crm_roles.

Invoked twice:

Known limitation

PhoenixKit.Dashboard.Registry.load_admin_defaults/0 wipes runtime-registered namespaces, including :phoenix_kit_crm_roles. If the host app ever invokes it at runtime, CRM role subtabs will disappear until the next set_enabled/2 call or application restart. This is an accepted trade-off for avoiding a persistent watcher GenServer.

Summary

Functions

Registers CRM role tabs into the Dashboard Registry.

Functions

run()

@spec run() :: :ok

Registers CRM role tabs into the Dashboard Registry.

No-op when the CRM module is disabled. Swallows errors/exits if the Registry is not yet started (e.g. during tests or boot race).