Skip to content

Commit d10f2bd

Browse files
authored
Merge pull request #507 from bitfinexcom/staging
Release version 4.33.0
2 parents 359f424 + 4767aec commit d10f2bd

14 files changed

Lines changed: 55 additions & 22 deletions

File tree

.eslintrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,11 @@
22
"env": {
33
"mocha": true
44
},
5-
"extends": "standard"
5+
"extends": "standard",
6+
"ignorePatterns": [
7+
".github",
8+
"bfx-report-ui",
9+
"bfx-reports-framework",
10+
"dist"
11+
]
612
}

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [4.33.0] - 2025-02-19
11+
12+
### Added
13+
14+
- Implemented `Electron` app menu bar and corresponding functionality in the UI title instead of the native one. This is very useful as it saves overall space and at the same time constantly displays the menu and does not require the user to press the `Alt` key to display it (as the practice has shown, because of the last one, many inexperienced users do not even know about the existence of menu functions). Available for the `Windows` and `Linux` app users. On the `Mac` we have to hide the menu in the UI and show the native electron menu bar due to some `MacOS` specifics, it's impossible to have proper menu item control from the UI. PR: [bfx-report-ui#898](https://github.com/bitfinexcom/bfx-report-ui/pull/898)
15+
- Added exponential backoff and jitter for bfx-api requests to improve `Rate Limit` bypassing. Here we implemented `Decorrelated Jitter` described in AWS article https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/ And added a small improvement to shift the starting point of jitter for each iteration. In practice, it helps better to move through the `Rate Limit` for the `Sync` and `Tax Report`. PR: [bfx-report#420](https://github.com/bitfinexcom/bfx-report/pull/420)
16+
17+
### Changed
18+
19+
- Changed font family to `Inter` similar to used on the main platform. PR: [bfx-report-ui#896](https://github.com/bitfinexcom/bfx-report-ui/pull/896)
20+
- Reworked and optimized `ThemeSwitcher` component in a more performant way and reduced redundant code. PR: [bfx-report-ui#897](https://github.com/bitfinexcom/bfx-report-ui/pull/897)
21+
- Changed the font family from `Roboto` to `Inter` in the Electron env to prevent throwing error due to the last UI changes (electron layouts use font source from the UI sub-module). PR: [bfx-report-electron#494](https://github.com/bitfinexcom/bfx-report-electron/pull/494)
22+
- Disabled native title menu bar to use UI implementation via Electron renderer IPC bridge. PR: [bfx-report-electron#504](https://github.com/bitfinexcom/bfx-report-electron/pull/504)
23+
- Migrated from `html-pdf` to `puppeteer` for `pdf` creation as the first one repo is not `maintained` anymore. PRs: [bfx-reports-framework#432](https://github.com/bitfinexcom/bfx-reports-framework/pull/432), [bfx-report#419](https://github.com/bitfinexcom/bfx-report/pull/419)
24+
25+
### Fixed
26+
27+
- Fixed setting `IS_AUTO_UPDATE_DISABLED` config flag for the `dev` mode. PR: [bfx-report-electron#484](https://github.com/bitfinexcom/bfx-report-electron/pull/484)
28+
- Fixed the UI setup flow for the `dev` mode. PR: [bfx-report-electron#485](https://github.com/bitfinexcom/bfx-report-electron/pull/485)
29+
- Fixed error metadata processing, related to this test pipeline: https://github.com/bitfinexcom/bfx-report/actions/runs/12114987593/job/33772854879 PR: [bfx-report#418](https://github.com/bitfinexcom/bfx-report/pull/418)
30+
1031
## [4.32.0] - 2025-01-22
1132

1233
### Added

bfx-report-ui

Submodule bfx-report-ui updated 41 files

electronEnv.json.example

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"NODE_ENV": "production",
33
"IS_AUTO_UPDATE_DISABLED": false,
4-
"REPO_OWNER": "bitfinexcom",
5-
"SHOW_NATIVE_TITLE_BAR": true
4+
"REPO_OWNER": "bitfinexcom"
65
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bfx-report-electron",
3-
"version": "4.32.0",
3+
"version": "4.33.0",
44
"repository": "https://github.com/bitfinexcom/bfx-report-electron",
55
"description": "Reporting tool",
66
"author": "bitfinex.com",

scripts/build-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ if [ $isAutoUpdateDisabled == 1 ]; then
153153
echo -e "\n${COLOR_YELLOW}Auto-update is turned off!${COLOR_NORMAL}"
154154

155155
sed -i".bak" -E -e \
156-
"s/\"IS_AUTO_UPDATE_DISABLED\": (false)|(true)/\"IS_AUTO_UPDATE_DISABLED\": true/g" \
156+
"s/\"IS_AUTO_UPDATE_DISABLED\": ((false)|(true))/\"IS_AUTO_UPDATE_DISABLED\": true/g" \
157157
"$ROOT/$ELECTRON_ENV_FILE_NAME"; rm -f "$ROOT/$ELECTRON_ENV_FILE_NAME.bak"
158158
else
159159
sed -i".bak" -E -e \
160-
"s/\"IS_AUTO_UPDATE_DISABLED\": (false)|(true)/\"IS_AUTO_UPDATE_DISABLED\": false/g" \
160+
"s/\"IS_AUTO_UPDATE_DISABLED\": ((false)|(true))/\"IS_AUTO_UPDATE_DISABLED\": false/g" \
161161
"$ROOT/$ELECTRON_ENV_FILE_NAME"; rm -f "$ROOT/$ELECTRON_ENV_FILE_NAME.bak"
162162
fi
163163

scripts/build-ui.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,12 @@ checkNodeModulesDir "$UI_FOLDER"
128128
npm ls --depth=0 --only=prod 1<&-
129129

130130
echo -e "\n${COLOR_BLUE}UI building...${COLOR_NORMAL}"
131-
mv -f "$ROOT/.eslintrc" "$ROOT/off-eslintrc"
132-
npm run build
133-
mv -f "$ROOT/off-eslintrc" "$ROOT/.eslintrc"
131+
mv -f "$ROOT/.eslintrc" "$ROOT/off-eslintrc" || [[ $? == 1 ]]
132+
npm run build || (
133+
echo -e "\n${COLOR_RED}The UI has not been built successful${COLOR_NORMAL}" >&2 &&
134+
exit 1
135+
)
136+
mv -f "$ROOT/off-eslintrc" "$ROOT/.eslintrc" || [[ $? == 1 ]]
134137

135138
if ! [ -s "$UI_BUILD_FOLDER/index.html" ]; then
136139
echo -e "\n${COLOR_RED}The UI has not been built successful${COLOR_NORMAL}" >&2

scripts/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ if [ $isAutoUpdateDisabled == 1 ]; then
9595
echo -e "\n${COLOR_YELLOW}Auto-update is turned off!${COLOR_NORMAL}"
9696

9797
sed -i".bak" -E -e \
98-
"s/\"IS_AUTO_UPDATE_DISABLED\": (false)|(true)/\"IS_AUTO_UPDATE_DISABLED\": true/g" \
98+
"s/\"IS_AUTO_UPDATE_DISABLED\": ((false)|(true))/\"IS_AUTO_UPDATE_DISABLED\": true/g" \
9999
"$ROOT/$ELECTRON_ENV_FILE_NAME"; rm -f "$ROOT/$ELECTRON_ENV_FILE_NAME.bak"
100100
else
101101
sed -i".bak" -E -e \
102-
"s/\"IS_AUTO_UPDATE_DISABLED\": (false)|(true)/\"IS_AUTO_UPDATE_DISABLED\": false/g" \
102+
"s/\"IS_AUTO_UPDATE_DISABLED\": ((false)|(true))/\"IS_AUTO_UPDATE_DISABLED\": false/g" \
103103
"$ROOT/$ELECTRON_ENV_FILE_NAME"; rm -f "$ROOT/$ELECTRON_ENV_FILE_NAME.bak"
104104
fi
105105

src/auto-updater/toast-src/toast.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
body .swal2-container {
2-
font-family: "Roboto", sans-serif;
2+
font-family: "Inter", sans-serif;
3+
font-feature-settings: 'tnum';
34
margin: 0;
45
}
56

0 commit comments

Comments
 (0)