-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4676 from leather-wallet/release/tuesday-morning
Release/tuesday morning
- Loading branch information
Showing
74 changed files
with
1,675 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,8 @@ jobs: | |
- pre-run | ||
strategy: | ||
matrix: | ||
target: [chromium, firefox] | ||
# Firefox removed while off store | ||
target: [chromium] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -65,7 +66,12 @@ jobs: | |
- pre-run | ||
- build | ||
steps: | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
id: extract_branch | ||
|
||
- uses: kyranjamie/[email protected] | ||
with: | ||
header: '> Try out this version of Leather — [download extension builds](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).' | ||
header: '> Try out this version of Leather — [Extension build](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}), [Test report](https://leather-wallet.github.io/playwright-reports/${{ steps.extract_branch.outputs.branch }})' | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: GH pages | ||
name: Publish unit test coverage | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"prettier.documentSelectors": ["src/**/*.{ts,tsx}", "*.{js,json}"], | ||
"vitest.include": ["src/**/*.spec.ts"], | ||
"githubPullRequests.ignoredPullRequestBranches": ["dev"] | ||
"githubPullRequests.ignoredPullRequestBranches": ["dev"], | ||
"typescript.preferences.preferTypeOnlyAutoImports": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...components/message-signing-disclaimer.tsx → ...components/message-signing-disclaimer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
src/app/features/stacks-message-signer/components/stacks-signature-message-content.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { ChainID, bytesToHex } from '@stacks/common'; | ||
import { hashMessage } from '@stacks/encryption'; | ||
|
||
import { UnsignedMessage } from '@shared/signature/signature-types'; | ||
|
||
import { NoFeesWarningRow } from '@app/components/no-fees-warning-row'; | ||
|
||
import { MessagePreviewBox } from '../../../features/message-signer/message-preview-box'; | ||
import { SignMessageActions } from '../../../features/message-signer/stacks-sign-message-action'; | ||
import { Utf8Payload } from '../stacks-message-signing'; | ||
import { StacksMessageSigningDisclaimer } from './message-signing-disclaimer'; | ||
|
||
interface SignatureRequestMessageContentProps { | ||
isLoading: boolean; | ||
onSignMessage(unsignedMessage: UnsignedMessage): Promise<void>; | ||
onCancelMessageSigning(): void; | ||
payload: Utf8Payload; | ||
} | ||
export function StacksSignatureRequestMessageContent({ | ||
isLoading, | ||
onSignMessage, | ||
onCancelMessageSigning, | ||
payload, | ||
}: SignatureRequestMessageContentProps) { | ||
return ( | ||
<> | ||
<MessagePreviewBox | ||
message={payload.message} | ||
hash={bytesToHex(hashMessage(payload.message))} | ||
/> | ||
<NoFeesWarningRow chainId={payload.network?.chainId ?? ChainID.Testnet} /> | ||
<SignMessageActions | ||
isLoading={isLoading} | ||
onSignMessageCancel={onCancelMessageSigning} | ||
onSignMessage={() => onSignMessage({ messageType: 'utf8', message: payload.message })} | ||
/> | ||
<hr /> | ||
<StacksMessageSigningDisclaimer appName={payload.appName} /> | ||
</> | ||
); | ||
} |
File renamed without changes.
43 changes: 43 additions & 0 deletions
43
src/app/features/stacks-message-signer/components/structured-data-content.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { ChainID } from '@stacks/common'; | ||
|
||
import { UnsignedMessage } from '@shared/signature/signature-types'; | ||
|
||
import { NoFeesWarningRow } from '@app/components/no-fees-warning-row'; | ||
import { SignMessageActions } from '@app/features/message-signer/stacks-sign-message-action'; | ||
|
||
import { StructuredPayload } from '../stacks-message-signing'; | ||
import { StacksMessageSigningDisclaimer } from './message-signing-disclaimer'; | ||
import { StructuredDataBox } from './structured-data-box'; | ||
|
||
interface SignatureRequestStructuredDataContentProps { | ||
isLoading: boolean; | ||
onSignMessage(unsignedMessage: UnsignedMessage): Promise<void>; | ||
onCancelMessageSigning(): void; | ||
payload: StructuredPayload; | ||
} | ||
export function SignatureRequestStructuredDataContent({ | ||
isLoading, | ||
onSignMessage, | ||
onCancelMessageSigning, | ||
payload, | ||
}: SignatureRequestStructuredDataContentProps) { | ||
return ( | ||
<> | ||
<StructuredDataBox message={payload.message} domain={payload.domain} /> | ||
<NoFeesWarningRow chainId={payload.network?.chainId ?? ChainID.Testnet} /> | ||
<SignMessageActions | ||
isLoading={isLoading} | ||
onSignMessageCancel={onCancelMessageSigning} | ||
onSignMessage={() => | ||
onSignMessage({ | ||
messageType: 'structured', | ||
message: payload.message, | ||
domain: payload.domain, | ||
}) | ||
} | ||
/> | ||
<hr /> | ||
<StacksMessageSigningDisclaimer appName={payload.appName} /> | ||
</> | ||
); | ||
} |
Oops, something went wrong.