Skip to content

Commit c683605

Browse files
authored
Merge pull request #333 from bitfinexcom/staging
Release version 4.20.0
2 parents 80d8d8b + 630b4a9 commit c683605

27 files changed

Lines changed: 315 additions & 118 deletions

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ bfx-reports-framework/config/*.json
1515
bfx-reports-framework/config/facs/*.json
1616
bfx-reports-framework/logs/*.log
1717
bfx-reports-framework/csv
18+
bfx-reports-framework/report-files
1819
bfx-report-ui/build
1920
bfx-report-ui/bfx-report-express/logs/*.log
2021
bfx-report-ui/bfx-report-express/config/*.json

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
REPO_OWNER=bitfinexcom
12
REPO_BRANCH=master
23
IS_BFX_API_STAGING=0
34
IS_DEV_ENV=0

.github/workflows/build-electron-app.yml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
isNotarizeDisabled:
2323
description: 'Is notarize disabled (true / 1)?'
2424
required: false
25+
repoOwner:
26+
description: 'Repository owner for auto-update'
27+
required: false
2528

2629
env:
2730
DOCKER_BUILDKIT: 1
@@ -36,11 +39,6 @@ jobs:
3639
uses: actions/checkout@v4
3740
with:
3841
submodules: recursive
39-
- name: Set repo owner
40-
run: |
41-
sed -i -e \
42-
"s/owner: '.*'/owner: '${{ github.repository_owner }}'/g" \
43-
"./electron-builder-config.js"
4442
- if: github.event.inputs.version != ''
4543
name: Set release version
4644
run: |
@@ -55,9 +53,16 @@ jobs:
5553
name: Use BFX API Staging for queries
5654
run: |
5755
echo "IS_BFX_API_STAGING=1" >> $GITHUB_ENV
56+
- name: Set repository owner for auto-update
57+
run: |
58+
if [[ "${{ github.event.inputs.repoOwner }}" != "" ]]; then
59+
echo "REPO_OWNER=${{ github.event.inputs.repoOwner }}" >> $GITHUB_ENV
60+
else
61+
echo "REPO_OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV
62+
fi
5863
- name: Cache Electron binaries
5964
id: electron-cache
60-
uses: actions/cache@v3
65+
uses: actions/cache@v4
6166
env:
6267
cache-name: electron-cache-v1
6368
with:
@@ -69,7 +74,7 @@ jobs:
6974
${{ runner.os }}-build-${{ env.cache-name }}-
7075
- name: Build release
7176
id: release-builder
72-
uses: nick-fields/retry@v2
77+
uses: nick-fields/retry@v3
7378
continue-on-error: false
7479
env:
7580
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -82,14 +87,14 @@ jobs:
8287
- name: Zip Linux Unpacked build
8388
run: zip -r dist/linux-unpacked.zip dist/linux-unpacked
8489
- name: Upload Linux Unpacked build
85-
uses: actions/upload-artifact@v3
90+
uses: actions/upload-artifact@v4
8691
with:
8792
name: linux-unpacked
8893
path: dist/linux-unpacked.zip
8994
- name: Zip Win Unpacked build
9095
run: zip -r dist/win-unpacked.zip dist/win-unpacked
9196
- name: Upload Win Unpacked build
92-
uses: actions/upload-artifact@v3
97+
uses: actions/upload-artifact@v4
9398
with:
9499
name: win-unpacked
95100
path: dist/win-unpacked.zip
@@ -110,11 +115,6 @@ jobs:
110115
run: |
111116
brew install gnu-sed
112117
echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
113-
- name: Set repo owner
114-
run: |
115-
sed -i -e \
116-
"s/owner: '.*'/owner: '${{ github.repository_owner }}'/g" \
117-
"./electron-builder-config.js"
118118
- if: github.event.inputs.version != ''
119119
name: Set release version
120120
run: |
@@ -133,12 +133,19 @@ jobs:
133133
name: Use BFX API Staging for queries
134134
run: |
135135
echo "IS_BFX_API_STAGING=1" >> $GITHUB_ENV
136-
- uses: actions/setup-node@v3
136+
- name: Set repository owner for auto-update
137+
run: |
138+
if [[ "${{ github.event.inputs.repoOwner }}" != "" ]]; then
139+
echo "REPO_OWNER=${{ github.event.inputs.repoOwner }}" >> $GITHUB_ENV
140+
else
141+
echo "REPO_OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV
142+
fi
143+
- uses: actions/setup-node@v4
137144
with:
138145
node-version: 18.17.1
139146
- name: Cache Electron binaries
140147
id: electron-cache
141-
uses: actions/cache@v3
148+
uses: actions/cache@v4
142149
env:
143150
cache-name: electron-cache-v1
144151
with:
@@ -149,7 +156,7 @@ jobs:
149156
${{ runner.os }}-build-${{ env.cache-name }}-
150157
- name: Build release
151158
id: release-builder
152-
uses: nick-fields/retry@v2
159+
uses: nick-fields/retry@v3
153160
continue-on-error: false
154161
env:
155162
APPLE_TEAM_ID: ${{ secrets.BFX_APPLE_TEAM_ID }}
@@ -175,7 +182,7 @@ jobs:
175182
- name: Zip Mac Unpacked build
176183
run: zip -r dist/mac.zip dist/mac
177184
- name: Upload Mac Unpacked build
178-
uses: actions/upload-artifact@v3
185+
uses: actions/upload-artifact@v4
179186
with:
180187
name: mac-unpacked
181188
path: dist/mac.zip
@@ -188,20 +195,20 @@ jobs:
188195
steps:
189196
- name: Checkout
190197
uses: actions/checkout@v4
191-
- uses: actions/setup-node@v3
198+
- uses: actions/setup-node@v4
192199
with:
193200
node-version: 18.17.1
194201
- name: Install main dev deps
195202
run: npm i --development --no-audit --progress=false --force
196203
- name: Download Linux Unpacked build
197-
uses: actions/download-artifact@v3
204+
uses: actions/download-artifact@v4
198205
with:
199206
name: linux-unpacked
200207
path: dist
201208
- name: Unzip Linux Unpacked build
202209
run: unzip dist/linux-unpacked.zip
203210
- name: Run tests
204-
uses: coactions/setup-xvfb@v1.0.1
211+
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
205212
with:
206213
run: npm run e2e
207214
- name: Normalize E2E test report
@@ -220,20 +227,20 @@ jobs:
220227
steps:
221228
- name: Checkout
222229
uses: actions/checkout@v4
223-
- uses: actions/setup-node@v3
230+
- uses: actions/setup-node@v4
224231
with:
225232
node-version: 18.17.1
226233
- name: Install main dev deps
227234
run: npm i --development --no-audit --progress=false --force
228235
- name: Download Linux Unpacked build
229-
uses: actions/download-artifact@v3
236+
uses: actions/download-artifact@v4
230237
with:
231238
name: win-unpacked
232239
path: dist
233240
- name: Unzip Win Unpacked build
234241
run: 7z -y x dist/win-unpacked.zip
235242
- name: Run tests
236-
uses: coactions/setup-xvfb@v1.0.1
243+
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
237244
with:
238245
run: npm run e2e
239246
- name: Normalize E2E test report
@@ -254,20 +261,20 @@ jobs:
254261
uses: actions/checkout@v4
255262
- name: Prepare Mac runner
256263
uses: ./.github/actions/prepare-mac-runner
257-
- uses: actions/setup-node@v3
264+
- uses: actions/setup-node@v4
258265
with:
259266
node-version: 18.17.1
260267
- name: Install main dev deps
261268
run: npm i --development --no-audit --progress=false --force
262269
- name: Download Mac Unpacked build
263-
uses: actions/download-artifact@v3
270+
uses: actions/download-artifact@v4
264271
with:
265272
name: mac-unpacked
266273
path: dist
267274
- name: Unzip Mac Unpacked build
268275
run: unzip dist/mac.zip
269276
- name: Run tests
270-
uses: coactions/setup-xvfb@v1.0.1
277+
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
271278
with:
272279
run: npm run e2e
273280
- name: Normalize E2E test report

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
submodules: recursive
21-
- uses: actions/setup-node@v3
21+
- uses: actions/setup-node@v4
2222
with:
2323
node-version: 18.17.1
2424
- name: Setup configs and install deps

.github/workflows/e2e-test-report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
e2e-web-page-report:
1717
name: E2E Web Page Report
1818
runs-on: ubuntu-22.04
19+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1920
steps:
2021
- uses: dorny/test-reporter@v1
2122
id: linux-e2e-test-results

.github/workflows/test-report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
web-page-report:
1717
name: Web Page Report
1818
runs-on: ubuntu-22.04
19+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1920
steps:
2021
- uses: dorny/test-reporter@v1
2122
id: test-results

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [4.20.0] - 2024-03-06
11+
12+
### Added
13+
14+
- Added missing translations for `2FA`. PR: [bfx-report-ui#774](https://github.com/bitfinexcom/bfx-report-ui/pull/774)
15+
- Implemented exporting to PDF support for `Ledgers` and `Tax Reports`. PRs: [bfx-report#347](https://github.com/bitfinexcom/bfx-report/pull/347), [bfx-reports-framework#352](https://github.com/bitfinexcom/bfx-reports-framework/pull/352), [bfx-report-electron#319](https://github.com/bitfinexcom/bfx-report-electron/pull/319), [bfx-ext-pdf-js#4](https://github.com/bitfinexcom/bfx-ext-pdf-js/pull/4), [bfx-report#349](https://github.com/bitfinexcom/bfx-report/pull/349), [bfx-reports-framework#354](https://github.com/bitfinexcom/bfx-reports-framework/pull/354), [bfx-report-ui#775](https://github.com/bitfinexcom/bfx-report-ui/pull/775)
16+
- Added detection for `BFX` auth error: `ERR_AUTH_API: ERR_TOKEN_ALREADY_USED`. PR: [bfx-report#348](https://github.com/bitfinexcom/bfx-report/pull/348)
17+
- Added improvements to the token refresh flow: stop the auth token refresh interval if catch an auth error. PR: [bfx-reports-framework#353](https://github.com/bitfinexcom/bfx-reports-framework/pull/353)
18+
- Added option to set repo owner for auto-update in manual run. PR: [bfx-report-electron#331](https://github.com/bitfinexcom/bfx-report-electron/pull/331)
19+
20+
### Changed
21+
22+
- Reworked navigation for the `Movements` report according to the latest UX improvement proposals: remove tabs from wallets & movements, make movements a separate navigation item under `My History`. PR: [bfx-report-ui#771](https://github.com/bitfinexcom/bfx-report-ui/pull/771)
23+
- Reworked navigation for the `My History` section according to the latest UX improvement proposals. PR: [bfx-report-ui#778](https://github.com/bitfinexcom/bfx-report-ui/pull/778)
24+
- Enhanced `loading` and `no data` states representation for reports with tables. PR: [bfx-report-ui#779](https://github.com/bitfinexcom/bfx-report-ui/pull/779)
25+
- Set `90sec` timeout for grc requests to have the same timeout as for api requests. PR: [bfx-report#351](https://github.com/bitfinexcom/bfx-report/pull/351)
26+
- Set `90sec` timeout for `html-pdf` lib. PR: [bfx-reports-framework#355](https://github.com/bitfinexcom/bfx-reports-framework/pull/355)
27+
- Optimized GitHub Actions Workflow for release build. PR: [bfx-report-electron#322](https://github.com/bitfinexcom/bfx-report-electron/pull/322)
28+
- Updated Actions to use Nodejs `v20`. PR: [bfx-report-electron#323](https://github.com/bitfinexcom/bfx-report-electron/pull/323)
29+
30+
### Fixed
31+
32+
- Updated UI engines configuration to prevent issues. PR: [bfx-report-ui#772](https://github.com/bitfinexcom/bfx-report-ui/pull/772)
33+
- Fixed `2FA` authorization flow according to: After the first push of the auth button, we should lock the button (till we get any response from this endpoint) to prevent sending several of the same requests. PR: [bfx-report-ui#776](https://github.com/bitfinexcom/bfx-report-ui/pull/776)
34+
- Fixed the potential possibility of duplicated sending for correct `OTP`: it should keep btn disabled until the successful auth will be completed. PR: [bfx-report-ui#780](https://github.com/bitfinexcom/bfx-report-ui/pull/780)
35+
- Fixed 11 `auto-update-toast:width` listeners added. PR: [bfx-report-electron#330](https://github.com/bitfinexcom/bfx-report-electron/pull/330)
36+
1037
## [4.19.0] - 2024-02-14
1138

1239
### Added

Dockerfile.linux-builder

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN ./scripts/helpers/install-nodejs.sh ${NODE_VERSION} \
1414
bc \
1515
&& apt-get clean \
1616
&& rm -rf /var/lib/apt/lists/*
17+
RUN chown root:root .
1718

1819
COPY . .
1920

Dockerfile.mac-builder

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN ./scripts/helpers/install-nodejs.sh ${NODE_VERSION} \
1414
bc \
1515
&& apt-get clean \
1616
&& rm -rf /var/lib/apt/lists/*
17+
RUN chown root:root .
1718

1819
COPY . .
1920

Dockerfile.ui-builder

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ENV IS_DEV_ENV=${IS_DEV_ENV:-0}
88
COPY ./scripts/helpers/install-nodejs.sh ./scripts/helpers/install-nodejs.sh
99

1010
RUN ./scripts/helpers/install-nodejs.sh ${NODE_VERSION}
11+
RUN chown root:root .
1112

1213
COPY . .
1314

0 commit comments

Comments
 (0)