mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
feat(confirmation-list-item-action-card): improve action card visibility logic and add ordered state Enhance the action card display logic to show only when both feature flag and command/completion conditions are met. Add support for "Ordered" state to distinguish pending items from completed ones. Changes: - Add hasLoyaltyCollectCommand helper to check for LOYALTY_COLLECT_COMMAND - Update displayActionCard logic to require both Rücklage feature AND (loyalty collect command OR completion state) - Add ProcessingStatusState.Ordered to distinguish ordered vs completed items - Update isComplete to exclude ordered items from completion state - Move role-based visibility check to outer container level - Remove unused CSS class for completed state - Add comprehensive unit tests for new helpers The action card now correctly appears only for items that need user action, hiding for CallCenter role and for items without the required commands. Ref: #5459