Raxol.Core.UXRefinement (Raxol v2.0.1)

View Source

Refactored UX refinement module that uses GenUxServer for state management.

This module provides the same API as the original UXRefinement module but delegates all state management to a supervised GenUxServer, eliminating Process dictionary usage.

Migration Notes

This module maintains backward compatibility with the original API. The main difference is that it requires starting the UXRefinement.UxServer as part of your supervision tree:

children = [
  {Raxol.Core.UXRefinement.UxServer, name: Raxol.Core.UXRefinement.UxServer}
]

Supervisor.start_link(children, strategy: :one_for_one)

Summary

Functions

Make an announcement for screen readers.

Disable a previously enabled UX refinement feature.

Check if a UX refinement feature is enabled.

Get accessibility metadata for a component.

Get all available shortcuts for a given context.

Get a specific hint level for a component.

Get shortcuts for a component.

Get the hint for a component.

Initialize the UX refinement system.

Register accessibility metadata for a component.

Register comprehensive hints for a component with multiple detail levels.

Register a hint for a component.

Set the active context for keyboard shortcuts.

Display help for available keyboard shortcuts.

Functions

announce(message, opts \\ [], user_preferences_pid_or_name)

Make an announcement for screen readers.

disable_feature(feature)

Disable a previously enabled UX refinement feature.

enable_feature(feature, opts \\ [], user_preferences_pid_or_name \\ nil)

Enable a UX refinement feature.

Delegates to the GenUxServer for state management.

feature_enabled?(feature)

Check if a UX refinement feature is enabled.

get_accessibility_metadata(component_id)

Get accessibility metadata for a component.

get_available_shortcuts(context \\ nil)

Get all available shortcuts for a given context.

get_component_hint(component_id, level)

Get a specific hint level for a component.

get_component_shortcuts(component_id)

Get shortcuts for a component.

get_hint(component_id)

Get the hint for a component.

init()

Initialize the UX refinement system.

This now initializes the GenUxServer state instead of Process dictionary.

register_accessibility_metadata(component_id, metadata)

Register accessibility metadata for a component.

register_component_hint(component_id, hint_info)

Register comprehensive hints for a component with multiple detail levels.

register_hint(component_id, hint)

Register a hint for a component.

set_shortcuts_context(context)

Set the active context for keyboard shortcuts.

show_shortcuts_help(user_preferences_pid_or_name \\ nil)

Display help for available keyboard shortcuts.