Skip to content

Commit

Permalink
Merge pull request #166 from bitfinexcom/beta
Browse files Browse the repository at this point in the history
Release version 3.8.0
  • Loading branch information
ezewer authored Sep 23, 2022
2 parents 61d3ac8 + 16fcee5 commit a0886da
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 4 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.8.0] - 2022-09-20

### Added

- Added a zipped `AppImage` release of the app to the electron build flow as a simple way to avoid users adding executable permission manually after downloading binary artifact. Also, leaves unzipped `AppImage` release for auto-update. PR: [bfx-report-electron#162](https://github.com/bitfinexcom/bfx-report-electron/pull/162)
- Added `win/loss` vs `previous day balance` results. PR: [bfx-reports-framework#233](https://github.com/bitfinexcom/bfx-reports-framework/pull/233)
- Added one more option to `Select Report Type` selection of the`win/loss` chart: `Percentage Gains (gains/deposits)` and `Percentage Gains (gains/balance)` options. PR: [bfx-report-ui#545](https://github.com/bitfinexcom/bfx-report-ui/pull/545)
- Added `Sum` option to the columns context menu and related logic to show a quick total for numeric values. PR: [bfx-report-ui#538](https://github.com/bitfinexcom/bfx-report-ui/pull/538)
- Implemented copying columns sum up values to the clipboard along with displaying the result. Allowed quick total displaying if sum up value equals 0. PR: [bfx-report-ui#540](https://github.com/bitfinexcom/bfx-report-ui/pull/540)
- Implemented dynamic payload fetching on `Candles` chart scrolling for better representation and UX improvement. PR: [bfx-report-ui#547](https://github.com/bitfinexcom/bfx-report-ui/pull/547)

### Changed

- Enhanced the fees report. Added an additional selector with `Trading fees` (by default) and `Funding fees` and `Funding + Trading fees` options. Added `cumulative` result to the chart as on `Loan Report`. PR: [bfx-reports-framework#234](https://github.com/bitfinexcom/bfx-reports-framework/pull/234)
- Improved properties validation in `Affiliates Earnings`, `Funding`, `Staking Payments` and `Ledgers` reports by defining types/defaults inside the related components for better linting. PR: [bfx-report-ui#541](https://github.com/bitfinexcom/bfx-report-ui/pull/541)
- Improved candles fetching logic to speed up `Go to` specific date feature for `Candles` chart in the `Trades` report. PR: [bfx-report-ui#542](https://github.com/bitfinexcom/bfx-report-ui/pull/542)
- Improved properties validation in `Account Balance`, `Candles`, `Derivatives`, `Candlestick`, and several `Auth` sub-components. PR: [bfx-report-ui#544](https://github.com/bitfinexcom/bfx-report-ui/pull/544)

### Fixed

- Fixed auto-update toast window styles. PR: [bfx-report-electron#161](https://github.com/bitfinexcom/bfx-report-electron/pull/161)
- Fixed `win/loss` vs `account balance` report, fixed percentage calculation for sub-account transfers and for all movements. PR: [bfx-reports-framework#233](https://github.com/bitfinexcom/bfx-reports-framework/pull/233)
- Fixed issues with selected `Unrealized Profits` and `Report Type` params dropping to defaults on `Average Win/Loss` report refresh. PR: [bfx-report-ui#545](https://github.com/bitfinexcom/bfx-report-ui/pull/545)
- Fixed `win/loss` vs `account balance` export to CSV. PR: [bfx-report-ui#546](https://github.com/bitfinexcom/bfx-report-ui/pull/546)

### Security

- Updated dependencies versions. PRs: [bfx-report-ui#539](https://github.com/bitfinexcom/bfx-report-ui/pull/539), [bfx-report-ui#543](https://github.com/bitfinexcom/bfx-report-ui/pull/543)

## [3.7.4] - 2022-08-10

### Added
Expand Down
2 changes: 1 addition & 1 deletion bfx-report-ui
Submodule bfx-report-ui updated 89 files
+67 −127 package-lock.json
+2 −2 package.json
+13 −2 public/locales/en/translations.json
+5 −5 src/components/AccountBalance/AccountBalance.container.js
+33 −13 src/components/AccountBalance/AccountBalance.js
+0 −23 src/components/AccountBalance/AccountBalance.props.js
+1 −3 src/components/AccountSummary/index.js
+16 −12 src/components/AffiliatesEarnings/AffiliatesEarnings.container.js
+64 −21 src/components/AffiliatesEarnings/AffiliatesEarnings.js
+1 −3 src/components/AffiliatesEarnings/index.js
+21 −8 src/components/Auth/InputKey/InputKey.js
+0 −18 src/components/Auth/InputKey/InputKey.props.js
+7 −4 src/components/Auth/PasswordRecovery/PasswordRecovery.container.js
+18 −10 src/components/Auth/PasswordRecovery/PasswordRecovery.js
+4 −0 src/components/AverageWinLoss/AverageWinLoss.container.js
+53 −9 src/components/AverageWinLoss/AverageWinLoss.js
+0 −19 src/components/AverageWinLoss/AverageWinLoss.props.js
+17 −13 src/components/Candles/Candles.container.js
+51 −17 src/components/Candles/Candles.js
+0 −50 src/components/Candles/Candles.props.js
+1 −3 src/components/Candles/index.js
+4 −0 src/components/Derivatives/Derivatives.columns.js
+16 −12 src/components/Derivatives/Derivatives.container.js
+59 −19 src/components/Derivatives/Derivatives.js
+0 −36 src/components/Derivatives/Derivatives.props.js
+1 −3 src/components/Derivatives/index.js
+2 −0 src/components/FundingCreditHistory/FundingCreditHistory.columns.js
+2 −0 src/components/FundingLoanHistory/FundingLoanHistory.columns.js
+3 −0 src/components/FundingOfferHistory/FundingOfferHistory.columns.js
+16 −12 src/components/FundingPayment/FundingPayment.container.js
+63 −20 src/components/FundingPayment/FundingPayment.js
+1 −3 src/components/FundingPayment/index.js
+1 −0 src/components/Invoices/Invoices.columns.js
+0 −8 src/components/Ledgers/Ledgers.SubCategory.props.js
+4 −0 src/components/Ledgers/Ledgers.columns.js
+11 −11 src/components/Ledgers/Ledgers.container.js
+56 −14 src/components/Ledgers/Ledgers.js
+0 −38 src/components/Ledgers/Ledgers.props.js
+8 −5 src/components/Movements/Movements.columns.js
+5 −0 src/components/Orders/Orders.columns.js
+10 −3 src/components/Positions/Positions.columns.js
+2 −0 src/components/PublicFunding/PublicFunding.columns.js
+2 −0 src/components/PublicTrades/PublicTrades.columns.js
+14 −10 src/components/StakingPayments/StakingPayments.container.js
+65 −20 src/components/StakingPayments/StakingPayments.js
+1 −3 src/components/StakingPayments/index.js
+2 −0 src/components/Tickers/Tickers.columns.js
+3 −0 src/components/Trades/Trades.columns.js
+2 −0 src/components/Wallets/Wallets.columns.js
+16 −0 src/state/candles/actions.js
+17 −0 src/state/candles/constants.js
+7 −0 src/state/candles/reducer.js
+45 −20 src/state/candles/saga.js
+2 −0 src/state/candles/selectors.js
+8 −0 src/state/columns/actions.js
+1 −0 src/state/columns/constants.js
+26 −0 src/state/columns/saga.js
+5 −5 src/state/goToRange/actions.js
+9 −9 src/state/goToRange/constants.js
+14 −2 src/state/query/saga.js
+2 −0 src/state/sagas.js
+7 −0 src/state/winLoss/actions.js
+1 −0 src/state/winLoss/constants.js
+15 −1 src/state/winLoss/reducer.js
+2 −0 src/state/winLoss/saga.js
+6 −0 src/state/winLoss/selectors.js
+14 −7 src/ui/Charts/Candlestick/CandleStats/CandleStats.js
+0 −10 src/ui/Charts/Candlestick/CandleStats/CandleStats.props.js
+1 −3 src/ui/Charts/Candlestick/CandleStats/index.js
+9 −7 src/ui/Charts/Candlestick/Candlestick.container.js
+79 −16 src/ui/Charts/Candlestick/Candlestick.js
+0 −13 src/ui/Charts/Candlestick/Candlestick.props.js
+29 −18 src/ui/Charts/Candlestick/Tooltip/Tooltip.js
+0 −11 src/ui/Charts/Candlestick/Tooltip/Tooltip.props.js
+1 −3 src/ui/Charts/Candlestick/Tooltip/index.js
+8 −6 src/ui/Charts/Candlestick/TradesToggle/TradesToggle.js
+0 −9 src/ui/Charts/Candlestick/TradesToggle/TradesToggle.props.js
+1 −3 src/ui/Charts/Candlestick/TradesToggle/index.js
+1 −3 src/ui/Charts/Candlestick/index.js
+2 −1 src/ui/DataTable/DataTable.container.js
+54 −3 src/ui/DataTable/DataTable.js
+44 −0 src/ui/ReportTypeSelector/ReportTypeSelector.item.js
+26 −23 src/ui/ReportTypeSelector/ReportTypeSelector.js
+3 −2 src/ui/ReportTypeSelector/constants.js
+36 −5 src/ui/Select/Select.js
+0 −29 src/ui/Select/Select.props.js
+24 −2 src/ui/Select/_Select.scss
+1 −3 src/ui/Select/index.js
+23 −1 src/utils/columns.js
45 changes: 44 additions & 1 deletion electron-builder-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const archiver = require('archiver')
const exec = promisify(require('child_process').exec)

let version
let zippedAppImageArtifactPath
const appOutDirs = new Map()

/* eslint-disable no-template-curly-in-string */
Expand Down Expand Up @@ -236,6 +237,40 @@ module.exports = {

console.log('Mac release has been zipped successfully')
}
if (
targetPlatform === 'linux' &&
targetName === 'appimage'
) {
zippedAppImageArtifactPath = path.join(
outDir,
`BitfinexReport-${version}-x64-${targetPlatform}.AppImage.zip`
)
await new Promise((resolve, reject) => {
try {
const output = fs.createWriteStream(zippedAppImageArtifactPath)
const archive = archiver('zip', {
zlib: { level: zlib.constants.Z_BEST_COMPRESSION }
})

output.on('close', resolve)
output.on('error', reject)
archive.on('error', reject)
archive.on('warning', reject)

archive.pipe(output)
archive.append(
fs.createReadStream(appFilePath),
{ name: path.basename(appFilePath), mode: 0o777 }
)

archive.finalize()
} catch (err) {
reject(err)
}
})

console.log('AppImage release has been zipped successfully')
}

await fs.promises.access(appFilePath, fs.constants.F_OK)

Expand All @@ -247,8 +282,16 @@ module.exports = {
}
}

return macBlockmapFilePaths.length > 0
const macFiles = macBlockmapFilePaths.length > 0
? [...artifactPaths, ...macBlockmapFilePaths]
: []
const linuxFiles = zippedAppImageArtifactPath
? [zippedAppImageArtifactPath]
: []

return [
...macFiles,
...linuxFiles
]
}
}
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": "3.7.4",
"version": "3.8.0",
"repository": "https://github.com/bitfinexcom/bfx-report-electron",
"description": "Reporting tool",
"author": "bitfinex.com",
Expand Down
3 changes: 3 additions & 0 deletions src/auto-updater/toast-src/toast.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ body.swal2-toast-shown .swal2-container {
align-items: center;
box-sizing: content-box;
background-color: #172d3e;
overflow: revert;
}

.swal2-popup.swal2-toast .swal2-styled,
Expand All @@ -44,6 +45,7 @@ body.swal2-toast-shown .swal2-container {

.swal2-popup.swal2-toast .swal2-actions {
padding-right: 0;
flex-wrap: nowrap;
}

.swal2-popup.swal2-toast .swal2-styled {
Expand All @@ -64,6 +66,7 @@ body.swal2-toast-shown .swal2-container {

.swal2-html-container {
color: #f5f8fa;
overflow: revert;
}

.swal2-styled.swal2-confirm {
Expand Down

0 comments on commit a0886da

Please sign in to comment.