-
Notifications
You must be signed in to change notification settings - Fork 1
UN-627-priority-dropdown #504
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
Conversation
iacopolea
left a comment
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.
We could have had a better typing from api and avoid casting so much, but otherwise great work.
| cpPriorities.map((priority) => ({ | ||
| id: priority.id, | ||
| slug: priority.name, | ||
| text: getPriorityInfo(priority.name as Priority, t).text ?? '', |
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.
It's really a pity we couldn't get the real type from the api because of course priority.name is not a string but a union type 'highest' | 'high' | 'medium' | 'low' | 'lowest'
Created Priority dropdown component in src/common/components/BugDetail.
Features: