pipeworks_mud_mapper.services.ollama_ui

UI helpers for Ollama status messaging.

This module centralizes small UI fragments so callbacks can avoid duplicating HTML span construction. Keeping these helpers in one place ensures consistent styling across all Ollama interactions.

Functions

status_ok(message)

Return a green success status with a check icon.

status_ok_filled(message)

Return a filled green success status with a check icon.

status_info(message, *[, muted])

Return a blue info status with an info icon.

status_warning(message)

Return a yellow warning status with an exclamation icon.

status_error(message)

Return a red error status with an X icon.

status_error_filled(message)

Return a red error status with a filled X icon.

status_pending(message)

Return a pending status with a spinning hourglass icon.

Module Contents

pipeworks_mud_mapper.services.ollama_ui.status_ok(message)[source]

Return a green success status with a check icon.

Parameters:

message (str) – The message to display to the user.

Returns:

Styled status node indicating success.

Return type:

html.Span

pipeworks_mud_mapper.services.ollama_ui.status_ok_filled(message)[source]

Return a filled green success status with a check icon.

This is used when we want a slightly stronger success visual.

pipeworks_mud_mapper.services.ollama_ui.status_info(message, *, muted=False)[source]

Return a blue info status with an info icon.

Parameters:
  • message (str) – The message to display to the user.

  • muted (bool) – When True, uses muted text styling for subtle hints.

pipeworks_mud_mapper.services.ollama_ui.status_warning(message)[source]

Return a yellow warning status with an exclamation icon.

pipeworks_mud_mapper.services.ollama_ui.status_error(message)[source]

Return a red error status with an X icon.

pipeworks_mud_mapper.services.ollama_ui.status_error_filled(message)[source]

Return a red error status with a filled X icon.

pipeworks_mud_mapper.services.ollama_ui.status_pending(message)[source]

Return a pending status with a spinning hourglass icon.