-
-
Notifications
You must be signed in to change notification settings - Fork 826
Feat/tag type frontend display #9630
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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
| value, | ||
| type, | ||
| }).then(async () => { | ||
| await refetchTags(); |
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.
Uneccesary await, not async function.
|
|
||
| // For non-color tags, use the StyledTag approach | ||
| const isOverflowing = tagFullText.length > 30; | ||
| const displayText = isOverflowing |
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.
maybe a test for the ... logic?
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.
My reasoning here is that it this was the way it worked before, this is just moved to another place, and will be removed when the feature flag is removed.
| sx={{ cursor: 'pointer' }} | ||
| onClick={() => onClick(tag)} | ||
| key={tag} | ||
| onClick={() => onClick(`${tag.type}:${tag.value}`)} |
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 keep constructing this type:value in so many places. Maybe we need a first class function for that?
Standardize Tag Component and Add Color Support
Changes
tagTypeColorfeature flag to control tag color displayTagcomponent for consistent styling and behaviorITaginterface to OpenAPI-generatedTagSchemaNew tags:
Old: