-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#6519] label on tiles #4542
[#6519] label on tiles #4542
Conversation
18c4a08
to
ce6c9bd
Compare
oh, wip again, fixing tests |
ce6c9bd
to
12f6a40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, looks good and works!
But I am unsure about the isTruthy and if we shouldn't find another solution.
And I think, in the story, we were meant to cut very long categories and labels after a certain amount of chars and append ...
// Before passing this data to 'ListItemBadges' component | ||
// it needs to be normalized as the data types are different | ||
// category: null || object | ||
// labels: [] || array | ||
// budget: 0 || number | ||
// pointLabel: '' || string | ||
// modFeedback: [null, null] || array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh. This makes sense, but shouldn't we change the serializer to give better values? We will have to change this for TS anyway. And in a lot of places. Maybe here is a good place to start and find out how we would like to get data from the API that can be there or not? We have all the examples you can think of in one place. :p
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fuzzylogic2000 that is true. I will look into how to send them same from the serializer
Oh, and I thought of another thing: is that the right order of the labels? Shouldn't the labels (Merkmale) be last as only these can have multiple labels and all the moderator's status thing should probably always be shown? |
…omponent to support eliding (x More) rework after review: normalize None-case for fields that are being used as badges. And some smaller fixes
12f6a40
to
b1c4a96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
No description provided.