Module: Protege::ApplicationHelper
- Includes:
- Components::ComponentsHelper, EmailDomainsHelper, MessagesHelper, PersonasHelper, ResponsibilitiesHelper, ThreadsHelper, TraceHelper
- Defined in:
- app/helpers/protege/application_helper.rb
Overview
The single aggregator of every engine helper module. The engine registers only this module on the
view context (+helper Protege::ApplicationHelper+ in ApplicationController), so including every
helper here is what makes their methods available in all render contexts — request views, partials,
and Turbo broadcast renders alike. Two groups: the reusable, model-agnostic UI toolkit under
Protege::Components:: — pulled in as a whole via its own aggregator, Components::ComponentsHelper,
which includes the rest of the group (typography, tables, badges, buttons, cards, dialogs, menus,
forms, layout, sidebar, pagination, the introspection panel) — and the model-named helpers at the
top level (threads, personas, email
domains, messages, responsibilities, traces). Any cross-helper call resolves through the view, which
has them all via this module.
Constant Summary
Constants included from Components::IntrospectionHelper
Components::IntrospectionHelper::INTROSPECTION_PANEL_ID
Constants included from Components::FormsHelper
Components::FormsHelper::FORM_CHECKBOX, Components::FormsHelper::FORM_INPUT, Components::FormsHelper::FORM_LABEL
Instance Method Summary collapse
-
#js_files ⇒ Array<string>
List of JS files to be added to the console layout.
Methods included from TraceHelper
#recent_traces, #tracing_enabled?
Methods included from ThreadsHelper
#available_persona_options, #available_personas, #inbox_threads, #thread_date, #thread_header, #thread_preview, #thread_title
Methods included from ResponsibilitiesHelper
#all_responsibilities, #responsibility_runs_table, #responsibility_status, #run_status_badge
Methods included from PersonasHelper
#all_personas, #available_email_domains, #available_persona_types, #persona_label, #persona_status, #persona_tool_options, #resolver_pairs
Methods included from MessagesHelper
#message_attachments, #message_headers, #message_recipients, #message_sender, #message_subject, #message_timestamp, #search_result_date, #search_result_title
Methods included from EmailDomainsHelper
#all_email_domains, #mail_self_hosted?
Methods included from Components::TypographyHelper
#body_text, #code_block, #heading_1, #heading_2, #heading_3, #hint
Methods included from Components::TablesHelper
Methods included from Components::SidebarHelper
#sidebar_bar, #sidebar_body, #sidebar_container, #sidebar_content, #sidebar_header, #sidebar_item, #sidebar_search_link, #sidebar_stream
Methods included from Components::PaginationHelper
#paginate, #sidebar_pagination
Methods included from Components::MenusHelper
#dropdown_item, #dropdown_menu, #nav_item
Methods included from Components::LayoutHelper
Methods included from Components::IntrospectionHelper
#introspection_feed, #introspection_panel, #introspection_reasoning, #introspection_run_marker, #introspection_toggle, #introspection_tool_card
Methods included from Components::HotkeysHelper
#hotkey_cap, #hotkey_help_button, #hotkey_row, #hotkey_section
Methods included from Components::FormsHelper
#form_checkbox, #form_checklist, #form_email_address, #form_errors, #form_field, #form_input_style, #form_select, #form_text_area
Methods included from Components::DialogsHelper
Methods included from Components::CardsHelper
Methods included from Components::ButtonsHelper
#action_button, #button, #button_class, #button_variant_style, #destructive_link, #icon_button, #inline_button, #ui_link
Methods included from Components::BadgesHelper
#badge, #badge_colors, #dot_colors, #status_dot
Instance Method Details
#js_files ⇒ Array<string>
List of JS files to be added to the console layout
26 27 28 |
# File 'app/helpers/protege/application_helper.rb', line 26 def js_files %w[protege/theme protege/resize protege/forms protege/copy protege/keys protege/attachment_picker] end |