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

feat(React): Deprecation status in dataset header #2097

Merged

Conversation

gabe-lyons
Copy link
Contributor

This module is read-only currently. When hovered it displays additional details.

Closeup of the module, when hovered over:

image

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

@gabe-lyons gabe-lyons force-pushed the ReactDeprecationStatusOnHeader branch 2 times, most recently from 8a784c7 to fe18154 Compare February 10, 2021 02:19
@gabe-lyons gabe-lyons force-pushed the ReactDeprecationStatusOnHeader branch from fe18154 to 96a8f23 Compare February 10, 2021 02:20
@@ -5,7 +5,7 @@ import { RoutedTabs } from './RoutedTabs';
export interface EntityProfileProps {
title: string;
tags?: Array<string>;
body: React.ReactNode;
header: React.ReactNode;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this rename!

Copy link
Collaborator

@jjoyce0510 jjoyce0510 left a comment

Choose a reason for hiding this comment

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

Overall this looks great to me.

placement="bottomLeft"
content={
<>
<Typography.Paragraph>By: {deprecation?.actor}</Typography.Paragraph>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Maybe not need for the ":" here. It would also be useful to add a link

<Typography.Paragraph>By: {deprecation?.actor}</Typography.Paragraph>
{deprecation.decommissionTime && (
<Typography.Paragraph>
On: {new Date(deprecation?.decommissionTime).toUTCString()}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here with the ":"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great points- let's do those in followups.

Copy link
Contributor

@shirshanka shirshanka left a comment

Choose a reason for hiding this comment

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

LGTM!

@shirshanka shirshanka merged commit 7f2ca12 into datahub-project:master Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants