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

Release/7.1.0 #577

Merged
merged 153 commits into from
Nov 8, 2021
Merged

Release/7.1.0 #577

merged 153 commits into from
Nov 8, 2021

Conversation

PhungNg
Copy link
Contributor

@PhungNg PhungNg commented Oct 28, 2021

Changelog

[7.1.0] - 28.10.2021

Added

Changed

  • Landing page entry cards
  • Toast component and documentation page
  • Updated list of Products using DG

Removed

Fixed

VikingTristan and others added 30 commits September 23, 2021 14:39
…rder

Update focus styling  on action links. Remove unnessasary comment
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](unshiftio/url-parse@1.5.1...1.5.3)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@codecov
Copy link

codecov bot commented Oct 28, 2021

Codecov Report

Merging #577 (53fb775) into master (7fda5bb) will increase coverage by 0.12%.
The diff coverage is 85.44%.

❗ Current head 53fb775 differs from pull request most recent head 6a50247. Consider uploading reports for the commit 6a50247 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #577      +/-   ##
==========================================
+ Coverage   82.75%   82.88%   +0.12%     
==========================================
  Files         204      213       +9     
  Lines        3641     3721      +80     
  Branches      762      800      +38     
==========================================
+ Hits         3013     3084      +71     
- Misses        537      544       +7     
- Partials       91       93       +2     
Impacted Files Coverage Δ
...ponentsDocumentation/components/Accordion/index.js 90.00% <ø> (ø)
...onentsDocumentation/components/ActionList/index.js 100.00% <ø> (ø)
...ComponentsDocumentation/components/Alerts/index.js 78.57% <ø> (ø)
...omponentsDocumentation/components/Buttons/index.js 100.00% <ø> (ø)
...nentsDocumentation/components/Datepickers/index.js 100.00% <ø> (ø)
...ComponentsDocumentation/components/Dialog/index.js 100.00% <ø> (ø)
...onentsDocumentation/components/Expandable/index.js 90.00% <ø> (ø)
...pp/ComponentsDocumentation/components/Nav/index.js 100.00% <ø> (ø)
...nentsDocumentation/components/Rangeslider/index.js 85.71% <ø> (ø)
...ComponentsDocumentation/components/Select/index.js 100.00% <ø> (ø)
... and 43 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b70e429...6a50247. Read the comment docs.

@github-actions
Copy link

Size Change: +941 B (0%)

Total Size: 748 kB

Filename Size Change
dist/designguide/styles/documentation-payex.css 4.48 kB +114 B (+3%)
dist/designguide/styles/documentation-swedbankpay.css 4.39 kB +107 B (+2%)
dist/designguide/styles/payex.css 37.2 kB -181 B (0%)
dist/designguide/styles/swedbankpay.css 36.5 kB -143 B (0%)
dist/scripts/payex.js 124 kB +479 B (0%)
dist/scripts/swedbankpay.js 125 kB +485 B (0%)
dist/styles/documentation-payex.css 4.48 kB +114 B (+3%)
dist/styles/documentation-swedbankpay.css 4.39 kB +107 B (+2%)
dist/styles/payex.css 37.2 kB -181 B (0%)
dist/styles/swedbankpay.css 36.5 kB -143 B (0%)
ℹ️ View Unchanged
Filename Size Change
dist/designguide/scripts/dg-dashboard.js 72.9 kB +31 B (0%)
dist/designguide/scripts/dg.js 56.3 kB +46 B (0%)
dist/scripts/7703.js 3.97 kB +10 B (0%)
dist/scripts/9438.js 71.2 kB +19 B (0%)
dist/scripts/dg-dashboard.js 72.9 kB +31 B (0%)
dist/scripts/dg.js 56.3 kB +46 B (0%)

compressed-size-action

@github-actions
Copy link

github-actions bot commented Oct 28, 2021

Size Change: +1.07 kB (0%)

Total Size: 748 kB

Filename Size Change
dist/designguide/styles/documentation-payex.css 4.48 kB +114 B (+3%)
dist/designguide/styles/documentation-swedbankpay.css 4.39 kB +107 B (+2%)
dist/designguide/styles/payex.css 37.3 kB -153 B (0%)
dist/designguide/styles/swedbankpay.css 36.5 kB -111 B (0%)
dist/scripts/payex.js 124 kB +485 B (0%)
dist/scripts/swedbankpay.js 125 kB +492 B (0%)
dist/styles/documentation-payex.css 4.48 kB +114 B (+3%)
dist/styles/documentation-swedbankpay.css 4.39 kB +107 B (+2%)
dist/styles/payex.css 37.3 kB -153 B (0%)
dist/styles/swedbankpay.css 36.5 kB -111 B (0%)
ℹ️ View Unchanged
Filename Size Change
dist/designguide/scripts/dg-dashboard.js 72.9 kB +31 B (0%)
dist/designguide/scripts/dg.js 56.3 kB +46 B (0%)
dist/scripts/7703.js 3.97 kB +10 B (0%)
dist/scripts/9438.js 71.2 kB +19 B (0%)
dist/scripts/dg-dashboard.js 72.9 kB +31 B (0%)
dist/scripts/dg.js 56.3 kB +46 B (0%)

compressed-size-action

@VikingTristan
Copy link
Contributor

Hmm, seems like the main github action workflow is crashing due to some azure deployment bug(?).
Related Azure/login#162

Copy link
Contributor

@VikingTristan VikingTristan left a comment

Choose a reason for hiding this comment

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

Looks very nice!

Haven't gotten through all of the files yet, but I've got some comments so far:

There are a couple of things that needs to be done before this can be released imo.

  • Patterns route doesn't exist ( try going to https://design.stage.swedbankpay.com/release/7.1.0/patterns/forms )
    • Check generate-routes-copy-array.js
  • Some images (e.g. login example images) needs new paths or webpack needs an update
  • New changelog says we're now releasing DG light, but I am not sure we are quite there yet. Change changelog?

src/App/Home/constants.js Outdated Show resolved Hide resolved
<span className="h4 mb-0">Get started by setting up the Design Guide!</span>
<i className="material-icons material-icons-outlined ml-auto">arrow_forward</i>
</div>
</Link>
Copy link
Contributor

Choose a reason for hiding this comment

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

I would consider having just one loop and getting the "Get started" card to be rendered differently based on a property on the object instead.
Hard coding checks such as the "Get started" title check gives maintaining hell down the line.

@@ -205,10 +204,10 @@ const HorizontalLogo = () => (
<h2 id="horizontal-logo">Horizontal logo</h2>
<p></p>
<ComponentPreview language="html" showCasePanel codeFigure>
<img src={`${basename}img/payex-logo.svg`} alt="PayEx horizontal logo"/>
<img src={`${basename}designguide/assets/payex-logo.svg`} alt="PayEx horizontal logo"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets remove these paths after release.
The "designguide/assets" folder is no longer needed with the new node package

Comment on lines +3 to +12
export const guidelineList = [
<>The <b>Product label</b> should display the name of the product the user is about to log in to.</>,
<><b>Log in</b> should always be the title of the login form.</>,
<>A section of links to <b>third party logins</b> can be added. Use a divider to separate it from the standard login section. It can be placed either before or after depending on the most common or desired way to login to the specific portal. </>,
<>The <b>required input fields</b> varies depending on the type of login. The amount of required fields differs depending on the authentication method. </>,
<><b>Remember me</b> is an optional field. When it is enabled it saves the data and present prefilled fields the next time the user is about to log in. </>,
<><b>Button</b> is used to allow the user to perform the login request.</>,
<><b>Additional help text</b> is optional and can be added underneath the button in order to provide the user with additional help or guidelines.</>,
<>Login forms should always have the <b>Swedbank pay logotype</b>.</>
];
Copy link
Contributor

Choose a reason for hiding this comment

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

a list of react templates to enable html elements? cool :)

src/App/Patterns/content/Login/index.js Outdated Show resolved Hide resolved
import React from "react";
import { DocContainer } from "@docutils";
import { Link } from "react-router-dom";
import patternList from "@src/App/routes/patterns";
Copy link
Contributor

@VikingTristan VikingTristan Nov 8, 2021

Choose a reason for hiding this comment

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

nitpick we're importing routes here. For consistency with other files that import routes:
patternsRoutes?

@VikingTristan
Copy link
Contributor

Hmm, seems like the main github action workflow is crashing due to some azure deployment bug(?). Related Azure/login#162

Fixed by using an older azcliversion

},
path: "/patterns",
entryCardText: "Learn about how to we set up different structures",
redirect: "/patterns/patterns",
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick for the future
Should paths just be /patterns ?

Copy link
Contributor

@VikingTristan VikingTristan left a comment

Choose a reason for hiding this comment

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

Documentation says that toast should be top center on mobile. But, if I am not mistaken, it seems to be bottom left.

image

Also it refers to medium and larger screens as "web". Everything is "web" :)

margin-right: (-@base-margin-sm);
color: lighten(@text-color, 20%);
color: @medium-brown;
Copy link
Contributor

@VikingTristan VikingTristan Nov 8, 2021

Choose a reason for hiding this comment

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

Brown color might not be suited for the payex brand, but it's very subtle atm so I guess it doesn't matter too much.

src/scripts/main/dialog/index.js Show resolved Hide resolved
src/scripts/main/toast/index.js Show resolved Hide resolved
src/scripts/main/toast/index.test.js Show resolved Hide resolved
Copy link
Contributor

@VikingTristan VikingTristan left a comment

Choose a reason for hiding this comment

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

Very nice!

@VikingTristan VikingTristan merged commit ca9605a into master Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants