Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2104592
feat: add class to input search bugs
May 3, 2023
b30f1ec
feat: add class to dropdown unique bugs and to each items
May 3, 2023
1cd9c89
remove isOpen
May 3, 2023
13f3ba7
feat: add class to dropdown unread bugs and to each items
May 3, 2023
f13eeba
feat(bug-list): add class to dropdown severities bugs and to each items
May 4, 2023
6907499
feat(bug-list): add class to allFilters button
May 4, 2023
3f0d0ba
feat(bug-list): add class to dowloadReport button
May 4, 2023
117aed1
feat(bug-list): add class to go-to-integration-center button
May 4, 2023
67ca457
feat(bug-list): add class to dropdown sort bugs
May 4, 2023
f0e3839
feat(bug-list): add class to dropdown group-by bugs and to each items
May 4, 2023
e47e14b
feat(bug-list): add class to dropdown sort-by priority and severity b…
May 4, 2023
dfa946a
remove isOpen
May 4, 2023
5b77c02
feat(bug-list): add class to goto bug and sharable-url on bug overview
May 4, 2023
ed8d932
feat(bug-list): add class to dropdown custom status bugs and to each …
May 4, 2023
50431fa
feat(bug-list): add class to dropdown custom priority bugs and to eac…
May 4, 2023
6961cd0
feat(bug-list): add class to bug attachemnt, class for item, for imag…
May 4, 2023
7895fca
feat(bug-list): add class to multiselect search tags on bug preview
May 4, 2023
25332b8
feat(bug-list): add class to duplicated bug on bug overview
May 5, 2023
304e804
typo
May 5, 2023
468300a
feat(get-bugs-drawer): add classes for each accordion
May 5, 2023
8068658
fix: move class to parent div
May 5, 2023
4487742
feat(component-gtm): add className to component page
May 5, 2023
6fc8a5c
feat: add class to pages: bugs-list and single-bug
May 5, 2023
686b442
feat(drawer): add class on drawer all filters
May 5, 2023
15af6e5
typo
May 5, 2023
c45267b
refactor(page component)
May 5, 2023
f2810ad
fix class BugItem
May 5, 2023
19b3357
fix className in components VideoCard or ImageCard
May 5, 2023
2adc8a5
typo
May 5, 2023
dbde246
typo
May 5, 2023
49f5458
typo
May 5, 2023
2e2b76b
typos
May 5, 2023
7341035
fix: class on input search bug
May 5, 2023
f30914e
fix class page
May 5, 2023
58b8b7c
typos
May 5, 2023
adb3a24
feat(header-bug-page): add class to sharable url button
May 6, 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
Expand Up @@ -52,6 +52,7 @@ export const BugDuplicatesList = ({
.slice(0, isOpen ? data.siblings.length : maxSiblingSize)
.map((item) => (
<BugItem
className="bug-overview-duplicated-bug"
key={item.id}
campaignId={cid}
bugId={item.id}
Expand Down
7 changes: 6 additions & 1 deletion src/common/components/BugDetail/BugDuplicates/BugItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@ export const BugItem = ({
bugId,
title,
pills,
className,
}: {
isFather?: boolean;
campaignId: number;
bugId: number;
title: string;
pills: string[];
className?: string;
}) => (
<StyledLink to={useLocalizeRoute(`campaigns/${campaignId}/bugs/${bugId}`)}>
<StyledLink
to={useLocalizeRoute(`campaigns/${campaignId}/bugs/${bugId}`)}
className={className}
>
<BugCard borderColor={globalTheme.palette.grey[500]}>
{() => (
<>
Expand Down
10 changes: 8 additions & 2 deletions src/common/components/BugDetail/BugStateDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const BugStateDropdown = ({ bug }: { bug: Bug }) => {
itemToString: (item: DropdownItem) => item && item.slug,
}}
>
<Field>
<Field className="bug-dropdown-custom-status">
{bug.status.id === 4 ? (
<Tooltip
appendToNode={document.body}
Expand All @@ -148,7 +148,13 @@ const BugStateDropdown = ({ bug }: { bug: Bug }) => {
options.map((item) => (
<>
{item.slug === 'solved' && <Separator />}
<StyledItem key={item.slug} value={item}>
<StyledItem
key={item.slug}
value={item}
className={`bug-dropdown-custom-status-${item.slug
.toLowerCase()
.replace(/\s+/g, '-')}`}
>
{item.icon} {item.text}
</StyledItem>
</>
Expand Down
4 changes: 3 additions & 1 deletion src/common/components/BugDetail/ImageCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ export default ({
index,
url,
onClick,
className,
}: {
index: number;
url: string;
onClick?: () => void;
className?: string;
}) => (
<ImageCard onClick={onClick}>
<ImageCard onClick={onClick} className={className}>
<Preview url={url} />
<MD isBold style={{ textAlign: 'center' }}>
{index + 1}
Expand Down
2 changes: 2 additions & 0 deletions src/common/components/BugDetail/Media/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default ({
return (
<Col xs={12} sm={6} className="flex-3-sm">
<ImageCard
className="bug-preview-media-item bug-preview-media-image"
index={index}
url={item.url}
onClick={() => openLightbox(index)}
Expand All @@ -82,6 +83,7 @@ export default ({
return (
<Col xs={12} sm={6} className="flex-3-sm">
<VideoCard
className="bug-preview-media-item bug-preview-media-video"
index={index}
url={item.url}
onClick={() => openLightbox(index)}
Expand Down
8 changes: 6 additions & 2 deletions src/common/components/BugDetail/Priority.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const Priority = ({ bug }: { bug: Bug }) => {
itemToString: (item: DropdownItem) => item && item.slug,
}}
>
<Field>
<Field className="bug-dropdown-custom-priority">
<Select isCompact>
<SelectedItem>
{selectedItem.icon} {selectedItem.text}
Expand All @@ -128,7 +128,11 @@ const Priority = ({ bug }: { bug: Bug }) => {
<Menu>
{options &&
options.map((item) => (
<StyledItem key={item.slug} value={item}>
<StyledItem
key={item.slug}
value={item}
className={`bug-dropdown-custom-priority-item-${item.slug.toLowerCase()}`}
>
{item.icon} {item.text}
</StyledItem>
))}
Expand Down
10 changes: 7 additions & 3 deletions src/common/components/BugDetail/ShareBug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const ShareButton = ({
}, [isLoading, link, isError]);

return (
<>
<div className="sharable-url-button">
{children ? (
children(setModalIsOpen)
) : (
Expand All @@ -67,7 +67,11 @@ export const ShareButton = ({
type="light"
placement="auto"
>
<IconButton size="small" onClick={() => setModalIsOpen(true)}>
<IconButton
size="small"
onClick={() => setModalIsOpen(true)}
className="bug-detail-sharable-url"
>
<ShareIcon />
</IconButton>
</Tooltip>
Expand Down Expand Up @@ -108,6 +112,6 @@ export const ShareButton = ({
<ModalClose />
</Modal>
)}
</>
</div>
);
};
2 changes: 1 addition & 1 deletion src/common/components/BugDetail/Tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default ({
/>
) : (
<div
className="max-width-6-sm"
className="max-width-6-sm bug-preview-search-tags"
style={{ opacity: isFetchingCampaignTags ? 0.5 : 1 }}
>
<MultiSelect
Expand Down
4 changes: 3 additions & 1 deletion src/common/components/BugDetail/VideoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@ export default ({
index,
url,
onClick,
className,
}: {
index: number;
url: string;
onClick?: () => void;
className?: string;
}) => {
const { t } = useTranslation();

return (
<VideoCard onClick={onClick}>
<VideoCard onClick={onClick} className={className}>
<Preview>
<video
src={url}
Expand Down
3 changes: 3 additions & 0 deletions src/features/templates/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,22 @@ export const Page = ({
route,
excludeMarginTop,
excludeMarginBottom,
className,
}: {
children: React.ReactNode;
title?: string;
pageHeader?: React.ReactNode;
route: string;
excludeMarginTop?: boolean;
excludeMarginBottom?: boolean;
className?: string;
}) => (
<GoogleTagManager title={title}>
<ErrorBoundary>
<Logged route={route} pageHeader={pageHeader}>
<Container
id="container"
className={className}
excludeMarginTop={excludeMarginTop}
excludeMarginBottom={excludeMarginBottom}
>
Expand Down
1 change: 1 addition & 0 deletions src/pages/Bug/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const Bug = () => {
return (
<Page
title={bug.title.compact}
className="bug-page"
pageHeader={<Header campaignId={campaignId} bug={bug} />}
route="bug"
>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Bugs/Content/components/BugHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default ({
type="light"
placement="auto"
>
<IconButton size="small">
<IconButton size="small" className="bug-detail-go-to-bug-link">
<LinkIcon />
</IconButton>
</Tooltip>
Expand Down
18 changes: 15 additions & 3 deletions src/pages/Bugs/Drawer/CustomStatusField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ export const CustomStatusField = ({

return (
<>
<Accordion level={3} defaultExpandedSections={[]}>
<Accordion
level={3}
defaultExpandedSections={[]}
className="bugs-drawer-accordion-custom-status"
>
<Accordion.Section>
<Accordion.Header>
<Accordion.Label>
Expand Down Expand Up @@ -106,7 +110,10 @@ export const CustomStatusField = ({
</Accordion.Label>
</Accordion.Header>
<Accordion.Panel>
<Field style={{ marginBottom: globalTheme.space.md }}>
<Field
style={{ marginBottom: globalTheme.space.md }}
className="bugs-drawer-toogle-exclude-na-bug"
>
<Toggle
disabled={shouldDisableToggle}
checked={currentIsNaBugExcluded}
Expand Down Expand Up @@ -137,7 +144,12 @@ export const CustomStatusField = ({
? available
.slice(0, showMore ? undefined : maxItemsToShow)
.map((item) => (
<Field style={{ marginBottom: globalTheme.space.xs }}>
<Field
style={{ marginBottom: globalTheme.space.xs }}
className={`bugs-drawer-accordion-custom-status-${item.name
.toLowerCase()
.replace(/\s+/g, '-')}`}
>
<Checkbox
value={item.name}
name="filter-custom-status"
Expand Down
11 changes: 9 additions & 2 deletions src/pages/Bugs/Drawer/DeviceField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export const DeviceField = ({

return (
<>
<Accordion level={3} defaultExpandedSections={[]}>
<Accordion
level={3}
defaultExpandedSections={[]}
className="bugs-drawer-accordion-devices"
>
<Accordion.Section>
<Accordion.Header>
<Accordion.Label>
Expand Down Expand Up @@ -66,7 +70,10 @@ export const DeviceField = ({
? available
.slice(0, showMore ? undefined : maxItemsToShow)
.map((device) => (
<Field style={{ marginBottom: globalTheme.space.xs }}>
<Field
style={{ marginBottom: globalTheme.space.xs }}
className="bugs-drawer-accordion-device"
>
<Checkbox
value={device.device}
name="filter-devices"
Expand Down
11 changes: 9 additions & 2 deletions src/pages/Bugs/Drawer/OsField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export const OsField = ({

return (
<>
<Accordion level={3} defaultExpandedSections={[]}>
<Accordion
level={3}
defaultExpandedSections={[]}
className="bugs-drawer-accordion-os"
>
<Accordion.Section>
<Accordion.Header>
<Accordion.Label>
Expand Down Expand Up @@ -66,7 +70,10 @@ export const OsField = ({
? available
.slice(0, showMore ? undefined : maxItemsToShow)
.map((item) => (
<Field style={{ marginBottom: globalTheme.space.xs }}>
<Field
style={{ marginBottom: globalTheme.space.xs }}
className="bugs-drawer-accordion-os-item"
>
<Checkbox
value={item.os}
name="filter-os"
Expand Down
11 changes: 9 additions & 2 deletions src/pages/Bugs/Drawer/PriorityField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ export const PriorityField = ({

return (
<>
<Accordion level={3} defaultExpandedSections={[]}>
<Accordion
level={3}
defaultExpandedSections={[]}
className="bugs-drawer-accordion-custom-priority"
>
<Accordion.Section>
<Accordion.Header>
<Accordion.Label>
Expand Down Expand Up @@ -77,7 +81,10 @@ export const PriorityField = ({
? available
.slice(0, showMore ? undefined : maxItemsToShow)
.map((item) => (
<Field style={{ marginBottom: globalTheme.space.xs }}>
<Field
style={{ marginBottom: globalTheme.space.xs }}
className={`bugs-drawer-accordion-custom-priority-${item.name.toLowerCase()}`}
>
<Checkbox
value={item.name}
name="filter-priority"
Expand Down
7 changes: 6 additions & 1 deletion src/pages/Bugs/Drawer/ReadField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export const ReadField = ({ read }: { read: ReadFilterType['read'] }) => {

return (
<>
<Accordion level={3} defaultExpandedSections={[]}>
<Accordion
level={3}
defaultExpandedSections={[]}
className="bugs-drawer-accordion-read"
>
<Accordion.Section>
<Accordion.Header>
<Accordion.Label>
Expand All @@ -41,6 +45,7 @@ export const ReadField = ({ read }: { read: ReadFilterType['read'] }) => {
<Accordion.Panel>
{available.map((item) => (
<Field
className={`bugs-drawer-accordion-read-item-${item.toLowerCase()}`}
style={{
marginBottom: globalTheme.space.xxs,
}}
Expand Down
11 changes: 9 additions & 2 deletions src/pages/Bugs/Drawer/ReplicabilityField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export const ReplicabilityField = ({

return (
<>
<Accordion level={3} defaultExpandedSections={[]}>
<Accordion
level={3}
defaultExpandedSections={[]}
className="bugs-drawer-accordion-replicability"
>
<Accordion.Section>
<Accordion.Header>
<Accordion.Label>
Expand Down Expand Up @@ -68,7 +72,10 @@ export const ReplicabilityField = ({
? available
.slice(0, showMore ? undefined : maxItemsToShow)
.map((replicability) => (
<Field style={{ marginBottom: globalTheme.space.xs }}>
<Field
style={{ marginBottom: globalTheme.space.xs }}
className={`bugs-drawer-accordion-replicability-${replicability.name.toLowerCase()}`}
>
<Checkbox
value={replicability.id}
name="filter-replicability"
Expand Down
11 changes: 9 additions & 2 deletions src/pages/Bugs/Drawer/SeverityField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ export const SeverityField = ({

return (
<>
<Accordion level={3} defaultExpandedSections={[]}>
<Accordion
level={3}
defaultExpandedSections={[]}
className="bugs-drawer-accordion-severity"
>
<Accordion.Section>
<Accordion.Header>
<Accordion.Label>
Expand Down Expand Up @@ -69,7 +73,10 @@ export const SeverityField = ({
? available
.slice(0, showMore ? undefined : maxItemsToShow)
.map((item) => (
<Field style={{ marginBottom: globalTheme.space.xs }}>
<Field
style={{ marginBottom: globalTheme.space.xs }}
className={`bugs-drawer-accordion-severity-item-${item.name.toLowerCase()}`}
>
<Checkbox
value={item.name}
name="filter-severity"
Expand Down
Loading