Service Layer medium complexity mobile
0
Dependencies
2
Dependents
0
Entities
0
Integrations

Description

Manages the registry of field-level sensitivity annotations and per-screen warning behaviour configuration. Annotations are stored as metadata flags on data model fields and fetched from the backend so that administrators can update which fields are sensitive without a client release. Coordinates with the encrypted assignments feature to ensure assignment content fields are always annotated.

Feature: Sensitive Field Readout Warning

sensitive-field-annotation-service

Responsibilities

  • Maintain a local cache of sensitive field annotations keyed by data model field path
  • Expose field-level sensitivity checks to SensitiveFieldWrapper at render time
  • Sync annotation configuration from backend on app startup and on cache invalidation
  • Apply admin-configured warning behaviour overrides per screen context
  • Guarantee that all assignment content fields are treated as sensitive regardless of remote config

Interfaces

isSensitive(fieldPath: String) → bool
getWarningConfig(screenContext: String) → ReadoutWarningConfig
refreshAnnotations() → Future<void>
overrideAnnotation(fieldPath: String, isSensitive: bool)

Relationships

Dependents (2)

Components that depend on this component