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

🖼 522 adding multiple design and UX fixes #545

Merged
merged 1 commit into from
May 25, 2022

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented May 24, 2022

This PR adds some missing UX pieces to the assertion form and the home page.

Changes

  • Updates the duration and name of a span to come from the attributes object.

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@xoscar xoscar added this to the MVProduct milestone May 24, 2022
@xoscar xoscar self-assigned this May 24, 2022
@xoscar xoscar linked an issue May 24, 2022 that may be closed by this pull request
@@ -28,7 +28,7 @@ export const PseudoSelector = styled.div`
gap: 4px;
`;

export const Check = styled(Space)`
export const Check = styled.div`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was adding some unnecessary styling

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

<S.DeleteCheckIcon
onClick={() => {
CreateAssertionModalAnalyticsService.onRemoveCheck();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There will be scenarios where we will be diplaying both CTAs

@@ -46,8 +45,8 @@ const Span = ({id = '', name = '', attributes = {}, startTime = '', endTime = ''
return {...map, [spanAttribute.name]: SpanAttribute(rawSpanAttribute)};
}, {});

const duration = startTime && endTime ? differenceInSeconds(parseISO(startTime), parseISO(endTime)) + 1 : 0;

const duration = Number(attributes['tracetest.span.duration']) || 0;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Name and duration are now coming from the attributes object

@xoscar xoscar marked this pull request as ready for review May 24, 2022 20:41
Copy link
Contributor

@jorgeepc jorgeepc left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@cescoferraro cescoferraro left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -28,7 +28,7 @@ export const PseudoSelector = styled.div`
gap: 4px;
`;

export const Check = styled(Space)`
export const Check = styled.div`
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

@xoscar xoscar merged commit 47718e9 into main May 25, 2022
@xoscar xoscar deleted the 522-fix-assertion-creation branch May 25, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix assertion creation
3 participants