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

SWED-2249 create playbook doc #908

Merged
merged 39 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9118da2
test yml pipeline
goldenraphti Sep 25, 2023
027732f
test pipeline
goldenraphti Sep 25, 2023
53c5bcb
test pipeline
goldenraphti Sep 25, 2023
b7bf880
SWED-2249 init playbook category ds website
goldenraphti Sep 28, 2023
bf2c816
remove appid log
goldenraphti Sep 28, 2023
75ab873
SWED-2249 fix img srcs & add HQ principles src
goldenraphti Sep 28, 2023
b5e667c
SWED-2249 fix playbook images upload
goldenraphti Sep 29, 2023
3570c26
SWED-2249 upload jpg for playbook
goldenraphti Sep 29, 2023
5d5cf59
SWED-2249 fix upload jpg for playbook
goldenraphti Sep 29, 2023
53f946f
SWED-2249 style images mobile & delicate lines
goldenraphti Sep 29, 2023
6ff366e
SWED-2249 add playbook routes build to dist
goldenraphti Oct 2, 2023
5d3ea9c
SWED-2249 style mobile
goldenraphti Oct 2, 2023
408fc62
SWED-2249 style mobile bold-typography
goldenraphti Oct 2, 2023
b5258c9
SWED-2249 fix style playbook design-vision grid
goldenraphti Oct 2, 2023
87075ad
SWED-2249 remove playbook from PayEx & clean todo
goldenraphti Oct 2, 2023
51e910e
SWED-2249 increase quality img playbook showroom
goldenraphti Oct 4, 2023
ab8cf3e
SWED-2249 make playbook img load lazy
goldenraphti Oct 4, 2023
dc56bb6
SWED-2249 test playbook video & avif
goldenraphti Oct 4, 2023
c8ea2cb
SWED-2249 add avif mp4 & av1 to playbook
goldenraphti Oct 4, 2023
ae43e8a
SWED-2249 style ratios playbook showcase
goldenraphti Oct 4, 2023
f32da08
SWED-2249 style showroom & add videos
goldenraphti Oct 4, 2023
7de3af1
SWED-2249 style showroom
goldenraphti Oct 4, 2023
421601c
SWED-2249 style showroom
goldenraphti Oct 4, 2023
5d45a07
SWED-2249 style showroom
goldenraphti Oct 4, 2023
bccf849
SWED-2249 fix video codec av1 playbook showroom
goldenraphti Oct 6, 2023
f569cee
SWED-2249 style mobile playbook
goldenraphti Oct 6, 2023
fbc289a
SWED-2249 remove Identity Overview page
goldenraphti Oct 6, 2023
52d2c46
SWED-2249 style playbook
goldenraphti Oct 6, 2023
cccfbb5
SWED-2249 revert gap to showroom
goldenraphti Oct 6, 2023
9c758c1
SWED-2249 fix gap playbook
goldenraphti Oct 6, 2023
3f86c60
SWED-2249 playbook add last videos
goldenraphti Oct 10, 2023
d2c0a1a
SWED-2249 fix linting playbook css
goldenraphti Oct 10, 2023
f5378f2
SWED-2249 playbook showroom perf loading lazy
goldenraphti Oct 10, 2023
8adf900
SWED-2249 fix CSS grid-template shorthand playbook
goldenraphti Oct 10, 2023
0795b38
SWED-2249 remove trailing periods playbook cards
goldenraphti Oct 10, 2023
55d0107
SWED-2249 update E2E tests
goldenraphti Oct 10, 2023
dc729cd
Merge branch 'develop' into feature/SWED-2249-create_playbook_doc
goldenraphti Oct 10, 2023
2afb792
SWED-2249 content playbook update
goldenraphti Oct 12, 2023
4611d09
Merge branch 'develop' into feature/SWED-2249-create_playbook_doc
goldenraphti Oct 31, 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
7 changes: 1 addition & 6 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@

### Non breaking UI changes

- add possibility to disable rotation of the dropdown toggle icon on active state
- add possibility to style bank-id button as secondary

## Testing

- E2E tests for dropdown component

## Design System website

- expand components preview containers to full screen (only in Topbar component for now)
- Add the Playbook section in Identity
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 54 additions & 47 deletions src/App/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Alert from "../components/Alert";

const basename = process.env.basename;
const brandTitle = process.env.brandTitle;
const isSwedbankPay = process.env.isSwedbankPay;

const Home = () => {
useEffect(() => {
Expand Down Expand Up @@ -39,61 +40,67 @@ const Home = () => {
</p>

<div className="row dg-cards-container mt-4">
{routes.map((route) => (
<React.Fragment key={route.title}>
<div
key={route.title}
className={
route.wideCard
? "w-100 order-5"
: "col-12 col-sm-6 col-lg-3 d-flex"
}
>
<Link
to={route.path}
className={`cards cards-primary${
route.wideCard ? " cards-wide m-3" : ""
}`}
{routes
.filter((route) =>
isSwedbankPay
? !route.title.toLowerCase().includes("patterns")
: !route.title.toLowerCase().includes("playbook")
)
.map((route) => (
<React.Fragment key={route.title}>
<div
key={route.title}
className={
route.wideCard
? "w-100 order-5"
: "col-12 col-sm-6 col-lg-3 d-flex"
}
>
{route.wideCard ? (
<div className="cards-content flex-row align-items-center m-0 w-100">
<i
className="material-icons material-icons-outlined mr-3 v-flip"
aria-hidden="true"
>
{route.icon.name}
</i>
<span className="h4 mb-0">{route.entryCardText}</span>
<i
className="material-icons material-icons-outlined ml-auto"
aria-hidden="true"
>
arrow_forward
</i>
</div>
) : (
<div>
<div className="cards-icon">
<Link
to={route.path}
className={`cards cards-primary${
route.wideCard ? " cards-wide m-3" : ""
}`}
>
{route.wideCard ? (
<div className="cards-content flex-row align-items-center m-0 w-100">
<i
className="material-icons-outlined"
className="material-icons material-icons-outlined mr-3 v-flip"
aria-hidden="true"
>
{route.icon.name}
</i>
<span className="h4 mb-0">{route.entryCardText}</span>
<i
className="material-icons material-icons-outlined ml-auto"
aria-hidden="true"
>
arrow_forward
</i>
</div>
<div className="cards-content">
<span className="h4">{route.title}</span>
<span>{route.entryCardText}</span>
) : (
<div>
<div className="cards-icon">
<i
className="material-icons-outlined"
aria-hidden="true"
>
{route.icon.name}
</i>
</div>
<div className="cards-content">
<span className="h4">{route.title}</span>
<span>{route.entryCardText}</span>
</div>
<i className="material-icons" aria-hidden="true">
arrow_forward
</i>
</div>
<i className="material-icons" aria-hidden="true">
arrow_forward
</i>
</div>
)}
</Link>
</div>
</React.Fragment>
))}
)}
</Link>
</div>
</React.Fragment>
))}
<div className="col-12 col-sm-6 col-lg-3 d-flex">
<Link to={"/utilities"} className="cards cards-primary">
<div className="cards-icon">
Expand Down
34 changes: 24 additions & 10 deletions src/App/Identity/identity/Typography/typography.e2e.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,30 @@ test("Typography page exist", async ({ page }) => {
name: "Identity Learn about our fundamental principles",
})
.click();
await expect(
page.getByRole("link", {
name: "Typography",
})
).toHaveCount(page.viewportSize().width < 991 ? 1 : 2);
await page
.getByRole("link", {
name: "Typography See our fronts and sizing arrow_forward",
})
.click();

if (page.viewportSize().width > 991) {
await expect(
page.getByRole("link", {
name: "Typography",
})
).toHaveCount(1);
await page.getByRole("link", { name: "Typography" }).click();
} else {
await expect(
page.getByRole("link", {
name: "Typography",
})
).toHaveCount(0);
await page.getByLabel("Open menu").click();
await page.getByRole("button", { name: "Identity" }).click();

await expect(
page.getByRole("link", {
name: "Typography",
})
).toHaveCount(1);
await page.getByRole("link", { name: "Typography" }).click();
}
});

const viewportsVariants = [
Expand Down
2 changes: 1 addition & 1 deletion src/App/Identity/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react";
import { RenderPage } from "../utils";

const Core = () => (
<RenderPage path="/identity" initPath="/identity/identity" />
<RenderPage path="/accessibility" initPath="/identity/accessibility" />
);

export default Core;
Loading
Loading