diff --git a/CHANGELOG.md b/CHANGELOG.md index 666f8cf82..b4bb6af9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Added + +### Changed + +### Fixed + * Channel subscribe button on search page ([#2146](https://github.com/lbryio/lbry-desktop/pull/2146)) + * Close modal after redeeming reward code ([#2146](https://github.com/lbryio/lbry-desktop/pull/2146)) + * Update Electron to prevent segfault on Ubuntu@18.10 ([#2146](https://github.com/lbryio/lbry-desktop/pull/2146)) + * Show reward code modal when all rewards are claimed ([#2146](https://github.com/lbryio/lbry-desktop/pull/2146)) + + +## [0.26.0] - 2018-12-12 + ### Added * Redemption of custom reward codes via Rewards page ([#1935](https://github.com/lbryio/lbry-desktop/pull/1935)) * Ability to manage email preferences from Help page ([#1929](https://github.com/lbryio/lbry-desktop/pull/1929)) diff --git a/package.json b/package.json index 43a0f0d96..6cf8de388 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ "decompress": "^4.2.0", "del": "^3.0.0", "devtron": "^1.4.0", - "electron": "^2.0.6", + "electron": "^2.0.14", "electron-builder": "^20.22.0", "electron-devtools-installer": "^2.2.3", "electron-publisher-s3": "^20.8.1", diff --git a/src/renderer/component/channelTile/view.jsx b/src/renderer/component/channelTile/view.jsx index 6bde45cd8..106c8ad11 100644 --- a/src/renderer/component/channelTile/view.jsx +++ b/src/renderer/component/channelTile/view.jsx @@ -42,7 +42,7 @@ class ChannelTile extends React.PureComponent { let subscriptionUri; if (claim) { channelName = claim.name; - subscriptionUri = claim.permanent_url; + subscriptionUri = `lbry://${claim.permanent_url}`; } const onClick = () => navigate('/show', { uri }); diff --git a/src/renderer/index.js b/src/renderer/index.js index 83b72db69..8e2adb243 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -15,6 +15,7 @@ import { doDaemonReady, doAutoUpdate, doOpenModal, + doHideModal, } from 'redux/actions/app'; import { doToast, doBlackListedOutpointsSubscribe, isURIValid } from 'lbry-redux'; import { doNavigate } from 'redux/actions/navigation'; @@ -88,6 +89,10 @@ rewards.setCallback('rewardApprovalRequired', () => { app.store.dispatch(doOpenModal(MODALS.REWARD_APPROVAL_REQUIRED)); }); +rewards.setCallback('claimRewardSuccess', () => { + app.store.dispatch(doHideModal(MODALS.REWARD_APPROVAL_REQUIRED)); +}); + ipcRenderer.on('open-uri-requested', (event, uri, newSession) => { if (uri && uri.startsWith('lbry://')) { if (uri.startsWith('lbry://?verify=')) { diff --git a/src/renderer/page/rewards/view.jsx b/src/renderer/page/rewards/view.jsx index 165227e4f..5e8ce52dd 100644 --- a/src/renderer/page/rewards/view.jsx +++ b/src/renderer/page/rewards/view.jsx @@ -1,5 +1,5 @@ // @flow -import React from 'react'; +import React, { PureComponent, Fragment } from 'react'; import BusyIndicator from 'component/common/busy-indicator'; import RewardListClaimed from 'component/rewardListClaimed'; import RewardTile from 'component/rewardTile'; @@ -26,7 +26,7 @@ type Props = { }, }; -class RewardsPage extends React.PureComponent { +class RewardsPage extends PureComponent { renderPageHeader() { const { doAuth, navigate, user, daemonSettings } = this.props; @@ -76,6 +76,21 @@ class RewardsPage extends React.PureComponent { return null; } + renderCustomRewardCode() { + return ( + + ); + } + renderUnclaimedRewards() { const { fetching, rewards, user, daemonSettings, navigate, claimed } = this.props; @@ -108,13 +123,20 @@ class RewardsPage extends React.PureComponent { ); } else if (!rewards || rewards.length <= 0) { return ( -
- {claimed && claimed.length - ? __( - "You have claimed all available rewards! We're regularly adding more so be sure to check back later." - ) - : __('There are no rewards available at this time, please check back later.')} -
+ +
+

{__('No Rewards Available')}

+

+ {claimed && claimed.length + ? __( + "You have claimed all available rewards! We're regularly adding more so be sure to check back later." + ) + : __('There are no rewards available at this time, please check back later.')} +

+
+ +
{this.renderCustomRewardCode()}
+
); } @@ -126,17 +148,10 @@ class RewardsPage extends React.PureComponent { 'card--disabled': isNotEligible, })} > - {rewards.map(reward => )} - + {rewards.map(reward => ( + + ))} + {this.renderCustomRewardCode()} ); } diff --git a/src/renderer/page/subscriptions/internal/first-run.jsx b/src/renderer/page/subscriptions/internal/first-run.jsx index 12771bdda..058fd39b7 100644 --- a/src/renderer/page/subscriptions/internal/first-run.jsx +++ b/src/renderer/page/subscriptions/internal/first-run.jsx @@ -43,18 +43,17 @@ export default (props: Props) => {