-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add URL display to weblink URLs #4046
Conversation
Signed-off-by: Sebastian Malton <sebastian@malton.name>
{ | ||
apiVersions: [WebLink.apiVersion], | ||
kind: WebLink.kind, | ||
components: { | ||
Details: ({ entity }: CatalogEntityDetailsProps<WebLink>) => ( | ||
<> | ||
<DrawerTitle title="More Information" /> | ||
<DrawerItem name="URL"> | ||
{entity.spec.url} | ||
</DrawerItem> | ||
</> | ||
), | ||
}, | ||
}, |
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.
Ideally, this file shouldn't contain additional information for different kind of entities. Such details must be added through the specific entity files.
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.
I don't understand, how is this different than, say, the file src/renderer/initializers/kube-object-details-registry.tsx
?
components: { | ||
Details: ({ entity }: CatalogEntityDetailsProps<WebLink>) => ( | ||
<> | ||
<DrawerTitle title="More Information" /> |
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 just More
?
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.
I don't like one word titles like that, though I also don't like the title I have now...
I would have wanted it to be in the same format as the lines above but couldn't get it to be. Probably a place for improvement in the future.
Signed-off-by: Sebastian Malton sebastian@malton.name
fixes #3840