pixel icon indicating copy to clipboard operation
pixel copied to clipboard

Tag Categories in UI Only

Open Reisen opened this issue 5 years ago • 0 comments

There is a PR (PR #12) related to adding tag categories in the back-end, but for now it would suffice to simply split on the first : in a tag name, and use the first part as the catgory/kind. In order to do this, modify the Tag component to do the splitting, and use a lookup table for colors perhaps within this Tag file:

const colors = {
    'artist': '#382932',
    'general': '#FF0000'
};

This should seamlessly be replaced later on once the backend supports forwarding a tag kind, at which point the table can still be used to lookup colors using tag.kind.

Reisen avatar Apr 13 '19 22:04 Reisen