Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
3268783
Use implemented modal win for show-docs module
ZIMkaRU Dec 5, 2025
71cdeec
Fix closing-showing modal windows in sequence
ZIMkaRU Dec 8, 2025
d157401
Add ability to set up confirm btn for show-docs module
ZIMkaRU Dec 8, 2025
00ac87b
Add ability to show full changelog
ZIMkaRU Dec 8, 2025
1682441
Add en translations for changelog
ZIMkaRU Dec 8, 2025
164c698
Add method to send close modal event
ZIMkaRU Dec 9, 2025
b367a03
Fix set window height method registration
ZIMkaRU Dec 9, 2025
628bc53
Register on close modal event method in preload script
ZIMkaRU Dec 9, 2025
7bdd93d
Handle close modal event in renderer
ZIMkaRU Dec 9, 2025
e708b5e
Provide ability to close modal win if clicking outside
ZIMkaRU Dec 9, 2025
fcc896b
Close show-docs modal win if clicking outside
ZIMkaRU Dec 9, 2025
c8dfd95
Improve handling close modal event in renderer
ZIMkaRU Dec 9, 2025
56b6638
Add ru translations for changelog modal win
ZIMkaRU Dec 10, 2025
a44ce94
Add es-EM translations for changelog modal win
ZIMkaRU Dec 10, 2025
7ffc08d
Add pt-BR translations for changelog modal win
ZIMkaRU Dec 10, 2025
83258c3
Add tr translations for changelog modal win
ZIMkaRU Dec 10, 2025
5e4e6fb
Add vi translations for changelog modal win
ZIMkaRU Dec 10, 2025
001b47f
Add zh-CN translations for changelog modal win
ZIMkaRU Dec 10, 2025
7c11c33
Add zh-TW translations for changelog modal win
ZIMkaRU Dec 10, 2025
f27ecea
Provide flag to open dev tools for modal win
ZIMkaRU Dec 11, 2025
a684432
Disallow window minimize for modal win
ZIMkaRU Dec 11, 2025
8a7750f
Add layout structure for win close btn
ZIMkaRU Dec 11, 2025
5cf2d49
Add styles for win close btn
ZIMkaRU Dec 11, 2025
45a12df
Add logic for win close btn
ZIMkaRU Dec 11, 2025
4a05e01
Add flag to show win close btn in show-docs module
ZIMkaRU Dec 11, 2025
4e56d37
Show win close btn for full changelog view
ZIMkaRU Dec 11, 2025
5e51bb1
Fix closing modal window on mac
ZIMkaRU Dec 12, 2025
fabf698
Merge pull request #575 from ZIMkaRU/feature/use-implemented-modal-wi…
batrudinych Dec 15, 2025
7c0ce8c
Bump version up to v4.40.1
ZIMkaRU Dec 19, 2025
c3a3e1b
Add changelog for v4.40.1
ZIMkaRU Dec 19, 2025
efcb2f3
Update bfx-report-ui sub-module
ZIMkaRU Dec 19, 2025
a56754c
Merge pull request #576 from ZIMkaRU/feature/release-electron-app
vigan-abd Dec 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.40.1] - 2025-12-19

### Changed

- Used and adapted the implemented modal window for the `show-docs` module instead of the `electron-alert` library. This module is used for showing the `changelog` and the `user manual`. PR: [bfx-report-electron#575](https://github.com/bitfinexcom/bfx-report-electron/pull/575)
- Reworked and optimized `BalancePrecisionSelector` in a more performant way. PR: [bfx-report-ui#1001](https://github.com/bitfinexcom/bfx-report-ui/pull/1001)

### Fixed

- Reverted [(improvements) USDT0 support and currencies mapping flow](https://github.com/bitfinexcom/bfx-report-ui/pull/992) as a quick fix for the `USDt` mapping flow issues noted after this update. PR: [bfx-report-ui#1002](https://github.com/bitfinexcom/bfx-report-ui/pull/1002)

## [4.40.0] - 2025-12-17

### Added
Expand Down
7 changes: 7 additions & 0 deletions build/locales/en/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@
"cancelButtonText": "Close"
}
},
"changelog": {
"modalDialog": {
"title": "Changelog v{{version}}",
"fullChangelogTitle": "Full Changelog",
"confirmButtonText": "Show Full Changelog"
}
},
"printToPDF": {
"defaultTemplate": "No data",
"pagination": {
Expand Down
7 changes: 7 additions & 0 deletions build/locales/es-EM/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@
"cancelButtonText": "Cerrar"
}
},
"changelog": {
"modalDialog": {
"title": "Registro de cambios v{{version}}",
"fullChangelogTitle": "Registro de cambios completo",
"confirmButtonText": "Mostrar registro de cambios completo"
}
},
"printToPDF": {
"defaultTemplate": "Sin datos",
"pagination": {
Expand Down
7 changes: 7 additions & 0 deletions build/locales/pt-BR/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@
"cancelButtonText": "Fechar"
}
},
"changelog": {
"modalDialog": {
"title": "Registro de alterações v{{version}}",
"fullChangelogTitle": "Registro de alterações completo",
"confirmButtonText": "Mostrar registro de alterações completo"
}
},
"printToPDF": {
"defaultTemplate": "Sem dados",
"pagination": {
Expand Down
7 changes: 7 additions & 0 deletions build/locales/ru/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@
"cancelButtonText": "Закрыть"
}
},
"changelog": {
"modalDialog": {
"title": "Журнал Изменений v{{version}}",
"fullChangelogTitle": "Полный Журнал Изменений",
"confirmButtonText": "Показать Полный Журнал"
}
},
"printToPDF": {
"defaultTemplate": "Нет данных",
"pagination": {
Expand Down
7 changes: 7 additions & 0 deletions build/locales/tr/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@
"cancelButtonText": "Kapat"
}
},
"changelog": {
"modalDialog": {
"title": "Değişiklik günlüğü v{{version}}",
"fullChangelogTitle": "Tam değişiklik günlüğü",
"confirmButtonText": "Tam değişiklik günlüğünü göster"
}
},
"printToPDF": {
"defaultTemplate": "Veri yok",
"pagination": {
Expand Down
7 changes: 7 additions & 0 deletions build/locales/vi/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@
"cancelButtonText": "Đóng"
}
},
"changelog": {
"modalDialog": {
"title": "Nhật ký thay đổi v{{version}}",
"fullChangelogTitle": "Nhật ký thay đổi đầy đủ",
"confirmButtonText": "Hiển thị nhật ký thay đổi đầy đủ"
}
},
"printToPDF": {
"defaultTemplate": "Không có dữ liệu",
"pagination": {
Expand Down
7 changes: 7 additions & 0 deletions build/locales/zh-CN/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@
"cancelButtonText": "关闭"
}
},
"changelog": {
"modalDialog": {
"title": "更新日志 v{{version}}",
"fullChangelogTitle": "完整更新日志",
"confirmButtonText": "显示完整更新日志"
}
},
"printToPDF": {
"defaultTemplate": "无数据",
"pagination": {
Expand Down
7 changes: 7 additions & 0 deletions build/locales/zh-TW/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@
"cancelButtonText": "關閉"
}
},
"changelog": {
"modalDialog": {
"title": "更新日誌 v{{version}}",
"fullChangelogTitle": "完整更新日誌",
"confirmButtonText": "顯示完整更新日誌"
}
},
"printToPDF": {
"defaultTemplate": "無資料",
"pagination": {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bfx-report-electron",
"version": "4.40.0",
"version": "4.40.1",
"repository": "https://github.com/bitfinexcom/bfx-report-electron",
"description": "Reporting tool",
"author": "bitfinex.com",
Expand Down
23 changes: 19 additions & 4 deletions src/changelog-manager/show-changelog.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
'use strict'

const path = require('path')
const fs = require('fs')
const parseChangelog = require('changelog-parser')
const { rootPath } = require('electron-root-path')
const i18next = require('i18next')

const getDebugInfo = require('../helpers/get-debug-info')
const showDocs = require('../show-docs')
Expand All @@ -11,6 +13,7 @@ const MENU_ITEM_IDS = require('../create-menu/menu.item.ids')
const { changeMenuItemStatesById } = require('../create-menu/utils')

const changelogPath = path.join(rootPath, 'CHANGELOG.md')
const changelog = fs.readFileSync(changelogPath, 'utf8')

const disableShowChangelogMenuItem = () => {
changeMenuItemStatesById(
Expand All @@ -24,7 +27,7 @@ module.exports = async (params = {}) => {
const version = params?.version ?? getDebugInfo()?.version

const mdEntries = await parseChangelog({
filePath: changelogPath,
text: changelog,
removeMarkdown: false
})

Expand Down Expand Up @@ -60,11 +63,23 @@ module.exports = async (params = {}) => {
const versionTitle = `## ${mdEntry.title}`
const mdDoc = `${mdTitle}\n\n${versionTitle}\n\n${mdEntry.body}`

await showDocs({
title: mdEntries.title,
mdDoc
const res = await showDocs({
title: i18next.t('changelog.modalDialog.title', { version }),
mdDoc,
showConfirmButton: true,
confirmButtonText: i18next
.t('changelog.modalDialog.confirmButtonText')
})

if (res?.dismiss === 'confirm') {
await showDocs({
title: i18next
.t('changelog.modalDialog.fullChangelogTitle'),
showWinCloseButton: true,
mdDoc: changelog
})
}

return {
error: null,
isShown: true
Expand Down
Loading