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

Fix/dora polish #4645

Merged
merged 9 commits into from
Sep 8, 2023
Merged

Fix/dora polish #4645

merged 9 commits into from
Sep 8, 2023

Conversation

FredrikOseberg
Copy link
Contributor

This PR includes:

  • Tests for retrieving lead time per feature toggle and project average
  • Feedback component

@vercel
Copy link

vercel bot commented Sep 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 8, 2023 0:10am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 8, 2023 0:10am

<Typography>Is this useful to you?</Typography>
<StyledBtnContainer>
<Button
sx={{ marginRight: '0.5rem' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

We moved away from using rems, but use theme.spacing instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch, I thought I removed all of those. Will fix.

`project:metrics:plausible`,
{ sent: false }
);
const [sentObj, setSentObj] = useState(value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this have more meaningful name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It could be sent, but then it would be sent.sent which is not ideal. I will think on it.

Copy link
Contributor

Choose a reason for hiding this comment

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

What are we sending, metrics? Maybe it can be called something like that. Sent is already in payload.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Much better. Thank you.

}
};

const recipientEmail = '[email protected]';
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this temporary?

}
};

const recipientEmail = '[email protected]';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Placeholder until we can create a UX team email address

<StyledIconWrapper>
<Send />
</StyledIconWrapper>
<StyledLink href={mailtoURL}>
Copy link
Contributor

Choose a reason for hiding this comment

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

This link does not work for me, but maybe its because I need to set default mail client. Not sure.

</StyledHeader>
<Typography>
We are considering adding project metrics to see how a project
performs. As a first step, we have added a lead time for changes
Copy link
Contributor

Choose a reason for hiding this comment

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

lead time for changes could be different style, so it is easier to read and understand, that this is the name. Bold or italics or background.

@@ -0,0 +1,160 @@
import { useState, useEffect } from 'react';
import { Box, Button, Divider, Typography, styled } from '@mui/material';
import { ChatBubble, PermMedia, Send } from '@mui/icons-material';
Copy link
Contributor

Choose a reason for hiding this comment

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

Unused import

sx={{ display: 'flex', justifyContent: 'center' }}
data-loading
>
{dora.projectAverage - original.timeToProduction} days
Copy link
Contributor

Choose a reason for hiding this comment

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

dora seems to be missing any types. It should come from hook.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Backend needs to be merged before I can generate from enterprise

@@ -8,6 +8,11 @@ export const projectDoraMetricsSchema = {
required: ['features'],
description: 'A projects dora metrics',
properties: {
projectAverage: {
type: 'number',
description:
Copy link
Contributor

Choose a reason for hiding this comment

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

What are the units? Maybe we can include that in description. minutes, hours, days?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion

Copy link
Contributor

@sjaanus sjaanus left a comment

Choose a reason for hiding this comment

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

Looks good. Some comments, but giving non blocking approval.

@FredrikOseberg
Copy link
Contributor Author

Looks good. Some comments, but giving non blocking approval.

Addressed what I could. Added some follow up items that I will tackle later.

@FredrikOseberg FredrikOseberg merged commit 26ade79 into main Sep 8, 2023
13 checks passed
@FredrikOseberg FredrikOseberg deleted the fix/dora-polish branch September 8, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants