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: scheduled change request badges #5300

Merged
merged 27 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a26b19f
feat: ui tests
andreas-unleash Nov 7, 2023
e297bb2
feat: ui tests
andreas-unleash Nov 7, 2023
9cf7aa7
feat: ui tests
andreas-unleash Nov 7, 2023
a3e3500
feat: ui tests
andreas-unleash Nov 7, 2023
5fb6ef6
feat: ui tests
andreas-unleash Nov 7, 2023
ec14ab0
feat: ui tests
andreas-unleash Nov 7, 2023
737bbce
feat: ui tests
andreas-unleash Nov 8, 2023
6e61f6f
Merge branch 'main' into feat/scheduled_cr_ui_tests
andreas-unleash Nov 8, 2023
0ed0c81
Update frontend/src/hooks/useChangeRequestsEnabled.ts
andreas-unleash Nov 8, 2023
8ca7968
feat: scheduled changes badge on StrategyDraggableItem
andreas-unleash Nov 8, 2023
fa024ed
Merge remote-tracking branch 'origin/feat/scheduled_cr_ui_tests' into…
andreas-unleash Nov 8, 2023
46657d1
Merge branch 'main' into feat/scheduled_cr_ui_tests
andreas-unleash Nov 8, 2023
fdb8db4
feat: scheduled changes badge on StrategyDraggableItem
andreas-unleash Nov 8, 2023
33d3859
Merge branch 'main' into feat/scheduled_cr_badge
andreas-unleash Nov 8, 2023
db0db61
feat:more tests
andreas-unleash Nov 8, 2023
6cb6ec5
feat:more tests
andreas-unleash Nov 8, 2023
2ef76f0
refactor
andreas-unleash Nov 8, 2023
01f3122
refactor
andreas-unleash Nov 8, 2023
047b696
Update frontend/src/component/feature/FeatureView/FeatureOverview/Fea…
andreas-unleash Nov 8, 2023
09f3e0a
Update frontend/src/component/feature/FeatureView/FeatureOverview/Fea…
andreas-unleash Nov 8, 2023
77ac58b
fix PR comments
andreas-unleash Nov 8, 2023
2ed9e28
Merge remote-tracking branch 'origin/feat/scheduled_cr_badge' into fe…
andreas-unleash Nov 8, 2023
ed1d2f6
fix: test improvements and refactoring
andreas-unleash Nov 9, 2023
525a4a6
fix: pr comments
andreas-unleash Nov 9, 2023
9ba5def
Update frontend/src/component/changeRequest/ModifiedInChangeRequestSt…
andreas-unleash Nov 9, 2023
a7aca22
Merge branch 'main' into feat/scheduled_cr_badge
andreas-unleash Nov 9, 2023
83f8bb0
Merge remote-tracking branch 'origin/feat/scheduled_cr_badge' into fe…
andreas-unleash Nov 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { Box, useMediaQuery, useTheme } from '@mui/material';
import { StyledLink } from 'component/feature/FeatureView/FeatureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelDetails/StyledRow';
import { TooltipLink } from 'component/common/TooltipLink/TooltipLink';
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
import { Badge } from 'component/common/Badge/Badge';

export interface IChangesScheduledBadgeProps {
scheduledChangeRequestIds: number[];
}
export const ChangesScheduledBadge = ({
scheduledChangeRequestIds,
}: IChangesScheduledBadgeProps) => {
const theme = useTheme();
const isSmallScreen = useMediaQuery(theme.breakpoints.down('sm'));
const project = useRequiredPathParam('projectId');
if (isSmallScreen) {
return null;
}

return (
<Box sx={{ mr: 1.5 }}>
<TooltipLink
tooltip={
<>
{scheduledChangeRequestIds?.map((id, index) => (
<StyledLink
key={`${project}-${index}`}
to={`/projects/${project}/change-requests/${id}`}
>
Change request #{id}
</StyledLink>
))}
</>
}
>
<Badge color='warning'>Changes Scheduled</Badge>
</TooltipLink>
</Box>
);
};
Loading
Loading