Skip to content

Commit

Permalink
Merge pull request #199 from mintlayer/dev
Browse files Browse the repository at this point in the history
Dev-08-12-2024
  • Loading branch information
owlsua authored Dec 7, 2024
2 parents 1e3528e + 82fec1e commit 652008c
Show file tree
Hide file tree
Showing 59 changed files with 565 additions and 150 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run prettier && npm run lint && npm test -- --watchAll=false
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.3.4",
"private": true,
"dependencies": {
"@bitcoin-js/tiny-secp256k1-asmjs": "^2.2.3",
"@mintlayer/entropy-generator": "^1.0.4",
"bip32": "^4.0.0",
"bip39": "^3.1.0",
Expand All @@ -22,9 +23,8 @@
"react-dom": "^18.3.1",
"react-konva": "^18.2.10",
"react-qr-code": "^2.0.15",
"react-router-dom": "^6.27.0",
"react-router-dom": "^6.28.0",
"stream-browserify": "^3.0.0",
"@bitcoin-js/tiny-secp256k1-asmjs": "^2.2.3",
"web-vitals": "^4.2.4"
},
"scripts": {
Expand All @@ -33,8 +33,8 @@
"build": "env-cmd -f ./.env.production react-app-rewired build && sh packing.sh",
"test": "NODE_ENV=test react-scripts --openssl-legacy-provider test a --testPathIgnorePatterns='src/pages'",
"coverage": "npm test -- --coverage ",
"serve": "http-server -p 8000 build/ ",
"e2e": "npx playwright test",
"serve": "npm run build && http-server -p 8000 build/ ",
"e2e": "npx playwright test --workers=1",
"e2e:debug": "npx playwright test --headed",
"e2e:ui": "npx playwright test --ui",
"eject": "react-scripts eject",
Expand Down Expand Up @@ -157,15 +157,15 @@
]
},
"devDependencies": {
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@playwright/test": "^1.48.2",
"@svgr/webpack": "^8.1.0",
"@types/node": "^22.8.6",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^22.9.0",
"@types/tiny-secp256k1": "^2.0.1",
"dotenv-webpack": "^8.1.0",
"ecpair": "^2.1.0",
Expand Down
6 changes: 3 additions & 3 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { defineConfig, devices } = require('@playwright/test')
module.exports = defineConfig({
testDir: './tests',
/* Run tests in files in parallel */
fullyParallel: true,
fullyParallel: false,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
Expand Down Expand Up @@ -71,8 +71,8 @@ module.exports = defineConfig({

/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run start',
url: 'http://127.0.0.1:3000',
command: 'npm run serve',
url: 'http://localhost:8000/',
reuseExistingServer: !process.env.CI,
},
})
2 changes: 1 addition & 1 deletion public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
html {
display: flex;
justify-content: center;
padding: 30px 0 0 0;
padding: 30px 0 30px 0;
height: 100vh;
}

Expand Down
1 change: 1 addition & 0 deletions src/assets/images/icon-sign.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 17 additions & 7 deletions src/assets/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,28 @@ body {
height: 600px;
width: 800px;
background: rgb(var(--color-white));

@media screen and (min-width: 801px) {
height: auto;
border-radius: 30px;
width: 90vh;
}
}

#root {
height: 100%;
}

.App {
position: relative;
min-height: 600px;
display: flex;
flex-direction: column;
height: 600px;
padding: 2rem 2.875rem;

@media screen and (min-width: 801px) {
height: 100%;
}
}

.center-text {
Expand Down Expand Up @@ -89,9 +105,3 @@ body {
color: rgb(var(--color-green));
text-decoration: none;
}

@media screen and (min-width: 801px) {
body {
border-radius: 30px;
}
}
6 changes: 5 additions & 1 deletion src/components/basic/Button/Button.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
width: fit-content;
}

.btn svg {
max-height: 40px;
}

.btn:hover svg path {
stroke: rgb(var(--color-green));
fill: rgb(var(--color-green));
}

.btn:disabled,
Expand Down
1 change: 1 addition & 0 deletions src/components/basic/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const Input = ({
pattern={pattern}
disabled={disabled ? 'disabled' : ''}
ref={ref}
autoComplete="off"
/>
)
}
Expand Down
7 changes: 3 additions & 4 deletions src/components/basic/Logo/Logo.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
.logoContainer {
position: relative;
display: flex;
margin: 0 auto;
justify-content: space-between;
line-height: 60px;
width: 205px;
width: 200px;
}

.logoContainer .logo {
width: 60px;
height: 60px;
width: 55px;
height: 55px;
margin: 0;
}

Expand Down
5 changes: 4 additions & 1 deletion src/components/basic/Logo/Logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const Logo = () => {
const { networkType } = useContext(SettingsContext)

return (
<div className="logoContainer">
<div
className="logoContainer"
data-testid="logo-container"
>
<LogoIcon
className="logo"
data-testid="logo"
Expand Down
7 changes: 4 additions & 3 deletions src/components/basic/Textarea/Textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ const Textarea = ({
return ''
}
}
const onChangeHandler = ({ target }) => {
onChange && onChange({ target })
setTextareaValue(target.value)
const onChangeHandler = (event) => {
const newValue = event.target.value
setTextareaValue(newValue)
onChange && onChange({ target: { value: newValue } })
getExtraClasses()
}

Expand Down
Loading

0 comments on commit 652008c

Please sign in to comment.