Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
f8db7f6
fix: update thank you subtitle to reflect team name change
iDome89 Jan 17, 2025
3b32648
feat: update BodyTitle component styling in ExpressWizard
d-beezee Jan 15, 2025
98e8e74
feat: Add basic structure for campaign templates
d-beezee Jan 15, 2025
2d24ac3
chore(strapi): update documentation and types
cannarocks Jan 15, 2025
b8d6277
wip
d-beezee Jan 16, 2025
a076d5c
feat: implement ServiceTiles component and update useCampaignTemplate…
d-beezee Jan 16, 2025
3bace22
feat: update ServiceTiles component to enhance rendering and add pric…
d-beezee Jan 16, 2025
ef11bcb
chore(strapi): update openapi json
cannarocks Jan 16, 2025
f06d2ca
feat: enhance ServiceTiles component layout and add translation support
d-beezee Jan 16, 2025
e11eed6
feat: update ServiceTiles component to include ExpressDrawer and enha…
d-beezee Jan 16, 2025
fe8113e
feat: refactor ServiceTiles component and introduce LaunchCampaignCar…
d-beezee Jan 16, 2025
016529c
refactor: remove unused translation hook and clean up code comments
d-beezee Jan 16, 2025
f53c7e5
chore: Format doc json
d-beezee Jan 17, 2025
23d38b6
feat: integrate ExpressWizardContainer into ServiceTiles and remove E…
d-beezee Jan 17, 2025
5587e94
feat: add feature flag check for Express in ServiceTiles and LaunchCa…
d-beezee Jan 20, 2025
ba6b886
WIP: add archive description translation and enhance ProjectItems com…
iDome89 Jan 16, 2025
357f69f
feat: WIP add empty state components for archive and project in Dashb…
iDome89 Jan 17, 2025
e20e1b8
fix: update import paths for empty state components
iDome89 Jan 17, 2025
b251b7e
feat: add titles and subtitles for empty archive state in Dashboard
iDome89 Jan 20, 2025
ec160d2
feat: enhance empty state components for projects and archives in Das…
iDome89 Jan 20, 2025
b04b989
feat: add empty state illustration and feature flag handling in Proje…
iDome89 Jan 23, 2025
d1613ab
feat: invert background color logic in ProjectEmptyState component
iDome89 Jan 23, 2025
041764a
feat: refactor Project component to improve loading and empty state h…
cannarocks Jan 24, 2025
d044020
feat: Update ExpressDrawer component event tracking
marcbon Feb 3, 2025
c25197e
refactor: Update ExpressDrawer component event tracking
marcbon Feb 4, 2025
db0eeec
fix: handle close for thank you page
marcbon Jan 27, 2025
0b655dd
feat: Add useLocalizeRoute and useNavigate hooks to ExpressWizard page
marcbon Jan 27, 2025
8a6af13
Add 2 new language options (es and fr) for who step in express wizard
marcbon Jan 23, 2025
af61122
feat(transcript-translations): Remove translation feature flag and re…
Kariamos Jan 23, 2025
030e030
fix(useTranslationTools): replace AI translation feature flag with ta…
Kariamos Jan 24, 2025
8877d63
refactor(functional-dash-widget): replace Accordion with AccordionNew…
Kariamos Jan 17, 2025
345a95b
refactor(bugs-table): replace Accordion with AccordionNew for enhance…
Kariamos Jan 20, 2025
0aebca4
refactor(bug-detail): replace Accordion with AccordionNew for improve…
Kariamos Jan 20, 2025
e97fb8a
refactor(goal-card): replace Accordion with AccordionNew for improved…
Kariamos Jan 20, 2025
c22402e
refactor(videos-playlist): replace Accordion with AccordionNew for im…
Kariamos Jan 20, 2025
32207c7
refactor(insights-drawer): wip replace Accordion with AccordionNew fo…
Kariamos Jan 20, 2025
e5bdba7
refactor(insight-accordion): replace Accordion with AccordionNew for …
Kariamos Jan 21, 2025
9ea6a3e
refactor(insights-drawer): replace Accordion with AccordionNew in Acc…
Kariamos Jan 21, 2025
58614b5
refactor(bugs-table): replace InfoRow with AccordionNew for improved …
Kariamos Jan 21, 2025
019277a
refactor(insight-drawer): removed unnecessary comment
Kariamos Jan 21, 2025
bf15663
fix(translations): correct typo in custom statuses title across multi…
Kariamos Jan 22, 2025
b2fc395
refactor(bugs-filter-drawer): replace Accordion with AccordionNew for…
Kariamos Jan 22, 2025
5309d74
feat(bugs-filters-drawer): add isCompact prop to accordions
Kariamos Jan 22, 2025
a85a2c6
feat(bugs-table): wrap accordion content in a new section and panel f…
iacopolea Jan 23, 2025
4b90a85
feat(insights): add hasBorder prop to AccordionNew for enhanced styling
iacopolea Jan 23, 2025
ae802b6
feat(accordion): simplify icon usage and remove unnecessary styles fo…
iacopolea Jan 23, 2025
6c46ed6
feat(videos-list): update accordion structure and add video count as …
Kariamos Jan 24, 2025
2b3dafe
feat(bugs-table): updated InfoRow to InfoRowMeta for new bug count di…
Kariamos Jan 27, 2025
afa6030
fix(translations): remove duplicate entry for search filter in transl…
Kariamos Jan 27, 2025
09bd3c8
refactor: remove unused imports from various field components for cle…
Kariamos Jan 27, 2025
af44433
fix(GoalCard): remove inline style for AccordionNew.Panel
Kariamos Jan 27, 2025
df6ba63
fix(videos-content): remove inline styles from AccordionNew.Section a…
Kariamos Jan 27, 2025
553b2d9
fix(BugDuplicates): remove inline styles from AccordionNew components
Kariamos Jan 27, 2025
b64e6b4
fix(BugDetail): remove inline styles from AccordionNew in Details com…
Kariamos Jan 27, 2025
a6f3cc5
refactor(SingleGroupAccordion): add comment to clarify style usage in…
Kariamos Jan 27, 2025
d9b70ee
feat: enhance analytics event handling for project title and descript…
Kariamos Feb 3, 2025
f083e40
refactor: updated old gtm event management
Kariamos Feb 3, 2025
554ba25
refactor: remove hardcoded category from GTM event tracking in worksp…
Kariamos Feb 3, 2025
2dca299
refactor: update analytic event type for improved type safety in proj…
Kariamos Feb 4, 2025
e9f71cd
refactor: Update ServiceTiles layout to use Grid and Col components
iDome89 Feb 5, 2025
75cc2ec
refactor: Simplify ServiceTiles layout by removing Grid and Col compo…
iDome89 Feb 5, 2025
1a22d7a
feat(dropdown-project): Enhance ProjectDropdown to highlight selected…
Kariamos Feb 5, 2025
05c4304
refactor: separate components for modal usecase in express to prevent…
marcbon Jan 27, 2025
2438045
feat: Update modal use case tab layout in ExpressWizard steps
marcbon Jan 27, 2025
42b3922
feat: separate components to prevent re-redning
marcbon Jan 27, 2025
9fef103
feat: enhance widget display logic by adding goal and user checks
iDome89 Feb 3, 2025
b8419e2
feat: simplify widget display condition by removing unnecessary goal …
iDome89 Feb 3, 2025
65a0c66
Update index.tsx
iDome89 Feb 5, 2025
2e616f4
Refactor imports in UniqueField and UseCaseField components for clean…
iDome89 Feb 5, 2025
93990db
feat: add refetch functionality to pagination for campaign bugs
iacopolea Jan 22, 2025
87a6068
test(bugpage): Add bug-related fixtures and refactor campaign mocks f…
iacopolea Jan 23, 2025
6f3af1e
test(bugpage): Add tests, example JSON fixtures and update mock data …
iacopolea Jan 24, 2025
a38d317
test(bugpage): introduce new e2e tests for bug filters
iacopolea Jan 27, 2025
1fb593b
test(bugpage): add new e2e tests for bug page functionality and updat…
iacopolea Feb 3, 2025
9d1b7c6
test(bugpage): add additional API route mocks for bug data in fixtures
iacopolea Feb 3, 2025
3c659d6
Refactor e2e tests for bug page filters and default querystring
marcbon Feb 5, 2025
60812d2
added padding
iDome89 Jan 28, 2025
7d6a238
Refactor ServiceTiles layout from flex to grid for improved responsiv…
iacopolea Feb 5, 2025
e8e9bea
Add disclaimer text to ServiceTiles component and remove unnecessary …
iacopolea Feb 6, 2025
392aa6c
Add service tiles disclaimer to English and Italian translations
iacopolea Feb 6, 2025
9f062b6
deps: Update @appquality/unguess-design-system to version 4.0.24
Kariamos Feb 6, 2025
3e2f9c0
refactor: Update AccordionHeader and AccordionSection components for …
Kariamos Feb 6, 2025
290171f
fix(quesiton-accordion): hide divider and question accordion when the…
sinatragianpaolo Feb 6, 2025
b4d6e20
chore: update @appquality/unguess-design-system to version 4.0.25
sinatragianpaolo Feb 6, 2025
2022e86
fix(goal-card): remove unnecessary whitespace in GoalCard component
sinatragianpaolo Feb 6, 2025
9149587
feat: Enhance project dropdown to set express project on project change
iDome89 Feb 6, 2025
388d364
feat: Add loading and error handling for express types query in Expre…
iDome89 Feb 6, 2025
59d0fff
fix(ServiceTiles): update grid layout to use auto-fit and set full width
iDome89 Feb 6, 2025
eb03ae7
feat: add custom hook for active workspace projects and integrate it …
d-beezee Feb 7, 2025
ebdd5b8
feat(ExpressWizard): handle back navigation to close wizard and drawer
iDome89 Feb 7, 2025
c24ea28
feat(ExpressWizard): add device label to device selection steps
iDome89 Feb 7, 2025
ef22ef0
feat(ExpressWizard): update labels to include asterisk for required f…
iDome89 Feb 10, 2025
312605a
Update translation.json
iDome89 Feb 10, 2025
8bc7f85
fix: colori sottotitoli SectionTitle
iacopolea Feb 7, 2025
2bbf4af
fix: section spaces
iacopolea Feb 7, 2025
1465619
fix: infoicon position
iacopolea Feb 7, 2025
dbefc23
Update use case modal in ExpressWizard express 2 step how
marcbon Feb 7, 2025
0f95c0d
Refactor useCaseDetailsLink and useCaseDetailsTitle components in Exp…
marcbon Feb 10, 2025
f7ad26e
Refactor useCaseDetailsLink and useCaseDetailsTitle components in Exp…
marcbon Feb 10, 2025
8d2b32d
Refactor useCaseDetailsTitle component in ExpressWizard
marcbon Feb 10, 2025
1c3ab89
Refactor useCaseDetailsDropdown component in ExpressWizard
marcbon Feb 11, 2025
db2c51e
Refactor useCaseDetailsEditor component in ExpressWizard
marcbon Feb 11, 2025
5ffc182
Refactor useCaseDetails components in ExpressWizard using useFormikCo…
marcbon Feb 11, 2025
4df9815
Refactor formikProps in ExpressWizard components
marcbon Feb 11, 2025
6dc8046
feat: implement ScrollingGridWrapper for improved layout in ServiceTi…
iacopolea Feb 10, 2025
ef074dc
feat: replace ScrollingGridWrapper with ScrollingGrid for improved la…
iacopolea Feb 10, 2025
a4dd86a
feat: wrap ServiceTiles in Grid component for improved layout in Proj…
iacopolea Feb 11, 2025
b2d3033
feat: adjust padding and container breakpoints in ScrollingGrid and S…
iacopolea Feb 11, 2025
53c3105
feat: enhance ScrollingGrid layout with responsive margins and gradie…
iacopolea Feb 11, 2025
ce0b9c4
feat: add navigation arrows to ScrollingGrid for improved user intera…
iacopolea Feb 11, 2025
7ba72a5
feat: replace div elements with button elements for navigation in Scr…
iacopolea Feb 11, 2025
af374ad
feat(ExpressWizard): add device label to device selection steps
iDome89 Feb 7, 2025
7897dd8
chore:update strapi api definition
iDome89 Feb 10, 2025
dd96dc7
WIP - feat(ExpressWizard): add "More info" button in the footer and u…
iDome89 Feb 10, 2025
8969d5e
Update translation.json
iDome89 Feb 10, 2025
43afe2c
feat(ExpressWizard): refactor to use templateId and enhance data fetc…
iDome89 Feb 11, 2025
418772c
feat(backoffice): enhance template fetching with detailed population …
cannarocks Feb 11, 2025
297ee41
feat(hooks): enhance campaign template data structure with price icon…
iDome89 Feb 11, 2025
d4f8877
refactor(ExpressWizard): remove device label from multiple steps for …
iDome89 Feb 11, 2025
42f0a97
fix(ExpressWizard): remove redundant onCtaClick call before navigation
iDome89 Feb 12, 2025
58f7678
feat(Dashboard): update service tiles header and subtitle for improve…
iDome89 Feb 12, 2025
ca914c9
chore:update strapi api definition
iDome89 Feb 10, 2025
6e0666e
feat(ExpressWizard): add device label to device selection steps
iDome89 Feb 7, 2025
cd6befd
Update translation.json
iDome89 Feb 10, 2025
c0a1878
feat(ExpressWizard): refactor to use templateId and enhance data fetc…
iDome89 Feb 11, 2025
ccbcaf9
feat(backoffice): enhance template fetching with detailed population …
cannarocks Feb 11, 2025
35d6a9a
feat(hooks): enhance campaign template data structure with price icon…
iDome89 Feb 11, 2025
b7cfd92
refactor(ExpressWizard): remove device label from multiple steps for …
iDome89 Feb 11, 2025
dbe477a
refactor(ServiceTiles): update rendering of ServiceTile components in…
marcbon Feb 12, 2025
3b39948
feat(ExpressWizard): conditionally render price icon and requirements…
iDome89 Feb 12, 2025
93ae9ef
fix(ExpressDrawer): ensure requirements are only rendered when descri…
iDome89 Feb 12, 2025
230e609
fix(ExpressDrawer): render requirements description only when present
iDome89 Feb 12, 2025
441c598
fix(ExpressDrawer): ensure requirements list is only rendered when no…
iDome89 Feb 12, 2025
79e6673
fix(ExpressDrawer): improve rendering of requirements list for better…
iDome89 Feb 12, 2025
28c8b87
feat: Improve ScrollingGrid navigation for better user experience
marcbon Feb 12, 2025
1e2fe56
fix: add relative positioning to the project empty state component fo…
iacopolea Feb 12, 2025
6795e6c
fix(ExpressDrawer): add accent style to start button for improved vis…
iDome89 Feb 12, 2025
734e5c3
feat(ExpressWizard): add device label to device selection steps
iDome89 Feb 7, 2025
0acff2b
feat(ExpressWizard): refactor to use templateId and enhance data fetc…
iDome89 Feb 11, 2025
94d798b
chore: update @appquality/unguess-design-system to version 4.0.26
iacopolea Feb 11, 2025
ea6fe68
feat: add Template page with contact and express CTAs
iacopolea Feb 11, 2025
4109e53
fix: update query to fetch full templates instead of services
iacopolea Feb 11, 2025
0ad456e
feat: enhance SingleTemplatePageHeader to fetch and display full temp…
iacopolea Feb 12, 2025
a7662a4
feat(SingleTemplatePageHeader): refactor to remove unused imports and…
iacopolea Feb 12, 2025
337dace
revert changes possibly from rebase
iacopolea Feb 12, 2025
a72ec53
revert changes possibly from rebase 2
iacopolea Feb 12, 2025
e2a5c00
refactor: remove unused strapiParams configuration file
iacopolea Feb 12, 2025
7477ea4
fix(template): remove TemplateContactUsCta and fix breadcrumb link
iacopolea Feb 12, 2025
185714b
feat(Template): introduce strapiQueryArgs for streamlined data fetchi…
iacopolea Feb 12, 2025
967d37e
feat(Template): add template button label to translations and update …
iacopolea Feb 12, 2025
342402f
feat(Template): refactor data fetching to use useCampaignTemplateById…
iacopolea Feb 12, 2025
c2cfa12
fix(Template): update output image handling in useCampaignTemplateByI…
iacopolea Feb 12, 2025
e25dbf5
fix(hook): correct output image handling in useCampaignTemplateById hook
iacopolea Feb 12, 2025
99dbfea
feat(Navigation): add case for 'template' to handle sidebar state
cannarocks Feb 13, 2025
3a913b2
feat(hook): enhance useCampaignTemplateById to include sort order and…
iacopolea Feb 13, 2025
709669c
fix(TemplateTimeline): update goal text rendering to check for existe…
iacopolea Feb 13, 2025
3e77e9d
feat(express): add templateId to express state and update related dis…
iDome89 Feb 13, 2025
9b4e057
feat: Use newlines for template description
d-beezee Feb 14, 2025
c1a3a20
fix: Use express type id instead of template id
d-beezee Feb 14, 2025
e736870
feat: Add preventEmpty to InputToggle in EditableTitle component
marcbon Feb 14, 2025
402ea95
Refactor EditableTitle and EditableDescription components
marcbon Feb 14, 2025
18c0c4b
fix: Update age range to include '55+' in WhoStep component
cannarocks Feb 17, 2025
7dffb69
Refactor translation files and remove unused code
marcbon Feb 14, 2025
432ebc5
Refactor wizardSubmit component and remove unused code
marcbon Feb 14, 2025
f33d046
Refactor code to remove unused imports and update logic for campaign …
marcbon Feb 17, 2025
d5307ca
Refactor code to remove unused imports and update logic for campaign …
marcbon Feb 17, 2025
fa0c4b4
Refactor campaign date labels and add tomorrow option
marcbon Feb 17, 2025
fe5a8cc
Refactor code to use addBusinessDays for campaign date calculations
marcbon Feb 17, 2025
170fc80
Update dateSpots to adjust the first available date in wizardSubmit c…
cannarocks Feb 17, 2025
6d4241f
Refactor code to adjust the first available date in wizardSubmit comp…
marcbon Feb 17, 2025
f8fc11d
fix: classnames not updating in ScrollingGrid component
iacopolea Feb 17, 2025
50661d5
fix: simplify className syntax in ScrollingGrid component
iacopolea Feb 17, 2025
3920dd7
feat: Append Autocomplete listbox to document body in ProjectDropdown
iacopolea Feb 17, 2025
b0c14eb
fix: ensure unique key for project in EditableTitle component
d-beezee Feb 18, 2025
8c85590
Refactor express-2 and express-3 whoConfirm components
marcbon Feb 18, 2025
ef12c00
Refactor express-2 and express-3 whoConfirm components
marcbon Feb 18, 2025
33f31fd
Refactor mapToCampaignFields to include Spanish and French languages
marcbon Feb 18, 2025
dd89712
Refactor mapToCampaignFields to fix language filtering
marcbon Feb 18, 2025
31704af
Refactor planningModal.tsx to remove unnecessary code and comments
marcbon Feb 18, 2025
ecd1426
Fix projectDropdown to dispatch the entire project object instead of …
marcbon Feb 18, 2025
dbfcf44
Refactor GTM event handling in multiple components
marcbon Feb 18, 2025
6fc4017
Refactor ExpressWizardContainer to set "Thankyou" state to false
marcbon Feb 18, 2025
8047985
fix mapToCampaignField digital literacy all values
marcbon Feb 18, 2025
a3ad6c5
feat: add custom hook for active workspace projects and integrate it …
d-beezee Feb 5, 2025
b3b2d0b
add environment indicator to ExpressWizardContainer
cannarocks Feb 18, 2025
0e657ba
rename testDescription to goal in ExpressWizardContainer create campa…
cannarocks Feb 18, 2025
343cbc4
fix: update productLink assignment to prioritize available links
iacopolea Feb 19, 2025
d3f54af
fix(ThankYou): setThankYou false from thank you page CTA
marcbon Feb 19, 2025
6f2197d
fix: update productLink assignment to handle mobile app links correctly
iacopolea Feb 19, 2025
db9a28d
Merge pull request #1158 from AppQuality/fix-16-missing-app-link
cannarocks Feb 19, 2025
0ad295b
Merge pull request #1159 from AppQuality/fix-thank-you-page-cta
cannarocks Feb 19, 2025
ad02735
fix: update productLink assignment and setStep in ExpressWizardContainer
marcbon Feb 19, 2025
0269c63
Merge pull request #1160 from AppQuality/fix-thank-you-express
cannarocks Feb 19, 2025
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@appquality/languages": "1.4.3",
"@appquality/unguess-design-system": "4.0.23",
"@appquality/unguess-design-system": "4.0.26",
"@headwayapp/react-widget": "^0.0.4",
"@reduxjs/toolkit": "^1.8.0",
"@sentry/react": "^8.32.0",
Expand Down
42 changes: 42 additions & 0 deletions src/assets/empty-archive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/common/Pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import LoginPage from 'src/pages/LoginPage';
import NotFound from 'src/pages/NotFound/NotFound';
import MediaNotFound from 'src/pages/NotFound/MediaNotFound';
import Service from 'src/pages/Service';
import Template from 'src/pages/Template';
import Catalog from 'src/pages/Services';
import Manual from 'src/pages/Manual';
import Videos from 'src/pages/Videos';
Expand Down Expand Up @@ -85,6 +86,10 @@ const Pages = () => {
path={`/${langPrefix}/services/:templateId`}
element={<Service />}
/>
<Route
path={`/${langPrefix}/templates/:templateId`}
element={<Template />}
/>
<Route
path={`/${langPrefix}/campaigns/:campaignId/videos`}
element={<Videos />}
Expand Down
34 changes: 12 additions & 22 deletions src/common/components/BugDetail/BugDuplicates/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Accordion, LG, Button } from '@appquality/unguess-design-system';
import { Button, AccordionNew } from '@appquality/unguess-design-system';
import { useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { appTheme } from 'src/app/theme';
import { useBugPreviewContext } from 'src/pages/Bugs/Content/context/BugPreviewContext';
import { useSiblings } from './useSiblings';
import { BugDuplicatesList } from './BugDuplicatesList';
Expand Down Expand Up @@ -31,29 +30,20 @@ export const BugDuplicates = ({
};

return (
<Accordion
<AccordionNew
level={3}
style={{ padding: 0 }}
key={`duplicates_accordion_${isAccordionOpen}`}
defaultExpandedSections={isAccordionOpen ? [0, 1] : []}
id="bug-preview-duplicates"
onChange={handleAccordionChange}
>
<Accordion.Section>
<Accordion.Header>
<Accordion.Label style={{ padding: 0 }}>
<LG isBold>
<LinkIcon
style={{
color: appTheme.palette.grey[600],
marginRight: appTheme.space.xs,
}}
/>
{t('__BUGS_PAGE_BUG_DETAIL_DUPLICATES_ACCORDION_TITLE')}
</LG>
</Accordion.Label>
</Accordion.Header>
<Accordion.Panel style={{ padding: 0, paddingTop: appTheme.space.sm }}>
<AccordionNew.Section>
<AccordionNew.Header icon={<LinkIcon />}>
<AccordionNew.Label
label={t('__BUGS_PAGE_BUG_DETAIL_DUPLICATES_ACCORDION_TITLE')}
/>
</AccordionNew.Header>
<AccordionNew.Panel>
<BugFather cid={cid} bugId={bugId} />
<BugDuplicatesList
maxSiblingSize={MAX_SIBLING_SIZE}
Expand All @@ -71,8 +61,8 @@ export const BugDuplicates = ({
</Trans>
</Button>
) : null}
</Accordion.Panel>
</Accordion.Section>
</Accordion>
</AccordionNew.Panel>
</AccordionNew.Section>
</AccordionNew>
);
};
43 changes: 12 additions & 31 deletions src/common/components/BugDetail/Details.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Accordion, LG } from '@appquality/unguess-design-system';
import { AccordionNew } from '@appquality/unguess-design-system';
import { useTranslation } from 'react-i18next';
import { Bug, BugAdditionalField } from 'src/features/api';
import styled from 'styled-components';
import { appTheme } from 'src/app/theme';
import { ReactComponent as DetailsIcon } from 'src/assets/icons/details-icon.svg';
import { useBugPreviewContext } from 'src/pages/Bugs/Content/context/BugPreviewContext';
import DetailsItems from './DetailsItems';
Expand All @@ -12,15 +11,6 @@ const Container = styled.div`
width: 100%;
margin-bottom: ${({ theme }) => theme.space.lg};
`;
const Title = styled.div`
display: flex;
justify-content: flex-start;
align-items: center;

> svg {
fill: ${({ theme }) => theme.palette.grey[600]};
}
`;

export default ({
bug,
Expand All @@ -47,32 +37,23 @@ export default ({

return (
<Container id="bug-preview-details">
<Accordion
<AccordionNew
level={3}
style={{ padding: 0 }}
key={`details_accordion_${isOpen}`}
defaultExpandedSections={isOpen ? [0, 1] : []}
onChange={handleAccordionChange}
>
<Accordion.Section>
<Accordion.Header>
<Accordion.Label style={{ padding: 0 }}>
<Title>
<DetailsIcon
style={{
marginRight: appTheme.space.base * 3,
color: appTheme.palette.grey[600],
}}
/>
<LG isBold>{t('__BUGS_PAGE_BUG_DETAIL_DETAILS_LABEL')}</LG>
</Title>
</Accordion.Label>
</Accordion.Header>
<Accordion.Panel style={{ padding: 0 }}>
<AccordionNew.Section>
<AccordionNew.Header icon={<DetailsIcon />}>
<AccordionNew.Label
label={t('__BUGS_PAGE_BUG_DETAIL_DETAILS_LABEL')}
/>
</AccordionNew.Header>
<AccordionNew.Panel>
<DetailsItems bug={bug} />
</Accordion.Panel>
</Accordion.Section>
</Accordion>
</AccordionNew.Panel>
</AccordionNew.Section>
</AccordionNew>
</Container>
);
};
7 changes: 4 additions & 3 deletions src/common/components/LayoutWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import React from 'react';
import styled from 'styled-components';

const Container = styled.div<{
isNotBoxed?: boolean;
}>`
width: 100%;
box-sizing: border-box;
padding: 0 ${({ theme }) => theme.space.xxl};
padding: 0 ${({ theme }) => theme.space.md};
margin: 0 auto;
max-width: ${({ theme, isNotBoxed }) =>
isNotBoxed ? '100%' : theme.breakpoints.xxl};

@media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
padding: 0 ${({ theme }) => theme.space.md};
@media (min-width: ${({ theme }) => theme.breakpoints.sm}) {
padding: 0 ${({ theme }) => theme.space.xxl};
}
`;

Expand Down
Loading