Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
live-github-bot[bot] committed Sep 11, 2023
2 parents 840b334 + 2f63108 commit 756150a
Show file tree
Hide file tree
Showing 353 changed files with 40,949 additions and 28,848 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/healthchecks-runners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: pnpm/action-setup@v2
if: always()
with:
version: 8.6
version: 8.7
dest: ${{ runner.temp }}/setup-pnpm
- uses: actions/setup-node@v3
if: always()
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
- uses: pnpm/action-setup@v2
if: always()
with:
version: 8.6
version: 8.7
dest: ${{ runner.temp }}/setup-pnpm
- uses: actions/setup-node@v3
if: always()
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
- uses: pnpm/action-setup@v2
if: always()
with:
version: 8.6
version: 8.7
dest: ${{ runner.temp }}/setup-pnpm
- uses: actions/setup-node@v3
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .prototools
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node = "18.17.1"
npm = "9.8.1"
pnpm = "8.6.12"
pnpm = "8.7.0"
9 changes: 9 additions & 0 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @ledgerhq/live-cli

## 22.11.3

### Patch Changes

- Updated dependencies [[`e0cc3a0841`](https://github.com/LedgerHQ/ledger-live/commit/e0cc3a08415de84b9d3ce828444248a043a9d699), [`18b4a47b48`](https://github.com/LedgerHQ/ledger-live/commit/18b4a47b4878a23695a50096b7770134883b8a2e), [`5d20c326a0`](https://github.com/LedgerHQ/ledger-live/commit/5d20c326a038a430a38f28815ba65af71152118b), [`b2e8c1053e`](https://github.com/LedgerHQ/ledger-live/commit/b2e8c1053e57c763575c9c4d77d1daca8ef566fe), [`1c6deb2336`](https://github.com/LedgerHQ/ledger-live/commit/1c6deb2336a8b76517cc4d367f76dca24f9228dc), [`3ec5739f8a`](https://github.com/LedgerHQ/ledger-live/commit/3ec5739f8a4e3ff81da468cd91036b7b271dfd06), [`bfd4fef405`](https://github.com/LedgerHQ/ledger-live/commit/bfd4fef405f832489cc5258330e6483260c896d2)]:
- @ledgerhq/live-common@31.7.0
- @ledgerhq/coin-framework@0.5.3
- @ledgerhq/cryptoassets@9.12.1

## 22.11.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ledgerhq/live-cli",
"version": "22.11.2",
"version": "22.11.3",
"description": "ledger-live CLI version",
"repository": {
"type": "git",
Expand Down Expand Up @@ -71,7 +71,7 @@
"@ledgerhq/types-live": "workspace:^",
"@types/command-line-args": "^5.2.0",
"@types/lodash": "^4.14.177",
"@types/node": "^17.0.15",
"@types/node": "^18.0.0",
"@types/pako": "^2.0.0",
"ts-node": "^10.4.0"
}
Expand Down
40 changes: 40 additions & 0 deletions apps/ledger-live-desktop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# ledger-live-desktop

## 2.68.1

### Patch Changes

- [#4613](https://github.com/LedgerHQ/ledger-live/pull/4613) [`e499949b1e`](https://github.com/LedgerHQ/ledger-live/commit/e499949b1e890b1efc7233596ac1a439a7963b1d) Thanks [@live-github-bot](https://github.com/apps/live-github-bot)! - trigger lld prerelease build

## 2.68.1-next.0

### Patch Changes

- [#4613](https://github.com/LedgerHQ/ledger-live/pull/4613) [`e499949b1e`](https://github.com/LedgerHQ/ledger-live/commit/e499949b1e890b1efc7233596ac1a439a7963b1d) Thanks [@live-github-bot](https://github.com/apps/live-github-bot)! - trigger lld prerelease build

## 2.68.0

### Minor Changes

- [#4476](https://github.com/LedgerHQ/ledger-live/pull/4476) [`b2e8c1053e`](https://github.com/LedgerHQ/ledger-live/commit/b2e8c1053e57c763575c9c4d77d1daca8ef566fe) Thanks [@KVNLS](https://github.com/KVNLS)! - Add modelId and modelIdList in meta object when we do an export with the qrcode

### Patch Changes

- Update broken readme environment variable link.

- [#4552](https://github.com/LedgerHQ/ledger-live/pull/4552) [`ca8d064bab`](https://github.com/LedgerHQ/ledger-live/commit/ca8d064babf4df3babbdd4ba03f4be742d805edb) Thanks [@mitchellv-ledger](https://github.com/mitchellv-ledger)! - add new tag to earn in main side bar

- [#4174](https://github.com/LedgerHQ/ledger-live/pull/4174) [`5d20c326a0`](https://github.com/LedgerHQ/ledger-live/commit/5d20c326a038a430a38f28815ba65af71152118b) Thanks [@sarneijim](https://github.com/sarneijim)! - Support customFees in swap web app mode

- [#4540](https://github.com/LedgerHQ/ledger-live/pull/4540) [`bfd4fef405`](https://github.com/LedgerHQ/ledger-live/commit/bfd4fef405f832489cc5258330e6483260c896d2) Thanks [@haammar-ledger](https://github.com/haammar-ledger)! - Hardcode Ledger validator details for Solana

- [#4509](https://github.com/LedgerHQ/ledger-live/pull/4509) [`a35135437b`](https://github.com/LedgerHQ/ledger-live/commit/a35135437bef6fcd44925a240f0f4894eeb565da) Thanks [@sshmaxime](https://github.com/sshmaxime)! - Added Storyly SDK along with its base hook and component

- [#4562](https://github.com/LedgerHQ/ledger-live/pull/4562) [`61b1f38193`](https://github.com/LedgerHQ/ledger-live/commit/61b1f38193dc53824e35e3cf2d683330846d9f91) Thanks [@mle-gall](https://github.com/mle-gall)! - Final Stax pixel polished on LLD

- Updated dependencies [[`e0cc3a0841`](https://github.com/LedgerHQ/ledger-live/commit/e0cc3a08415de84b9d3ce828444248a043a9d699), [`18b4a47b48`](https://github.com/LedgerHQ/ledger-live/commit/18b4a47b4878a23695a50096b7770134883b8a2e), [`5d20c326a0`](https://github.com/LedgerHQ/ledger-live/commit/5d20c326a038a430a38f28815ba65af71152118b), [`916d6975e5`](https://github.com/LedgerHQ/ledger-live/commit/916d6975e52f4f83291a9ce1a3e7e60dbccb5b20), [`b2e8c1053e`](https://github.com/LedgerHQ/ledger-live/commit/b2e8c1053e57c763575c9c4d77d1daca8ef566fe), [`916d6975e5`](https://github.com/LedgerHQ/ledger-live/commit/916d6975e52f4f83291a9ce1a3e7e60dbccb5b20), [`1c6deb2336`](https://github.com/LedgerHQ/ledger-live/commit/1c6deb2336a8b76517cc4d367f76dca24f9228dc), [`3ec5739f8a`](https://github.com/LedgerHQ/ledger-live/commit/3ec5739f8a4e3ff81da468cd91036b7b271dfd06), [`bfd4fef405`](https://github.com/LedgerHQ/ledger-live/commit/bfd4fef405f832489cc5258330e6483260c896d2), [`41a38e953b`](https://github.com/LedgerHQ/ledger-live/commit/41a38e953b17075b5ab7bec307c147d8f74b7501)]:
- @ledgerhq/live-common@31.7.0
- @ledgerhq/coin-framework@0.5.3
- @ledgerhq/react-ui@0.14.9
- @ledgerhq/coin-evm@0.6.1
- @ledgerhq/domain-service@1.1.10
- @ledgerhq/evm-tools@1.0.6

## 2.67.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/ledger-live-desktop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ NO_DEBUG_DEVICE=1
NO_DEBUG_COUNTERVALUES=1
```

other envs can be seen in [live-common:src/env.ts](https://github.com/LedgerHQ/ledger-live/blob/develop/libs/ledger-live-common/src/env.ts)
other envs can be seen in [libs/src/env.ts](https://github.com/LedgerHQ/ledger-live/blob/develop/libs/env/src/env.ts)

### Run tests

Expand Down
4 changes: 4 additions & 0 deletions apps/ledger-live-desktop/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.68.1

This release includes minor bug fixes and security improvements.

# 2.66.0

### 🚀 Features
Expand Down
9 changes: 5 additions & 4 deletions apps/ledger-live-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"private": true,
"main": "./.webpack/main.bundle.js",
"version": "2.67.0",
"version": "2.68.1",
"scripts": {
"start:prod": "electron ./.webpack/main.bundle.js",
"start": "cross-env NODE_ENV=development node ./tools/main.js",
Expand Down Expand Up @@ -123,6 +123,7 @@
"rxjs7": "npm:[email protected]",
"secp256k1": "^4.0.2",
"semver": "^7.1.3",
"storyly-web": "^1.4.1",
"styled-components": "^5.3.3",
"styled-system": "^5.1.5",
"timemachine": "^0.3.2",
Expand All @@ -146,9 +147,9 @@
"@sentry/cli": "^2.13.0",
"@sentry/types": "^7.47.0",
"@testing-library/dom": "^9.3.1",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "12",
"@testing-library/react-hooks": "^4.0.1",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/chart.js": "2.9.37",
"@types/color": "^3.0.3",
Expand Down Expand Up @@ -189,7 +190,7 @@
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"execa": "^7.0.0",
"execa": "^8.0.0",
"hasha": "^5.2.2",
"jest": "^29.6.1",
"jest-canvas-mock": "^2.5.2",
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ import STAX_signTransaction from "~/renderer/animations/stax/signTransaction.jso
import STAX_allowConnection from "~/renderer/animations/stax/allowConnection.json";
// @ts-ignore
import STAX_confirmLockscreen from "~/renderer/animations/stax/confirmLockscreen.json";
// @ts-ignore
import STAX_USB_connection_success from "~/renderer/animations/stax/USBConnectionSuccess.json";
// @ts-ignore
import STAX_plug_and_pin from "~/renderer/animations/stax/USBConnectionAndPin.json";

/* eslint-enable camelcase */
type ThemedAnimation = Record<Theme["theme"], Record<string, unknown>>;
Expand All @@ -149,7 +153,8 @@ export type AnimationKey =
| "firmwareUpdating"
| "installLoading"
| "confirmLockscreen"
| "recoverWithProtect";
| "recoverWithProtect"
| "connectionSuccess";
type DeviceAnimations = { [key in AnimationKey]: ThemedAnimation };

const nanoS: DeviceAnimations = {
Expand Down Expand Up @@ -197,6 +202,10 @@ const nanoS: DeviceAnimations = {
light: NANO_X_LIGHT_recoverWithProtect,
dark: NANO_X_DARK_recoverWithProtect,
},
connectionSuccess: {
light: STAX_USB_connection_success,
dark: STAX_USB_connection_success,
},
};

const nanoX: DeviceAnimations = {
Expand Down Expand Up @@ -244,6 +253,10 @@ const nanoX: DeviceAnimations = {
light: NANO_X_LIGHT_recoverWithProtect,
dark: NANO_X_DARK_recoverWithProtect,
},
connectionSuccess: {
light: STAX_USB_connection_success,
dark: STAX_USB_connection_success,
},
};

const nanoSP: DeviceAnimations = {
Expand Down Expand Up @@ -291,12 +304,16 @@ const nanoSP: DeviceAnimations = {
light: NANO_X_LIGHT_recoverWithProtect,
dark: NANO_X_DARK_recoverWithProtect,
},
connectionSuccess: {
light: STAX_USB_connection_success,
dark: STAX_USB_connection_success,
},
};

const stax: DeviceAnimations = {
plugAndPinCode: {
light: STAX_enterPin,
dark: STAX_enterPin,
light: STAX_plug_and_pin,
dark: STAX_plug_and_pin,
},
enterPinCode: {
light: STAX_enterPin,
Expand Down Expand Up @@ -338,6 +355,10 @@ const stax: DeviceAnimations = {
light: NANO_X_LIGHT_recoverWithProtect,
dark: NANO_X_DARK_recoverWithProtect,
},
connectionSuccess: {
light: STAX_USB_connection_success,
dark: STAX_USB_connection_success,
},
};

const blue: DeviceAnimations = {
Expand Down Expand Up @@ -386,6 +407,10 @@ const blue: DeviceAnimations = {
light: NANO_X_LIGHT_recoverWithProtect,
dark: NANO_X_DARK_recoverWithProtect,
},
connectionSuccess: {
light: STAX_USB_connection_success,
dark: STAX_USB_connection_success,
},
};

type Animations = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
import React, { PureComponent } from "react";
import { Buffer } from "buffer";
import { DeviceModelId } from "@ledgerhq/devices";
import { DeviceModelInfo } from "@ledgerhq/types-live";
import { createStructuredSelector } from "reselect";
import { connect } from "react-redux";
import styled from "styled-components";
import { dataToFrames } from "qrloop";
import { Settings, encode } from "@ledgerhq/live-common/cross";
import { activeAccountsSelector } from "~/renderer/reducers/accounts";
import { exportSettingsSelector } from "~/renderer/reducers/settings";
import {
exportSettingsSelector,
lastSeenDeviceSelector,
devicesModelListSelector,
} from "~/renderer/reducers/settings";

import QRCode from "~/renderer/components/QRCode";
import { Account } from "@ledgerhq/types-live";

const mapStateToProps = createStructuredSelector({
accounts: (state, props) => props.accounts || activeAccountsSelector(state),
settings: exportSettingsSelector,
device: state => lastSeenDeviceSelector(state) || null,
devices: state => devicesModelListSelector(state) || [],
});

const QRCodeContainer = styled.div`
Expand All @@ -30,6 +39,8 @@ type OwnProps = {
type Props = OwnProps & {
accounts: Account[];
settings: Settings;
devices: DeviceModelId[];
device: DeviceModelInfo | null;
};
class QRCodeExporter extends PureComponent<
Props,
Expand All @@ -45,10 +56,12 @@ class QRCodeExporter extends PureComponent<

constructor(props: Props) {
super(props);
const { accounts, settings } = props;
const { accounts, settings, device, devices } = props;
const data = encode({
accounts,
settings,
modelId: device?.modelId,
modelIdList: devices,
exporterName: "desktop",
exporterVersion: __APP_VERSION__,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ const MainSideBar = () => {
const displayBlueDot = useManagerBlueDot(lastSeenDevice);

const referralProgramConfig = useFeature("referralProgramDesktopSidebar");
const ptxEarnConfig = useFeature("ptxEarn");
const recoverFeature = useFeature("protectServicesDesktop");
const handleCollapse = useCallback(() => {
dispatch(setSidebarCollapsed(!collapsed));
Expand Down Expand Up @@ -442,6 +443,13 @@ const MainSideBar = () => {
onClick={handleClickEarn}
isActive={location.pathname === "/earn"}
collapsed={secondAnim}
NotifComponent={
ptxEarnConfig?.params?.isNew ? (
<CustomTag active type="plain" size="small">
{t("common.new")}
</CustomTag>
) : null
}
/>
</FeatureToggle>
<SideBarListItem
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback } from "react";
import { Flex, IconsLegacy, Tag, Text } from "@ledgerhq/react-ui";
import { Flex, Icons, Tag, Text } from "@ledgerhq/react-ui";
import { useTranslation } from "react-i18next";
// import { useHistory } from "react-router-dom";
import { PostOnboardingActionState, PostOnboardingAction } from "@ledgerhq/types-live";
Expand Down Expand Up @@ -42,8 +42,8 @@ const PostOnboardingActionRow: React.FC<Props> = props => {
},
})}
>
<Flex flexDirection="row" alignItems="center" flexShrink={1}>
<Icon size="M" color={completed ? "neutral.c70" : "primary.c80"} />
<Flex flexDirection="row" alignItems="flex-start" flexShrink={1}>
<Icon size="M" color={completed ? "neutral.c60" : "primary.c80"} />
<Flex ml={6} flexDirection="column" justifyContent="center" flex={1}>
<Text
variant="largeLineHeight"
Expand Down Expand Up @@ -73,9 +73,9 @@ const PostOnboardingActionRow: React.FC<Props> = props => {
</Tag>
) : null}
{completed ? (
<IconsLegacy.CheckAloneMedium color="success.c50" size={16} />
<Icons.Check color="success.c70" size={"M"} />
) : (
<IconsLegacy.ChevronRightMedium color="neutral.c100" size={16} />
<Icons.ChevronRight color="neutral.c100" size={"M"} />
)}
</Flex>
</ActionRowWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ const PostOnboardingScreen = () => {
flow={"post-onboarding"}
/>

<Text variant="paragraph" fontSize={48} mb={8} whiteSpace="pre-wrap">
<Text
variant="paragraph"
fontSize={40}
mb={8}
fontWeight="semiBold"
lineHeight="120%"
whiteSpace="pre-wrap"
>
{allDone
? t("postOnboarding.postOnboardingScreen.titleCompleted")
: t("postOnboarding.postOnboardingScreen.title")}
Expand Down
Loading

3 comments on commit 756150a

@vercel
Copy link

@vercel vercel bot commented on 756150a Sep 11, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 756150a Sep 11, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

ledger-live-docs – ./docs

ledger-live-docs-ledgerhq.vercel.app
ledger-live-docs.vercel.app
ledger-live-docs-git-main-ledgerhq.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 756150a Sep 11, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.