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

Feature/pfe 3 payex badge #928

Merged
merged 3 commits into from
Jan 23, 2024
Merged

Feature/pfe 3 payex badge #928

merged 3 commits into from
Jan 23, 2024

Conversation

WMeander
Copy link
Collaborator

@WMeander WMeander commented Jan 8, 2024

Description

Updated colors for PayEx Badge compontent

Motivation and Context

Colors for PayEx bagdes did not follow the current color scheme and needed to be updated. Also accessibility contrast score low on some badges.

Also added variables used by swedbank pay to payex variables wich is causing compiler error due to missing variables when using payex design guide on clients.

How Has This Been Tested?

Ran snapshot test for current component, style linting for less files. Visual review sent to designer.
Fixed linting for most files belonging to payex.

Screenshots (if appropriate):

Before:
image
image
After:
image
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have updated the CHANGELOG document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Review instructions

Review instructions

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (504e9d7) 72.30% compared to head (6798faa) 72.30%.
Report is 3 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #928   +/-   ##
========================================
  Coverage    72.30%   72.30%           
========================================
  Files          212      212           
  Lines         4586     4586           
  Branches      1306     1306           
========================================
  Hits          3316     3316           
  Misses        1126     1126           
  Partials       144      144           
Files Coverage Δ
src/App/Home/constants.js 100.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

Copy link

github-actions bot commented Jan 8, 2024

Size Change: +60 B (0%)

Total Size: 1.12 MB

ℹ️ View Unchanged
Filename Size Change
dist/designguide/scripts/dg-dashboard.js 72.9 kB 0 B
dist/designguide/scripts/dg.js 24.7 kB 0 B
dist/designguide/styles/documentation-payex.css 9.9 kB +3 B (0%)
dist/designguide/styles/documentation-swedbankpay.css 8.98 kB 0 B
dist/designguide/styles/payex.css 44.4 kB +27 B (0%)
dist/designguide/styles/swedbankpay.css 42.3 kB 0 B
dist/scripts/9438.js 71.8 kB 0 B
dist/scripts/dg-dashboard.js 72.9 kB 0 B
dist/scripts/dg.js 24.7 kB 0 B
dist/scripts/payex.js 322 kB 0 B
dist/scripts/swedbankpay.js 322 kB 0 B
dist/styles/documentation-payex.css 9.9 kB +3 B (0%)
dist/styles/documentation-swedbankpay.css 8.98 kB 0 B
dist/styles/payex.css 44.4 kB +27 B (0%)
dist/styles/swedbankpay.css 42.3 kB 0 B

compressed-size-action

@goldenraphti
Copy link
Collaborator

@WMeander I love it !!! 🌟 awesome stuff !!! 🚀

Indeed the PayEx side of things tends to be forgotten since our designers are 100% SwedbankPay 🙈. So the issue you've spotted (and fixed 🌟 ) for badges is likely in other components too.

Awesome that you could open the PR. This is the way to go. I'm the only dev working on the design system, so you can imagine I have way too much to carry to do all the work that deserves to be done. Open Sourcing the work via PRs (like you just did) is 100% the way to go 💪

I have a big PR in review right now (we're migrating icons), which will probably get approved and merged this week. It's touching a huge amount of files, so I don't want to tempt the GH-Merge-Conflicts gods, I'll wait for it and I'll merge this one right after 😅

Question for you: I'm not super clear on which projects are using the PayEx side of the DS. Do you know? Are we sure the other PayEx projects consuming the DS library are fine with those UI changes?

(And please, bring some more of those PR 👍 it's needed ⭐ let me know if you have questions, doubts, ideas, etc. Also, so you know, I'm trying to migrate little by little from LESS to pure CSS where possible. Like switching to CSS custom properties for example (although it wasn't really ready for it there yet). I'm saying it for the future, in case you're planning to open more PRs, which I hope 🤞 😃 )

@WMeander
Copy link
Collaborator Author

WMeander commented Jan 9, 2024

@goldenraphti Thanks! Yes, we do have other components with the same issue where colors are out of sync. We're planning to update some of them the upcoming sprint. Ah, I'll wait for that big PR to be done. (The payex designer is also reviewing the changes in this feature branch so we can wait)

Most of PayEx web:s are using the old versions of the design guide (v2). I think its around version 7 that PayEx design guide had a bigger update and it's not that many system using the newer versions. This user story comes from payex designer so i think we're good with the changes done. (All PayEx user stories coming up are also from the payex designer, so should be good to go)

@goldenraphti
Copy link
Collaborator

awesome @WMeander

  • then let me know once the PayEx designer gives approval for it. It looks all good to me ✅
  • regarding the other PayEx projects let's do this then. We'll use the PayEx designer as source of approval for the rest of them. And I'll mention it in the Slack channel for the others PayEx projects devs that any issues/concerns/ideas they have they should bring it up so we have a clear picture of the possible limitations if any 👍

@WMeander
Copy link
Collaborator Author

@goldenraphti The designer has approved the new colors for badge component. So this branch is ready to be merged whenever you're done with your icon review

Copy link
Collaborator

@goldenraphti goldenraphti left a comment

Choose a reason for hiding this comment

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

I'll merge it once SWED-2276 gets approved and merged (hopefully today 😉) 👍

@goldenraphti goldenraphti merged commit 2f55e0b into develop Jan 23, 2024
9 checks passed
@github-actions github-actions bot deleted the feature/pfe-3-payex-badge branch January 23, 2024 09:33
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.

2 participants