Skip to content

Commit

Permalink
feat:merged dev updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 committed Oct 16, 2023
2 parents 863e2d2 + d79ee62 commit f2802dd
Show file tree
Hide file tree
Showing 227 changed files with 3,570 additions and 1,972 deletions.
15 changes: 15 additions & 0 deletions .dependency-cruiser.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ module.exports = {
path: '^(domain|constants|sys|_linklist|_stream_wrap)$',
},
},
// Overriding from recommended set
{
name: 'not-to-unresolvable',
comment:
"This module depends on a module that cannot be found ('resolved to disk'). " +
"If it's an npm module: add it to your package.json. In all other cases you " +
'likely already know what to do.',
severity: 'error',
from: {},
to: {
// Depcruiser fails on some legitimate type imports, so allowing them there
dependencyTypesNot: ['type-only'],
couldNotResolve: true,
},
},
{
name: 'no-orphans',
severity: 'error',
Expand Down
85 changes: 31 additions & 54 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
@@ -1,94 +1,71 @@
name: PR Extensions builds
on: [pull_request, workflow_dispatch]

env:
COINBASE_APP_ID: ${{ secrets.COINBASE_APP_ID }}
MOONPAY_API_KEY: ${{ secrets.MOONPAY_API_KEY }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_STAGING }}
TRANSAK_API_KEY: ${{ secrets.TRANSAK_API_KEY }}
WALLET_ENVIRONMENT: feature

jobs:
pre-run:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@ad6cb1b847ffb509a69b745b6ee2f1d14dfe14b8
uses: styfle/cancel-workflow-action@main
with:
access_token: ${{ github.token }}

update-pull-request-body:
name: Add links to built extensions
set-in-progress-message:
if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
needs:
- pre-run
steps:
- 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: '> _Building Leather…_'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build_chrome_extension:
name: Build debug Chrome extension
build:
name: build-${{ matrix.target }}-extension
runs-on: ubuntu-latest
needs:
- pre-run
strategy:
matrix:
target: [chromium, firefox]
env:
WALLET_ENVIRONMENT: feature
TARGET_BROWSER: ${{ matrix.target }}
COINBASE_APP_ID: ${{ secrets.COINBASE_APP_ID }}
MOONPAY_API_KEY: ${{ secrets.MOONPAY_API_KEY }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_STAGING }}
TRANSAK_API_KEY: ${{ secrets.TRANSAK_API_KEY }}
PR_NUMBER: ${{ github.event.number }}
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
id: cache-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/package.json') }}
ref: ${{ github.event.pull_request.head.sha }}

- uses: ./.github/actions/provision

- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV

- name: Build project
run: yarn build

- name: Build extension
run: sh build-ext.sh

- uses: actions/upload-artifact@v3
name: Upload Chrome Extension Zip
name: Upload ${{ matrix.target }} Extension Zip
with:
name: stacks-wallet-chromium
path: leather-chromium.zip
name: leather-${{ matrix.target }}-${{ env.SHORT_SHA }}
path: dist

build_firefox:
name: Build debug Firefox extension
set-download-link:
if: github.repository == 'leather-wallet/extension' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
needs:
- pre-run
env:
TARGET_BROWSER: firefox
- build
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

- uses: actions/cache@v3
id: cache-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/package.json') }}

- uses: ./.github/actions/provision

- name: Build project
run: yarn build

- name: Build extension
run: sh build-ext.sh

- name: Rename file
run: mv leather-chromium.zip leather-firefox.zip

- uses: actions/upload-artifact@v3
- uses: kyranjamie/[email protected]
with:
name: stacks-wallet-firefox
path: leather-firefox.zip
header: '> Try out this version of Leather — [download extension builds](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions .github/workflows/create-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@ jobs:
with:
name: release-notes
path: release-notes.txt

- name: Merge main -> dev
uses: devmasx/merge-branch@master
continue-on-error: true
with:
type: now
from_branch: main
target_branch: dev
message: 'chore: post-release merge back'
github_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@ad6cb1b847ffb509a69b745b6ee2f1d14dfe14b8
uses: styfle/cancel-workflow-action@main
with:
access_token: ${{ github.token }}

Expand Down
92 changes: 92 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,95 @@
## [6.11.0](https://github.com/leather-wallet/extension/compare/v6.10.0...v6.11.0) (2023-10-13)


### Features

* sBTC devenv network ([1eb34b8](https://github.com/leather-wallet/extension/commit/1eb34b8324cb09e73f4dabe0768c37301d5c7c2f))


### Bug Fixes

* alter position of receive modal in extension view, [#4165](https://github.com/leather-wallet/extension/issues/4165) ([07989ae](https://github.com/leather-wallet/extension/commit/07989ae39e199000e0abf9cb420dc5eabea3e5eb))
* change tab hover bg colour, closes [#4249](https://github.com/leather-wallet/extension/issues/4249) ([1f8e863](https://github.com/leather-wallet/extension/commit/1f8e8631d1c57df81895ae64df820a1dc066fd6c))
* give activity screen a min height to stop it jumping when empty, closes [#4249](https://github.com/leather-wallet/extension/issues/4249) ([75466bd](https://github.com/leather-wallet/extension/commit/75466bdb20af9d5443b31ec3fa4708b75f707ff4))
* improve display of select account in extension mode, [#4165](https://github.com/leather-wallet/extension/issues/4165) ([f09aec3](https://github.com/leather-wallet/extension/commit/f09aec34ab1e395f04424a8357f3ed3f0ab352a7))
* make adjustments based on PR review feedback ([29c5d59](https://github.com/leather-wallet/extension/commit/29c5d59c34b562097478971fa5230bb13d5218d6))
* name wrapper more specifically ([230fe46](https://github.com/leather-wallet/extension/commit/230fe46abafafd71e3434779bdb7c4b591736c0b))
* properly switch between 12 and 24 word inputs, closes [#4250](https://github.com/leather-wallet/extension/issues/4250) ([1a86b85](https://github.com/leather-wallet/extension/commit/1a86b85a4bede129c2b880cdbbff1be2f6cce504))
* stop create account button disappearing at smaller heights, [#4165](https://github.com/leather-wallet/extension/issues/4165) ([f166a31](https://github.com/leather-wallet/extension/commit/f166a31e50aed555c6a54495caf742e704c19461))
* update address displayer to use text-subdued for odd, closes [#4249](https://github.com/leather-wallet/extension/issues/4249) ([a9562c6](https://github.com/leather-wallet/extension/commit/a9562c616166fa6e44760a587c798d21c125d593))
* update collectible header font and align icon, closes [#4290](https://github.com/leather-wallet/extension/issues/4290) ([e88a18b](https://github.com/leather-wallet/extension/commit/e88a18bdf70ce719aa98f0a9e29da1dad5856082))


### Internal

* fix missing protocol ([ba1a712](https://github.com/leather-wallet/extension/commit/ba1a712cda14574ef0a24ee66fc4328d83fbc956))

## [6.10.0](https://github.com/leather-wallet/extension/compare/v6.9.2...v6.10.0) (2023-10-11)


### Features

* stacks multisig support, closes [#3889](https://github.com/leather-wallet/extension/issues/3889) ([9dabfc2](https://github.com/leather-wallet/extension/commit/9dabfc28f5c0273bfcee6130ad48209cb1621d36))


### Bug Fixes

* outdated version warning ([d56b52c](https://github.com/leather-wallet/extension/commit/d56b52cd5df7f03c281b59ca0f84fad561a95ff2))
* outdated version warning ([c0e859c](https://github.com/leather-wallet/extension/commit/c0e859c2d3bbf024766662890a9345fe1c24739d))
* regtest addresses, closes [#4223](https://github.com/leather-wallet/extension/issues/4223) ([eedbed5](https://github.com/leather-wallet/extension/commit/eedbed51d723aa4f1cbcb9aef883e94a0a3c18b2))


### Internal

* build job ([917a00b](https://github.com/leather-wallet/extension/commit/917a00b99127a166eb9d0a5e604a9ef00a723be7))
* improve pr-time messaging ([f26c5fe](https://github.com/leather-wallet/extension/commit/f26c5fe336c67dfd9760274215d12861b70cdf9c))

## [6.9.2](https://github.com/leather-wallet/extension/compare/v6.9.1...v6.9.2) (2023-10-04)


### Bug Fixes

* add mnemonic field validation, closes [#4130](https://github.com/leather-wallet/extension/issues/4130) ([b7970d5](https://github.com/leather-wallet/extension/commit/b7970d5f9285388d03374ccdacf046945574b1ad))
* adjust padding of numerical slot, closes [#4243](https://github.com/leather-wallet/extension/issues/4243) ([55019df](https://github.com/leather-wallet/extension/commit/55019dff89495dafce60d632c10ac4e2446851d0))
* do not disable button using dirty flag ([1a31a7b](https://github.com/leather-wallet/extension/commit/1a31a7b6d134e04c8f59f5be9ac847aff0add57e))
* filter spam transactions from activity, closes [#4017](https://github.com/leather-wallet/extension/issues/4017) ([b1bf006](https://github.com/leather-wallet/extension/commit/b1bf0061c993e09576fa1d0e12fcf846378a66d7))
* fix prettier ([0775186](https://github.com/leather-wallet/extension/commit/0775186bda024388133f5fa278c0582575c2fbef))
* fix responsive style of funding page, closes [#66](https://github.com/leather-wallet/extension/issues/66) ([361c970](https://github.com/leather-wallet/extension/commit/361c9709c93e7fb7f2402567af52f6a992019bfc))
* fix spacing between content ([31850ba](https://github.com/leather-wallet/extension/commit/31850ba953820614dc36b51b503c790d0407bea0))
* reduce zIndex so that onClick works consistently without needing to double click ([5f44d5a](https://github.com/leather-wallet/extension/commit/5f44d5a2de8dd0b0ac917766732d12fdb7862371))
* remove legacy bip 39 library, closes [#4130](https://github.com/leather-wallet/extension/issues/4130) ([4a4185a](https://github.com/leather-wallet/extension/commit/4a4185a1eab0e550662d8f1cf93cb37fa5d98c49))
* roll back use of useFocus as it prevents formik validation from properly indicating isTouched ([0f629b0](https://github.com/leather-wallet/extension/commit/0f629b0177d41ad326112b5957042e26af416c9d))
* use psuedo-elements to specify borders ([586af95](https://github.com/leather-wallet/extension/commit/586af95683b45b860de2b298f02fe3696ab5f4d5))


### Internal

* apply requested changes from pr feedback ([027025f](https://github.com/leather-wallet/extension/commit/027025f0630df440318a5be89a81151d99dacce6))
* fix readme ([4d03eb5](https://github.com/leather-wallet/extension/commit/4d03eb5f4c7430372af3715d0a1155832a68437c))
* ordinal aware utxo query, closes [#4163](https://github.com/leather-wallet/extension/issues/4163) ([9f8291f](https://github.com/leather-wallet/extension/commit/9f8291f78b98ac48d25267bc72a236252c818f51))
* upgrade panda & other deps ([1489864](https://github.com/leather-wallet/extension/commit/148986456e3c75bb0f82a4f629ccd58a525dcb9e))

## [6.9.1](https://github.com/leather-wallet/extension/compare/v6.9.0...v6.9.1) (2023-10-02)


### Bug Fixes

* add array notation lint ([481b28d](https://github.com/leather-wallet/extension/commit/481b28d7c1a6ddbf8c1619887b7b71390e64b425))
* add spam filtering to fungible token assets, closes [#4252](https://github.com/leather-wallet/extension/issues/4252) ([b56c27b](https://github.com/leather-wallet/extension/commit/b56c27ba5e5f8da85a9582340671aef0ba1c584f))
* reenable transak, closes [#4267](https://github.com/leather-wallet/extension/issues/4267) ([b2fd8c3](https://github.com/leather-wallet/extension/commit/b2fd8c3ce0b503b53bc10843d4d217741a133eba))
* send inscription error processing, closes [#4286](https://github.com/leather-wallet/extension/issues/4286) ([f73f3a4](https://github.com/leather-wallet/extension/commit/f73f3a44979aa3147537806217a2954a38acedc9))
* set background colour of dialog for dark mode, closes [#4282](https://github.com/leather-wallet/extension/issues/4282) ([b4e9b75](https://github.com/leather-wallet/extension/commit/b4e9b75cd2b75a072a4d6517d94175de21c03d5c))
* stx transfer test ([da669d1](https://github.com/leather-wallet/extension/commit/da669d1761d56807760da8e32f5c0704011316c5))
* temporarily disable test ([a149517](https://github.com/leather-wallet/extension/commit/a1495171ee7509e8e52cd9db70901460918eba5b))


### Internal

* missing env var ([7f7c7c5](https://github.com/leather-wallet/extension/commit/7f7c7c526f0fa28a1c9cfb07db9f2e1a291a3316))
* remove legacy integration tests ([6c507c2](https://github.com/leather-wallet/extension/commit/6c507c24013c7c920f4bcca36f6d824dc9e38768))
* ugprade packages ([41ec75c](https://github.com/leather-wallet/extension/commit/41ec75c6d3ecedb694ff53eec6e907d6c4fd7fef))
* upgrade scure/noble pkgs ([949311a](https://github.com/leather-wallet/extension/commit/949311aaaf0ab6f91e03eabbe8214ee305a0b4cb))

## [6.9.0](https://github.com/leather-wallet/extension/compare/v6.8.2...v6.9.0) (2023-09-26)


Expand Down
Loading

0 comments on commit f2802dd

Please sign in to comment.