Skip to content

Commit fd02658

Browse files
authored
Release/2.1.0 (#1202)
* Add PortalTooltip * Add MaybeLink * Add HashTooltip * Add CopyToClipboardComponent * Add HeaderSigningAccount * Add ActiveOriginFavicon redux state * Add Hunan readable signing page * Update tooltip behaviour * Add disabled state to modal * Refactor Hash component: integrate `PortalTooltip`, restructure props, and update UI * Prepare app to execution_type_id = 7 * Add copy icon functionality and enhance `AccountInfoRow` component props * Refactor deploy action row components to accept individual props instead of deploy objects and add optional `contractLink` and `accountLink` support. * Add `nftTokenUrlsMap` support to NFT-related components and update `casper-wallet-core` dependency * Try to fix an issue with wrapping on Windows Chrome * Update `casper-wallet-core` dependency to latest commit * Update `casper-wallet-core` dependency and adjust truncated size in `unknown-contract-action-rows` component * Release 2.1.0 version
1 parent 4469701 commit fd02658

71 files changed

Lines changed: 2257 additions & 1177 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 45 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Casper Wallet",
33
"description": "Securely manage your CSPR tokens and interact with dapps with the self-custody wallet for the Casper blockchain.",
4-
"version": "2.0.5",
4+
"version": "2.1.0",
55
"author": "MAKE LLC",
66
"scripts": {
77
"devtools:redux": "redux-devtools --hostname=localhost",
@@ -70,8 +70,8 @@
7070
"@zondax/ledger-casper": "^2.6.3",
7171
"base64-loader": "1.0.0",
7272
"big.js": "^6.2.1",
73-
"casper-js-sdk": "5.0.5",
74-
"casper-wallet-core": "git+ssh://git@github.com:make-software/casper-wallet-core.git#v1.0.5",
73+
"casper-js-sdk": "^5.0.6",
74+
"casper-wallet-core": "git+ssh://git@github.com:make-software/casper-wallet-core.git#v1.1.0",
7575
"confetti-js": "^0.0.18",
7676
"date-fns": "^2.30.0",
7777
"dotenv-webpack": "^8.1.0",

scripts/build_all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
HASH=$(git rev-parse --short HEAD)
22

3-
npm run build:chrome && npm run build:firefox && cd ./build && zip -r casper-wallet-2.0.4#$HASH.zip ./* && npm run build:src
3+
npm run build:chrome && npm run build:firefox && cd ./build && zip -r casper-wallet-2.1.0rc8#$HASH.zip ./* && npm run build:src

src/apps/connect-to-app/pages/select-account/content.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export function SelectAccountContent({
142142
{account.name}
143143
</Typography>
144144
<Hash
145+
label={t('Public key')}
145146
value={account.publicKey}
146147
variant={HashVariant.CaptionHash}
147148
truncated

src/apps/connect-to-app/pages/switch-account/content.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export function SwitchAccountContent({ requestId }: SwitchAccountContentProps) {
146146
/>
147147
<Typography type="body">{account.name}</Typography>
148148
<Hash
149+
label={t('Public key')}
149150
value={account.publicKey}
150151
csprName={csprName}
151152
variant={HashVariant.CaptionHash}

src/apps/connect-to-app/pages/switch-account/unconnected-accounts-list.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const UnconnectedAccountsList = ({
8181
/>
8282
<Typography type="body">{unconnectedAccount.name}</Typography>
8383
<Hash
84+
label={t('Public key')}
8485
value={unconnectedAccount.publicKey}
8586
variant={HashVariant.CaptionHash}
8687
csprName={csprName}

src/apps/popup/pages/connect-another-account/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export function ConnectAnotherAccountPageContent() {
111111
<LeftAlignedFlexColumn>
112112
<Typography type="body">{targetAccount.name}</Typography>
113113
<Hash
114+
label={t('Public key')}
114115
value={targetAccount.publicKey}
115116
csprName={targetAccountCsprName}
116117
variant={HashVariant.CaptionHash}
@@ -153,6 +154,7 @@ export function ConnectAnotherAccountPageContent() {
153154
<LeftAlignedFlexColumn>
154155
<Typography type="body">{account.name}</Typography>
155156
<Hash
157+
label={t('Public key')}
156158
value={account.publicKey}
157159
variant={HashVariant.CaptionHash}
158160
csprName={csprName}

src/apps/popup/pages/connected-sites/site-group-item.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Maybe } from 'casper-wallet-core/src/typings/common';
22
import React from 'react';
3+
import { useTranslation } from 'react-i18next';
34
import styled from 'styled-components';
45

56
import {
@@ -35,13 +36,16 @@ export function SiteGroupItem({
3536
hardware,
3637
csprName
3738
}: SiteGroupItemProps) {
39+
const { t } = useTranslation();
40+
3841
return (
3942
<SiteGroupItemContainer>
4043
<AccountNameAndPublicKeyContainer>
4144
<Typography type="body" dataTestId="account-name">
4245
{name}
4346
</Typography>
4447
<Hash
48+
label={t('Public key')}
4549
variant={HashVariant.CaptionHash}
4650
csprName={csprName}
4751
value={publicKey}

src/apps/popup/pages/contacts/components/contacts-plate.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Maybe } from 'casper-wallet-core/src/typings/common';
22
import React from 'react';
3+
import { useTranslation } from 'react-i18next';
34
import styled from 'styled-components';
45

56
import { RouterPath, useTypedNavigate } from '@popup/router';
@@ -27,6 +28,7 @@ export const ContactsPlate = ({
2728
brandingLogo
2829
}: ContactsPlateProps) => {
2930
const navigate = useTypedNavigate();
31+
const { t } = useTranslation();
3032

3133
return (
3234
<Container
@@ -44,6 +46,7 @@ export const ContactsPlate = ({
4446
<FlexColumn>
4547
<Typography type="captionRegular">{name}</Typography>
4648
<Hash
49+
label={t('Public key')}
4750
value={publicKey}
4851
csprName={csprName}
4952
variant={HashVariant.CaptionHash}

src/apps/popup/pages/deploy-details/components/action-rows/associated-action-rows.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ interface AssociatedActionRowsProps {
2020
contractPackageHash: string;
2121
contractName: string;
2222
callerAccountInfo: Maybe<IAccountInfo>;
23+
contractLink?: Maybe<string>;
2324
}
2425

2526
export const AssociatedActionRows = ({
2627
publicKey,
2728
contractPackageHash,
2829
contractName,
29-
callerAccountInfo
30+
callerAccountInfo,
31+
contractLink
3032
}: AssociatedActionRowsProps) => {
3133
const { t } = useTranslation();
3234

@@ -47,6 +49,7 @@ export const AssociatedActionRows = ({
4749
isAction
4850
csprName={callerAccountInfo?.csprName}
4951
imgLogo={callerAccountInfo?.brandingLogo}
52+
accountLink={callerAccountInfo?.explorerLink}
5053
/>
5154
</AlignedFlexRow>
5255
<AlignedFlexRow gap={SpacingSize.Small}>
@@ -59,7 +62,7 @@ export const AssociatedActionRows = ({
5962
accountName={contractName}
6063
iconUrl={DeployIcon.AssociatedKeys}
6164
/>
62-
<Link color="contentAction" href={link} target="_blank">
65+
<Link color="contentAction" href={contractLink ?? link} target="_blank">
6366
<Typography type="captionRegular">{contractName}</Typography>
6467
</Link>
6568
</AlignedFlexRow>

0 commit comments

Comments
 (0)