Skip to content
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

Merged
merged 1 commit into from
Oct 18, 2021
Merged

Add URL display to weblink URLs #4046

merged 1 commit into from
Oct 18, 2021

Conversation

Nokel81
Copy link
Collaborator

@Nokel81 Nokel81 commented Oct 14, 2021

Signed-off-by: Sebastian Malton sebastian@malton.name

fixes #3840

Screen Shot 2021-10-14 at 11 57 29 AM

Signed-off-by: Sebastian Malton <sebastian@malton.name>
@Nokel81 Nokel81 added the enhancement New feature or request label Oct 14, 2021
@Nokel81 Nokel81 requested a review from a team as a code owner October 14, 2021 15:58
@Nokel81 Nokel81 requested review from nevalla, jakolehm and panuhorsmalahti and removed request for a team October 14, 2021 15:59
Comment on lines +49 to +62
{
apiVersions: [WebLink.apiVersion],
kind: WebLink.kind,
components: {
Details: ({ entity }: CatalogEntityDetailsProps<WebLink>) => (
<>
<DrawerTitle title="More Information" />
<DrawerItem name="URL">
{entity.spec.url}
</DrawerItem>
</>
),
},
},
Copy link
Contributor

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.

Copy link
Collaborator Author

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" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just More?

Copy link
Collaborator Author

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.

@Nokel81 Nokel81 merged commit f12b065 into master Oct 18, 2021
@Nokel81 Nokel81 deleted the issue-3840 branch October 18, 2021 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User-created WebLink details should display url in properties
2 participants