(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Karma

[!WARNING] This component might still be in development. Please use with caution.

Overview

Example Karma

Specs

Tokens

Token Description
displayName Display name of the component in the structure panel
getEntityCollectionDataSourceId Data source ID for retrieving karma data
getEntityCollectionHttpRequestParametersMap HTTP parameters for fetching karma data
statusField Field in the response containing the karma value
poorKarmaThreshold Threshold value for Poor karma level
fairKarmaThreshold Threshold value for Fair karma level
goodKarmaThreshold Threshold value for Good karma level
excellentKarmaThreshold Threshold value for Excellent karma level
events Configurable events for the component
ON_INIT (Events) Event triggered when the component initializes
ON_DESTROY (Events) Event triggered when the component is removed
visibilityPolicySetId Defines component visibility based on policy sets
displayConditions Conditions for showing or hiding the component
id Unique identifier for programmatic access
dataTestId Testing hook ID for automated testing
enableAsHotspot Enables the component as a guided tour hotspot
guidedTourHotSpotTitle Title text for guided tour hotspot
guidedTourHotSpotDescription Description text for guided tour hotspot

Structure

(Configured in General Properties)

(Configured in Visibility Properties)

(Configured in Datasource)

Thresholds

(Configured in Datasource)

Karme threshhold configuration

Actions & Variants

(Configured in Events)

Authorization

(Configured in Authorization)

Tests

(Configured in Testing Hooks)

Links

Guidelines

Sizing & Layout

States & Feedback

Data-Driven / Conditional Behavior

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Define the data field explicitly so the gauge reads the intended value. Assume a default path in the payload. statusField, getEntityCollectionDataSourceId
Keep thresholds strictly increasing for unambiguous levels. Overlap or reorder thresholds (e.g., Fair ≥ Good). poorKarmaThreshold, fairKarmaThreshold, goodKarmaThreshold, excellentKarmaThreshold
Cover the full expected data range with four bands. Leave gaps so some values fall into no level. poorKarmaThresholdexcellentKarmaThreshold
Filter the fetch to the current context (entity/timeframe). Pull broad data and hope the UI “picks” the right value. getEntityCollectionHttpRequestParametersMap, getEntityCollectionDataSourceId
Hide the gauge when there’s no valid target. Show a gauge with stale/empty data. displayConditions
Restrict sensitive metrics to authorized viewers. Expose confidential scores to all users. visibilityPolicySetId
Provide concise, localized hotspot guidance when teaching the UI. Put critical instructions only in the hotspot. enableAsHotspot, guidedTourHotSpotTitle, guidedTourHotSpotDescription
Initialize/clean up on lifecycle events for predictable behavior. Leave listeners running after navigation/unmount. events.ON_INIT, events.ON_DESTROY

Accessibility