Skip to content

Refactor status badges components to a more generic solution. #426

Open
@Georgi2704

Description

@Georgi2704

Currently there is a lot of redundancy for the components for status badges that share similar logic.

A potential solution would involve creating a more generic badge component that can be reused for all the status badges and product blocks badges. Components that can be refactored: WfoProcessStatusBadge, WfoProductBlockBadge, WfoProductStatusBadge, WfoSubscriptionStatusBadge.

My idea is to have the switch based on colors instead of statuses, so an object with statuses mapped to colors can be passed to this new generic component.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions