PhoenixGenApiTui.Views.ServiceConfigTab (phoenix_gen_api_tui v0.3.3)

Copy Markdown View Source

Service Config tab view: shows service configurations from ConfigPuller.

Queries PhoenixGenApi.ConfigPuller.get_services/0 to display all configured services with their online/offline status. Supports selection to show detailed config (like functions tab).

Pure function — takes state and rect, returns [{widget, rect}].

Summary

Functions

Gets the detail overlay content for a selected service.

Handles enter key on service config tab to show detail overlay.

Renders the service config table.

Functions

detail_overlay(arg1)

@spec detail_overlay(term()) :: term()

Gets the detail overlay content for a selected service.

handle_enter(state)

Handles enter key on service config tab to show detail overlay.

render(state, rect)

Renders the service config table.

Returns a list of {widget, rect} tuples containing the service table (and optionally a scrollbar when content overflows).